Versions Compared

Key

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

...

Dependencies for sdcard build

Bootloader

...

Bananapi r4 follows a atf (arm-trusted firmware) flow for device bootup, by default flash memory is present in the device which will be loaded with BL1  and BL1 will be having bl2 address to load bl2 and make device up.

...

"Kernel and rdkb rootfs will be generated as part BPIR4 build instructions"

ATF files

...

Used below mentioned git repo for generating bl2.img and fip.bin file.
1) https://github.com/frank-w/u-boot/tree/2024-04-bpi → for generating uboot.bin files .
2) https://github.com/frank-w/u-boot/tree/mtk-atf → for generating atf flow bootloader files (bl2.img and fip.bin)

At initial cloned mentioned git code "https://github.com/frank-w/u-boot/tree/2024-04-bpi" , and made below mentioned changes in u-boot env file to make boot-loader compatible in  loading kernel and rdkb os at initial boot-up itself.

...

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 bmaptool command or balenaEtcher.

...