Hi,
I have a LS1043a-rgw/rdb custom board, and I am using OpenWrt 19.07 and trying to build both
a NAND and SD Card images.
It is using the LSDK 19.03 u-boot image, but I am finding that the only thing that it does make
are TFA based images - which is NOT what I want.
How can I build Non-Secure/Non-TFA NAND & SD Card images
Tom
Hello Tom,
I just discussed with the development team, it is difficult to build Non-TFA u-boot in OpenWrt automatically.
You could build SD/NAND u-boot image manually.
You could download ARM64 toolchain from the following link
https://drive.google.com/open?id=1DKSXd775Beijes9eMguPfOroAxSWrF6G
Install toolchain with the following procedure.
$ chmod 777 fsl-qoriq-glibc-x86_64-fsl-toolchain-aarch64-toolchain-3.0.sh
$./fsl-qoriq-glibc-x86_64-fsl-toolchain-aarch64-toolchain-3.0.sh
$ source environment-setup-aarch64-fsl-linux
Please go to folder build_dir/target-aarch64_generic_musl/uboot-layerscape-ls1043ardb/uboot-layerscape-lsdk-1903, build u-boot with the following command.
$make ls1043ardb_nand_defconfig (for SD u-boot $make ls1043ardb_sdcard_defconfig)
$make CROSS_COMPILE=aarch64-fsl-linux-
Thanks,
Yiping
The toolchain is built into the staging directory...I will try this and see what happens!
t
It builds almost to the end - but it doesn't know how to build spl (fails the mkimage command)...
(without a lot of failure information).
I think all I need to do is correctly create the full uboot (nand and sdcard) that includes:
?
I have verified the above procedure, u-boot-with-spl-pbl.bin has been generated.
Yes, I also got it to work (it was a typo) last night
Does your team have any suggestions on the layout recipe - this seems to
be different than the the layout we have been using manually:
IMAGE/sdcard.img := \ ls-clean | \ ls-append-sdhead $(1) |
pad-to 4K | \ ls-append $(1)-uboot.bin | pad-to 3M | \ ls-append
$(1)-uboot-env.bin | pad-to 9M | \ ls-append ls1043ardb-fman.bin |
pad-to 15M | \ ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \ append-rootfs |
check-size $(LS_SD_IMAGE_SIZE)*
Please refer to LS1043ARDB memory map provided in target/linux/layerscape/image/armv8_64b.mk.
define Device/ls1043ardb-sdboot
DEVICE_TITLE := LS1043ARDB (SD Card Boot)
DEVICE_PACKAGES += \
layerscape-fman-ls1043ardb \
tfa-ls1043ardb-sdboot \
fmc fmc-eth-config
DEVICE_DTS := freescale/fsl-ls1043a-rdb-sdk
FILESYSTEMS := ext4
IMAGES := sdcard.img
IMAGE/sdcard.img := \
ls-clean | \
ls-append-sdhead $(1) | pad-to 4K | \
ls-append $(1)-bl2.pbl | pad-to 1M | \
ls-append $(1)-fip.bin | pad-to 5M | \
ls-append $(1)-uboot-env.bin | pad-to 9M | \
ls-append ls1043ardb-fman.bin | pad-to 15M | \
ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
append-rootfs | check-size $(LS_SD_IMAGE_SIZE)
endef
Hi Yiping,
Thank you - yes this is what I am trying to customize,
but the map for TFA is different than that of a single
spl & uboot binary.
tom
You could modify
ls-append $(1)-bl2.pbl | pad-to 1M | \
ls-append $(1)-fip.bin | pad-to 5M | \
=>
ls-append $(1)-rcw | pad-to 1M | \
ls-append $(1)-u-boot | pad-to 5M | \
Please refer to the following memory layout