Installing embedded linux in Colibri T30 ( it is pre installed with Win CE)

Hi ,
i am following the instruction from the following page

http://developer.toradex.com/knowledge-base/flashing-linux-on-tegra-modules

i am using the devlopment PC as ubuntu 14.04
i am connected to the Iris v1.1 board through serial port

first i prepared my Vfat formatted 8GP PenDrive , later i copied all the files in the Pendrive using the command
./update -o /medial/USBDRIVE/

After successful pre installation process i inserted the pendrive in the module and rebooted the board and pressed spacebar which takes me to “Tegra Boot Loader” where the setenv command does not work.
how do i get the U-Boot loader ?

I am new user of Colibri modules , so please help me understand better and load linux in my T30.

Thanks.

Please follow the Flashing from Scratch procedure which starts with the USB recovery mode as described in the following article on our developer website.

From the WinCE boot loader menu you basically enter the following:

X
reboot rcm

And then connecting the Iris via USB micro device cable to your Linux workstation where you execute the update script with the -d argument:

./update.sh -d

Which will execute the U-Boot boot loader allowing you to finish the flashing with plugged-in USB pen drive entering:

run setupdate
run update

Thanks for reply marcel,
i did what you suggested , before looking into the recoverymode page suggested by you, i see there is suggestion to join 2 pin on my irisboard to go to recovery mode , do i need to do that ?

it has been 1 hour since the “run update” is running , i am getting the below message on screen

mmc0 (part 0) is current device

EHCI time out on TD - token=0x8000xxxx
EHCI time out on TD - token=0x8000xxxx
EHCI time out on TD - token=0x8000xxxx
EHCI time out on TD - token=0x8000xxxx

cant read partition table on 0.0**
switch to partition 0

and restarts again with increased block#

is it going on right path ?
how long it take to install linux ?

thanks

No, I guess something went wrong as it should definitely not take that long. Best is to power-cycle and retry again posting the full console log file if it still fails. If you are lucky you already boot into U-Boot. Otherwise if it is still the WinCE boot loader you know the game. If it gets stuck without automatically entering the USB recovery mode you may have to revert to using the two pins you mentioned but usually this is only ever required when something went terribly wrong during flashing.

I tried few time but the result is same . i am posting the log below from serial consol

********************* Log Start ********************************

Welcome to minicom 2.7

OPTIONS: I18n
Compiled on Jan 1 2014, 17:13:19.
Port /dev/ttyUSB0, 17:26:10

Press CTRL-A Z for help on special keys

U-Boot SPL 2015.04 (Jun 28 2016 - 13:14:21)

U-Boot 2015.04 (Jun 28 2016 - 13:14:21)

TEGRA30
DRAM: 1 GiB
MMC: Tegra SD/MMC: 0, Tegra SD/MMC: 1
*** Warning - bad CRC, using default environment

In: serial
Out: lcd
Err: lcd
Model: Toradex Colibri T30 1GB V1.1E, Serial# 02874370
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
Colibri T30 # run setupdate
MMC: no card present
** Bad device mmc 1 **
starting USB…
USB0: tegrausb: Invalid dr_mode 2 for host mode
lowlevel init failed
USB1: USB EHCI 1.00
scanning bus 1 for devices… 2 USB Device(s) found
USB2: USB EHCI 1.00
scanning bus 2 for devices… 2 USB Device(s) found
scanning usb for storage devices… 1 Storage Device(s) found
scanning usb for ethernet devices…
Warning: asx0 using MAC address from net device
1 Ethernet Device(s) found
reading flash_blk.img
710 bytes read in 23 ms (29.3 KiB/s)

Executing script at 80408000

reading colibri_t30/flash_blk.img
4029 bytes read in 29 ms (134.8 KiB/s)

Executing script at 80408000

enter “run update” to update the entire module
Colibri T30 # run update
switch to partitions #1, OK
mmc0(part 1) is current device

MMC read: dev # 0, block # 8191, count 1 … 1 blocks read: OK
reading colibri_t30/colibri_t30.img
455680 bytes read in 49 ms (8.9 MiB/s)
switch to partitions #1, OK
mmc0(part 1) is current device

MMC write: dev # 0, block # 0, count 890 … 890 blocks written: OK
reading colibri_t30/mbr.bin
512 bytes read in 23 ms (21.5 KiB/s)
switch to partitions #0, OK
mmc0(part 0) is current device

MMC write: dev # 0, block # 0, count 1 … 1 blocks written: OK
reading colibri_t30/boot.vfat
16777216 bytes read in 802 ms (19.9 MiB/s)
switch to partitions #0, OK
mmc0(part 0) is current device

MMC write: dev # 0, block # 8192, count 32768 … 32768 blocks written: OK
reading colibri_t30/uImage
4292880 bytes read in 230 ms (17.8 MiB/s)
writing uImage
4292880 bytes written
reading colibri_t30/tegra30-apalis-eval-v3.dtb
** Unable to read file colibri_t30/tegra30-apalis-eval-v3.dtb **
reading colibri_t30/root.ext3
EHCI timed out on TD - token=0x9e008d80
EHCI timed out on TD - token=0x128d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x1f8c80
Error reading cluster
** Unable to read file colibri_t30/root.ext3 **
switch to partitions #0, OK
mmc0(part 0) is current device

MMC write: dev # 0, block # 40960, count 131072 … 131072 blocks written: OK
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x1f8c80
** Can’t read partition table on 0:0 **
** Invalid partition 1 **
switch to partitions #0, OK
mmc0(part 0) is current device

**************************** LOG END*****************************

Please advice .

Thanks for your time.

Br ,
Pankaj

Looks like it does not like your USB pen drive when doing the larger read of the root file system image. I would try re-generating the update media maybe using a different USB memory stick or an SD card. Alternatively updating via TFTP may be another option.

i have already tried with 2 pen drives , i will try the TFTP , i noticed that the WinCE is also gone , so i am left with U-boot loader in T30, hope that is ok ?
Thanks again for your input.

Br,
Pankaj

Hi Marcel,
I tried TFTP as well but in vain , but the good news is it worked finally with SD card. i should have bought it earlier :slight_smile:

I really appreciate your help.

Br,
Pankaj