Booting Turris Omnia over serial Protocol Error

Hello everybody,
I have a problem with my Turris Omnia (CZ11NIC23).

The Omnia is running an unknown version of open wrt.

My goal is to flash a the newest Turris Firmaware for my Omnia.

My first step to do it was with the rescue mode. The rescue mode dont work, i think its because the environment variables have been changed for open wrt.
(https://docs.turris.cz/hw/omnia/rescue_modes/)

So my second step was to get into the u-boot prompt.
I have tried [Esc],[Enter] etc. but every time the Omnia is booting.
While Booting the only prompt i can get is with [f] the rescue mode from open wrt.
Every passwd change i can do there bring me nothing to get on the device.

After this also dont work well.
I tried to Boot the Omnia over Serial and flash u-boot new.
(https://docs.turris.cz/hw/omnia/serial-boot/)
After i send the beacon to trigger the boot over serial mode.
And execute ./kwboot -t -b uboot-devel -B 115200 /dev/ttyUSB0
The boot image where send ti the Omnia.

My problem at this point is that it send the boot image very slow and after at least 5 % the Omnia starts to reboot and give me at the Command line a Protocol error.

sudo ./kwboot -t -b uboot-devel -B 115200 /dev/ttyUSB0
Sending boot message. Please reboot the target...-
Sending boot image...
0 % [......................................................................]
1 % [......................................................................]
2 % [........................0M+xmodem: Protocol error

I hope anyone can help me.
Best regards

NumLock

With the UART serial you got 3 sec to interrupt the boot process, once interrupted run

env default -f -a; saveenv; reset

which will reset the bootloader’s args to default and which may solve the issue.

Hello mrs.crox
thanks for the fast respond

To interrupt the boot process dont work for me.
I have used different keys to interrupt the boot process after many resets.

To connect to the UART serial i use the following command

sudo screen /dev/ttyUSB0 115200 

Here are the first lines from the start up i have got it with the screen -L option

U-Boot SPL 2019.07 (Jan 14 2020 - 09:28:59 +0000)
High speed PHY - Version: 2.0
MiniPCIe/mSATA card detection... MiniPCIe
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	|
--------------------------------
:** 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
mv_ddr: mv_ddr-armada-18.09.2 
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
mv_ddr: completed successfully
Trying to boot from SPI


U-Boot 2019.07 (Jan 14 2020 - 09:28:59 +0000)

SoC:   MV88F6820-A0 at 1600 MHz
DRAM:  2 GiB (800 MHz, 32-bit, 2T, ECC notDisabling MCU watchdog... Turris Omnia:
Starting kernel ...

[    0.000000] Booting Linux on x478 with crng_init=0
[    0.00he hash table entries: 131072 (omap   : 0xbfe00000 - 0xc0000000     .text :    0xc0008000 - 0xc0700000]        .bss : 0xc3830600 - 50417870 ns
[    0.000289] Calibrating delay loop (skipped), value calculated using timer frequency..    1600.00 BogoMIPS (lpj=800] mvebu-soc-id: MVEBU SoC ID=0x62 processors activated  (3200.00 id6: .... xor() 1349 MB/s, rmw e[    6.469862] Btrfs loaded, crc
[    9.619413] procd: - early -

[   10.216233] procd: - ubus -
[   10.220692] urandom_read:d (4 bytes read)
[   10.281696]5041] i2c i2c-0: Added multiplexed i2c bus 2
[   10.409947] i2c i2c-0: Added multiplexed i2c bus 3
[   10.414874] i2c i2c-0: A10.419825] i2c i2c-0: Added mult8-0071 supply vcc not found, usi enabling device (0140 -> 0142)ailed
[   10.964359] ath10k_pci44518] mvneta f1030000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   14.456299] IPv6: ADDRCONF(NEe
[   15.487946] mvneta f1030000.e[   16.778281] mv88e6085 f107200

The Logging option dont get the whole log when i am using it
and it seems to be a little bit buggy

Can this problem come from my usb to TTL Adapter ?
I have tried 2.
My first no name product dont work
And my second one is working (CH340 USB to TTL HW 597)

Unfortunately my bus pirate has not arrived yet

That is the reason why i tried to flash a clean u-boot

Best reguards
NumLock

Could be either some issue with the UART converter, the USB port on the client or what happens frequently is that TX/RX are connected the wrong way around, it should be TX on the client connecting to RX on the router.

Not being able to interrupt the boot makes it more challenging.

Anyway, to my understanding the router is booting OpenWrt. If you got ssh access check whether uboot-envtools is installed. Once installed run

fw_printenv

if that does not throw a bad CRC then next (do not proceed with bad CRC output)

fw_setenv bootcmd 'env default -f -a; saveenv; reset'

and reboot and try flashing the TOS firmware again.

Hello

My UART converter is fine, but he don’t work well on usb 3.0.
In an Live system connected to Usb 2.0 i have a good connection.

The Port Scan On LAN0 gives Information about 3 Services
A DNS Server (Port 53) and a webpage (Port 80).
And on 8022/tcp filtered oa-system

Running: Linux 3.X|4.X
OS CPE: cpe:/o:linux:linux_kernel:3 cpe:/o:linux:linux_kernel:4
OS details: Linux 3.10 - 4.11, Linux 3.2 - 4.9
Uptime guess: 19.815 days (since Tue May 26 05:36:06 2020)

The basic http authentication gives the information

http://192.168.50.1 is requesting your username and password. The site says: “KROS”

The complete serial boot log

U-Boot SPL 2019.07 (Jan 14 2020 - 09:28:59 +0000)
    High speed PHY - Version: 2.0
    MiniPCIe/mSATA card detection... MiniPCIe
    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	|
 --------------------------------
:** 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
mv_ddr: mv_ddr-armada-18.09.2 
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
mv_ddr: completed successfully
Trying to boot from SPI


U-Boot 2019.07 (Jan 14 2020 - 09:28:59 +0000)

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
Model: Turris Omnia
Turris Omnia:
  RAM size: 2048 MiB
  Serial Number: 0000000*********
Regdomain set to **
Net:   eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000
BOOTING KROS...
15331768 bytes read in 1210 ms (12.1 MiB/s)
18117 bytes read in 31 ms (570.3 KiB/s)
## Flattened Device Tree blob at 00800000
   Booting using the fdt blob at 0x800000
   Loading Device Tree to 0fff8000, end 0ffff6c4 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.132 (gcauchois@FRUSRGCAUCHOIS04) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 unknown)) #0 SMP Tue Jan 14 16:31:29 2020
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Turris Omnia
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from start_kernel+0x74/0x478 with crng_init=0
[    0.000000] percpu: Embedded 12 pages/cpu s18956 r8192 d22004 u49152
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200 kros_bootmode=0 kroboot=1
[    0.000000] Bootloader command line not present
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2023008K/2097152K available (6144K kernel code, 193K rwdata, 1388K rodata, 48128K init, 226K bss, 74144K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc3800000   (48128 kB)
[    0.000000]       .data : 0xc3800000 - 0xc3830600   ( 194 kB)
[    0.000000]        .bss : 0xc3830600 - 0xc38691d8   ( 227 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000006] sched_clock: 64 bits at 800MHz, resolution 1ns, wraps every 4398046511103ns
[    0.000017] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xb881274fa3, max_idle_ns: 440795210636 ns
[    0.000031] Switching to timer-based delay loop, resolution 1ns
[    0.000160] Ignoring duplicate/late registration of read_current_timer delay
[    0.000167] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000289] Calibrating delay loop (skipped), value calculated using timer frequency.. 1600.00 BogoMIPS (lpj=8000000)
[    0.000297] pid_max: default: 32768 minimum: 301
[    0.000352] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000358] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000580] CPU: Testing write buffer coherency: ok
[    0.000591] CPU0: Spectre v2: using BPIALL workaround
[    0.000699] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.000806] Setting up static identity map for 0x100000 - 0x100060
[    0.000880] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.000957] mvebu-pmsu: Initializing Power Management Service Unit
[    0.001000] Hierarchical SRCU implementation.
[    0.001181] smp: Bringing up secondary CPUs ...
[    0.001295] Booting CPU 1
[    0.001475] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.001477] CPU1: Spectre v2: using BPIALL workaround
[    0.001527] smp: Brought up 1 node, 2 CPUs
[    0.001532] SMP: Total of 2 processors activated (3200.00 BogoMIPS).
[    0.001535] CPU: All CPU(s) started in SVC mode.
[    0.003113] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.003162] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.003169] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.003221] pinctrl core: initialized pinctrl subsystem
[    0.003469] NET: Registered protocol family 16
[    0.004056] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.004683] cpuidle: using governor ladder
[    0.004840] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.004847] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.010791] SCSI subsystem initialized
[    0.010996] usbcore: registered new interface driver usbfs
[    0.011022] usbcore: registered new interface driver hub
[    0.011051] usbcore: registered new device driver usb
[    0.011600] clocksource: Switched to clocksource arm_global_timer
[    0.011976] NET: Registered protocol family 2
[    0.012229] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.012268] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.012329] TCP: Hash tables configured (established 8192 bind 8192)
[    0.012379] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.012407] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.012488] NET: Registered protocol family 1
[    0.175326] Crashlog allocated RAM at address 0x3f00000
[    0.175526] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.176985] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.176992] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.179002] bounce: pool size: 64 pages
[    0.179013] io scheduler noop registered
[    0.179017] io scheduler deadline registered (default)
[    0.179454] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.180418] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.180426] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.180431] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.180436] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.180679] PCI: bus0: Fast back to back transfers disabled
[    0.180685] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.180691] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.180697] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.180914] PCI: bus1: Fast back to back transfers disabled
[    0.181129] PCI: bus2: Fast back to back transfers disabled
[    0.181171] PCI: bus3: Fast back to back transfers enabled
[    0.181196] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.181201] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0200000-0xe04fffff]
[    0.181208] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    0.181218] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.181225] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.181232] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0200000-0xe03fffff 64bit]
[    0.181242] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0400000-0xe040ffff pref]
[    0.181247] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.181252] pci 0000:00:02.0:   bridge window [mem 0xe0200000-0xe04fffff]
[    0.181257] pci 0000:00:03.0: PCI bridge to [bus 03]
[    0.181467] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.252038] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.252150] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.312025] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.312168] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.312450] console [ttyS0] disabled
[    0.332517] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 15625000) is a 16550A
[    1.065012] console [ttyS0] enabled
[    1.088713] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 15625000) is a 16550A
[    1.099146] loop: module loaded
[    1.102617] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.111697] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.120838] scsi host0: ahci-mvebu
[    1.124487] scsi host1: ahci-mvebu
[    1.127963] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 44
[    1.135916] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 44
[    1.144654] m25p80 spi0.0: s25fl164k (8192 Kbytes)
[    1.155602] 2 fixed-partitions partitions found on MTD device spi0.0
[    1.161991] Creating 2 MTD partitions on "spi0.0":
[    1.166795] 0x000000000000-0x000000100000 : "U-Boot"
[    1.172047] 0x000000100000-0x000000800000 : "Rescue system"
[    1.178025] libphy: Fixed MDIO Bus: probed
[    1.182454] libphy: orion_mdio_bus: probed
[    1.192402] mv88e6085 f1072004.mdio-mii:10: switch 0x1760 detected: Marvell 88E6176, revision 1
[    1.380427] libphy: mv88e6xxx SMI: probed
[    1.385722] mvneta f1070000.ethernet eth0: Using hardware mac address d8:*:*:*:*:*
[    1.394495] mvneta f1030000.ethernet eth1: Using hardware mac address d8:*:*:*:*:*
[    1.403191] mvneta f1034000.ethernet eth2: Using hardware mac address d8:*:*:*:*:*
[    1.411358] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.417911] ehci-platform: EHCI generic platform driver
[    1.423215] ehci-orion: EHCI orion driver
[    1.427320] orion-ehci f1058000.usb: EHCI Host Controller
[    1.432749] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.440380] orion-ehci f1058000.usb: irq 40, io mem 0xf1058000
[    1.471601] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.477757] hub 1-0:1.0: USB hub found
[    1.481527] hub 1-0:1.0: 1 port detected
[    1.485781] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.487899] ata1: SATA link down (SStatus 0 SControl 300)
[    1.491113] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.496547] ata2: SATA link down (SStatus 0 SControl 300)
[    1.504089] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    1.518697] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.524652] hub 2-0:1.0: USB hub found
[    1.528423] hub 2-0:1.0: 1 port detected
[    1.532458] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.537786] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.545303] xhci-hcd f10f0000.usb3: Host supports USB 3.0  SuperSpeed
[    1.551790] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.560056] hub 3-0:1.0: USB hub found
[    1.563832] hub 3-0:1.0: 1 port detected
[    1.567913] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.573251] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.580799] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    1.590062] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.596031] hub 4-0:1.0: USB hub found
[    1.599801] hub 4-0:1.0: 1 port detected
[    1.603828] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.609156] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.616669] xhci-hcd f10f8000.usb3: Host supports USB 3.0  SuperSpeed
[    1.623158] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.631421] hub 5-0:1.0: USB hub found
[    1.635199] hub 5-0:1.0: 1 port detected
[    1.639319] usbcore: registered new interface driver usb-storage
[    1.645744] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.653373] i2c /dev entries driver
[    1.667324] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.679732] orion_wdt: Initial timeout 171 sec
[    1.684430] sdhci: Secure Digital Host Controller Interface driver
[    1.690623] sdhci: Copyright(c) Pierre Ossman
[    1.751607] mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
[    1.759117] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.765502] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.773066] NET: Registered protocol family 10
[    1.779059] Segment Routing with IPv6
[    1.782776] NET: Registered protocol family 17
[    1.787346] 8021q: 802.1Q VLAN Support v1.8
[    1.791579] Registering SWP/SWPB emulation handler
[    1.797822] mv88e6085 f1072004.mdio-mii:10: switch 0x1760 detected: Marvell 88E6176, revision 1
[    1.836883] mmc0: new high speed MMC card at address 0001
[    1.842467] mmcblk0: mmc0:0001 008G30 7.28 GiB 
[    1.851642] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.858398] mmcblk0boot0: mmc0:0001 008G30 partition 1 4.00 MiB
[    1.869719] mmcblk0boot1: mmc0:0001 008G30 partition 2 4.00 MiB
[    1.875869] mmcblk0rpmb: mmc0:0001 008G30 partition 3 4.00 MiB
[    1.882896]  mmcblk0: p1 p2
[    1.987930] libphy: mv88e6xxx SMI: probed
[    1.991992] DSA: switch 0 0 parsed
[    1.995403] DSA: tree 0 parsed
[    2.705688] Marvell 88E1540 mv88e6xxx-1:00: attached PHY driver [Marvell 88E1540] (mii_bus:phy_addr=mv88e6xxx-1:00, irq=POLL)
[    2.837921] Marvell 88E1540 mv88e6xxx-1:01: attached PHY driver [Marvell 88E1540] (mii_bus:phy_addr=mv88e6xxx-1:01, irq=POLL)
[    2.967921] Marvell 88E1540 mv88e6xxx-1:02: attached PHY driver [Marvell 88E1540] (mii_bus:phy_addr=mv88e6xxx-1:02, irq=POLL)
[    3.097921] Marvell 88E1540 mv88e6xxx-1:03: attached PHY driver [Marvell 88E1540] (mii_bus:phy_addr=mv88e6xxx-1:03, irq=POLL)
[    3.227920] Marvell 88E1540 mv88e6xxx-1:04: attached PHY driver [Marvell 88E1540] (mii_bus:phy_addr=mv88e6xxx-1:04, irq=POLL)
[    3.247474] armada38x-rtc f10a3800.rtc: setting system clock to 1970-01-04 03:58:33 UTC (273513)
[    3.280089] Freeing unused kernel memory: 48128K
[    3.355825] init: Console is alive
[    3.359306] init: - watchdog -
[    3.367788] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.541630] raid6: int32x1  gen()   171 MB/s
[    3.711649] raid6: int32x1  xor()   243 MB/s
[    3.881721] raid6: int32x2  gen()   255 MB/s
[    4.051696] raid6: int32x2  xor()   290 MB/s
[    4.221767] raid6: int32x4  gen()   304 MB/s
[    4.391686] raid6: int32x4  xor()   263 MB/s
[    4.561661] raid6: int32x8  gen()   328 MB/s
[    4.731599] raid6: int32x8  xor()   229 MB/s
[    4.901640] raid6: neonx1   gen()  1112 MB/s
[    5.071600] raid6: neonx1   xor()  1058 MB/s
[    5.241625] raid6: neonx2   gen()  1303 MB/s
[    5.411597] raid6: neonx2   xor()  1349 MB/s
[    5.581649] raid6: neonx4   gen()  1071 MB/s
[    5.751602] raid6: neonx4   xor()  1308 MB/s
[    5.921632] raid6: neonx8   gen()  1014 MB/s
[    6.091620] raid6: neonx8   xor()   947 MB/s
[    6.095898] raid6: using algorithm neonx2 gen() 1303 MB/s
[    6.101307] raid6: .... xor() 1349 MB/s, rmw enabled
[    6.106285] raid6: using neon recovery algorithm
[    6.113168] xor: measuring software checksum speed
[    6.211593]    arm4regs  :  2404.400 MB/sec
[    6.311593]    8regs     :  1942.800 MB/sec
[    6.411591]    32regs    :  2058.800 MB/sec
[    6.511592]    neon      :  1836.800 MB/sec
[    6.515783] xor: using function: arm4regs (2404.400 MB/sec)
[    6.529911] Btrfs loaded, crc32c=crc32c-generic
[    6.535435] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.544679] init: - preinit -
[    6.581847] random: jshn: uninitialized urandom read (4 bytes read)
[    6.597522] random: jshn: uninitialized urandom read (4 bytes read)
[    6.612112] random: jshn: uninitialized urandom read (4 bytes read)
RTNETLINK answers: Network is down
sendto(): Network unreachable
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    9.679611] procd: - early -
[    9.682542] procd: - watchdog -
[   10.322133] procd: - watchdog -
[   10.325366] procd: - ubus -
[   10.329804] urandom_read: 2 callbacks suppressed
[   10.329807] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.377802] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.384251] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.390804] procd: - init -
Please press Enter to activate this console.
[   10.425115] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.438338] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[   10.450860] Initializing XFRM netlink socket
[   10.455717] NET: Registered protocol family 15
[   10.460736] tun: Universal TUN/TAP device driver, 1.6
[   10.472697] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.480919] Netfilter messages via NETLINK v0.30.
[   10.486998] ip_set: protocol 6
[   10.508406] i2c i2c-0: Added multiplexed i2c bus 1
[   10.513324] i2c i2c-0: Added multiplexed i2c bus 2
[   10.518427] i2c i2c-0: Added multiplexed i2c bus 3
[   10.523342] i2c i2c-0: Added multiplexed i2c bus 4
[   10.528251] i2c i2c-0: Added multiplexed i2c bus 5
[   10.533203] i2c i2c-0: Added multiplexed i2c bus 6
[   10.538121] i2c i2c-0: Added multiplexed i2c bus 7
[   10.543237] pca953x 8-0071: 8-0071 supply vcc not found, using dummy regulator
[   10.559058] i2c i2c-0: Added multiplexed i2c bus 8
[   10.563880] pca954x 0-0070: registered 8 multiplexed busses for I2C mux pca9547
[   10.575122] u32 classifier
[   10.577844]     input device check on
[   10.581521]     Actions configured
[   10.585838] Mirror/redirect action on
[   10.593218] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[   10.601453] usbcore: registered new interface driver cdc_wdm
[   10.607799] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   10.615857] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   10.624098] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.646716] usbcore: registered new interface driver usbserial
[   10.652647] usbcore: registered new interface driver usbserial_generic
[   10.659252] usbserial: USB Serial support registered for generic
[   10.676149] xt_time: kernel timezone is -0000
[   10.682934] cdc_ether 1-1:2.0 wwan0: register 'cdc_ether' at usb-f1058000.usb-1, Mobile Broadband Network Device, 02:1e:10:1f:00:00
[   10.694926] usbcore: registered new interface driver cdc_ether
[   10.702502] usbcore: registered new interface driver cdc_ncm
[   10.715377] usbcore: registered new interface driver huawei_cdc_ncm
[   10.734331] PPP generic driver version 2.4.2
[   10.739246] NET: Registered protocol family 24
[   10.744560] usbcore: registered new interface driver qmi_wwan
[   10.751092] usbcore: registered new interface driver sierra_net
[   10.764862] pci 0000:00:02.0: enabling device (0140 -> 0142)
[   10.770568] ath10k_pci 0000:02:00.0: enabling device (0140 -> 0142)
[   10.777156] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   11.024251] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[   11.035011] ath10k_pci 0000:02:00.0: Falling back to user helper
[   11.070439] firmware ath10k!pre-cal-pci-0000:02:00.0.bin: firmware_loading_store: map pages failed
[   11.079609] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[   11.089999] ath10k_pci 0000:02:00.0: Falling back to user helper
[   11.099992] firmware ath10k!cal-pci-0000:02:00.0.bin: firmware_loading_store: map pages failed
[   11.108884] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2
[   11.119623] ath10k_pci 0000:02:00.0: Falling back to user helper
[   11.129539] firmware ath10k!QCA988X!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   11.139224] ath10k_pci 0000:02:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   11.148504] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   11.158016] ath10k_pci 0000:02:00.0: firmware ver 10.2.4-1.0-00037 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 a4a52adb
[   11.202816] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   11.213283] ath10k_pci 0000:02:00.0: Falling back to user helper
[   11.223464] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[   11.232334] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   12.368606] ath10k_pci 0000:02:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[   12.381202] random: fast init done
[   12.499701] usbcore: registered new interface driver option
[   12.505367] usbserial: USB Serial support registered for GSM modem (1-port)
[   12.512645] option 1-1:2.2: GSM modem (1-port) converter detected
[   12.518895] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   12.525860] option 1-1:2.3: GSM modem (1-port) converter detected
[   12.532093] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   12.539039] option 1-1:2.4: GSM modem (1-port) converter detected
[   12.545296] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[   12.552242] option 1-1:2.5: GSM modem (1-port) converter detected
[   12.558463] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[   12.565421] option 1-1:2.6: GSM modem (1-port) converter detected
[   12.571660] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
[   12.580195] usbcore: registered new interface driver qcserial
[   12.586034] usbserial: USB Serial support registered for Qualcomm USB modem
[   12.596869] pci 0000:00:01.0: enabling device (0140 -> 0142)
[   12.602586] ath9k 0000:01:00.0: enabling device (0140 -> 0142)
[   12.709371] ieee80211 phy1: Atheros AR9287 Rev:2 mem=0xf11c0000, irq=54
[   12.716347] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.261856] BTRFS: device label KROS_BOOT devid 1 transid 18 /dev/mmcblk0p1
[   13.270449] BTRFS info (device mmcblk0p1): enabling ssd optimizations
[   13.276985] BTRFS info (device mmcblk0p1): disk space caching is enabled
[   13.283724] BTRFS info (device mmcblk0p1): has skinny extents
[   13.355643] BTRFS: device label kros_storage devid 1 transid 683 /dev/mmcblk0p2
[   13.364597] BTRFS info (device mmcblk0p2): enabling ssd optimizations
[   13.371056] BTRFS info (device mmcblk0p2): disk space caching is enabled
[   13.377790] BTRFS info (device mmcblk0p2): has skinny extents
[   13.392335] BTRFS warning (device mmcblk0p2): block group 22020096 has wrong amount of free space
[   13.401232] BTRFS warning (device mmcblk0p2): failed to load free space cache for block group 22020096, rebuilding it now
[   13.430744] BTRFS info (device mmcblk0p2): checking UUID tree
[   14.554148] mvneta f1030000.ethernet eth1: configuring for fixed/rgmii link mode
[   14.562101] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   14.567991] mvneta f1030000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   14.581816] br-lan: port 1(lan0) entered blocking state
[   14.587060] br-lan: port 1(lan0) entered disabled state
[   14.595157] device lan0 entered promiscuous mode
[   14.599792] device eth1 entered promiscuous mode
[   14.604684] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   14.632036] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   14.654856] br-lan: port 2(lan1) entered blocking state
[   14.660107] br-lan: port 2(lan1) entered disabled state
[   14.678477] device lan1 entered promiscuous mode
[   14.697386] br-lan: port 3(lan2) entered blocking state
[   14.702658] br-lan: port 3(lan2) entered disabled state
[   14.728534] device lan2 entered promiscuous mode
[   14.749382] br-lan: port 4(lan3) entered blocking state
[   14.754644] br-lan: port 4(lan3) entered disabled state
[   14.768359] device lan3 entered promiscuous mode
[   14.795221] br-lan: port 5(lan4) entered blocking state
[   14.800481] br-lan: port 5(lan4) entered disabled state
[   14.816568] device lan4 entered promiscuous mode
[   14.942439] mvneta f1034000.ethernet eth2: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
[   14.951668] mvneta f1034000.ethernet eth2: configuring for phy/sgmii link mode
[   14.959352] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[   15.233978] device lan4 left promiscuous mode
[   15.238426] br-lan: port 5(lan4) entered disabled state
[   15.255173] IPv6: ADDRCONF(NETDEV_UP): lan4: link is not ready
[   15.266838] br-lan: port 5(lan4) entered blocking state
[   15.272100] br-lan: port 5(lan4) entered disabled state
[   15.285088] device lan4 entered promiscuous mode
[   15.392144] IPv6: ADDRCONF(NETDEV_UP): br-KROS1: link is not ready
[   15.567123] device lan0 left promiscuous mode
[   15.571543] br-lan: port 1(lan0) entered disabled state
[   15.592349] IPv6: ADDRCONF(NETDEV_UP): lan0: link is not ready
[   15.598501] device lan1 left promiscuous mode
[   15.602964] br-lan: port 2(lan1) entered disabled state
[   15.632262] IPv6: ADDRCONF(NETDEV_UP): lan1: link is not ready
[   15.638670] device lan2 left promiscuous mode
[   15.643130] br-lan: port 3(lan2) entered disabled state
[   15.669043] IPv6: ADDRCONF(NETDEV_UP): lan2: link is not ready
[   15.674990] device lan3 left promiscuous mode
[   15.679429] br-lan: port 4(lan3) entered disabled state
[   15.701699] IPv6: ADDRCONF(NETDEV_UP): lan3: link is not ready
[   15.707693] device lan4 left promiscuous mode
[   15.712089] device eth1 left promiscuous mode
[   15.716562] br-lan: port 5(lan4) entered disabled state
[   15.728199] mvneta f1030000.ethernet eth1: Link is Down
[   15.741920] IPv6: ADDRCONF(NETDEV_UP): lan4: link is not ready
[   15.793123] mvneta f1030000.ethernet eth1: configuring for fixed/rgmii link mode
[   15.800602] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   15.806523] mvneta f1030000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   15.814478] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   15.833859] br-LAN1: port 1(lan0) entered blocking state
[   15.839199] br-LAN1: port 1(lan0) entered disabled state
[   15.849840] device lan0 entered promiscuous mode
[   15.854498] device eth1 entered promiscuous mode
[   15.865499] IPv6: ADDRCONF(NETDEV_UP): br-LAN1: link is not ready
[   15.881285] br-LAN1: port 2(lan1) entered blocking state
[   15.886651] br-LAN1: port 2(lan1) entered disabled state
[   15.895497] device lan1 entered promiscuous mode
[   15.914625] br-LAN1: port 3(lan2) entered blocking state
[   15.919960] br-LAN1: port 3(lan2) entered disabled state
[   15.930228] device lan2 entered promiscuous mode
[   16.062315] mvneta f1034000.ethernet eth2: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
[   16.071855] mvneta f1034000.ethernet eth2: configuring for phy/sgmii link mode
[   16.898015] mv88e6085 f1072004.mdio-mii:10 lan0: Link is Down
[   17.000175] mv88e6085 f1072004.mdio-mii:10 lan3: Link is Down
[   17.009398] mv88e6085 f1072004.mdio-mii:10 lan2: Link is Down
[   17.018797] mv88e6085 f1072004.mdio-mii:10 lan1: Link is Down
[   17.055106] mv88e6085 f1072004.mdio-mii:10 lan4: Link is Down

