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 ' | # 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 | ||
load usb 0:1 ${fdtaddr} /boot/imx6ul-ts7553v2${variant}.dtb; | |||
load usb 0:1 ${fdtaddr} /boot/imx6ul- | |||
load usb 0:1 ${loadaddr} /boot/zImage; | load usb 0:1 ${loadaddr} /boot/zImage; | ||
setenv bootargs root=/dev/sda1 | setenv bootargs root=/dev/sda1 ${cmdline_append}; | ||
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 ' | 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