我属于嵌入式方面的小白,现在使用nanopi-m4 2GB 开发板,通过uboot引导启动linux,并使用NFS加载busybox构建的根文件系统。
搭建的NFS服务使用其它PC平台或uboot中的nfs命令都可正常访问,uboot、linux、busybox都使用的最新版源码。
1、使用ubuntu搭建的NFS服务端,防火墙已关闭
NFS /etc/exports 配置如下:
/home/gx/Downloads/nfs_root *(rw,sync,no_subtree_check,no_root_squash)
NFS 查看支持的版本 sudo cat /proc/fs/nfsd/versions 输出如下:
sudo cat /proc/fs/nfsd/versions
+3 +4 +4.1 +4.2
2、linux内核编译时已经开启以下配置:
Networking support
- Networking options
- TCP/IP networking
- IP: kernel level autoconfiguration - IP: DHCP support
- IP: BOOTP support
Network File Systems
- NFS client support
- NFS client support for NFS version 3
- NFS client support for the NFSv3 ACL protocol extension
- NFS client support for NFS version 4
- NFS client support for NFSv4.1
- Root file system on NFS
3、uboot环境变量bootargs配置如下:
bootargs=console=ttyS2,1500000 rootwait root=/dev/nfs init=/linuxrc rw nfsroot=192.168.2.2:/home/gx/Downloads/nfs_root/rootfs_2 ip=192.168.2.3:192.168.2.2:192.168.2.1:255.255.255.0::eth0:off debug loglevel=8 nfsrootdebug
4、使用uboot nfs测试NFS服务访问否正常,日志如下:
=> nfs 0x20008000 192.168.2.2:/home/gx/Downloads/nfs_root/rootfs_2/a.txt
Speed: 1000, full duplex
Using ethernet@fe300000 device
File transfer via NFS from server 192.168.2.2; our IP address is 192.168.2.3
Filename '/home/gx/Downloads/nfs_root/rootfs_2/a.txt'.
Load address: 0x20008000
Loading: #
done
Bytes transferred = 8 (8 hex)
在uboot 运行uImage启动linux并加载根文件系统时总是有问题,linux日志如下:
Environment size: 1646/32764 bytes
=> bootm ${kernel_addr_r} - ${fdt_addr_r}
## Booting kernel from Legacy Image at 02080000 ...
Image Name: Linux Kernel
Image Type: AArch64 Linux Kernel Image (uncompressed)
Data Size: 40653312 Bytes = 38.8 MiB
Load Address: 02080000
Entry Point: 02080000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01e00000
Booting using the fdt blob at 0x1e00000
Working FDT set to 1e00000
Loading Kernel Image to 2080000
Loading Device Tree to 0000000078ec6000, end 0000000078ed84e5 ... OK
Working FDT set to 78ec6000
Starting kernel ...
[ 0.000000] Arm64 Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.12.0-rc3 (gx@ubuntu) (aarch64-linux-gnu-gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #13 SMP PREEMPT Mon Nov 25 15:53:39 HKT 2024
[ 0.000000] KASLR enabled
[ 0.000000] Machine model: FriendlyElec NanoPi M4
[ 0.000000] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '')
[ 0.000000] printk: legacy bootconsole [uart8250] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
[ 0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x000000007fffffff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x7fba70c0-0x7fba96ff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000200000-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 0x0000000000200000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff]
[ 0.000000] On node 0, zone DMA: 512 pages in unavailable ranges
[ 0.000000] cma: Reserved 32 MiB at 0x000000007ba00000 on node -1
[ 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.5
[ 0.000000] percpu: Embedded 24 pages/cpu s60696 r8192 d29416 u98304
[ 0.000000] pcpu-alloc: s60696 r8192 d29416 u98304 alloc=24*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5
[ 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 forced ON by KASLR
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: console=ttyS2,1500000 rootwait root=/dev/nfs init=/linuxrc rw nfsroot=192.168.2.2:/home/gx/Downloads/nfs_root/rootfs_2 ip=192.168.2.3:192.168.2.2:192.168.2.1:255.255.255.0::eth0:off debug loglevel=8 nfsrootdebug earlycon=uart8250,mmio32,0xff1a0000
[ 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] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 523776
[ 0.000000] Policy zone: DMA
[ 0.000000] mem auto-init: stack:all(zero), 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 8.
[ 0.000000] software IO TLB: mapped [mem 0x000000007b500000-0x000000007b700000] (2MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=6.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
[ 0.000000] RCU Tasks: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=6.
[ 0.000000] RCU Tasks Trace: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=6.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 256 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: GICD_CTRL.DS=0, SCR_EL3.FIQ=0
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000
[ 0.000000] ITS [mem 0xfee20000-0xfee3ffff]
[ 0.000000] ITS@0x00000000fee20000: allocated 65536 Devices @480000 (flat, esz 8, psz 64K, shr 0)
[ 0.000000] ITS: using cache flushing for cmd queue
[ 0.000000] GICv3: using LPI property table @0x0000000000460000
[ 0.000000] GIC: using cache flushing for LPI property table
[ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000000470000
[ 0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
[ 0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] }
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.003534] Console: colour dummy device 80x25
[ 0.004076] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.005039] pid_max: default: 32768 minimum: 301
[ 0.005592] LSM: initializing lsm=capability
[ 0.006191] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.006897] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.012569] rcu: Hierarchical SRCU implementation.
[ 0.013036] rcu: Max phase no-delay instances is 1000.
[ 0.013896] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[ 0.015653] fsl-mc MSI: msi-controller@fee20000 domain created
[ 0.020830] EFI services will not be available.
[ 0.021828] smp: Bringing up secondary CPUs ...
[ 0.029175] Detected VIPT I-cache on CPU1
[ 0.029278] GICv3: CPU1: found redistributor 1 region 0:0x00000000fef20000
[ 0.029302] GICv3: CPU1: using allocated LPI pending table @0x0000000000500000
[ 0.029362] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.037043] Detected VIPT I-cache on CPU2
[ 0.037130] GICv3: CPU2: found redistributor 2 region 0:0x00000000fef40000
[ 0.037151] GICv3: CPU2: using allocated LPI pending table @0x0000000000510000
[ 0.037197] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.041187] Detected VIPT I-cache on CPU3
[ 0.041272] GICv3: CPU3: found redistributor 3 region 0:0x00000000fef60000
[ 0.041295] GICv3: CPU3: using allocated LPI pending table @0x0000000000520000
[ 0.041340] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.049090] CPU features: detected: Spectre-v2
[ 0.049105] CPU features: detected: Spectre-v3a
[ 0.049115] CPU features: detected: Spectre-BHB
[ 0.049123] CPU features: detected: ARM erratum 1742098
[ 0.049131] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.049138] Detected PIPT I-cache on CPU4
[ 0.049226] GICv3: CPU4: found redistributor 100 region 0:0x00000000fef80000
[ 0.049247] GICv3: CPU4: using allocated LPI pending table @0x0000000000530000
[ 0.049293] CPU4: Booted secondary processor 0x0000000100 [0x410fd082]
[ 0.057118] Detected PIPT I-cache on CPU5
[ 0.057196] GICv3: CPU5: found redistributor 101 region 0:0x00000000fefa0000
[ 0.057216] GICv3: CPU5: using allocated LPI pending table @0x0000000000540000
[ 0.057253] CPU5: Booted secondary processor 0x0000000101 [0x410fd082]
[ 0.057435] smp: Brought up 1 node, 6 CPUs
[ 0.071643] SMP: Total of 6 processors activated.
[ 0.072087] CPU: All CPU(s) started at EL2
[ 0.072499] CPU features: detected: 32-bit EL0 Support
[ 0.072979] CPU features: detected: 32-bit EL1 Support
[ 0.073465] CPU features: detected: CRC32 instructions
[ 0.074049] alternatives: applying system-wide alternatives
[ 0.077403] Memory: 1970552K/2095104K available (16384K kernel code, 4436K rwdata, 10156K rodata, 8576K init, 721K bss, 84496K reserved, 32768K cma-reserved)
[ 0.079558] devtmpfs: initialized
[ 0.093160] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.094129] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 0.095413] 2G module region forced by RANDOMIZE_MODULE_REGION_FULL
[ 0.096017] 0 pages in range for non-PLT usage
[ 0.096023] 514160 pages in range for PLT usage
[ 0.096651] pinctrl core: initialized pinctrl subsystem
[ 0.100335] DMI not present or invalid.
[ 0.105253] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.108059] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.108973] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.110033] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.110827] audit: initializing netlink subsys (disabled)
[ 0.111611] audit: type=2000 audit(0.108:1): state=initialized audit_enabled=0 res=1
[ 0.113252] thermal_sys: Registered thermal governor 'step_wise'
[ 0.113263] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.113924] cpuidle: using governor menu
[ 0.115195] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.116045] ASID allocator initialised with 32768 entries
[ 0.118825] Serial: AMBA PL011 UART driver
[ 0.122067] platform f8000000.pcie: Fixed dependency cycle(s) with /pcie@f8000000/interrupt-controller
[ 0.153811] platform fe330000.mmc: Fixed dependency cycle(s) with /syscon@ff770000/phy@f780
[ 0.154676] platform ff770000.syscon:phy@f780: Fixed dependency cycle(s) with /mmc@fe330000
[ 0.161800] platform ff900000.vop: Fixed dependency cycle(s) with /hdmi@ff940000
[ 0.162576] platform ff8f0000.vop: Fixed dependency cycle(s) with /hdmi@ff940000
[ 0.163336] platform ff940000.hdmi: Fixed dependency cycle(s) with /vop@ff8f0000
[ 0.164100] platform ff940000.hdmi: Fixed dependency cycle(s) with /vop@ff900000
[ 0.172169] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.173330] rockchip-gpio ff720000.gpio: probed /pinctrl/gpio@ff720000
[ 0.174584] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.175655] rockchip-gpio ff730000.gpio: probed /pinctrl/gpio@ff730000
[ 0.176745] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.177804] rockchip-gpio ff780000.gpio: probed /pinctrl/gpio@ff780000
[ 0.178905] gpio gpiochip3: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.179969] rockchip-gpio ff788000.gpio: probed /pinctrl/gpio@ff788000
[ 0.180992] gpio gpiochip4: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.182045] rockchip-gpio ff790000.gpio: probed /pinctrl/gpio@ff790000
[ 0.191013] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.191661] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[ 0.192256] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.192896] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[ 0.193489] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.194128] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.194739] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.195378] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[ 0.198719] ACPI: Interpreter disabled.
[ 0.204678] iommu: Default domain type: Translated
[ 0.205139] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.206291] SCSI subsystem initialized
[ 0.206851] libata version 3.00 loaded.
[ 0.207491] usbcore: registered new interface driver usbfs
[ 0.208043] usbcore: registered new interface driver hub
[ 0.208603] usbcore: registered new device driver usb
[ 0.210554] pps_core: LinuxPPS API ver. 1 registered
[ 0.211027] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.211896] PTP clock support registered
[ 0.212469] EDAC MC: Ver: 3.0.0
[ 0.213168] scmi_core: SCMI protocol bus registered
[ 0.214995] FPGA manager framework
[ 0.215422] Advanced Linux Sound Architecture Driver Initialized.
[ 0.217178] vgaarb: loaded
[ 0.218025] clocksource: Switched to clocksource arch_sys_counter
[ 0.218888] VFS: Disk quotas dquot_6.6.0
[ 0.219283] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.220228] pnp: PnP ACPI: disabled
[ 0.232292] NET: Registered PF_INET protocol family
[ 0.232959] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.236056] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.236959] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.237885] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.238826] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 0.240154] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.240871] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.241573] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.242452] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.243558] RPC: Registered named UNIX socket transport module.
[ 0.244123] RPC: Registered udp transport module.
[ 0.244569] RPC: Registered tcp transport module.
[ 0.245015] RPC: Registered tcp-with-tls transport module.
[ 0.245532] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.246176] PCI: CLS 0 bytes, default 64
[ 0.251621] kvm [1]: nv: 554 coarse grained trap handlers
[ 0.252591] kvm [1]: IPA Size Limit: 40 bits
[ 0.255561] kvm [1]: vgic-v2@fff20000
[ 0.255960] kvm [1]: GIC system register CPU interface enabled
[ 0.256533] kvm [1]: vgic interrupt IRQ18
[ 0.256952] kvm [1]: Hyp nVHE mode initialized successfully
[ 0.259638] Initialise system trusted keyrings
[ 0.260296] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[ 0.261275] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.262172] NFS: Registering the id_resolver key type
[ 0.262673] Key type id_resolver registered
[ 0.263072] Key type id_legacy registered
[ 0.263480] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.264115] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.265007] 9p: Installing v9fs 9p2000 file system support
[ 0.336195] Key type asymmetric registered
[ 0.336594] Asymmetric key parser 'x509' registered
[ 0.337114] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.337813] io scheduler mq-deadline registered
[ 0.338267] io scheduler kyber registered
[ 0.338689] io scheduler bfq registered
[ 0.360561] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.378374] dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.379103] dma-pl330 ff6d0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[ 0.381383] dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.382124] dma-pl330 ff6e0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[ 0.400203] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.404433] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 35, base_baud = 1500000) is a 16550A
[ 0.405706] serial serial0: tty port ttyS0 registered
[ 0.407476] ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 36, base_baud = 1500000) is a 16550A
[ 0.408498] printk: legacy console [ttyS2] enabled
[ 0.408498] printk: legacy console [ttyS2] enabled
[ 0.409378] printk: legacy bootconsole [uart8250] disabled
[ 0.409378] printk: legacy bootconsole [uart8250] disabled
[ 0.417031] msm_serial: driver initialized
[ 0.417791] SuperH (H)SCI(F) driver initialized
[ 0.433753] brd: module loaded
[ 0.440851] loop: module loaded
[ 0.442768] megasas: 07.727.03.00-rc1
[ 0.452689] tun: Universal TUN/TAP device driver, 1.6
[ 0.454762] thunder_xcv, ver 1.0
[ 0.455086] thunder_bgx, ver 1.0
[ 0.455407] nicpf, ver 1.0
[ 0.457993] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 0.458646] hns3: Copyright (c) 2017 Huawei Corporation.
[ 0.459155] hclge is initializing
[ 0.459493] e1000: Intel(R) PRO/1000 Network Driver
[ 0.459927] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.460464] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.460904] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.461455] igb: Intel(R) Gigabit Ethernet Network Driver
[ 0.461935] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 0.462472] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 0.463026] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.463576] sky2: driver version 1.30
[ 0.466258] VFIO - User Level meta-driver version: 0.3
[ 0.473946] usbcore: registered new interface driver usb-storage
[ 0.479451] i2c_dev: i2c /dev entries driver
[ 0.484789] i2c 0-001b: Fixed dependency cycle(s) with /i2c@ff3c0000/pmic@1b/regulators/LDO_REG8
[ 0.492642] dw_wdt ff848000.watchdog: No valid TOPs array specified
[ 0.498463] sdhci: Secure Digital Host Controller Interface driver
[ 0.499018] sdhci: Copyright(c) Pierre Ossman
[ 0.500788] Synopsys Designware Multimedia Card Interface Driver
[ 0.503220] dwmmc_rockchip fe310000.mmc: IDMAC supports 32-bit address mode.
[ 0.503344] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.503872] dwmmc_rockchip fe310000.mmc: Using internal DMA controller.
[ 0.504934] dwmmc_rockchip fe310000.mmc: Version ID is 270a
[ 0.505481] dwmmc_rockchip fe310000.mmc: DW MMC controller at irq 49,32 bit host data width,256 deep fifo
[ 0.507658] mmc2: CQHCI version 5.10
[ 0.509195] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 0.511586] usbcore: registered new interface driver usbhid
[ 0.512090] usbhid: USB HID core driver
[ 0.517203] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 (0,8000003f) counters available
[ 0.520103] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 (0,8000003f) counters available
[ 0.531139] NET: Registered PF_PACKET protocol family
[ 0.531689] 9pnet: Installing 9P2000 support
[ 0.532146] Key type dns_resolver registered
[ 0.535099] mmc2: SDHCI controller on fe330000.mmc [fe330000.mmc] using ADMA
[ 0.546224] registered taskstats version 1
[ 0.546806] Loading compiled-in X.509 certificates
[ 0.557559] Demotion targets for Node 0: null
[ 0.617255] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 0.617773] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 0.618627] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000808002000010
[ 0.619486] xhci-hcd xhci-hcd.0.auto: irq 57, io mem 0xfe800000
[ 0.620219] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 0.620725] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 0.621414] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 0.623040] hub 1-0:1.0: USB hub found
[ 0.623415] hub 1-0:1.0: 1 port detected
[ 0.624161] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 0.625536] hub 2-0:1.0: USB hub found
[ 0.625882] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 0.625914] hub 2-0:1.0: 1 port detected
[ 0.627120] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 0.627942] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000808002000010
[ 0.628817] xhci-hcd xhci-hcd.1.auto: irq 58, io mem 0xfe900000
[ 0.629539] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 0.630077] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 0.630768] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 0.632120] hub 3-0:1.0: USB hub found
[ 0.632491] hub 3-0:1.0: 1 port detected
[ 0.633237] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 0.634725] hub 4-0:1.0: USB hub found
[ 0.635095] hub 4-0:1.0: 1 port detected
[ 0.640880] ehci-platform fe380000.usb: EHCI Host Controller
[ 0.641419] ehci-platform fe380000.usb: new USB bus registered, assigned bus number 5
[ 0.642321] ehci-platform fe380000.usb: irq 59, io mem 0xfe380000
[ 0.643559] ehci-platform fe3c0000.usb: EHCI Host Controller
[ 0.644118] ehci-platform fe3c0000.usb: new USB bus registered, assigned bus number 6
[ 0.644378] ohci-platform fe3a0000.usb: Generic Platform OHCI controller
[ 0.644982] ehci-platform fe3c0000.usb: irq 60, io mem 0xfe3c0000
[ 0.645422] ohci-platform fe3a0000.usb: new USB bus registered, assigned bus number 7
[ 0.645643] ohci-platform fe3e0000.usb: Generic Platform OHCI controller
[ 0.645671] ohci-platform fe3e0000.usb: new USB bus registered, assigned bus number 8
[ 0.645809] ohci-platform fe3e0000.usb: irq 62, io mem 0xfe3e0000
[ 0.648600] ohci-platform fe3a0000.usb: irq 61, io mem 0xfe3a0000
[ 0.650453] dwmmc_rockchip fe310000.mmc: IDMAC supports 32-bit address mode.
[ 0.651114] dwmmc_rockchip fe310000.mmc: Using internal DMA controller.
[ 0.651706] dwmmc_rockchip fe310000.mmc: Version ID is 270a
[ 0.652234] dwmmc_rockchip fe310000.mmc: DW MMC controller at irq 49,32 bit host data width,256 deep fifo
[ 0.654181] ehci-platform fe380000.usb: USB 2.0 started, EHCI 1.00
[ 0.656091] hub 5-0:1.0: USB hub found
[ 0.656488] hub 5-0:1.0: 1 port detected
[ 0.663409] rk808-regulator rk808-regulator.3.auto: there is no dvs0 gpio
[ 0.664039] rk808-regulator rk808-regulator.3.auto: there is no dvs1 gpio
[ 0.670080] ehci-platform fe3c0000.usb: USB 2.0 started, EHCI 1.00
[ 0.671777] hub 6-0:1.0: USB hub found
[ 0.672164] hub 6-0:1.0: 1 port detected
[ 0.672589] mmc2: Failed to initialize a non-removable card
[ 0.677583] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!
[ 0.680595] fan53555-regulator 0-0041: FAN53555 Option[8] Rev[1] Detected!
[ 0.684522] dwmmc_rockchip fe320000.mmc: IDMAC supports 32-bit address mode.
[ 0.685189] dwmmc_rockchip fe320000.mmc: Using internal DMA controller.
[ 0.685780] dwmmc_rockchip fe320000.mmc: Version ID is 270a
[ 0.686392] dwmmc_rockchip fe320000.mmc: DW MMC controller at irq 73,32 bit host data width,256 deep fifo
[ 0.687728] dwmmc_rockchip fe320000.mmc: Got CD GPIO
[ 0.692320] dwmmc_rockchip fe310000.mmc: IDMAC supports 32-bit address mode.
[ 0.692976] dwmmc_rockchip fe310000.mmc: Using internal DMA controller.
[ 0.693573] dwmmc_rockchip fe310000.mmc: Version ID is 270a
[ 0.693716] cpu cpu0: EM: OPP:408000 is inefficient
[ 0.694152] dwmmc_rockchip fe310000.mmc: DW MMC controller at irq 49,32 bit host data width,256 deep fifo
[ 0.694750] cpu cpu0: EM: created perf domain
[ 0.695567] dwmmc_rockchip fe310000.mmc: allocated mmc-pwrseq
[ 0.695756] energy_model: Accessing cpu4 policy failed
[ 0.696260] mmc_host mmc0: card is non-removable.
[ 0.698458] cpu cpu4: EM: OPP:600000 is inefficient
[ 0.698902] cpu cpu4: EM: OPP:408000 is inefficient
[ 0.699606] cpu cpu4: EM: created perf domain
[ 0.699999] energy_model: updating cpu0 cpu_cap=381 old capacity=485
[ 0.700568] cpu cpu0: EM: OPP:408000 is inefficient
[ 0.701141] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 0.702795] hub 8-0:1.0: USB hub found
[ 0.703160] hub 8-0:1.0: 1 port detected
[ 0.703486] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 0.710128] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 0.710811] hub 7-0:1.0: USB hub found
[ 0.711299] hub 7-0:1.0: 1 port detected
[ 0.722276] Trying to probe devices needed for running init ...
[ 0.762122] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[ 0.763763] mmc1: new high speed SDHC card at address 59b4
[ 0.765477] mmcblk1: mmc1:59b4 MSD 15.0 GiB
[ 0.768358] mmcblk1: p1
[ 0.851021] mmc_host mmc0: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[ 0.878229] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[ 1.030517] dwmmc_rockchip fe310000.mmc: Successfully tuned phase to 178
[ 1.035576] mmc0: new ultra high speed SDR104 SDIO card at address 0001
[ 1.080449] hub 3-1:1.0: USB hub found
[ 1.081293] hub 3-1:1.0: 4 ports detected
[ 1.143872] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 1.304479] hub 4-1:1.0: USB hub found
[ 1.305379] hub 4-1:1.0: 4 ports detected
[ 12.998511] clk: Disabling unused clocks
[ 12.999379] PM: genpd: Disabling unused power domains
[ 12.999894] ALSA device list:
[ 13.000169] No soundcards found.
[ 13.000762] dw-apb-uart ff1a0000.serial: forbid DMA for kernel console
[ 13.001537] Root-NFS: nfsroot=/home/gx/Downloads/nfs_root/rootfs_2
[ 13.002399] NFS try start ..........
[ 13.002724] NFS try aaaa ..........
[ 13.003037] root_dev: 192.168.2.2:/home/gx/Downloads/nfs_root/rootfs_2
[ 13.003621] root_data: vers=3,tcp,rsize=4096,wsize=4096,nolock,addr=192.168.2.2
[ 13.004370] NFS: sending MNT request for 192.168.2.2:/home/gx/Downloads/nfs_root/rootfs_2
[ 13.006257] NFS: failed to create MNT RPC client, status=-101
[ 13.006852] NFS: unable to mount server 192.168.2.2, error -101
[ 111.589170] VFS: Unable to mount root fs via NFS.
[ 111.589693] devtmpfs: mounted
[ 111.594844] Freeing unused kernel memory: 8576K
[ 111.595590] Run /linuxrc as init process
[ 111.595953] with arguments:
[ 111.596227] /linuxrc
[ 111.596461] with environment:
[ 111.596759] HOME=/
[ 111.596980] TERM=linux
[ 111.597278] Kernel panic - not syncing: Requested init /linuxrc failed (error -2).
[ 111.597954] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.12.0-rc3 #13
[ 111.598579] Hardware name: FriendlyElec NanoPi M4 (DT)
[ 111.599038] Call trace:
[ 111.599262] dump_backtrace+0x94/0x114
[ 111.599624] show_stack+0x18/0x24
[ 111.599939] dump_stack_lvl+0x34/0x8c
[ 111.600277] dump_stack+0x18/0x24
[ 111.600584] panic+0x388/0x3e8
[ 111.600869] kernel_init+0xcc/0x1d8
[ 111.601195] ret_from_fork+0x10/0x20
[ 111.601529] SMP: stopping secondary CPUs
[ 111.602017] Kernel Offset: 0x2147c0880000 from 0xffff800080000000
[ 111.602559] PHYS_OFFSET: 0xfff09fc280000000
[ 111.602935] CPU features: 0x08,00002092,c0200000,4200421b
[ 111.603419] Memory Limit: none
[ 111.603701] ---[ end Kernel panic - not syncing: Requested init /linuxrc failed (error -2). ]---
通过google搜索、chatgpt查询相关问题都没能解决相关问题。
有人说可能是linux启动时网卡未能正确驱动导致,我不知道该怎么验证此说法,是否能够给出一些验证此说法的操作方式。
希望能够通过NFS挂载根文件系统,在此感谢能提供帮助的朋友。