Boot error for Unifi 6 LR

I can't boot after upgrading UniFi6 LR to sysupgrade command.

the present situation

  1. Power On
  2. u-boot mode pass
  3. Not synchronizing: VFS: Unable to mount root fs on unknown-block message output at the end
  4. u-boot mode connection
    1. tftpboot openwrt-mediatek-mt7622-ubnt_unifi-6-lr-initramfs-kernel.bin
    1. bootm
  5. Openwrt Connection Successful and Reboot
  6. openwrt does not boot

please advise!

initramFSes only reside in RAM (initRAMfs), after reboot they're gone ...

1 Like

Thank you for your answer.
However, referring to the advice, after the initial boot to initramfs.bin, I uploaded sysupgrade.bin from Luci, but it does not boot to OpenWRT and reboot indefinitely.

Related error messages are as follows:



U-Boot 2014.04-rc1 (Jun 17 2021 - 06:09:23)

I2C:   ready
static declaration g_total_rank_size = 0x1F000000
DRAM:  496 MiB
NOR:  Flash Index: 0, MenuID: ef, DevID1: 40, DevID2: 20
Setup flash information successful, support list index: 43
In:    serial
Out:   serial
Err:   serial
Net:   mtk_eth
Uip activated
is_default = false
is_ble_stp = true

~~~ p_device_model:U6-LR
~~~ is_default:0 ~~~
~~~ p_macaddr:d0:21:f9:5a:76:6b ~~~
~~~ is_ble_stp:1 ~~~
=========================GPIO INIT=====================
GPIO61 initial to push GPIO28 on MT7915
GPIO61_MODE value: 1000
GPIO61_DIR_MODE value: 200003df
GPIO61_DOUT_MODE value: 20000000
GPIO83(PERST0) initial to signal trigger PCIE on MT7915
GPIO83_MODE value: 10000000
GPIO83_DIR_MODE value: 83800
GPIO83_DOUT_MODE value: 80000
=========================UART_3 INIT=====================
=========================FLOW 1=====================
[BT Power On Result] Success

=========================FLOW 2=====================
[HCI RESET Result] Success

=========================Extend FLOW=====================
[HCI LE BT MAC ADDR Result] Success

=========================FLOW 3=====================
[HCI LE SET ADVERTISING PARAMETER Result] Success

=========================FLOW 4=====================
[HCI LE SET ADVERTISING DATA Result] Success

=========================FLOW 5=====================
[HCI LE SET SCAN RESPONSE Result] Success

=========================FLOW 6=====================
[HCI LE SET ADVERISTING ENABLE Result] Success

 mdio45.w addr[0x0000E410]  value[0x00000000]
[aqr112c] Enable 100Mbps link detection
Hit any key to stop autoboot:  0
ubnt boot ...
Flash Index: 0, MenuID: ef, DevID1: 40, DevID2: 20
Setup flash information successful, support list index: 43
 0. Name = Preloader, offset = 0, start_addr=30000000, size=262144,start_sector=0, end_sector=3
 1. Name = ATF, offset = 40000, start_addr=30040000, size=131072,start_sector=4, end_sector=5
 2. Name = u-boot, offset = 60000, start_addr=30060000, size=393216,start_sector=6, end_sector=11
 3. Name = u-boot-env, offset = c0000, start_addr=300c0000, size=65536,start_sector=12, end_sector=12
 4. Name = Factory, offset = d0000, start_addr=300d0000, size=262144,start_sector=13, end_sector=16
 5. Name = EEPROM, offset = 110000, start_addr=30110000, size=65536,start_sector=17, end_sector=17
 6. Name = bs, offset = 120000, start_addr=30120000, size=65536,start_sector=18, end_sector=18
 7. Name = cfg, offset = 130000, start_addr=30130000, size=1048576,start_sector=19, end_sector=34
 8. Name = kernel0, offset = 230000, start_addr=30230000, size=32374784,start_sector=35, end_sector=528
 9. Name = kernel1, offset = 2110000, start_addr=32110000, size=32374784,start_sector=529, end_sector=1022
Board: Ubiquiti Networks MT7622 board (a620-5.0000)
UBNT application initialized
reading kernel 0 from: 0x230000, size: 0x00300000
bootm flag=0, states=70f
## Loading kernel from FIT Image at 5007ff28 ...
   Using 'config@1' configuration
   Trying 'kernel@1' kernel subimage
     Description:  ARM64 OpenWrt Linux-5.4.137
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x50080010
     Data Size:    3118655 Bytes = 3 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x44080000
     Entry Point:  0x44080000
     Hash algo:    crc32
     Hash value:   634bf3ca
     Hash algo:    sha1
     Hash value:   f80a33a95d6009757507680fc54309e44ff18d6f
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 5007ff28 ...
   Using 'config@1' configuration
   Trying 'fdt@1' fdt subimage
     Description:  ARM64 OpenWrt ubnt_unifi-6-lr device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x50379790
     Data Size:    22415 Bytes = 21.9 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   038f1abc
     Hash algo:    sha1
     Hash value:   a039bb4327098a823da2b3e3cea4d36adbc565c8
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x50379790
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 5cf41000, end 5cf4978e ... OK

Starting kernel ...

