The Offical firmware snapshot running is OK. OpenWrt Firmware Selector
But I want to use the firmware which I build from source. I separately try to download and build from OpenWrt One and Offical openwrt git repo, But they have same results.
Kernel is bring up, But rootfs mount failed. the following log can show it:
F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [1000]
T0: 0000 0244 [010F]
Jump to BL
NOTICE: BL2: v2.10.0 (release):OpenWrt v2024.01.17~bacca82a-3 (mt7981-spim-nand-ubi-ddr4)
NOTICE: BL2: Built : 06:53:47, Nov 13 2024
NOTICE: WDT: [40000000] Software reset (reboot)
NOTICE: EMI: Using DDR4 settings
NOTICE: EMI: Detected DRAM size: 1024MB
NOTICE: EMI: complex R/W mem test passed
NOTICE: CPU: MT7981 (1300MHz)
NOTICE: SPI_NAND parses attributes from parameter page.
NOTICE: SPI_NAND Detected ID 0xef
NOTICE: Page size 2048, Block size 131072, size 268435456
NOTICE: UBI: scanning [0x100000 - 0x10000000] ...
NOTICE: UBI: scanning is finished
NOTICE: UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
NOTICE: UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
NOTICE: UBI: Volume fip (Id #2) size is 961017 bytes
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.10.0 (release):OpenWrt v2024.01.17~bacca82a-3 (mt7981-spim-nand-ubi-ddr4)
NOTICE: BL31: Built : 06:53:47, Nov 13 2024
U-Boot 2024.10-OpenWrt-r28072-b902284290 (Nov 13 2024 - 06:53:47 +0000)
CPU: MediaTek MT7981
Model: OpenWrt One
DRAM: 1 GiB
Core: 44 devices, 20 uclasses, devicetree: separate
spi-nand: spi_nand spi_nand@0: Winbond SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 256 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
Loading Environment from UBI... SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
Read 126976 bytes from volume ubootenv to 000000007f7bf040
Read 126976 bytes from volume ubootenv2 to 000000007f7de080
OK
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
reset button found
Loading Environment from UBI... UBI partition 'ubi' already selected
Read 126976 bytes from volume ubootenv to 000000007f7bf040
Read 126976 bytes from volume ubootenv2 to 000000007f7de080
OK
Net: eth0: ethernet@15100000
( ( ( OpenWrt ) ) ) [SPI-NAND] U-Boot 2024.10-OpenWrt-r28072-b902284290 (Nov 13 2024 - 06:53:47 +0000)
1. Run default boot command.
2. Boot system via TFTP.
3. Boot production system from NAND.
4. Boot recovery system from NAND.
5. Load production system via TFTP then write to NAND.
6. Load recovery system via TFTP then write to NAND.
7. Load BL31+U-Boot FIP via TFTP then write to NAND.
8. Load BL2 preloader via TFTP then write to NAND.
9. Reboot.
a. Reset all settings to factory defaults.
0. Exit
Press UP/DOWN to move, ENTER to select, ESC to quit
off
off
Volume calibration not found!
No size specified -> Using max size (10285056)
Read 10285056 bytes from volume fit to 0000000046000000
## Checking Image at 46000000 ...
FIT image found
FIT description: ARM64 OpenWrt FIT (Flattened Image Tree)
Image 0 (kernel-1)
Description: ARM64 OpenWrt Linux-6.6.30
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x46001000
Data Size: 5625440 Bytes = 5.4 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x44000000
Entry Point: 0x44000000
Hash algo: crc32
Hash value: b771da31
Hash algo: sha1
Hash value: d4c0595328c848412c6371929e98677efc94a0ff
Image 1 (fdt-1)
Description: ARM64 OpenWrt openwrt_one device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x4655f000
Data Size: 29752 Bytes = 29.1 KiB
Architecture: AArch64
Load Address: 0x43f00000
Hash algo: crc32
Hash value: e82145fc
Hash algo: sha1
Hash value: 60d4cb834f5c3f1451331ea7270c0ea4061ac5a6
Image 2 (rootfs-1)
Description: ARM64 OpenWrt openwrt_one rootfs
Type: Filesystem Image
Compression: uncompressed
Data Start: 0x46567000
Data Size: 4444160 Bytes = 4.2 MiB
Hash algo: crc32
Hash value: e3fd36e7
Hash algo: sha1
Hash value: 4fef5a0e7b3945632723b06cb5955341025c59ae
Default Configuration: 'config-1'
Configuration 0 (config-1)
Description: OpenWrt openwrt_one
Kernel: kernel-1
FDT: fdt-1
Loadables: rootfs-1
## Checking hash(es) for FIT Image at 46000000 ...
Hash(es) for Image 0 (kernel-1): crc32+ sha1+
Hash(es) for Image 1 (fdt-1): crc32+ sha1+
Hash(es) for Image 2 (rootfs-1): crc32+ sha1+
## Loading kernel from FIT Image at 46000000 ...
Using 'config-1' configuration
Trying 'kernel-1' kernel subimage
Description: ARM64 OpenWrt Linux-6.6.30
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x46001000
Data Size: 5625440 Bytes = 5.4 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x44000000
Entry Point: 0x44000000
Hash algo: crc32
Hash value: b771da31
Hash algo: sha1
Hash value: d4c0595328c848412c6371929e98677efc94a0ff
Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 46000000 ...
Using 'config-1' configuration
Trying 'fdt-1' fdt subimage
Description: ARM64 OpenWrt openwrt_one device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x4655f000
Data Size: 29752 Bytes = 29.1 KiB
Architecture: AArch64
Load Address: 0x43f00000
Hash algo: crc32
Hash value: e82145fc
Hash algo: sha1
Hash value: 60d4cb834f5c3f1451331ea7270c0ea4061ac5a6
Verifying Hash Integrity ... crc32+ sha1+ OK
Loading fdt from 0x4655f000 to 0x43f00000
Booting using the fdt blob at 0x43f00000
Working FDT set to 43f00000
## Loading loadables from FIT Image at 46000000 ...
Trying 'rootfs-1' loadables subimage
Description: ARM64 OpenWrt openwrt_one rootfs
Type: Filesystem Image
Compression: uncompressed
Data Start: 0x46567000
Data Size: 4444160 Bytes = 4.2 MiB
Hash algo: crc32
Hash value: e3fd36e7
Hash algo: sha1
Hash value: 4fef5a0e7b3945632723b06cb5955341025c59ae
Verifying Hash Integrity ... crc32+ sha1+ OK
Uncompressing Kernel Image to 44000000
Loading Device Tree to 000000007e7ee000, end 000000007e7f8437 ... OK
Working FDT set to 7e7ee000
Add 'ramoops@42ff0000' node failed: FDT_ERR_EXISTS
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.6.30 (collin@LiaoKangNing-PC) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.2.0 unknown) 13.2.0, GNU ld (GNU Binutils) 2.42) #0 SMP Wed Oct 2 13:54:46 2024
[ 0.000000] Machine model: OpenWrt One
[ 0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[ 0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
[ 0.000000] OF: reserved mem: 0x0000000047c80000..0x0000000047d7ffff (1024 KiB) nomap non-reusable wmcpu-reserved@47c80000
[ 0.000000] OF: reserved mem: 0x0000000047d80000..0x0000000047dbffff (256 KiB) nomap non-reusable wo-emi@47d80000
[ 0.000000] OF: reserved mem: 0x0000000047dc0000..0x0000000047ffffff (2304 KiB) nomap non-reusable wo-data@47dc0000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x0000000042ffffff]
[ 0.000000] node 0: [mem 0x0000000043000000-0x000000004302ffff]
[ 0.000000] node 0: [mem 0x0000000043030000-0x0000000047c7ffff]
[ 0.000000] node 0: [mem 0x0000000047c80000-0x0000000047ffffff]
[ 0.000000] node 0: [mem 0x0000000048000000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.4
[ 0.000000] percpu: Embedded 18 pages/cpu s34536 r8192 d31000 u73728
[ 0.000000] pcpu-alloc: s34536 r8192 d31000 u73728 alloc=18*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line:
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 1MB
[ 0.000000] software IO TLB: area num 2.
[ 0.000000] software IO TLB: mapped [mem 0x000000007eb00000-0x000000007ec00000] (1MB)
[ 0.000000] Memory: 1010676K/1048576K available (8512K kernel code, 894K rwdata, 2504K rodata, 384K init, 287K bss, 37900K 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: RCU restricting CPUs from NR_CPUS=4 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: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 640 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: GICv3 features: 16 PPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[ 0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[ 0.000081] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[ 0.000090] pid_max: default: 32768 minimum: 301
[ 0.003023] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.003035] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.005180] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.005730] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[ 0.005898] rcu: Hierarchical SRCU implementation.
[ 0.005901] rcu: Max phase no-delay instances is 1000.
[ 0.006365] smp: Bringing up secondary CPUs ...
[ 0.006744] Detected VIPT I-cache on CPU1
[ 0.006792] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[ 0.006824] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.006896] smp: Brought up 1 node, 2 CPUs
[ 0.006902] SMP: Total of 2 processors activated.
[ 0.006905] CPU features: detected: 32-bit EL0 Support
[ 0.006908] CPU features: detected: CRC32 instructions
[ 0.006942] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[ 0.006946] CPU: All CPU(s) started at EL2
[ 0.006948] alternatives: applying system-wide alternatives
[ 0.010747] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.010768] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.012034] pinctrl core: initialized pinctrl subsystem
[ 0.012901] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.013502] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.013533] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.013554] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.013965] thermal_sys: Registered thermal governor 'fair_share'
[ 0.013971] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.013973] thermal_sys: Registered thermal governor 'step_wise'
[ 0.013976] thermal_sys: Registered thermal governor 'user_space'
[ 0.014031] ASID allocator initialised with 65536 entries
[ 0.015122] pstore: Using crash dump compression: deflate
[ 0.015128] pstore: Registered ramoops as persistent store backend
[ 0.015131] ramoops: using 0x10000@0x42ff0000, ecc: 0
[ 0.016815] OF: /soc/ethernet@15100000/mac@0: #nvmem-cell-cells = 1 found 0
[ 0.016845] OF: /soc/ethernet@15100000/mac@1: #nvmem-cell-cells = 1 found 0
[ 0.024288] Modules: 29584 pages in range for non-PLT usage
[ 0.024296] Modules: 521104 pages in range for PLT usage
[ 0.025442] cryptd: max_cpu_qlen set to 1000
[ 0.027644] SCSI subsystem initialized
[ 0.028184] libata version 3.00 loaded.
[ 0.029815] clocksource: Switched to clocksource arch_sys_counter
[ 0.032196] NET: Registered PF_INET protocol family
[ 0.032344] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.033847] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.033866] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.033876] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.033930] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
[ 0.034130] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.034246] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.034275] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.034530] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.034562] PCI: CLS 0 bytes, default 64
[ 0.036265] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[ 0.041111] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.041119] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.074698] gpio-export gpio-export: 3 gpio(s) exported
[ 0.075593] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[ 0.075620] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[ 0.075633] mtk-pcie-gen3 11280000.pcie: MEM 0x0020000000..0x002fffffff -> 0x0020000000
[ 0.085930] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.087283] printk: console [ttyS0] disabled
[ 0.107681] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 72, base_baud = 2500000) is a ST16650V2
[ 0.107727] printk: console [ttyS0] enabled
[ 0.894360] 11004000.serial: ttyS1 at MMIO 0x11004000 (irq = 73, base_baud = 2500000) is a ST16650V2
[ 0.909093] loop: module loaded
[ 0.914977] spi-nor spi0.0: w25q128 (16384 Kbytes)
[ 0.920154] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.926514] Creating 4 MTD partitions on "spi0.0":
[ 0.931427] 0x000000000000-0x000000040000 : "bl2-nor"
[ 0.937440] 0x000000040000-0x000000100000 : "factory"
[ 0.943560] 0x000000100000-0x000000180000 : "fip-nor"
[ 0.949053] 0x000000180000-0x000000e00000 : "recovery"
[ 0.962327] spi-nand spi1.1: calibration result: 0x3
[ 0.967399] spi-nand spi1.1: Winbond SPI NAND was found.
[ 0.972734] spi-nand spi1.1: 256 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[ 0.981317] 2 fixed-partitions partitions found on MTD device spi1.1
[ 0.987931] Creating 2 MTD partitions on "spi1.1":
[ 0.992743] 0x000000000000-0x000000100000 : "bl2"
[ 0.998544] 0x000000100000-0x000008000000 : "ubi"
[ 1.079530] ubi0: default fastmap pool size: 50
[ 1.084083] ubi0: default fastmap WL pool size: 25
[ 1.088867] ubi0: attaching mtd5
[ 1.933703] ubi0: scanning is finished
[ 1.937519] ubi0 error: ubi_read_volume_table: the layout volume was not found
[ 1.944920] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd5, error -22
[ 2.081086] OF: /soc/ethernet@15100000/mac@1: #nvmem-cell-cells = 1 found 0
[ 2.088087] OF: /soc/ethernet@15100000/mac@1: #nvmem-cell-cells = 1 found 0
[ 2.095078] mtk_soc_eth 15100000.ethernet: generated random MAC address 65:74:68:25:64:00
[ 2.172190] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc081600000, irq 78
[ 2.182151] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc081600000, irq 78
[ 2.192001] i2c_dev: i2c /dev entries driver
[ 2.199072] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[ 2.208199] NET: Registered PF_INET6 protocol family
[ 2.214201] Segment Routing with IPv6
[ 2.217882] In-situ OAM (IOAM) with IPv6
[ 2.221891] NET: Registered PF_PACKET protocol family
[ 2.227146] 8021q: 802.1Q VLAN Support v1.8
[ 2.253267] phy phy-soc:[email protected]: type_sw - reg 0x218, index 0
[ 2.260851] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[ 2.268178] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[ 2.274495] mtk-pcie-gen3 11280000.pcie: MEM 0x0020000000..0x002fffffff -> 0x0020000000
[ 2.619819] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[ 2.628639] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
[ 2.636861] UBI: auto-attach mtd5
[ 2.640202] ubi0: default fastmap pool size: 50
[ 2.644723] ubi0: default fastmap WL pool size: 25
[ 2.649501] ubi0: attaching mtd5
[ 3.269820] random: crng init done
[ 3.496667] ubi0: scanning is finished
[ 3.500496] ubi0 error: ubi_read_volume_table: the layout volume was not found
[ 3.507882] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd5, error -22
[ 3.514989] UBI error: cannot attach mtd5
[ 3.519124] clk: Disabling unused clocks
[ 3.523610] /dev/root: Can't open blockdev
[ 3.527710] VFS: Cannot open root device "" or unknown-block(0,0): error -6
[ 3.534674] Please append a correct "root=" boot option; here are the available partitions:
[ 3.543025] 1f00 256 mtdblock0
[ 3.543032] (driver?)
[ 3.549548] 1f01 768 mtdblock1
[ 3.549552] (driver?)
[ 3.556079] 1f02 512 mtdblock2
[ 3.556083] (driver?)
[ 3.562604] 1f03 12800 mtdblock3
[ 3.562608] (driver?)
[ 3.569124] 1f04 1024 mtdblock4
[ 3.569128] (driver?)
[ 3.575649] 1f05 130048 mtdblock5
[ 3.575653] (driver?)
[ 3.582172] List of all bdev filesystems:
[ 3.586168] ext3
[ 3.586170] ext2
[ 3.588083] ext4
[ 3.590001] squashfs
[ 3.591914] f2fs
[ 3.594174]
[ 3.597565] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 3.605811] SMP: stopping secondary CPUs
[ 3.609723] Kernel Offset: disabled
[ 3.613198] CPU features: 0x0,00000000,00000000,1000400b
[ 3.618497] Memory Limit: none
[ 3.623756] pstore: backend (ramoops) writing error (-28)
[ 3.629146] Rebooting in 1 seconds..
I have lost my way on this question