Bricked omnia and u-boot not started

beneos

1m

Hi all,

I have a omnia 2020 from few days. i have configured the router and during two day is running fine.

But during one days is seem to be not working and reboot it without effect.
I connect my laptop to the serial cable and i can see the following message in loop

BootROM - 1.73
Booting from SPI flash
BootROM: Bad header at offset D4000000
BootROM: Bad header at offset D4200000

so i decided to recover from seria

following this documentation https://docs.turris.cz/hw/omnia/serial-boot/

i use the following file for booting u-boot
u-boot-omnia_2020-09-07-6dd804d7-1_arm_cortex-a9_vfpv3-d16.ipk

but a the end of kwboot command i get Protocol Error :

kwboot -t -b uboot-devel -B 115200 /dev/ttyUSB0
Sending boot message. Please reboot the target…
Sending boot image…
0 % […]
1 % […]
2 % […]
3 % […]
4 % […]
5 % […]
6 % […]
8 % […]
9 % […]
10 % […]
11 % […]
12 % […]
13 % […]
14 % […]
15 % […]
17 % […]
18 % […
U-Boot SPL 2015.10-rc2 (Feb 18 2021 - 06:30:42)
High speed PHY - Version: 2.0
SERDES0 card detect: PEX

Initialize Turris board topology
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 |

poll_op_execute: TIMEOUT
:** Link is Gen1, check the EP capability
PCIe, Idx 0: remains Gen1
:** Link is Gen1, check the EP capability
PCIe, Idx 1: remains Gen1
PCIe, Idx 2: detected no link
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.29.0
Memory config in EEPROM: 0x02
fDDR3 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully

U-Boot 2019.07 (Sep 25 2019 - 14:41:57 +0000), Build: jenkins-turris-os-packages-kittens-omnia-876

SoC: MV88F6820-A0 at 1600 MHz
DRAM: 2 GiB (800 MHz, 32-bit, 2T, ECC not enabled)
Disabling MCU watchdog… disabled
WDT: Started with servicing (60s timeout)
MMC: mv_sdh: 0
Loading Environment from SPI Flash… SF: Detected mx25l6405d with page size 256 Bytes, erase size 4 KiB, total 8 MiB
OK
Model: Turris Omnia
Turris Omnia:
RAM size: 2048 MiB
Serial Number: 0000000E000033C6
fRegdomain set to **
Net: eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000
Hit any key to stop autoboot: 3 +xmodem: Protocol error

For information i have UART USB TTL cable.
I have check all other topic but i’m not able to fix my issue.

hello,

I have tried with my Raspbery pi 4 to use another serial interface
i used kwboot from installing u-boot-tools packages

i get same error but not at same step :

kwboot -t -b uboot-devel -B 115200 /dev/serial0
Sending boot message. Please reboot the target…-
Sending boot image…
0 % […]
1 % […]
2 % […]
3 % […]
4 % […]
5 % […]
6 % […]
8 % […]
9 % […]
10 % […]
11 % […]
12 % […]
13 % […]
14 % […]
15 % […]
17 % […]
18 % […
U-Boot SPL 2015.10-rc2 (Mar 04 2021 - 02:11:49)
High speed PHY - Version: 2.0
SERDES0 card detect: PEX

Initialize Turris board topology
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 |

poll_op_execute: TIMEOUT
:** Link is Gen1, check the EP capability
PCIe, Idx 0: remains Gen1
:** Link is Gen1, check the EP capability
PCIe, Idx 1: remains Gen1
PCIe, Idx 2: detected no link
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.29.0
Memory config in EEPROM: 0x02
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully

U-Boot 2019.07 (Sep 25 2019 - 14:41:57 +0000), Build: jenkins-turris-os-packages-kittens-omnia-876

SoC: MV88F6820-A0 at 1600 MHz
DRAM: 2 GiB (800 MHz, 32-bit, 2T, ECC not enabled)
Disabling MCU watchdog… disabled
WDT: Started with servicing (60s timeout)
MMC: mv_sdh: 0
Loading Environment from SPI Flash… SF: Detected mx25l6405d with page size 256 Bytes, erase size 4 KiB, total 8 MiB
OK
Model: Turris Omnia
Turris Omnia:
RAM size: 2048 MiB
Serial Number: 0000000E000033C6
Regdomain set to **
Net: eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1…
Found U-Boot script /boot.scr
1199 bytes read in 162 ms (6.8 KiB/s)

Executing script at 01800000

gpio: pin gpio@71_4 (gpio 4) value is 1
18773 bytes read in 142 ms (128.9 KiB/s)
3352680 bytes read in 469 ms (6.8 MiB/s)

Flattened Device Tree blob at 02000000

Booting using the fdt blob at 0x2000000
Loading Device Tree to 0fff8000, end 0ffff954 … OK

Starting kernel …

+xmodem: Protocol error

Hello,

Another try with new serial cable based on CP2102

i’m working on ubuntu 20.04 fresh installed for this revover.
i have download this u-boot image : u-boot-omnia_2020-09-07-6dd804d7-1_arm_cortex-a9_vfpv3-d16.ipk

To remember, my rooter is not booting.
When i check the serial output, i get this :

# minicom -D /dev/ttyUSB0 -b 115200


Bienvenue dans minicom 2.7.90

OPTIONS: I18n 
Compilé le Jul 26 2020, 10:44:57.
Port /dev/ttyUSB0, 13:40:16

Tapez CTRL-A Z pour voir l'aide concernant les touches spéciales

BootROM - 1.73
Booting from SPI flash
BootROM: Bad header at offset D4000000
BootROM: Bad header at offset D4200000
BootROM: Bad header at offset D4400000
BootROM: Bad header at offset D4600000
BootROM: Bad header at offset D4800000
BootROM: Bad header at offset D4A00000
BootROM: Bad header at offset D4C00000
BootROM: Bad header at offset D4E00000

Trying Uart 

Now when i try to recover my rooter from serial i get the following issue :

rooter is unplug from power

# ./sendbeacon /dev/ttyUSB0
Sending beacon in loop. You have 5-10 seconds to power up 
Omnia.

rooter is plug to power :

root@lab:/omnia/uboot/usr/share/omnia# ./kwboot -t -b uboot-devel -B 115200 /dev/ttyUSB0
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [+++++++++++++++++xmodem: Bad message
root@lab:/omnia/uboot/usr/share/omnia# ./kwboot -t -b uboot-devel -B 115200 /dev/ttyUSB0
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................]
  4 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
  9 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 12 % [......................................................................]
 13 % [......................................................................]
 14 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [...............................
U-Boot SPL 2015.10-rc2 (Mar 04 2021 - 02:11:49)
High speed PHY - Version: 2.0
SERDES0 card detect: PEX

Initialize Turris board topology
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	|
 --------------------------------
poll_op_execute: TIMEOUT
:** Link is Gen1, check the EP capability
PCIe, Idx 0: remains Gen1
:** Link is Gen1, check the EP capability
PCIe, Idx 1: remains Gen1
PCIe, Idx 2: detected no link
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.29.0
Memory config in EEPROM: 0x02
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully


U-Boot 2019.07 (Sep 25 2019 - 14:41:57 +0000), Build: jenkins-turris-os-packages-kittens-omnia-876

SoC:   MV88F6820-A0 at 1600 MHz
DRAM:  2 GiB (800 MHz, 32-bit, 2T, ECC not enabled)
Disabling MCU watchdog... disabled
WDT:   Started with servicing (60s timeout)
MMC:   mv_sdh: 0
Loading Environment from SPI Flash... SF: Detected mx25l6405d with page size 256 Bytes, erase size 4 KiB, total 8 MiB
OK
Model: Turris Omnia
Turris Omnia:
  RAM size: 2048 MiB
  Serial Number: 0000000E000033C6
Regdomain set to **
Net:   eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
1199 bytes read in 163 ms (6.8 KiB/s)
## Executing script at 01800000
gpio: pin gpio@71_4 (gpio 4) value is 1
18773 bytes read in 141 ms (129.9 KiB/s)
3352680 bytes read in 468 ms (6.8 MiB/s)
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Loading Device Tree to 0fff8000, end 0ffff954 ... OK

Starting kernel ...

+xmodem: Protocol error

somebody have any idea about my issue ?

It is new Omnia so it might be hardware failure if you are saying true that you just configured it and it stopped booting. I would suggest you to contact our support https://docs.turris.cz/basics/support/.