TS-4100 U-boot Sections: Difference between revisions

From embeddedTS Manuals
(Starting manual updates, not yet completed. Matched 4100 output, broken in to sections to make baseboard manuals easier.)
Line 1: Line 1:
== U-Boot Environment ==
{{:TS-4100_u-boot_output}}
The U-Boot environment on the TS-4100 is stored in the on-board eMMC flash.


<source lang=bash>
When running standalone, the TS-4100 will default to booting from eMMC. This behavior can be changed by modifying the [[#U-Boot_Environment|U-Boot environment variables]] or [[#U-Boot_Commands|running U-Boot commands]] to direct booting to another source such as NFS, USB, or microSD. Many of our compatible baseboards offer an "SD Boot" jumper to control the behavior between SD and eMMC.
# Print all environment variables
env print -a
 
# Sets the variable bootdelay to 5 seconds
env set bootdelay 5;
 
# Variables can also contain commands
env set hellocmd 'led red on; echo Hello world; led green on;'
 
# Execute commands saved in a variable
env run hellocmd;
 
# Commit env changes to the spi flash
# Otherwise changes are lost
env save
 
# Restore env to default
env default -a
 
# Remove a variable
env delete emmcboot
</source>
 
== U-Boot Commands ==
{{:U-boot-TS-4100 commands}}

Revision as of 17:32, 3 July 2019

This platform includes U-Boot as the bootloader to load and boot the full operating system. The i.MX6UL processor loads U-Boot from the eMMC flash at power-on. U-Boot allows booting images from the microSD, eMMC, NFS, or USB. U-Boot is a general purpose bootloader that is capable of booting into common Linux distributions, Android, QNX, or others.

On a normal boot, output from U-Boot will be similar to the following:

U-Boot 2016.03-00367-gb3ce405827 (Jul 02 2019 - 16:40:10 -0700)

CPU:   Freescale i.MX6UL rev1.1 at 396 MHz
Reset cause: POR
Board: Technologic Systems TS-4100
FPGA:  Rev 11
Silab: Rev 2
I2C:   ready
DRAM:  1 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Baseboard ID: 0x8
Baseboard Rev: 0
Net:   FEC0 [PRIME]
Press Ctrl+C to abort autoboot in 1 second(s)
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
USB1:   USB EHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
No storage devices, perhaps not 'usb start'ed..?
Booting from the SD card ...
** File not found /boot/boot.scr **
** File not found /boot/ts4100-fpga.vme **
29205 bytes read in 146 ms (195.3 KiB/s)
8 detected
5244088 bytes read in 390 ms (12.8 MiB/s)
Kernel image @ 0x80800000 [ 0x000000 - 0x5004b8 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300a214

Starting kernel ...

When running standalone, the TS-4100 will default to booting from eMMC. This behavior can be changed by modifying the U-Boot environment variables or running U-Boot commands to direct booting to another source such as NFS, USB, or microSD. Many of our compatible baseboards offer an "SD Boot" jumper to control the behavior between SD and eMMC.