Provisioning Apalis TK1 with Toradex Easy Installer

I planing to provisioning a bunch of Apalis TK1s. Most of them are fresh modules so the should boot directly into TEZI.

But for some modules that already have an image flashed onto them, I am trying to find a mechanism to flash a freshed new image with as little interaction as possible.

Looking around I found this. It seems I can run TEZI from u-boot using the command run distro_bootcmd.

I tried this, I made a FAT32 USB Drive and copied boot.scr and tezi.itb into it. I also added image I wanted to be flashed in https://docs.toradex.com/104854-apalis-tk1-linux-lxde-image-beta-tezi.tar. Unzipped into USB root.

I booted the TK1 into u-boot and ran run distro_bootcmd.

I got the following output.

Scanning usb 0:1...
e1000: no NVM
e1000: e1000#0: ERROR: Valid Link not detected: -8
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-00-14-2d-2c-6e-5b
e1000: e1000#0: ERROR: Valid Link not detected: -8
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/C0A80A02

What am I doing wrong?

That should really work just fine (see here). I suspect that you have an illegally formatted/partitioned USB stick. Can you display its contents from within U-Boot?

U-Boot 2016.11-2.8.3+gaca804c (Jun 26 2018 - 18:24:15 +0000)

SoC: tegra124
Reset cause: POR
DRAM:  2 GiB
MMC:   Tegra SD/MMC: 0, Tegra SD/MMC: 1, Tegra SD/MMC: 2
In:    serial
Out:   serial
Err:   serial
Model: Toradex Apalis TK1 2GB V1.2A, Serial# 02997331
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
Apalis TK1 # usb start
starting USB...
USB0:   USB EHCI 1.10
USB1:   USB EHCI 1.10
USB2:   USB EHCI 1.10
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 2 USB Device(s) found
Apalis TK1 # ls usb 0:1
      518   boot.scr 
 22961836   tezi.itb 

2 file(s), 0 dir(s)

Apalis TK1 # 

OK. Found the issue. My USB Drive had an extra partition at the beginning which was being scanned instead of the one with the boot.scr and tezi.itb.

Thanks!

You are very welcome.