EasyManua.ls Logo

NXP Semiconductors Layerscape LS1028A BSP - Page 29

NXP Semiconductors Layerscape LS1028A BSP
136 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3. Add new machine support in Linux kernel, take LSDK-18.12 for example:
$ cd packages/linux/linux
$ git checkout LSDK-18.12-V4.14 -b LSDK-18.12-V4.14-LS1043AXX
Now, you can add kernel patches and submit the patches in this branch for the new machine, then make a tag as below.
$ git tag LSDK-18.12-V4.14-LS1043AXX
Assume that you have added a new ls1043axx.dts in packages/linux/linux/arch/arm64/boot/dts directory, run as below to
build kernel image for new LS1043AXX
$ flex-builder -c linux:linux:LSDK-18.12-V4.14-LS1043AXX
4. Add configs in flexbuild for new machine.
a. Add ls1043axx node in configs/linux/linux_arm64.its.
b. Add CONFIG_MACHINE_LS1043AXX=y in configs/build_lsdk.cfg.
c. Set linux_repo_tag to LSDK-18.12-V4.14-LS1043AXX and set u_boot_repo_tag to LSDK-18.12-LS1043AXX in
configs/build_lsdk.cfg.
d. Set BUILD_DUAL_KERNEL to n in configs/build_lsdk.cfg if user doesn't need the second version of linux.
e. Optionally, user can use different memory layout from default settings by modifying them in configs/board/common/
memorylayout.cfg.
f. Add manifest for new machine as below
$ mkdir configs/board/ls1043axx
$ cp configs/board/ls1043ardb/manifest configs/board/ls1043axx.
g. Update the settings in configs/board/ls1043axx/manifest on demand.
h. Generally, user can reuse the settings of rcw/fman/qe/eth-phy used for existing ls1043ardb if those components are
same for new ls1043axx, otherwise user needs to add new support in packages/firmware/rcw.
i. Run flex-builder -i mklinux -a arm64 to generate lsdk_linux_arm64_tiny.itb image.
j. Run flex-builder -i mkfw -m ls1043ardb -b sd to generate the shared ppa/rcw/fman/qe/eth-phy images for new
ls1043axx.
k. Run flex-builder -i mkfw -m ls1043axx -b sd to generate firmware_ls1043axx_uboot_sdboot.img.
l. User can boot the new lsdk_linux_arm64_tiny.itb from U-Boot prompt duringdebugging stage on LS1043AXX
machine.
=> tftp a0000000 lsdk_linux_arm64_tiny.itb
=> bootm a0000000#ls1043axx
5. Build all other images for new custom machine with Ubuntu userland if required as below:
$ flex-builder -i mkrfs -a arm64
$ flex-builder -c apps -a arm64
$ flex-builder -i mkbootpartition -a arm64
$ flex-builder -i merge-component -a arm64
$ flex-builder -i compressrfs -a arm64
How to build LS1028A BSP with Flexbuild
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
29

Table of Contents

Related product manuals