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

From embeddedTS Manuals
(Created page with "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. Thi...")
 
(Update to include 7553v2 "variant" for rev C and custom. Additionally, use of "model" removed as it cannot include the "v2" that is in the FDT name.)
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
<source lang=bash>
<source lang=bash>
# Prepare with:
# Prepare with:
# mkimage -A arm -T script -C none -n 'imx6ul usb' -d tsinit.scr tsinit.ub
# mkimage -A arm -T script -C none -n 'ts7553v2 usb' -d tsinit.scr tsinit.ub


# DO NOT MANUALLY EDIT THE .UB FILE
# DO NOT MANUALLY EDIT THE .UB FILE


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


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


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


</source>
</source>
Line 28: Line 24:
Then in the same directory generate the tsinit.ub file:
Then in the same directory generate the tsinit.ub file:
<source lang=bash>
<source lang=bash>
mkimage -A arm -T script -C none -n 'imx6ul usb' -d tsinit.scr tsinit.ub
mkimage -A arm -T script -C none -n 'ts7553v2 usb' -d tsinit.scr tsinit.ub
</source>
</source>

Latest revision as of 12:55, 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 'ts7553v2 usb' -d tsinit.scr tsinit.ub

# DO NOT MANUALLY EDIT THE .UB FILE

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

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

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

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

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