TS-7553-V2 U-Boot USB boot: Difference between revisions

From embeddedTS Manuals
No edit summary
m (Kris moved page Imx6ul U-Boot USB boot to TS-7553-V2 U-Boot USB boot without leaving a redirect: 6ul not common enough with U-Boot to be titled specifically for 6ul at this time. Might be able to move it back later.)
(No difference)

Revision as of 12:51, 6 January 2020

The one addition is to create the tsinit.ub file in the root of the USB drive. In order to do this, a U-Boot script must be created and then converted to the .ub format. This process requires a set of U-Boot specific tools. These are available on most every linux distribution, the instructions below are for Debian, either run on a host PC or on the device itself. See the package installation documentation for other respective distributions.

Install U-Boot tools in Debian

apt-get update && apt-get install u-boot-tools -y

Create the file tsinit.scr in the root of the USB drive with the linux filesystem:

# Prepare with:
# mkimage -A arm -T script -C none -n 'imx6ul usb' -d tsinit.scr tsinit.ub

# DO NOT MANUALLY EDIT THE .UB FILE

if load usb 0:1 ${loadaddr} /boot/ts${model}-fpga.vme;
        then fpga load 0 ${loadaddr} ${filesize};
fi;

load usb 0:1 ${fdtaddr} /boot/imx6ul-ts${model}.dtb;

load usb 0:1 ${loadaddr} /boot/zImage;

setenv bootargs root=/dev/sda1 rootwait rw ${cmdline_append};
bootz ${loadaddr} - ${fdtaddr};

Then in the same directory generate the tsinit.ub file:

mkimage -A arm -T script -C none -n 'imx6ul usb' -d tsinit.scr tsinit.ub