Still having issues after flashing uboot and rescue to CZ11NIC13

I’m in the process of resurrecting my Turris Omnia. It’s the 1GB w/ WiFi version back from the Indigogo campaign. CZ11NIC13 on the motherboard. How I got this device into such a state has been lost to time so I can’t offer much there.

I followed the docs linked https://docs.turris.cz/hw/omnia/serial-boot/ and the rescue and uboot images from the cz.nic gitlab repo.

I’m sorry this post is kind of pedantic but I’m really lost as to the issue. When I connect over serial I see uboot kick off. Once it gets to the actual boot process I get various kernel panics. I’ve tried a number of things without success but the failure point is always booting from mmc or my usb thumb drive. I could use some direction here in understanding the issue.

In the log file below I opt for Transfer via USB flash disk. The USB drive is plugged into the the front USB; to the left of the LEDs.


/opt/turris$ sudo ./kwboot -t -b uboot /dev/ttyUSB0
kwboot version 2022.04
Patching image boot signature to UART
Aligning image header to Xmodem block size
Sending boot message. Please reboot the target...\
Sending boot image header (124928 bytes)...
  0 % [......................................................................]
  7 % [......................................................................]
 14 % [......................................................................]
 21 % [......................................................................]
 28 % [......................................................................]
 35 % [......................................................................]
 43 % [......................................................................]
 50 % [......................................................................]
 57 % [......................................................................]
 64 % [......................................................................]
 71 % [......................................................................]
 78 % [......................................................................]
 86 % [......................................................................]
 93 % [..................................................................    ]
Done

U-Boot SPL 2024.10-rc3-OpenWrt-r20343+127-4e1d1b7df0 (Sep 13 2024 - 01:38:50 +0000)
High speed PHY - Version: 2.0
MiniPCIe/mSATA card detection... none
WWAN slot configuration... PCIe+USB2.0
Detected Device ID 6820
board SerDes lanes topology details:
 | Lane # | Speed |  Type       |
 --------------------------------
 |   0    |   5   | PCIe0	|
 |   1    |   5   | USB3 HOST0	|
 |   2    |   5   | PCIe1	|
 |   3    |   5   | USB3 HOST1	|
 |   4    |   5   | PCIe2	|
 |   5    |   0   | SGMII2	|
 --------------------------------
High speed PHY - Ended Successfully
mv_ddr: 14.0.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
mv_ddr: completed successfully
Enabling A385 watchdog with 10 minutes timeout...
Disabling MCU watchdog... disabled
Trying to boot from BOOTROM
Returning to BootROM (return address 0xffff05c4)...

Sending boot image data (847576 bytes)...
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................
...
  99 % [..........................................                            ]
Done
Finishing transfer
[Type Ctrl-\ + c to quit]

U-Boot 2024.10-rc3-OpenWrt-r20343+127-4e1d1b7df0 (Sep 13 2024 - 01:38:50 +0000), Build: jenkins-TurrisOS-packages-hbk-omnia-1216

SoC:   MV88F6820-A0 at 1600 MHz
DRAM:  1 GiB (800 MHz, 32-bit, 2T, ECC not enabled)
Core:  88 devices, 29 uclasses, devicetree: separate
WDT:   Started watchdog@20300 with servicing every 1000ms (60s timeout)
MMC:   mv_sdh: 0
Loading Environment from SPIFlash... SF: Detected s25fl164k with page size 256 Bytes, erase size 4 KiB, total 8 MiB
OK
Model: Turris Omnia
  MCU type: STM32
  MCU version: b5a8a24e007eb72be16aeb3fff6f03ec647023e4
  RAM size: 1024 MiB
  Board version: unknown
  Serial Number: 0000000B0000A22A
