Follow these steps to update the Linux kernel image and device tree for LX2160ARDB on an SD card.
NOTE: Below steps are valid for both LX2160ARDB Rev 1.0 and Rev 2.0 revisions.
$ git clone https://source.codeaurora.org/external/qoriq/qoriq-components/linux
For example, $ git checkout -b LSDK-20.04-V5.4 LSDK-20.04-V5.4
where LSDK-20.04-V5.4 refers to a tag in the format LSDK-<LSDK version>-V<kernel version>If you want to make changes to the device tree, open and edit arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts
The binary kernel image Image and compressed kernel image Image.gz are in arch/arm64/boot/.
The device tree blob fsl-lx2160a-rdb.dtb is in arch/arm64/boot/dts/freescale/.
For example:
$ sudo mkdir /carddata
$ sudo mount /dev/mmcblk0p2 /carddata
NOTE:
$ sudo cp /linux/arch/arm64/boot/Image /linux/arch/arm64/boot/Image.gz /linux/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dtb <mount_location>
For example: $sudo cp /linux/arch/arm64/boot/Image /linux/arch/arm64/boot/Image.gz /linux/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dtb /carddata=> run bootcmd_mmc0
If U-Boot does not find LSDK on the SD card, it will boot TinyDistro from lsdk_linux_arm64_ tiny.itb stored on the SD card.