Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

heam@Dell-OptiPlex-9020:~/bootloader/atf/u-boot/build/mt7988/release$ ls
bl2  bl2.bin  bl2.img  bl31  bl31.bin  fdts  fip.bin  lib  libc  libfdt  libwrapper  romlib

...

Generating SD card image for

...

BPI-R4

Build instruction:

Generated bl2.img and fip.bin files need to be include in meta-cmf-bananapi layer. SDCard image is made default for BPI-R4 target.

Code Block
themeRDark
titleBPIR4 build instructios for generating sdcard image.
repo init -u https://code.rdkcentral.com/r/manifests -b kirkstone -m rdkb-bpi-extsrc.xml
repo sync -j `nproc` --no-clone-bundle --no-tags
MACHINE=bananapi4-rdk-broadband source meta-cmf-bananapi/setup-environment-refboard-rdkb
bitbake rdk-generic-broadband-image

Flashing steps

...

:

Generated SD card Image can be flashed directly to sdcard using dd bmaptool command or balenaEtcher.

Code Block
themeRDark
titleBPIR4 2nd time flashing instructions.
collapsetrue
1)copy mentionedbzip2 files from deploy dir-d <Path to local pc if using vm(fitImage, mt7988a-bananapi-bpi-r4-sd.dtb, rdkb-generic-broadband-image_rdk-next_20241028072748.bin.ext4)
2)copy fitImage and mt7988a-bananapi-bpi-r4-sd.dtb to 3rd partition
     heam@Dell-OptiPlex-9020:~/tr69$ sudo mount /dev/sdc3 /mnt/
     [sudo] password for heam: 
     heam@Dell-OptiPlex-9020:~/tr69$ cd /mnt/
     heam@Dell-OptiPlex-9020:/mnt$ ls
     fitImage mt7988a-bananapi-bpi-r4-sd.dtb
     heam@Dell-OptiPlex-9020:/mnt$ sudo rm -rf *
     heam@Dell-OptiPlex-9020:~/tr69$ sudo cp fitImage mt7988a-bananapi-bpi-r4-sd.dtb /mnt/

3)Flash rdkb rootfs to 4th partition.
     heam@Dell-OptiPlex-9020:~/tr69$ sudo dd if=rdkb-generic-broadband-image_rdk-next_20241028072748.bin.ext4 of=/dev/sdc4
     541914+0 records in
     541914+0 records out
     277459968 bytes (277 MB, 265 MiB) copied, 24.6373 s, 11.3 MB/s
4)Remove sdcard and insert into BPIR4 device.5)Latest image will be loaded.

...

ImageName.wic.bz2>
2) sudo -E bmaptool copy --nobmap <Path to ImageName.wic> <Path to SD card device file>

ATF: https://trustedfirmware-a.readthedocs.io/en/latest/ 

...