Regdomain set to **
pcie0.0: Link down
pcie1.0: Link up
pcie2.0: Link up
Net:   eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000 [PRIME], eth3: lan0, eth4: lan1, eth5: lan2, eth6: lan3, eth7: lan4
Hit any key to stop autoboot:  0
=> usb start
starting USB...
Bus usb@58000: USB EHCI 1.00
Bus usb3@f0000: MVEBU XHCI INIT controller @ 0xf10f4000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@f8000: MVEBU XHCI INIT controller @ 0xf10fc000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@58000 for devices... 1 USB Device(s) found
scanning bus usb3@f0000 for devices... 2 USB Device(s) found
scanning bus usb3@f8000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
=> test -z "${loadaddr}" && setenv loadaddr 0x800000
=> load usb 0 ${loadaddr} uboot
972544 bytes read in 13 ms (71.3 MiB/s)
=> usb stop
stopping USB..
=> sf probe
SF: Detected s25fl164k with page size 256 Bytes, erase size 4 KiB, total 8 MiB
=> sf update ${loadaddr} 0 ${filesize}
device 0 offset 0x0, size 0xed700
0 bytes written, 972544 bytes skipped in 0.545s, speed 1813998 B/s
=> usb start
starting USB...
Bus usb@58000: USB EHCI 1.00
Bus usb3@f0000: MVEBU XHCI INIT controller @ 0xf10f4000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@f8000: MVEBU XHCI INIT controller @ 0xf10fc000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@58000 for devices... 1 USB Device(s) found
scanning bus usb3@f0000 for devices... 2 USB Device(s) found
scanning bus usb3@f8000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
=> test -z "${loadaddr}" && setenv loadaddr 0x800000
=> load usb 0 ${loadaddr} rescue
6177244 bytes read in 64 ms (92 MiB/s)
=> usb stop
stopping USB..
=> sf probe
SF: Detected s25fl164k with page size 256 Bytes, erase size 4 KiB, total 8 MiB
=> sf update ${load
> sf update ${loadaddr} 0 ${filesize}
device 0 offset 0x5e41dc, size 0x21be24
SPI flash failed in erase step
=> usb start
starting USB...
Bus usb@58000: USB EHCI 1.00
Bus usb3@f0000: MVEBU XHCI INIT controller @ 0xf10f4000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@f8000: MVEBU XHCI INIT controller @ 0xf10fc000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@58000 for devices... 1 USB Device(s) found
scanning bus usb3@f0000 for devices... 2 USB Device(s) found
scanning bus usb3@f8000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
=> test -z "${loadaddr}" && setenv loadaddr 0x800000
=> load usb 0 ${loadaddr} rescue
6177244 bytes read in 63 ms (93.5 MiB/s)
=> usb stop
stopping USB..
=> sf probe
SF: Detected s25fl164k with page size 256 Bytes, erase size 4 KiB, total 8 MiB
=> sf update ${loadaddr} 0x00100000 ${filesize}
device 0 offset 0x100000, size 0x5e41dc
0 bytes written, 6177244 bytes skipped in 3.464s, speed 2059081 B/s
=> reset

=> reset
resetting ...

BootROM - 1.73
Booting from SPI flash

U-Boot SPL 2024.10-rc3-OpenWrt-r20343+127-4e1d1b7df0 (Sep 13 2024 - 01:38:50 +0000)
High speed PHY - Version: 2.0
MiniPCIe/mSATA card detection... none
WWAN slot configuration... PCIe+USB2.0
Detected Device ID 6820
board SerDes lanes topology details:
 | Lane # | Speed |  Type       |
 --------------------------------
 |   0    |   5   | PCIe0	|
 |   1    |   5   | USB3 HOST0	|
 |   2    |   5   | PCIe1	|
 |   3    |   5   | USB3 HOST1	|
 |   4    |   5   | PCIe2	|
 |   5    |   0   | SGMII2	|
 --------------------------------
High speed PHY - Ended Successfully
mv_ddr: 14.0.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
mv_ddr: completed successfully
Trying to boot from SPI


U-Boot 2024.10-rc3-OpenWrt-r20343+127-4e1d1b7df0 (Sep 13 2024 - 01:38:50 +0000), Build: jenkins-TurrisOS-packages-hbk-omnia-1216

SoC:   MV88F6820-A0 at 1600 MHz
DRAM:  1 GiB (800 MHz, 32-bit, 2T, ECC not enabled)
Core:  88 devices, 29 uclasses, devicetree: separate
WDT:   Started watchdog@20300 with servicing every 1000ms (60s timeout)
MMC:   mv_sdh: 0
Loading Environment from SPIFlash... SF: Detected s25fl164k with page size 256 Bytes, erase size 4 KiB, total 8 MiB
OK
Model: Turris Omnia
  MCU type: STM32
  MCU version: b5a8a24e007eb72be16aeb3fff6f03ec647023e4
  RAM size: 1024 MiB
  Board version: unknown
  Serial Number: 0000000B0000A22A
Disabling MCU watchdog... disabled
Regdomain set to **
pcie0.0: Link down
pcie1.0: Link up
pcie2.0: Link up
Net:   eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000 [PRIME], eth3: lan0, eth4: lan1, eth5: lan2, eth6: lan3, eth7: lan4
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0(part 0) is current device
** Invalid partition 1 **
Couldn't find partition mmc 0:1

Device 0: unknown device
scanning bus for devices...

Device 0: unknown device
starting USB...
Bus usb@58000: USB EHCI 1.00
Bus usb3@f0000: MVEBU XHCI INIT controller @ 0xf10f4000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus usb3@f8000: MVEBU XHCI INIT controller @ 0xf10fc000
Register 2000120 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@58000 for devices... 1 USB Device(s) found
scanning bus usb3@f0000 for devices... 1 USB Device(s) found
scanning bus usb3@f8000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
ethernet@34000 Waiting for PHY auto negotiation to complete................. TIMEOUT !
ethernet@34000: No link.
lan0 Waiting for PHY auto negotiation to complete................. TIMEOUT !
lan1 Waiting for PHY auto negotiation to complete................. TIMEOUT !
lan2 Waiting for PHY auto negotiation to complete................. TIMEOUT !
lan3 Waiting for PHY auto negotiation to complete................. TIMEOUT !
lan4 Waiting for PHY auto negotiation to complete................. TIMEOUT !
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6

=> mmc rescan
=> mmc info
Device: mv_sdh
Manufacturer ID: 90
OEM: 4a
Name: H8G4a
Bus Speed: 52000000
Mode: MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 7.3 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 4 MiB
User Capacity: 7.3 GiB WRREL
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
=> mmc part

Partition Map for mmc device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
=> mmc list
mv_sdh: 0 (eMMC)
** Invalid partition 1 **
Couldn't find partition mmc 0:1

So it seems you flashed U-Boot correctly but there is no TurrisOS on eMMC.

Now just follow the re-flash guide to put fresh TurrisOS on your eMMC. So flash method 4 leds. And it should work

1 Like