I used the SERCOMM NA502 for a long time as a web- and database-server. Although the device actually has 128MiB NAND, only 16MiB were used for the OpenWrt UBI partiton (rootfs+rootfs_data). So at the end i had to set up extroot to be able to install all packages and to store the files. I want to get rid of that!
I read the reference for partitioning NAND-based devices and then adjusted the partitioning in the device specific .dts file so that only the most necessary partitions and the UBI partition were left.
Original partitioning:
partition@0 {
label = "u-boot";
reg = <0x0 0x80000>;
read-only;
};
partition@80000 {
label = "config";
reg = <0x80000 0x80000>;
read-only;
};
factory: partition@100000 {
label = "factory";
reg = <0x100000 0x40000>;
};
partition@140000 {
label = "kernel1";
reg = <0x140000 0x1400000>;
};
partition@1540000 {
label = "kernel";
reg = <0x1540000 0x400000>;
};
partition@1940000 {
label = "ubi";
reg = <0x1940000 0x1000000>;
};
partition@2940000 {
label = "user_storage";
reg = <0x2940000 0x100000>;
};
partition@2a40000 {
label = "data";
reg = <0x2a40000 0x1000000>;
};
partition@3a40000 {
label = "storage";
reg = <0x3a40000 0x3200000>;
};
partition@6c40000 {
label = "backup";
reg = <0x6c40000 0x1340000>;
};
Changed part and all changes i have made:
Removed:
backup, storage, data, user_storage, kernel1
(I'm not sure what all of that that is?)
Increased the size and start address of the ubi partition to fill up the space.
partition@0 {
label = "u-boot";
reg = <0x0 0x80000>;
read-only;
};
partition@80000 {
label = "config";
reg = <0x80000 0x80000>;
read-only;
};
factory: partition@100000 {
label = "factory";
reg = <0x100000 0x40000>;
};
partition@140000 {
label = "kernel";
reg = <0x140000 0x400000>;
};
partition@540000 {
label = "ubi";
reg = <0x540000 0x7a40000>;
};
After successful building, flashing and booting the UBI Partition is now ~110MiB in size, leaving around ~100MiB for rootfs_data.
Now take a look at the booting:
U-Boot (everything looks normal):
\rU-Boot 1.1.3 (Jun 6 2016 - 13:15:24)
\r
\rBoard: Ralink APSoC DRAM: 256 MB
\rrelocate_code Pointer at: 8ffac000
\r
\rConfig XHCI 40M PLL
\r******************************
\rSoftware System Reset Occurred
\r******************************
\rAllocate 16 byte aligned buffer: 8ffe0a10
\rEnable NFI Clock
\r# MTK NAND # : Use HW ECC
\rNAND ID [C2 F1 80 95 02]
\rDevice not found, ID: c2f1
\rNot Support this Device! \r
\rchip_mode=00000001
\rSupport this Device in MTK table! c2f1 \r
\rselect_chip
\r[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
\rSignature matched and data read!
\rload_fact_bbt success 1023
\rload fact bbt success
\r[mtk_nand] probe successfully!
\rmtd->writesize=2048 mtd->oobsize=64,\tmtd->erasesize=131072 devinfo.iowidth=8
\rEnv addr : 0x80000
\r..============================================
\rRalink UBoot Version: 4.2.1.0
\r--------------------------------------------
\rASIC MT7621AS (MAC to MT7530 Mode)
\rDRAM_CONF_FROM: Auto-Detection
\rDRAM_TYPE: DDR3
\rDRAM bus: 16 bit
\rXtal Mode=3 OCP Ratio=1/3
\rFlash component: NAND Flash
\rDate:Jun 6 2016 Time:13:15:24
\r============================================
\ricache: sets:256, ways:4, linesz:32 ,total:32768
\rdcache: sets:256, ways:4, linesz:32 ,total:32768
\r
\r ##### The CPU freq = 880 MHZ ####
\r estimate memory size =256 Mbytes
\r
\rReset switch ...
\r#Reset_MT7530
\r
\rPlease choose the operation:
\r 1: Load system code to SDRAM via TFTP.
\r 2: Load system code then write to Flash via TFTP.
\r 3: Boot system code via Flash (default).
\r 4: Entr boot command line interface.
\r 9: Load Boot Loader code then write to Flash via TFTP.
\rSTANDALONE_LOAD_ADDR is 0xa0600000
\r..Example expects ABI version 2
\rActual U-Boot ABI version 2
\r
\r\e[31m******************************************
\r Uboot StandAlone Entry
\r******************************************\e[0m
\r0, cmd
\r1, 0x0000000D
\rcmd : 0x0000000D
\r
\r\b\b\b 0
\rExample expects ABI version 2
\rActual U-Boot ABI version 2
\r
\r\e[31m******************************************
\r Uboot StandAlone Entry
\r******************************************\e[0m
\r0, boot
\rFlash Sector Number : 522.
Factory (here things start to get interesting):
\r\r***************************************************
\r\r Sercomm Boot Version 2.00.1
\r\r
\r\r***************************************************
\r\rEntering Firmware : Everything is OK.
\r\r
\r=================================================
\rCheck image validation:
\rImage1 Header Magic Number --> OK
\rImage2 Header Magic Number --> Failed
\rImage1 Header Checksum --> OK
\rImage1 Data Checksum --> ............................................OK
\r
\rImage1: OK Image2: Broken
\r..Done!
\r
\r=================================================
\r..kernel addr :0xbfd40000
\r
\rflash base: 0xbfc00000, kernel addr :0xbfd40000, bootloader size: 0x80000, config size 0x80000, fac size : 0x40000
\r..Erasing NAND Flash...
\r.Writing to NAND Flash...
\rdone
\r
\r3: System Boot system code via Flash.
\r## Booting image at bfd40000 ...
\r Image Name: MIPS OpenWrt Linux-5.15.162
\r Image Type: MIPS Linux Kernel Image (uncompressed)
\r Data Size: 2857596 Bytes = 2.7 MB
\r Load Address: 80001000
\r Entry Point: 80001000
\r............................................ Verifying Checksum ... OK
\rOK
\rNo initrd
\r## Transferring control to Linux (at address 80001000) ...
\r## Giving linux memsize in MB, 256
\r
\rStarting kernel ...
\r
\r
- Some image validation fails??
Check image validation:
\rImage1 Header Magic Number --> OK
\rImage2 Header Magic Number --> Failed
\rImage1 Header Checksum --> OK
\rImage1 Data Checksum --> ............................................OK
\r
\rImage1: OK Image2: Broken
\r..Done!
I flashed the image twice just in case...
- Whats that?! (The high addresses are out of NAND range)
\r..kernel addr :0xbfd40000
\r
\rflash base: 0xbfc00000, kernel addr :0xbfd40000, bootloader size: 0x80000, config size 0x80000, fac size : 0x40000
\r..Erasing NAND Flash...
\r.Writing to NAND Flash...
\rdone
Both of that things happen at every boot. Apart from that OpenWrt is able to boot normally, and works fine after a 30min use.
Should I be concerned about these errors? Do I have an inconsistent state where the system will eventually stop working? Or could this changed partitioning even be pushed to the main branch?
(OpenWrt boot):
\r
\rOpenWrt kernel loader for MIPS based SoC
\rCopyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
\rDecompressing kernel... done!
\rStarting kernel at 80001000...
\r
\r[ 0.000000] Linux version 5.15.162 (ckoever@ckoever-Surface-Pro) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24012-d8dd03c46f) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Mon Jul 15 22:14:18 2024\r
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3\r
[ 0.000000] printk: bootconsole [early0] enabled\r
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)\r
[ 0.000000] MIPS: machine is SERCOMM NA502\r
[ 0.000000] Initrd not found or empty - disabling initrd\r
[ 0.000000] VPE topology {2} total 2\r
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.\r
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes\r
[ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.\r
[ 0.000000] Zone ranges:\r
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]\r
[ 0.000000] Movable zone start for each node\r
[ 0.000000] Early memory node ranges\r
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]\r
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]\r
[ 0.000000] percpu: Embedded 12 pages/cpu s17584 r8192 d23376 u49152\r
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960\r
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2\r
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)\r
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)\r
[ 0.000000] Writing ErrCtl register=00008810\r
[ 0.000000] Readback ErrCtl register=00008810\r
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off\r
[ 0.000000] Memory: 248952K/262144K available (7007K kernel code, 621K rwdata, 1436K rodata, 1228K init, 216K bss, 13192K reserved, 0K cma-reserved)\r
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1\r
[ 0.000000] rcu: Hierarchical RCU implementation.\r
[ 0.000000] rcu: \tRCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.\r
[ 0.000000] \tTracing variant of Tasks RCU enabled.\r
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.\r
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2\r
[ 0.000000] NR_IRQS: 256\r
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns\r
[ 0.000004] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns\r
[ 0.016004] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)\r
[ 0.088292] pid_max: default: 32768 minimum: 301\r
[ 0.098216] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)\r
[ 0.112625] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)\r
[ 0.131535] rcu: Hierarchical SRCU implementation.\r
[ 0.141548] smp: Bringing up secondary CPUs ...\r
[ 0.151227] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.\r
[ 0.151253] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes\r
[ 0.151267] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.\r
[ 0.151310] CPU1 revision is: 0001992f (MIPS 1004Kc)\r
[ 0.211181] Synchronize counters for CPU 1: done.\r
[ 0.270860] smp: Brought up 1 node, 2 CPUs\r
[ 0.284041] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns\r
[ 0.303505] futex hash table entries: 512 (order: 2, 16384 bytes, linear)\r
[ 0.317261] pinctrl core: initialized pinctrl subsystem\r
[ 0.329092] NET: Registered PF_NETLINK/PF_ROUTE protocol family\r
[ 0.365859] clocksource: Switched to clocksource GIC\r
[ 0.377010] NET: Registered PF_INET protocol family\r
[ 0.386839] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)\r
[ 0.401946] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)\r
[ 0.418495] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)\r
[ 0.433853] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)\r
[ 0.449080] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)\r
[ 0.463238] TCP: Hash tables configured (established 2048 bind 2048)\r
[ 0.476056] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)\r
[ 0.488982] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)\r
[ 0.503175] NET: Registered PF_UNIX/PF_LOCAL protocol family\r
[ 0.514395] PCI: CLS 0 bytes, default 32\r
[ 0.524873] workingset: timestamp_bits=14 max_order=16 bucket_order=2\r
[ 0.543034] squashfs: version 4.0 (2009/01/31) Phillip Lougher\r
[ 0.554630] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.\r
[ 0.578403] mt7621_gpio 1e000600.gpio: registering 32 gpios\r
[ 0.589954] mt7621_gpio 1e000600.gpio: registering 32 gpios\r
[ 0.601405] mt7621_gpio 1e000600.gpio: registering 32 gpios\r
[ 0.613041] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:\r
[ 0.626328] mt7621-pci 1e140000.pcie: No bus range found for /pcie@1e140000, using [bus 00-ff]\r
[ 0.643789] mt7621-pci 1e140000.pcie: MEM 0x0060000000..0x006fffffff -> 0x0060000000\r
[ 0.660011] mt7621-pci 1e140000.pcie: IO 0x001e160000..0x001e16ffff -> 0x0000000000\r
[ 1.035884] mt7621-pci 1e140000.pcie: pcie0 no card, disable it (RST & CLK)\r
[ 1.049667] mt7621-pci 1e140000.pcie: PCIE1 enabled\r
[ 1.059311] mt7621-pci 1e140000.pcie: PCIE2 enabled\r
[ 1.069012] PCI coherence region base: 0x60000000, mask/settings: 0xf0000002\r
[ 1.083211] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00\r
[ 1.095775] pci_bus 0000:00: root bus resource [bus 00-ff]\r
[ 1.106632] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]\r
[ 1.120280] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]\r
[ 1.132731] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400\r
[ 1.144569] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]\r
[ 1.157009] pci 0000:00:01.0: reg 0x14: [mem 0x60400000-0x6040ffff]\r
[ 1.169519] pci 0000:00:01.0: supports D1\r
[ 1.177384] pci 0000:00:01.0: PME# supported from D0 D1 D3hot\r
[ 1.189544] pci 0000:00:02.0: [0e8d:0801] type 01 class 0x060400\r
[ 1.201435] pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x7fffffff]\r
[ 1.213845] pci 0000:00:02.0: reg 0x14: [mem 0x60410000-0x6041ffff]\r
[ 1.226406] pci 0000:00:02.0: supports D1\r
[ 1.234236] pci 0000:00:02.0: PME# supported from D0 D1 D3hot\r
[ 1.248059] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000\r
[ 1.260009] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]\r
[ 1.273457] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]\r
[ 1.286822] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold\r
[ 1.300424] pci 0000:00:01.0: PCI bridge to [bus 01-ff]\r
[ 1.310731] pci 0000:00:01.0: bridge window [io 0x0000-0x0fff]\r
[ 1.322822] pci 0000:00:01.0: bridge window [mem 0x60000000-0x600fffff]\r
[ 1.336286] pci 0000:00:01.0: bridge window [mem 0x60100000-0x601fffff pref]\r
[ 1.350635] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01\r
[ 1.364078] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000\r
[ 1.375981] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]\r
[ 1.388494] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold\r
[ 1.402062] pci 0000:00:02.0: PCI bridge to [bus 02-ff]\r
[ 1.412368] pci 0000:00:02.0: bridge window [io 0x0000-0x0fff]\r
[ 1.424444] pci 0000:00:02.0: bridge window [mem 0x60200000-0x602fffff]\r
[ 1.437934] pci 0000:00:02.0: bridge window [mem 0x60300000-0x603fffff pref]\r
[ 1.452272] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02\r
[ 1.465499] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]\r
[ 1.478529] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]\r
[ 1.492367] pci 0000:00:02.0: BAR 0: no space for [mem size 0x80000000]\r
[ 1.505493] pci 0000:00:02.0: BAR 0: failed to assign [mem size 0x80000000]\r
[ 1.519313] pci 0000:00:01.0: BAR 8: assigned [mem 0x60000000-0x600fffff]\r
[ 1.532796] pci 0000:00:01.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]\r
[ 1.547132] pci 0000:00:02.0: BAR 8: assigned [mem 0x60200000-0x602fffff]\r
[ 1.560624] pci 0000:00:02.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]\r
[ 1.574955] pci 0000:00:01.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]\r
[ 1.588438] pci 0000:00:02.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]\r
[ 1.601923] pci 0000:00:01.0: BAR 7: assigned [io 0x0000-0x0fff]\r
[ 1.614008] pci 0000:00:02.0: BAR 7: assigned [io 0x1000-0x1fff]\r
[ 1.626121] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]\r
[ 1.640633] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]\r
[ 1.654961] pci 0000:00:01.0: PCI bridge to [bus 01]\r
[ 1.664813] pci 0000:00:01.0: bridge window [io 0x0000-0x0fff]\r
[ 1.676904] pci 0000:00:01.0: bridge window [mem 0x60000000-0x600fffff]\r
[ 1.690395] pci 0000:00:01.0: bridge window [mem 0x60100000-0x601fffff pref]\r
[ 1.704733] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]\r
[ 1.718213] pci 0000:00:02.0: PCI bridge to [bus 02]\r
[ 1.728057] pci 0000:00:02.0: bridge window [io 0x1000-0x1fff]\r
[ 1.740149] pci 0000:00:02.0: bridge window [mem 0x60200000-0x602fffff]\r
[ 1.753640] pci 0000:00:02.0: bridge window [mem 0x60300000-0x603fffff pref]\r
[ 1.770094] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled\r
[ 1.784297] printk: console [ttyS0] disabled\r
[ 1.792843] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A\r
[ 1.810827] printk: console [ttyS0] enabled\r
[ 1.810827] printk: console [ttyS0] enabled\r
[ 1.827341] printk: bootconsole [early0] disabled\r
[ 1.827341] printk: bootconsole [early0] disabled\r
[ 1.846988] 1e000d00.uartlite2: ttyS1 at MMIO 0x1e000d00 (irq = 16, base_baud = 3125000) is a 16550A\r
[ 1.866395] 1e000e00.uartlite3: ttyS2 at MMIO 0x1e000e00 (irq = 17, base_baud = 3125000) is a 16550A\r
[ 1.890331] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1\r
[ 1.903089] nand: Macronix MX30LF1G18AC\r
[ 1.910782] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64\r
[ 1.925896] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits\r
[ 1.939028] 5 fixed-partitions partitions found on MTD device mt7621-nand\r
[ 1.953258] Creating 5 MTD partitions on "mt7621-nand":\r
[ 1.963767] 0x000000000000-0x000000080000 : "u-boot"\r
[ 1.980149] 0x000000080000-0x000000100000 : "config"\r
[ 1.996352] 0x000000100000-0x000000140000 : "factory"\r
[ 2.010173] 0x000000140000-0x000000540000 : "kernel"\r
[ 2.061972] 0x000000540000-0x000007f80000 : "ubi"\r
[ 3.439384] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module\r
[ 3.460473] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19\r
[ 3.480650] i2c_dev: i2c /dev entries driver\r
[ 3.492290] NET: Registered PF_INET6 protocol family\r
[ 3.505925] Segment Routing with IPv6\r
[ 3.513328] In-situ OAM (IOAM) with IPv6\r
[ 3.521330] NET: Registered PF_PACKET protocol family\r
[ 3.531867] 8021q: 802.1Q VLAN Support v1.8\r
[ 3.547115] gpio-export gpio-export: 2 gpio(s) exported\r
[ 3.558059] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module\r
[ 3.591810] mt7530-mdio mdio-bus:1f: configuring for fixed/rgmii link mode\r
[ 3.606544] mt7530-mdio mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx\r
[ 3.618221] mt7530-mdio mdio-bus:1f lan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=23)\r
[ 3.643939] DSA: tree 0 setup\r
[ 3.653178] UBI: auto-attach mtd4\r
[ 3.659886] ubi0: attaching mtd4\r
[ 6.128089] ubi0: scanning is finished\r
[ 6.153330] ubi0: attached mtd4 (name "ubi", size 122 MiB)\r
[ 6.164351] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes\r
[ 6.178079] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048\r
[ 6.191600] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096\r
[ 6.205468] ubi0: good PEBs: 978, bad PEBs: 0, corrupted PEBs: 0\r
[ 6.217444] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128\r
[ 6.231829] ubi0: max/mean erase counter: 29/22, WL threshold: 4096, image sequence number: 1974086672\r
[ 6.250364] ubi0: available PEBs: 0, total reserved PEBs: 978, PEBs reserved for bad PEB handling: 20\r
[ 6.268766] ubi0: background thread "ubi_bgt0d" started, PID 249\r
[ 6.271293] block ubiblock0_0: created from ubi0:0(rootfs)\r
[ 6.291791] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem\r
[ 6.306021] clk: Disabling unused clocks\r
[ 6.321272] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.\r
[ 6.339658] Freeing unused kernel image (initmem) memory: 1228K\r
[ 6.351531] This architecture does not have kernel memory protection.\r
[ 6.364409] Run /sbin/init as init process\r
[ 6.830041] init: Console is alive\r
[ 6.837540] init: - watchdog -\r
[ 7.636372] kmodloader: loading kernel modules from /etc/modules-boot.d/*\r
[ 7.703046] usbcore: registered new interface driver usbfs\r
[ 7.714176] usbcore: registered new interface driver hub\r
[ 7.724974] usbcore: registered new device driver usb\r
[ 7.747845] xhci-mtk 1e1c0000.xhci: supply vbus not found, using dummy regulator\r
[ 7.763051] xhci-mtk 1e1c0000.xhci: supply vusb33 not found, using dummy regulator\r
[ 7.778553] xhci-mtk 1e1c0000.xhci: xHCI Host Controller\r
[ 7.789257] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1\r
[ 7.809239] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000290010\r
[ 7.827543] xhci-mtk 1e1c0000.xhci: irq 18, io mem 0x1e1c0000\r
[ 7.839276] xhci-mtk 1e1c0000.xhci: xHCI Host Controller\r
[ 7.849887] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2\r
[ 7.864812] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed\r
[ 7.878593] hub 1-0:1.0: USB hub found\r
[ 7.886372] hub 1-0:1.0: 2 ports detected\r
[ 7.895357] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.\r
[ 7.912590] hub 2-0:1.0: USB hub found\r
[ 7.920450] hub 2-0:1.0: 1 port detected\r
[ 7.937132] kmodloader: done loading kernel modules from /etc/modules-boot.d/*\r
[ 7.962200] init: - preinit -\r
[ 8.486032] usb 1-2: new high-speed USB device number 2 using xhci-mtk\r
[ 8.700805] random: procd: uninitialized urandom read (4 bytes read)\r
[ 8.858347] random: jshn: uninitialized urandom read (4 bytes read)\r
[ 8.984108] random: jshn: uninitialized urandom read (4 bytes read)\r
[ 9.269137] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode\r
[ 9.289551] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx\r
[ 9.306861] mt7530-mdio mdio-bus:1f lan: configuring for phy/gmii link mode\r
[ 9.321471] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready\r
Press the [f] key and hit [enter] to enter failsafe mode\r
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level\r
[ 11.436905] mt7530-mdio mdio-bus:1f lan: Link is Up - 100Mbps/Full - flow control rx/tx\r
[ 11.453185] IPv6: ADDRCONF(NETDEV_CHANGE): lan: link becomes ready\r
[ 11.540533] UBIFS (ubi0:1): Mounting in unauthenticated mode\r
[ 11.552230] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 400\r
[ 11.635501] UBIFS (ubi0:1): recovery needed\r
[ 11.841974] UBIFS (ubi0:1): recovery completed\r
[ 11.851015] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"\r
[ 11.866656] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes\r
[ 11.886426] UBIFS (ubi0:1): FS size: 115802112 bytes (110 MiB, 912 LEBs), max 923 LEBs, journal size 5840896 bytes (5 MiB, 46 LEBs)\r
[ 11.910009] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)\r
[ 11.923196] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID CA3EBDD2-ED5A-4010-8224-D4E6868C68EE, small LPT model\r
[ 11.951897] mount_root: switching to ubifs overlay\r
[ 11.979540] urandom-seed: Seeding with /etc/urandom.seed\r
[ 12.089063] mt7530-mdio mdio-bus:1f lan: Link is Down\r
[ 12.108302] procd: - early -\r
[ 12.114336] procd: - watchdog -\r
[ 12.740948] procd: - watchdog -\r
[ 12.748024] procd: - ubus -\r
[ 12.833950] random: ubusd: uninitialized urandom read (4 bytes read)\r
[ 12.848883] random: ubusd: uninitialized urandom read (4 bytes read)\r
[ 12.862218] random: ubusd: uninitialized urandom read (4 bytes read)\r
[ 12.878964] procd: - init -\r
Please press Enter to activate this console.\r
[ 13.674566] kmodloader: loading kernel modules from /etc/modules.d/*\r
[ 13.986226] Loading modules backported from Linux version v6.1.97-0-g7753af06eebfb\r
[ 14.001440] Backport generated by backports.git v6.1.97-1-0-g2431d56e\r
[ 14.319075] pci 0000:00:02.0: enabling device (0006 -> 0007)\r
[ 14.330476] mt7603e 0000:02:00.0: enabling device (0000 -> 0002)\r
[ 14.342730] mt7603e 0000:02:00.0: ASIC revision: 76030010\r
[ 14.355080] mt7603e 0000:02:00.0: Invalid MAC address, using random address 12:0f:71:e7:a9:5c\r
[ 14.376793] mt7603e 0000:02:00.0: Firmware Version: ap_pcie\r
[ 14.387970] mt7603e 0000:02:00.0: Build Time: 20160107100755\r
[ 14.435907] mt7603e 0000:02:00.0: firmware init done\r
[ 14.606302] mt7603e 0000:02:00.0: registering led 'mt76-phy0'\r
[ 14.649242] pci 0000:00:01.0: enabling device (0006 -> 0007)\r
[ 14.660685] mt76x2e 0000:01:00.0: enabling device (0000 -> 0002)\r
[ 14.672979] mt76x2e 0000:01:00.0: ASIC revision: 76620044\r
[ 14.685285] mt76x2e 0000:01:00.0: EEPROM data check failed: 7603\r
[ 14.931734] random: jshn: uninitialized urandom read (4 bytes read)\r
[ 15.366005] mt76x2e 0000:01:00.0: ROM patch already applied\r
[ 15.636272] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00\r
[ 15.647284] mt76x2e 0000:01:00.0: Build: 1\r
[ 15.655436] mt76x2e 0000:01:00.0: Build Time: 201607111443____\r
[ 15.725962] mt76x2e 0000:01:00.0: Firmware running!\r
[ 15.736014] mt76x2e 0000:01:00.0: registering led 'mt76-phy1'\r
[ 15.900327] urngd: v1.0.2 started.\r
[ 15.919489] PPP generic driver version 2.4.2\r
[ 15.939806] NET: Registered PF_PPPOX protocol family\r
[ 15.966881] kmodloader: done loading kernel modules from /etc/modules.d/*\r
[ 16.211054] random: jshn: uninitialized urandom read (4 bytes read)\r
[ 17.295990] random: jshn: uninitialized urandom read (4 bytes read)\r
[ 17.319683] random: ubusd: uninitialized urandom read (4 bytes read)\r
[ 18.060631] random: crng init done\r
[ 18.067536] random: 36 urandom warning(s) missed due to ratelimiting\r
[ 26.818544] mtk_soc_eth 1e100000.ethernet eth0: Link is Down\r
[ 26.864257] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode\r
[ 26.880715] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx\r
[ 26.910850] mt7530-mdio mdio-bus:1f lan: configuring for phy/gmii link mode\r
[ 26.933019] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready\r
[ 26.951957] br-lan: port 1(lan) entered blocking state\r
[ 26.962357] br-lan: port 1(lan) entered disabled state\r
[ 26.978389] device lan entered promiscuous mode\r
[ 26.987516] device eth0 entered promiscuous mode\r
[ 29.084110] mt7530-mdio mdio-bus:1f lan: Link is Up - 100Mbps/Full - flow control rx/tx\r
[ 29.103731] br-lan: port 1(lan) entered blocking state\r
[ 29.114167] br-lan: port 1(lan) entered forwarding state\r
[ 29.139450] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready\r