D8********* login: 

With the [f] key i can get into a failsafe mode

ash: can't access tty; job control turned off
     __    __  _______    ______    ______
    |  \  /  \|       \  /      \  /      \
    | KK /  KK| KKKKKKK\|  KKKKKK\|  KKKKKK\
    | KK/  KK | KK__| KK| KK  | KK| KK___\KK
    | KK  KK  | KK    KK| KK  | KK \KK    \
    | KKKKK\  | KKKKKKK\| KK  | KK _\KKKKKK\
    | KK \KK\ | KK  | KK| KK__/ KK|  \__| KK
    | KK  \KK\| KK  | KK \KK    KK \KK    KK
     \KK   \KK \KK   \KK  \KKKKKK   \KKKKKK
-----------------------------------------------------
KROS 1.0.2, rk600-1579096510
-----------------------------------------------------

================= FAILSAFE MODE active ================
special commands:
* firstboot          reset settings to factory defaults
* mount_root     mount root-partition with config files

after mount_root:
* passwd                         change root's password
* /etc/config               directory with config files

for more help see:
https://openwrt.org/docs/guide-user/troubleshooting/
- failsafe_and_factory_reset
- root_password_reset
=======================================================

firstboot or passwd dont chanke any notable on the device.
In the /etc/config i find dropbear with followin config:

