Edgerouter Pro8, boot loop after sysupgrade openwrt

Tried to install openwrt on a edgerouter pro 8, following the TOH guide.

After sysupgrade it stucs in bootloop.

I have tried several times no, installed unifi rescue firm back and started over again with openwrt but same happens every time.

Can someone please let me know whats wrong?

U-Boot 2012.04.01 (UBNT Build Version: e200_002_80eda) (May 27 2019 - 06:34:56)

Skipping PCIe port 0 BIST, in EP mode, can't tell if clocked.
Skipping PCIe port 1 BIST, reset not done. (port not configured)
BIST check passed.
UBNT_E200 r1:0, r2:14, serial #: 24A43C06D836
MPR 13-16777215-255
Core clock: 1000 MHz, IO clock: 600 MHz, DDR clock: 533 MHz (1066 Mhz DDR)
Base DRAM address used by u-boot: 0x8f800000, size: 0x800000
DRAM: 2 GiB
Clearing DRAM...... done
Flash: 8 MiB
Net:   octeth0, octeth1, octeth2, octeth3, octeth4, octeth5, octeth6, octeth7
MMC:   Octeon MMC/SD0: 0
USB:   USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
Type the command 'usb start' to scan for USB storage devices.

Hit any key to stop autoboot:  0
reading vmlinux.64