[ATF][     6.088630]save kernel info
[ATF][     6.091567]Kernel_EL2
[ATF][     6.094236]Kernel is 64Bit
[ATF][     6.097325]pc=0x44080000, r0=0x5cf41000, r1=0x0
INFO:    BL3-1: Preparing for EL3 exit to normal world, Kernel
INFO:    BL3-1: Next image address = 0x44080000
INFO:    BL3-1: Next image spsr = 0x3c9
[ATF][     6.115022]el3_exit
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.137 (kkyoon@AI-Platform) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16256-2d5ee43dc6)) #0 SMP Sat Jul 31 17:21:01 2021
[    0.000000] Machine model: Ubiquiti UniFi 6 LR
[    0.000000] Memory limited to 495MB
[    0.000000] On node 0 totalpages: 126895
[    0.000000]   DMA32 zone: 1984 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 126895 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 20 pages/cpu s43800 r8192 d29928 u81920
[    0.000000] pcpu-alloc: s43800 r8192 d29928 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 124911
[    0.000000] Kernel command line: ubootver= ramoops.mem_address=0x5efe0000 ramoops.mem_size=131072 ramoops.ecc=1 console=ttyS0,115200n1 mem=507775K ubntbootid=0
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 479712K/507580K available (6398K kernel code, 412K rwdata, 1864K rodata, 384K init, 289K bss, 27868K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2d4/0x424 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[    0.000145] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
[    0.000151] pid_max: default: 32768 minimum: 301
[    0.000231] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.000239] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.001130] ASID allocator initialised with 65536 entries
[    0.001181] rcu: Hierarchical SRCU implementation.
[    0.001432] smp: Bringing up secondary CPUs ...
[    0.001738] Detected VIPT I-cache on CPU1
[    0.001773] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.001825] smp: Brought up 1 node, 2 CPUs
[    0.001831] SMP: Total of 2 processors activated.
[    0.001835] CPU features: detected: 32-bit EL0 Support
[    0.001839] CPU features: detected: CRC32 instructions
[    0.001900] CPU: All CPU(s) started at EL2
[    0.001910] alternatives: patching kernel code
[    0.004682] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.004695] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.004769] pinctrl core: initialized pinctrl subsystem
[    0.005198] NET: Registered protocol family 16
[    0.005733] DMA: preallocated 256 KiB pool for atomic allocations
[    0.026776] SCSI subsystem initialized
[    0.026898] libata version 3.00 loaded.
[    0.027047] usbcore: registered new interface driver usbfs
[    0.027081] usbcore: registered new interface driver hub
Thank you for your answer.
However, referring to the advice, after initial boot to initramfs.bin, 
Luci uploaded sysupgrade.bin via sysupgrade, but it does not boot to OpenWRT and reboot indefinitely.

Related error messages are as follows:

[    0.027105] usbcore: registered new device driver usb
[    0.027520] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.028422] clocksource: Switched to clocksource arch_sys_counter
[    0.028872] thermal_sys: Registered thermal governor 'fair_share'
[    0.028874] thermal_sys: Registered thermal governor 'bang_bang'
[    0.028879] thermal_sys: Registered thermal governor 'step_wise'
[    0.028883] thermal_sys: Registered thermal governor 'user_space'
[    0.028886] thermal_sys: Registered thermal governor 'power_allocator'
[    0.029140] NET: Registered protocol family 2
[    0.029223] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.029508] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.029521] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.029549] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.029604] TCP: Hash tables configured (established 4096 bind 4096)
[    0.029664] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.029678] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.029765] NET: Registered protocol family 1
[    0.029784] PCI: CLS 0 bytes, default 64
[    0.030510] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.033343] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.033354] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.048595] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.062566] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.063191] printk: console [ttyS0] disabled
[    0.083382] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 117, base_baud = 1562500) is a ST16650V2
[    0.609932] printk: console [ttyS0] enabled
[    0.634598] 11005000.serial: ttyS1 at MMIO 0x11005000 (irq = 118, base_baud = 1562500) is a ST16650V2
[    0.644246] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.650714] mtk-ecc 1100e000.ecc: probed
[    0.655067] mtk-spi-nor 11014000.spi: IRQ not available.
[    0.660391] mtk-spi-nor 11014000.spi: spi frequency: 46666653 Hz
[    0.685449] spi-nor spi0.0: w25q512jv (65536 Kbytes)
[    0.690508] 10 fixed-partitions partitions found on MTD device spi0.0
[    0.696946] Creating 10 MTD partitions on "spi0.0":
[    0.701821] 0x000000000000-0x000000040000 : "preloader"
[    0.707503] 0x000000040000-0x000000060000 : "atf"
[    0.712571] 0x000000060000-0x0000000c0000 : "u-boot"
[    0.717875] 0x0000000c0000-0x0000000d0000 : "u-boot-env"
[    0.723529] 0x0000000d0000-0x000000110000 : "factory"
[    0.728928] 0x000000110000-0x000000120000 : "eeprom"
[    0.734253] 0x000000120000-0x000000130000 : "bs"
[    0.739206] 0x000000130000-0x000000230000 : "cfg"
[    0.744258] 0x000000230000-0x000002110000 : "firmware"
[    0.749888] 2 fit-fw partitions found on MTD device firmware
[    0.755549] Creating 2 MTD partitions on "firmware":
[    0.760511] 0x000000000000-0x000000300000 : "kernel"
[    0.765811] 0x000000300000-0x000001ee0000 : "rootfs"
[    0.771125] mtd: device 10 (rootfs) set to be root filesystem
[    0.776890] mtdsplit: squashfs has invalid size in "rootfs"
[    0.782470] 0x000002110000-0x000003ff0000 : "kernel1"
[    0.788188] libphy: Fixed MDIO Bus: probed
[    0.815582] libphy: mdio: probed
[    0.819610] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc011400000, irq 125
[    0.829265] rtc_mt7622 10212800.rtc: registered as rtc0
[    0.834557] i2c /dev entries driver
[    0.838653] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    0.847823] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[   19.036487] ubnt-ledbar 0-0030: Error initializing LED transaction: 00

that's not what the wiki link said you should do .... ?