RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Papers & Presentations Archive
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
diff --git a/build.sh b/build.sh index 6939bd1ee87..8837ddf1517 100755 --- a/build.sh +++ b/build.sh @@ -3,9 +3,8 @@ export LANG=C export ARCH=arm64 export CROSS_COMPILE=aarch64-linux-gnu- -board="bpi-r3" #board="bpi-r64" -#board="bpi-r4" +board="bpi-r4" device="sdmmc" #device="emmc" #device="spim-nand" |
...
Build repo, please follow below instruction to create bl2.img and fip.bin in local linux machine(Checked in Ubuntu 22.04).
Code Block | ||
---|---|---|
| ||
### Prerequisite packages $ sudo apt-get install gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu libc6-armhf-cross u-boot-tools make gcc swig python3-pyelftools flex ### Building u-boot binaries $ mkdir BL2 && cd BL2 $ git clone https://github.com/frank-w/u-boot.git -b 2024-04-bpi $ cd u-boot $ git apply bl2.patch ## See above - patch content is provided in above block. $ make mt7988a_bpir4_sd_defconfig $ export CROSS_COMPILE=aarch64-linux-gnu- $ ./build.sh ### Building FIP binary $ cd ../.. $ mkdir FIP && cd FIP $ git clone https://github.com/frank-w/u-boot.git -b mtk-atf $ cd u-boot $ git apply fip.patch ## See above - patch content is provided in above block. ### Copy all u-boot.* files for creating fip.bin $ cp ../../BL2/u-boot/u-boot.* . $ ./build.sh ### Both bl2.img and fip.bin are present folder ./build/mt7988/release $ cd ./build/mt7988/release $ ls bl2.img fip.bin |
...
Generated bl2.img and fip.bin files need to be include in kept under meta-cmf-bananapi layer. SDCard image is made default for BPI-R4 target./meta-rdk-mtk-bpir4/recipes-bsp/trusted-firmware-a/files directory.
Comment SRC_URI lines with artifactory repo and uncomment alternate SRC_URI to load bl2 and fip from meta-cmf-bananapi/meta-rdk-mtk-bpir4/recipes-bsp/trusted-firmware-a/files directory.
Code Block | ||||
---|---|---|---|---|
| ||||
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 BPI_IMG_TYPE=sdmmc source meta-cmf-bananapi/setup-environment-refboard-rdkb bitbake rdk-generic-broadband-image |
...
Powered by a free Atlassian Confluence Open Source Project License granted to RDKCentral. Evaluate Confluence today.