11068464 bytes read
reading vmlinux.64.md5
argv[2]: numcores=2
argv[3]: endbootargs
Allocating memory for ELF segment: addr: 0xffffffff81100000 (adjusted to: 0x1100000), size 0x1adf4bc
## Loading big-endian Linux kernel with entry point: 0xffffffff818482b8 ...
Bootloader: Done loading app on coremask: 0x3
Starting cores 0x3
[    0.000000] Linux version 5.10.146 (builder@buildhost) (mips64-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19803-9a599fee93) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Fri Oct 14 22:44:41 2022
[    0.000000] Skipping L2 locking due to reduced L2 cache size
[    0.000000] CVMSEG size: 0 cache lines (0 bytes)
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 000d9301 (Cavium Octeon II)
[    0.000000] Wasting 278528 bytes for tracking 4352 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using passed Device Tree.
[    0.000000] software IO TLB: mapped [mem 0x0000000002c0b000-0x0000000002c4b000] (0MB)
[    0.000000] Primary instruction cache 37kB, virtually tagged, 37 way, 8 sets, linesize 128 bytes.
[    0.000000] Primary data cache 32kB, 32-way, 8 sets, linesize 128 bytes.
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000001100000-0x00000000efffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000001100000-0x0000000002bdefff]
[    0.000000]   node   0: [mem 0x0000000002c00000-0x000000000effffff]
[    0.000000]   node   0: [mem 0x000000000f200000-0x000000000fdfffff]
[    0.000000]   node   0: [mem 0x0000000020000000-0x000000008f7fffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000001100000-0x000000008f7fffff]
[    0.000000] On node 0, zone DMA32: 4352 pages in unavailable ranges
[    0.000000] On node 0, zone DMA32: 33 pages in unavailable ranges
[    0.000000] On node 0, zone DMA32: 512 pages in unavailable ranges
[    0.000000] On node 0, zone DMA32: 512 pages in unavailable ranges
[    0.000000] On node 0, zone DMA32: 2048 pages in unavailable ranges
[    0.000000] percpu: Embedded 18 pages/cpu s36512 r8192 d29024 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 508755
[    0.000000] Kernel command line: mtdparts=phys_mapped_flash:640k(boot0)ro,640k(boot1)ro,64k(eeprom)ro root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait console=ttyS0,115200
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2003496K/2067324K available (7483K kernel code, 828K rwdata, 1184K rodata, 1308K init, 16701K bss, 63828K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 127
[    5.096347] clocksource: OCTEON_CVMCOUNT: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[    5.107309] Calibrating delay loop (skipped) preset value.. 2000.00 BogoMIPS (lpj=10000000)
[    5.115577] pid_max: default: 32768 minimum: 301
[    5.120307] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    5.127582] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    5.136742] rcu: Hierarchical SRCU implementation.
[    5.141504] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    5.149170] smp: Bringing up secondary CPUs ...
[    5.153876] SMP: Booting CPU01 (CoreId  1)...
[    5.158117] CPU1 revision is: 000d9301 (Cavium Octeon II)
[    5.158218] smp: Brought up 1 node, 2 CPUs
[    5.169713] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    5.179408] futex hash table entries: 512 (order: 4, 65536 bytes, linear)
[    5.186832] NET: Registered protocol family 16
[    5.191429] thermal_sys: Registered thermal governor 'step_wise'
[    5.199816] PCIe: Port 0 in endpoint mode, skipping.
[    5.210621] PCIe: Initializing port 1
[    5.225274] PCIe: Port 1 stuck in reset, skipping.
[    5.243175] SCSI subsystem initialized
[    5.246911] usbcore: registered new interface driver usbfs
[    5.252365] usbcore: registered new interface driver hub
[    5.257582] usbcore: registered new device driver usb
[    5.262638] EDAC MC: Ver: 3.0.0
[    5.267131] PCI host bridge to bus 0000:00
[    5.271076] pci_bus 0000:00: root bus resource [mem 0x1000000000000]
[    5.277433] pci_bus 0000:00: root bus resource [io  0x0000]
[    5.282984] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    5.289771] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    5.298228] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    5.305051] clocksource: Switched to clocksource OCTEON_CVMCOUNT
[    5.311491] NET: Registered protocol family 2
[    5.315871] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    5.324684] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    5.333117] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    5.341149] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    5.348553] TCP: Hash tables configured (established 16384 bind 16384)
[    5.354996] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    5.361672] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    5.368923] NET: Registered protocol family 1
[    5.373133] PCI: CLS 0 bytes, default 128
[    5.378619] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    5.389079] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.394835] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.405485] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    5.413290] octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed.
[    5.420823] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    5.428318] printk: console [ttyS0] disabled
[    5.432473] 1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 34, base_baud = 37500000) is a OCTEON
[    5.442288] printk: console [ttyS0] enabled
[    5.442288] printk: console [ttyS0] enabled
[    5.450612] printk: bootconsole [early0] disabled
[    5.450612] printk: bootconsole [early0] disabled
[    5.460258] 1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 35, base_baud = 37500000) is a OCTEON
[    5.470364] octeon_rng octeon_rng: Octeon Random Number Generator
[    5.480187] loop: module loaded
[    5.483347] Loading iSCSI transport class v2.0-870.
[    5.489726] physmap-flash 1f400000.nor: Can't get bank width from device tree
[    5.496922] physmap-flash: probe of 1f400000.nor failed with error -22
[    5.504051] spi-octeon 1070000001000.spi: OCTEON SPI bus driver
[    5.514016] mdio_octeon 1180000001800.mdio: Probed
[    5.520205] mdio_octeon 1180000001900.mdio: Probed
[    5.525242] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.531786] ehci-pci: EHCI PCI platform driver
[    5.536308] ehci-platform: EHCI generic platform driver
[    5.541662] ehci-platform 16f0000000000.ehci: EHCI Host Controller
[    5.547883] ehci-platform 16f0000000000.ehci: new USB bus registered, assigned bus number 1
[    5.556337] ehci-platform 16f0000000000.ehci: irq 56, io mem 0x16f0000000000
[    5.585066] ehci-platform 16f0000000000.ehci: USB 2.0 started, EHCI 1.00
[    5.592164] hub 1-0:1.0: USB hub found
[    5.595977] hub 1-0:1.0: 2 ports detected
[    5.600286] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.606522] ohci-platform: OHCI generic platform driver
[    5.611869] ohci-platform 16f0000000400.ohci: Generic Platform OHCI controller
[    5.619134] ohci-platform 16f0000000400.ohci: new USB bus registered, assigned bus number 2
[    5.627559] ohci-platform 16f0000000400.ohci: irq 56, io mem 0x16f0000000400
[    5.699417] hub 2-0:1.0: USB hub found
[    5.703205] hub 2-0:1.0: 2 ports detected
[    5.707797] usbcore: registered new interface driver usb-storage
[    5.714005] i2c-octeon 1180000001000.i2c: probed
[    5.718825] i2c-octeon 1180000001200.i2c: probed
[    5.723566] octeon_wdt: Initial granularity 5 Sec
[    5.728932] EDAC DEVICE0: Giving out device to module octeon-cpu controller cache: DEV octeon_pc_edac (INTERRUPT)
[    5.739328] EDAC DEVICE1: Giving out device to module octeon-l2c controller octeon_l2c_err: DEV octeon_l2c_edac (POLLED)
[    5.750293] octeon_lmc_edac octeon_lmc_edac.0: Disabled (ECC not enabled)
[    5.758948] Interface 0 has 4 ports (SGMII)
[    5.763177] Interface 1 has 4 ports (SGMII)
[    5.771004] NET: Registered protocol family 10
[    5.777005] Segment Routing with IPv6
[    5.780738] NET: Registered protocol family 17
[    5.785263] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    5.798438] 8021q: 802.1Q VLAN Support v1.8
[    5.802793] Bootbus flash: Setting flash for 8MB flash at 0x1f400000
[    5.925062] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    6.156777] usb-storage 1-1:1.0: USB Mass Storage device detected
[    6.163168] scsi host0: usb-storage 1-1:1.0
[    7.236723] scsi 0:0:0:0: Direct-Access                               1.00 PQ: 0 ANSI: 2
[    7.245821] sd 0:0:0:0: [sda] 15204352 512-byte logical blocks: (7.78 GB/7.25 GiB)
[    7.255811] sd 0:0:0:0: [sda] Write Protect is off
[    7.262935] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    7.279575]  sda: sda1
[    7.287690] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    7.483525] phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0000c9
[    7.493907] Amd/Fujitsu Extended Query Table at 0x0040
[   15.138947]   Amd/Fujitsu Extended Query version 1.1.
[   15.144010] phys_mapped_flash: Swapping erase regions for top-boot CFI table.
[   15.151177] number of CFI chips: 1
[   15.154599] 3 cmdlinepart partitions found on MTD device phys_mapped_flash
[   15.161493] Creating 3 MTD partitions on "phys_mapped_flash":
[   15.167259] 0x000000000000-0x0000000a0000 : "boot0"
[   15.172649] 0x0000000a0000-0x000000140000 : "boot1"
[   15.177828] 0x000000140000-0x000000150000 : "eeprom"
[   15.184162] OF: fdt: not creating '/sys/firmware/fdt': CRC check failed
[   15.191037] Waiting for root device /dev/mmcblk0p2...
[   15.211827] mmc0: new DDR MMC card at address 0001
[   15.217019] mmcblk0: mmc0:0001 SEM04G 3.69 GiB
[   15.221688] mmcblk0boot0: mmc0:0001 SEM04G partition 1 2.00 MiB
[   15.227782] mmcblk0boot1: mmc0:0001 SEM04G partition 2 2.00 MiB
[   15.233772] mmcblk0rpmb: mmc0:0001 SEM04G partition 3 2.00 MiB, chardev (251:0)
[   15.241765]  mmcblk0: p1 p2
[   15.259808] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[   15.267416] Freeing unused kernel memory: 1308K
[   15.271961] This architecture does not have kernel memory protection.
[   15.278445] Run /sbin/init as init process
[   15.295712] SQUASHFS error: xz decompression failed, data probably corrupt
[   15.302605] SQUASHFS error: Failed to read block 0xeafd6: -5
[   15.308283] SQUASHFS error: Unable to read fragment cache entry [eafd6]
[   15.314908] SQUASHFS error: Unable to read page, block eafd6, size e1a8
[   15.321548] SQUASHFS error: Unable to read fragment cache entry [eafd6]
[   15.328181] SQUASHFS error: Unable to read page, block eafd6, size e1a8
[   15.334807] SQUASHFS error: Unable to read fragment cache entry [eafd6]
[   15.341437] SQUASHFS error: Unable to read page, block eafd6, size e1a8
[   15.348068] SQUASHFS error: Unable to read fragment cache entry [eafd6]
[   15.354693] SQUASHFS error: Unable to read page, block eafd6, size e1a8
[   15.361325] SQUASHFS error: Unable to read fragment cache entry [eafd6]
[   15.367956] SQUASHFS error: Unable to read page, block eafd6, size e1a8
[   15.374622] Starting init: /sbin/init exists but couldn't execute it (error -5)
[   15.381958] Run /etc/init as init process
[   15.387172] SQUASHFS error: xz decompression failed, data probably corrupt
[   15.394060] SQUASHFS error: Failed to read block 0x310704: -5
[   15.399834] SQUASHFS error: Unable to read metadata cache entry [310702]
[   15.406562] SQUASHFS error: Unable to read inode 0x1fec
[   15.411832] Starting init: /etc/init exists but couldn't execute it (error -5)
[   15.419075] Run /bin/init as init process
[   15.423142] SQUASHFS error: Unable to read metadata cache entry [310702]
[   15.429871] SQUASHFS error: Unable to read inode 0x738
[   15.435075] Starting init: /bin/init exists but couldn't execute it (error -5)
[   15.442309] Run /bin/sh as init process
[   15.446231] SQUASHFS error: Unable to read metadata cache entry [310702]
[   15.452943] SQUASHFS error: Unable to read inode 0x738
[   15.458131] Starting init: /bin/sh exists but couldn't execute it (error -5)
[   15.465213] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[   15.479410] Rebooting in 1 seconds..
Jumping to start of image at address 0xbfca0000

