Hello,
I have been attempting to get 19.07.7 running on several RB912UAG-2HPnD r2 revision boards, but on all of them I am seeing a bootloop issue after the sysupgrade using the stock images. Below is the serial output of the vmlinux boot which also does not exhibit any issues with UART output, and the serial output right after sysupgrade which triggers the continuous rebooting as well as somehow immediately causing UART output issues as seen in the sysupgrade log.
Can anyone take a look at the logs and give any feedback on what I can do to track this issue down? I was able to build an image from the same branch, and at least did not see a bootloop issue, but USB/Mini-PCIe was not detected at minimum with WiFi untested.
Thank you in advance for any help provided!
Vmlinux Image Used
Sysupgrade Image Used
RB912UAG_2HPnD_r2_vmlinux_boot_19.07.7
[ 0.000000] Linux version 4.14.221 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11306-c4a6851c72)) #0 Mon Feb 15 15:22:37 2021
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] SoC: Atheros AR9342 rev 3
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] random: get_random_bytes called from 0x80529740 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: benand_no_swecc=2 parts=1 boot_part_size=4194304 gpio=97855 HZ=300000000 mem=64M kmac=48:8F:5A:8E:C7:CE board=711Gr100 board=711Gr100 board_rev=r2 bver=6.44.6 hw_opt=02640005 boot=0 mlc=11 console=ttyS0,115200 rootfstype=squashfs noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 56888K/65536K available (4195K kernel code, 173K rwdata, 524K rodata, 2524K init, 213K bss, 8648K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] Clocks: CPU:600.000MHz, DDR:350.000MHz, AHB:350.000MHz, Ref:25.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[ 0.000010] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[ 0.008895] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[ 0.086005] pid_max: default: 32768 minimum: 301
[ 0.091491] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.099011] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.109838] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.121067] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.129648] NET: Registered protocol family 16
[ 0.138932] MIPS: machine is Mikrotik RouterBOARD RB912UAG-2HPnD
[ 0.407026] clocksource: Switched to clocksource MIPS
[ 0.413985] NET: Registered protocol family 2
[ 0.420019] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.428014] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.435244] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.442642] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.449353] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.456768] NET: Registered protocol family 1
[ 2.577043] random: fast init done
[ 4.062525] Crashlog allocated RAM at address 0x3f00000
[ 4.070283] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 4.083227] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 4.089918] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 4.260268] io scheduler noop registered
[ 4.264726] io scheduler deadline registered (default)
[ 4.271115] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 4.280784] console [ttyS0] disabled
[ 4.305039] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[ 4.314854] console [ttyS0] enabled
[ 4.314854] console [ttyS0] enabled
[ 4.322423] bootconsole [early0] disabled
[ 4.322423] bootconsole [early0] disabled
[ 4.341674] m25p80 spi0.0: found gd25d05, expected m25p80
[ 4.348981] m25p80 spi0.0: gd25d05 (64 Kbytes)
[ 4.402746] Creating 4 MTD partitions on "spi0.0":
[ 4.407787] 0x000000000000-0x00000000c000 : "routerboot"
[ 4.439766] 0x00000000c000-0x00000000d000 : "hard_config"
[ 4.471573] 0x00000000d000-0x00000000e000 : "bios"
[ 4.502862] 0x00000000e000-0x00000000f000 : "soft_config"
[ 4.535192] NAND flash driver for the RouterBOARD 91x series
[ 4.543425] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1
[ 4.550065] nand: Winbond W29N01HV
[ 4.553586] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 4.561436] Scanning device for bad blocks
[ 4.680114] Creating 3 MTD partitions on "W29N01HV":
[ 4.685280] 0x000000000000-0x000000040000 : "booter"
[ 4.716572] 0x000000040000-0x000000400000 : "kernel"
[ 4.748040] 0x000000400000-0x000008000000 : "ubi"
[ 4.783221] libphy: Fixed MDIO Bus: probed
[ 4.822803] libphy: ag71xx_mdio: probed
[ 5.547905] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd074, driver=Atheros 8031 ethernet]
[ 5.558926] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[ 5.571418] MikroTik RouterBOARD hardware configuration sysfs driver v0.03
[ 5.579800] NET: Registered protocol family 10
[ 5.589220] Segment Routing with IPv6
[ 5.593116] NET: Registered protocol family 17
[ 5.597840] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 5.611243] 8021q: 802.1Q VLAN Support v1.8
[ 5.620087] UBI: auto-attach mtd6
[ 5.623558] ubi0: attaching mtd6
[ 5.901123] ubi0: scanning is finished
[ 5.922472] ubi0: attached mtd6 (name "ubi", size 124 MiB)
[ 5.928219] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 5.935315] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 5.942337] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 5.949540] ubi0: good PEBs: 992, bad PEBs: 0, corrupted PEBs: 0
[ 5.955744] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[ 5.963216] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1989761632
[ 5.972657] ubi0: available PEBs: 0, total reserved PEBs: 992, PEBs reserved for bad PEB handling: 20
[ 5.982282] ubi0: background thread "ubi_bgt0d" started, PID 346
[ 5.990265] block ubiblock0_1: created from ubi0:1(rootfs)
[ 5.995949] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[ 6.021988] Freeing unused kernel memory: 2524K
[ 6.026679] This architecture does not have kernel memory protection.
[ 6.051775] init: Console is alive
[ 6.055596] init: - watchdog -
[ 6.083942] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 6.093420] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.111697] init: - preinit -
[ 6.316852] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6.349084] random: procd: uninitialized urandom read (4 bytes read)
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
[ 8.418553] eth0: link up (100Mbps/Full duplex)
[ 8.423279] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 9.523755] eth0: link down
[ 9.540599] procd: - early -
[ 9.543715] procd: - watchdog -
[ 10.149156] procd: - watchdog -
[ 10.152812] procd: - ubus -
[ 10.164027] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.206683] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.213883] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.221796] procd: - init -
Please press Enter to activate this console.
[ 10.761223] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.790262] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 10.815694] Loading modules backported from Linux version v4.19.161-0-gdaefdc9eb24b
[ 10.823690] Backport generated by backports.git v4.19.161-1-0-g4bb568fe
[ 10.849826] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 10.876915] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 11.019454] xt_time: kernel timezone is -0000
[ 11.146266] urngd: v1.0.2 started.
[ 11.160188] PPP generic driver version 2.4.2
[ 11.178026] NET: Registered protocol family 24
[ 11.289432] ieee80211 phy0: Atheros AR9340 Rev:3 mem=0xb8100000, irq=47
[ 11.387500] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 11.498706] random: crng init done
[ 11.502245] random: 6 urandom warning(s) missed due to ratelimiting
[ 29.057340] br-lan: port 1(eth0) entered blocking state
[ 29.062756] br-lan: port 1(eth0) entered disabled state
[ 29.068556] device eth0 entered promiscuous mode
[ 29.111986] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 31.138619] eth0: link up (100Mbps/Full duplex)
[ 31.143363] br-lan: port 1(eth0) entered blocking state
[ 31.148807] br-lan: port 1(eth0) entered forwarding state
[ 31.177126] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 179.858535] eth0: link up (100Mbps/Full duplex)
[ 179.863274] br-lan: port 1(eth0) entered blocking state
[ 179.868720] br-lan: port 1(eth0) entered forwarding state