root@(none):/etc/config# cat dropbear
config dropbear
option PasswordAuth ‘1’
option RootLogin ‘1’
option Port ‘8022’

With ssh i can’t connect to this port Name or service not known

In this failesave mode i am not able to run fw_printenv or fw_Setenv

root@(none):/etc/config# fw_printenv
Cannot parse config file '/etc/fw_env.config': No such file or directory
root@(none):/etc/config# fw_setenv bootcmd 'env default -f -a; saveenv; reset;'
Cannot parse config file '/etc/fw_env.config': No such file or directory
Error: environment not initialized

And I am still unable to interrupt u-boot.

But i am able to boot the omnia via UART in to u-boot

 ./kwboot -t -b uboot-devel -B 115200 /dev/ttyUSB0

In my Network i have a DHCP Server
On the live System i installed tftpd-hpa with uboot-devel as file
I connected the omnia with its WAN Port with my Router

I run in the uboot propt

setenv autoload no
dhcp

The prompt gives back

Waiting for PHY auto negotiation to complete .......TIMEOUT !
No  link.
BOOTP broadcast 0....100

BootP broadcast stops with [STRG]+[c]

Is there a easier way to get uboot-devel into the uboot prompt to write it into the NOR

Best regards

It would seem however that either the link with the upstream router is not working, for whatever reason that may be, or the TO not receiving the necessary DHCP packages from upstream.


Since

works issue instead env default -f -a; saveenv; reset and then use 4-LED medkit reset Redirecting....


Then it is probably an issue with terminal emulation through sudo screen /dev/ttyUSB0 115200 if the router does not receive any commands here but does through ./kwboot -t -b uboot-devel -B 115200 /dev/ttyUSB0