you've posted what's wrong.
[ 15.295712] SQUASHFS error: xz decompression failed, data probably corrupt

Yes, i have downloaded the files two times. Used two diffrent usb sticks.
Did also tri sysupgrade from webif in initramfs mode.

What is common reason for decompression failed ? Is there any other sysupgrade file i can test?

corrupt flash could be one, oversized image, another, but probably not in your case.

https://firmware-selector.openwrt.org/

Thanks, but cant find Edgerouter Pro in the firmware selector.

Should i try "Edgerouter" file`?

I have only tested with the files from this guide: https://openwrt.org/toh/ubiquiti/edgerouter_pro

Same with openwrt-21.02.0-octeon-ubnt_edgerouter-squashfs-sysupgrade

I suppose booting the ramdisk does work without issues? I see someone posted an OpenWrt boot log wiith kernel 6.1 on the wiki, so might be worth trying a main (master) image. Does not look like a general issue though, rather one specific to your flash.

Does it have soldered flash or is this an internal USB stick like the EdgeRouter Lite?

Hi thanks for looking into my problem. What main master image do you suggest i try?

There is a small ram chip like in laptops installed on the main board. Not soldered.

The regular ramdisk image from the main tree. Its usage is documented in the wiki.

The point of a ramdisk image is it operates from RAM; it does not touch your local storage.

I did now tried with the file you linked to. It runs fine, but at soon as i do the sysupgrade same over again. Now it shows Kernel 5.15.137

When i started the file you linked to it was kernel 6 something. The serial is on another computer so i dont have the log.

Can you please try to explain better for me? I am now running initramfs file from usb using fatload command. I want to flash the ram or local storage with openwrt, not run it from USB.

I want to use the USB for WIFI dongle. I am allmost giving up this device now. Hav been struggeling with it all day/evening. :upside_down_face:

Looks like i am not the only one with same issue https://github.com/openwrt/openwrt/issues/13762

Yeah, that looks like a persistent issue, unfortunately. I have combed through the OpenWrt code and the kernel tree, but I am unable to locate the DTS your device is using (type used for your model is E200). Your GitHub link talks about modifying the maximum MMC speed. It also talks about there maybe not being a external DTS at all, and it being passed by U-boot to the kernel?

Unlike the E300, EdgeRouter 4 and EdgeRouter 6P, there is no DTS specified in the OpenWrt build recipe for your device, just a boot command line that gets passed.

I dont understand what you are talking about :upside_down_face:. You do not think its possible to install openwrt on this device ?

Changed the DDR3 2gb ram chip, but still same.

Recovered it to edgemax, and under system it shows Error A12. E-Waste ?