d. Reboot with eMMC as boot source.
=> qixis_reset emmc
In the steps above, the contents of the eMMC are overwritten with the new eMMC firmware. The board is then
rebooted using the onboard eMMC.
3.2 How to build LS1028A BSP with Flexbuild
Flexbuild provides cmdline for various build scenarios. The
LS1028A BSP Quick Start
on page 12 section introduces how to build
the LS1028A BSP distro userland with prebuilt boot partition and component tarballs for quick deployment on the target board.
This section introduces detailed steps to build LS1028A BSP with Flexbuild.
Click here
to download flexbuild source tarball in the name format flexbuild_<version>.tgz
$ tar xvzf flexbuild_<version>.tgz
$ cd flexbuild
$ source setup.env
$ flex-builder -h
Build TF-A with RCW and U-Boot in Flexbuild
Layerscape platforms support TF-A (Trusted Firmware-A) which provides a reference implementation of secure world software
for Armv7-A and Armv8-A.
flex-builder can automatically build the dependent RCW, U-Boot, OPTEE and CST when building ATF to generate bl2 and fip
images for Layerscape platforms.
Use the commands below to build uboot-based ATF image in Flexbuild.
Usage:
$ flex-builder -c atf -m <machine> -b <boottype> [-s]
Example:
$ flex-builder -c atf -m ls1028ardb -b xspi # build uboot-based ATF image for Flexspi-NOR
boot on ls1028ardb
$ flex-builder -c atf -m ls1028ardb -b sd # build uboot-based ATF image for SD boot on
ls1028ardb
$ flex-builder -c atf -m ls1028ardb -b xspi -s # build uboot-based ATF image for Flexspi-NOR
secure boot on ls1028ardb
In case users modify RCW source code (in packages/firmware/rcw) or specify different RCW binary rather than
the default one, run 'flex-builder -c rcw' to regenerate RCW binary, then reconfigure rcw_<boottype> variable in
configs/board/<machine>/manifest.
NOTE
If RCW or U-Boot source code is updated since last build, make sure clean the obsolete image by commands 'rm
-rf build/firmware/u-boot/<machine>' and/or 'rm -rf build/firmware/rcw/<machine>', then re-build ATF by command
'flex-builder -c atf -m <machine> -b <boottype>'
NOTE
The '-s' option is used for secure boot, OPTEE and FUSE_PROVISIONING are not enabled by default, change
CONFIG_BUILD_OPTEE=n to y and/or change CONFIG_FUSE_PROVISIONING=n to y in configs/build_lsdk.cfg
to enable it if necessary.
NOTE
LS1028A BSP user guide
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
24
NXP Semiconductors
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......