I reflashed my Jetson-tk1 with an existing system.img:
$ sudo ./flash.sh -r -L bootloader/ardbeg/u-boot.bin -S 14580MiB jetson-tk1 mmcblk0p1
I have an existing zImage in system.img:
On host:
$ mkdir ~/tegra/system_image
$ sudo mount -o loop bootloader/system.img ~/tegra/system_image/
[140918 17:09:32] gauthier@sobel:~/tegra/system_image $ ls ~/tegra/system_image/boot
jetson-tk1_extlinux.conf.emmc tegra124-e1782_sku1100.dtb tegra124-thor195.dtb tegra124-tn8-p1761-battery-2gb.dtb
jetson-tk1_extlinux.conf.nfs tegra124-e1791.dtb tegra124-tn8-a03-00-battery.dtb tegra124-tn8-p1761-battery.dtb
jetson-tk1_extlinux.conf.sdcard tegra124-e1922.dtb tegra124-tn8-a03-00.dtb tegra124-tn8-p1761.dtb
jetson-tk1_extlinux.conf.usb tegra124-e1923.dtb tegra124-tn8-a03-01-battery.dtb tegra124-vcm30_t124.dtb
tegra124-ardbeg-a03-00.dtb tegra124-foster.dtb tegra124-tn8-a03-01.dtb vmlinux.uimg
tegra124-ardbeg.dtb tegra124-laguna.dtb tegra124-tn8-aio.dtb zImage
tegra124-ardbeg_sata.dtb tegra124-loki.dtb tegra124-tn8-battery.dtb
tegra124-bonaire.dtb tegra124-norrin.dtb tegra124-tn8.dtb
tegra124-bonaire_sim.dtb tegra124-pm375.dtb tegra124-tn8-p1761-2gb.dtb
Note however that I haven’t put the zImage there myself (running on Grinch 19.3.6).
The target does not start, it is stuck in u-boot (bootloader/ardbeg/u-boot.img was the one I got from the instructions from Santyago there: [CustomKernel] The Grinch 19.3.8 for Jetson TK1 / developed - Jetson TK1 - NVIDIA Developer Forums , I haven’t recompiled or anything).
U-boot output looks like this:
U-Boot SPL 2014.04-rc2 (Jun 18 2014 - 11:16:32)
U-Boot 2014.04-rc2 (Jun 18 2014 - 11:16:32)
TEGRA124
Board: NVIDIA Jetson TK1
I2C: ready
DRAM: 2 GiB
MMC: Tegra SD/MMC: 0, Tegra SD/MMC: 1
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
MMC: no card present
mmc0(part 0) is current device
Scanning mmc 0...
(Re)start USB...
USB0: USB EHCI 1.10
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
scanning usb for ethernet devices... 0 Ethernet Device(s) found
USB device 0: unknown device
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-tegra124
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
Tegra124 (Jetson TK1) #
The interesting stuff is, I guess:
MMC: Tegra SD/MMC: 0, Tegra SD/MMC: 1
and
MMC: no card present
mmc0(part 0) is current device
Scanning mmc 0...
The rest is just fallback.
My interpretation is that u-boot finds mmcblk0p0 and mmcblk0p1. But it says “no card present”, so I’m not sure.
Then it scans mmc0(part0), I suppose it means mmcblk0p0.
It does not scan mmcblk0p1, in that case.
What should I do? Flash to mmcblk0p0 instead of 0p1? Is there a mess in my partitions, what is happening?