OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2228|回复: 23

求助:STM32MP157的bootfs加载失败问题!

[复制链接]

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
发表于 2023-4-14 07:36:03 | 显示全部楼层 |阅读模式
求助:STM32MP157的bootfs加载失败问题!
您好!
跟着老师一步一步学习《第1.5讲 Linux驱动开发前的准备工作(必看)-根文件系统提取与测试》时bootfs加载失败,报错:
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
Please append a correct "root=" boot option; here are the available partitions:


我的设置:setenv bootargs 'console=ttySTM0,115200 root=/dev/nfs nfsroot=192.168.1.6:/home/xwp/linux/nfs/rootfs,proto=tcp rw ip=192.168.1.9:192.168.1.6:192.168.1.1:255.255.255.0::eth0ff'



40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 48, base_baud = 4000000) is a stm32-usart
printk: console [ttySTM0] enabled
stm32_rtc 5c004000.rtc: registered as rtc0
stm32_rtc 5c004000.rtc: Date/Time must be initialized
stm32_rtc 5c004000.rtc: registered rev:1.2
stm32f7-i2c 5c002000.i2c: doesn't use DMA
stpmic1 0-0033: Unable to read PMIC version
stm32f7-i2c 5c002000.i2c: STM32F7 I2C-0 bus adapter
mmci-pl18x 58005000.sdmmc: Got CD GPIO
stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
stm32-rproc mlahb:m4@10000000: wdg irq registered
remoteproc remoteproc0: m4 is available
mmci-pl18x 58005000.sdmmc: Got CD GPIO
mmci-pl18x 58005000.sdmmc: Got CD GPIO
stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01T01:18:55 UTC (946689535)
ALSA device list:
  No soundcards found.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0100           65536 ram0
(driver?)
0101           65536 ram1
(driver?)
0102           65536 ram2
(driver?)
0103           65536 ram3
(driver?)
0104           65536 ram4
(driver?)
0105           65536 ram5
(driver?)
0106           65536 ram6
(driver?)
0107           65536 ram7
(driver?)
0108           65536 ram8
(driver?)
0109           65536 ram9
(driver?)
010a           65536 ram10
(driver?)
010b           65536 ram11
(driver?)
010c           65536 ram12
(driver?)
010d           65536 ram13
(driver?)
010e           65536 ram14
(driver?)
010f           65536 ram15
(driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.31 #4
Hardware name: STM32 (Device Tree Support)
[<c0112518>] (unwind_backtrace) from [<c010d7a8>] (show_stack+0x10/0x14)
[<c010d7a8>] (show_stack) from [<c0b10414>] (dump_stack+0xb0/0xc4)
[<c0b10414>] (dump_stack) from [<c0125bd0>] (panic+0x11c/0x31c)
[<c0125bd0>] (panic) from [<c1001594>] (mount_block_root+0x1cc/0x27c)
[<c1001594>] (mount_block_root) from [<c10018b0>] (mount_root+0x124/0x148)
[<c10018b0>] (mount_root) from [<c1001a54>] (prepare_namespace+0x180/0x1c4)
[<c1001a54>] (prepare_namespace) from [<c0b279b0>] (kernel_init+0x8/0x110)
[<c0b279b0>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
Exception stack(0xe6897fb0 to 0xe6897ff8)
7fa0:                                     00000000 00000000 00000000 00000000
7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.31 #4
Hardware name: STM32 (Device Tree Support)
[<c0112518>] (unwind_backtrace) from [<c010d7a8>] (show_stack+0x10/0x14)
[<c010d7a8>] (show_stack) from [<c0b10414>] (dump_stack+0xb0/0xc4)
[<c0b10414>] (dump_stack) from [<c0110f50>] (handle_IPI+0x41c/0x448)
[<c0110f50>] (handle_IPI) from [<c056afe4>] (gic_handle_irq+0x8c/0x90)
[<c056afe4>] (gic_handle_irq) from [<c0101a8c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xc1101f40 to 0xc1101f88)
1f40: 00000000 000015ac e7665074 c011b7c0 00000000 c1100000 c1104ca8 c1104ce8
1f60: 00000001 c105ca40 e7fffcc0 00000000 c11f0198 c1101f90 c010a1c8 c010a1cc
1f80: 60000113 ffffffff
[<c0101a8c>] (__irq_svc) from [<c010a1cc>] (arch_cpu_idle+0x38/0x3c)
[<c010a1cc>] (arch_cpu_idle) from [<c01584f0>] (do_idle+0xc4/0x14c)
[<c01584f0>] (do_idle) from [<c0158864>] (cpu_startup_entry+0x18/0x1c)
[<c0158864>] (cpu_startup_entry) from [<c1000f10>] (start_kernel+0x4bc/0x4f4)
[<c1000f10>] (start_kernel) from [<00000000>] (0x0)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) ]---


正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-27 21:21:09 | 显示全部楼层
lgs鸽 发表于 2023-4-26 14:06
这样子看,你内核是起来了,当文件系统没检测到。问一下你的网络地址是自行指定的还是dhcp自动获取的?

我的网络地址都是自行指定的:ubantu=192.168.1.6  开发板=192.168.1.9
回复 支持 1 反对 0

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-24 07:24:40 | 显示全部楼层
NOTICE:  CPU: STM32MP157DAA Rev.Z
NOTICE:  Model: STMicroelectronics STM32MP157D eval daughter
INFO:    Reset reason (0x14):
INFO:      Pad Reset from NRST
INFO:    Using EMMC
INFO:      Instance 2
INFO:    Boot used partition fsbl1
NOTICE:  BL2: v2.2-r1.0(debug):
NOTICE:  BL2: Built : 09:11:27, May  9 2022
INFO:    Using crypto library 'stm32_crypto_lib'
INFO:    BL2: Doing platform setup
INFO:    RAM: DDR3-DDR3L 32bits 533000Khz
INFO:    Memory size = 0x40000000 (1024 MB)
INFO:    BL2 runs SP_MIN setup
INFO:    BL2: Loading image id 4
INFO:    Loading image id=4 at address 0x2ffed000
INFO:    Image id=4 loaded: 0x2ffed000 - 0x2ffff000
INFO:    BL2: Loading image id 5
INFO:    Loading image id=5 at address 0xc0100000
INFO:    STM32 Image size : 866302
INFO:    Image id=5 loaded: 0xc0100000 - 0xc01d37fe
WARNING: Skip signature check (header option)
NOTICE:  ROTPK is not deployed on platform. Skipping ROTPK verification.
NOTICE:  BL2: Booting BL32
INFO:    Entry point address = 0x2ffed000
INFO:    SPSR = 0x1d3
INFO:    Cannot find st,stpmic1 node in DT
NOTICE:  SP_MIN: v2.2-r1.0(debug):
NOTICE:  SP_MIN: Built : 09:11:27, May  9 2022
INFO:    ARM GICv2 driver initialized
INFO:    stm32mp IWDG1 (12): Secure
INFO:    ETZPC: CRYP1 (9) could be non secure
INFO:    SP_MIN: Initializing runtime services
INFO:    SP_MIN: Preparing exit to normal world


U-Boot 2020.01-stm32mp-r1 (May 21 2022 - 09:21:01 +0800)

CPU: STM32MP157DAA Rev.Z
Model: STMicroelectronics STM32MP157D eval daughter
Board: stm32mp1 in trusted mode (st,stm32mp157d-ed1)
DRAM:  1 GiB
Clocks:
- MPU : 800 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
WDT:   Started with servicing (32s timeout)
NAND:  0 MiB
MMC:   STM32 SD/MMC: 0, STM32 SD/MMC: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@5800a000
Hit any key to stop autoboot:  0
ethernet@5800a000 Waiting for PHY auto negotiation to complete......... done
Using ethernet@5800a000 device
TFTP from server 192.168.1.6; our IP address is 192.168.1.9
Filename 'uImage'.
Load address: 0xc2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ############################################
         859.4 KiB/s
done
Bytes transferred = 7313920 (6f9a00 hex)
Using ethernet@5800a000 device
TFTP from server 192.168.1.6; our IP address is 192.168.1.9
Filename 'stm32mp157d-atk.dtb'.
Load address: 0xc4000000
Loading: #####
         532.2 KiB/s
done
Bytes transferred = 63881 (f989 hex)
## Booting kernel from Legacy Image at c2000000 ...
   Image Name:   Linux-5.4.31
   Created:      2023-04-16  14:38:04 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    7313856 Bytes = 7 MiB
   Load Address: c2000040
   Entry Point:  c2000040
   Verifying Checksum ... OK
## Flattened Device Tree blob at c4000000
   Booting using the fdt blob at 0xc4000000
   XIP Kernel Image
   Loading Device Tree to cffed000, end cffff988 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 5.4.31 (xwp@xwp-virtual-machine) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 SMP PREEMPT Sun Apr 16 22:16:45 CST 2023
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: STMicroelectronics STM32MP157D eval daughter
Memory policy: Data cache writealloc
Reserved memory: created DMA memory pool at 0x10000000, size 0 MiB
OF: reserved mem: initialized node mcuram2@10000000, compatible id shared-dma-pool
Reserved memory: created DMA memory pool at 0x10040000, size 0 MiB
OF: reserved mem: initialized node vdev0vring0@10040000, compatible id shared-dma-pool
Reserved memory: created DMA memory pool at 0x10041000, size 0 MiB
OF: reserved mem: initialized node vdev0vring1@10041000, compatible id shared-dma-pool
Reserved memory: created DMA memory pool at 0x10042000, size 0 MiB
OF: reserved mem: initialized node vdev0buffer@10042000, compatible id shared-dma-pool
Reserved memory: created DMA memory pool at 0x30000000, size 0 MiB
OF: reserved mem: initialized node mcuram@30000000, compatible id shared-dma-pool
Reserved memory: created DMA memory pool at 0x38000000, size 0 MiB
OF: reserved mem: initialized node retram@38000000, compatible id shared-dma-pool
cma: Reserved 128 MiB at 0xe8000000
psci: probing for conduit method from DT.
psci: PSCIv1.1 detected in firmware.
psci: Using standard PSCI v0.2 function IDs
psci: MIGRATE_INFO_TYPE not supported.
psci: SMC Calling Convention v1.0
percpu: Embedded 20 pages/cpu s50124 r8192 d23604 u81920
Built 1 zonelists, mobility grouping on.  Total pages: 227647
Kernel command line: console=ttySTM0,115200 root=/dev/nfs nfsroot=192.168.1.6:/home/xwp/linux/nfs/rootfs,proto=tcp rw ip=192.168.1.9:192.168.1.6:192.168.1.1:255.255.255.0::eth0ff
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
mem auto-init: stackff, heap allocff, heap freeff
Memory: 759396K/917500K available (11264K kernel code, 869K rwdata, 3408K rodata, 1024K init, 213K bss, 27032K reserved, 131072K cma-reserved, 131068K highmem)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
rcu: Preemptible hierarchical RCU implementation.
rcu:    RCU event tracing is enabled.
        Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
random: get_random_bytes called from start_kernel+0x31c/0x4f4 with crng_init=0
arch_timer: cp15 timer(s) running at 24.00MHz (virt).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
Switching to timer-based delay loop, resolution 41ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
/cpus/cpu@1 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0100000 - 0xc0100060
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
smp: Brought up 1 node, 2 CPUs
SMP: Total of 2 processors activated (96.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes, linear)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
Serial: AMBA PL011 UART driver
stm32-pm-domain pm_domain: domain core-ret-power-domain registered
stm32-pm-domain pm_domain: subdomain core-power-domain registered
stm32-pm-domain pm_domain: domains probed
reg-fixed-voltage buck1: Fixed regulator specified with variable voltages
reg-fixed-voltage: probe of buck1 failed with error -22
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arch_sys_counter
thermal_sys: Registered thermal governor 'step_wise'
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
Initialise system trusted keyrings
workingset: timestamp_bits=14 max_order=18 bucket_order=4
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
ntfs: driver 2.1.32 [Flags: R/O].
jffs2: version 2.2. (NAND) &#169; 2001-2006 Red Hat, Inc.
fuse: init (API version 7.31)
NET: Registered protocol family 38
Key type asymmetric registered
Asymmetric key parser 'x509' registered
bounce: pool size: 64 pages
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
io scheduler mq-deadline registered
io scheduler kyber registered
STM32 USART driver initialized
brd: module loaded
loop: module loaded
libphy: Fixed MDIO Bus: probed
CAN device driver interface
pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver smsc75xx
usbcore: registered new interface driver smsc95xx
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver cdc_ncm
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-platform: EHCI generic platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-platform: OHCI generic platform driver
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usb-storage
i2c /dev entries driver
stm32-cpufreq stm32-cpufreq: Failed to get chip info: -517
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
Synopsys Designware Multimedia Card Interface Driver
sdhci-pltfm: SDHCI platform and OF driver helper
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
arm-smc-mbox mailbox-0: ARM SMC mailbox enabled.
arm-smc-mbox mailbox-1: ARM SMC mailbox enabled.
Unable to get STM32 DDR PMU clock
drop_monitor: Initializing network drop monitor service
NET: Registered protocol family 17
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20190810) max_hops=1
Key type dns_resolver registered
ThumbEE CPU extension supported.
Registering SWP/SWPB emulation handler
registered taskstats version 1
Loading compiled-in X.509 certificates
arm-scmi firmware:scmi-0: SCMI Protocol v2.0 'ST:' Firmware version 0x0
Unable to get STM32 DDR PMU clock
debugfs: Directory 'cpu0' with parent 'opp' already present!
Unable to get STM32 DDR PMU clock
stm32-mdma 58000000.dma: STM32 MDMA driver registered
stm32-dma 48000000.dma: STM32 DMA driver registered
stm32-dma 48001000.dma: STM32 DMA driver registered
reg11: supplied by regulator-dummy
reg18: supplied by regulator-dummy
usb33: supplied by regulator-dummy
stm_thermal 50028000.thermal: stm_thermal_probe: Driver initialized successfully
debugfs: Directory 'cpu0' with parent 'opp' already present!
stm32-crc32 58009000.crc: Initialized
stm32-hash 54002000.hash: will run requests pump with realtime priority
random: fast init done
stm32-hash 54002000.hash: Init HASH done HW ver 23 DMA mode 1
stm32-ddr-pmu: probed (ID=0x00140061 VER=0x00000010), DDR@533MHz
/soc/interrupt-controller@5000d000: bank0
/soc/interrupt-controller@5000d000: bank1
/soc/interrupt-controller@5000d000: bank2
random: crng init done
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOJ bank added
stm32mp157-pinctrl soc:pin-controller@50002000: GPIOK bank added
stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
stm32-usart 40010000.serial: interrupt mode for rx (no dma)
stm32-usart 40010000.serial: interrupt mode for tx (no dma)
40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 47, base_baud = 4000000) is a stm32-usart
printk: console [ttySTM0] enabled
stm32-dwmac 5800a000.ethernet: PTP uses main clock
stm32-dwmac 5800a000.ethernet: no reset control found
stm32-dwmac 5800a000.ethernet: No phy clock provided...
stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
stm32-dwmac 5800a000.ethernet:  DWMAC4/5
stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
stm32-dwmac 5800a000.ethernet: TSO supported
stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
stm32-dwmac 5800a000.ethernet: device MAC address b8:ae:1d:01:01:00
stm32-dwmac 5800a000.ethernet: TSO feature enabled
libphy: stmmac: probed
stm32_rtc 5c004000.rtc: registered as rtc0
stm32_rtc 5c004000.rtc: Date/Time must be initialized
stm32_rtc 5c004000.rtc: registered rev:1.2
mmci-pl18x 58005000.sdmmc: mmc0: PL180 manf 53 rev2 at 0x58005000 irq 43,0 (pio)
mmci-pl18x 58007000.sdmmc: mmc1: PL180 manf 53 rev2 at 0x58007000 irq 44,0 (pio)
stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01T00:05:37 UTC (946685137)
stm32-dwmac 5800a000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211F Gigabit Ethernet]
dwmac4: Master AXI performs any burst length
stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
stm32-dwmac 5800a000.ethernet eth0: registered PTP clock
stm32-dwmac 5800a000.ethernet eth0: configuring for phy/rgmii-id link mode
mmc1: new high speed MMC card at address 0001
mmcblk1: mmc1:0001 8GTF4R 7.28 GiB
mmcblk1boot0: mmc1:0001 8GTF4R partition 1 4.00 MiB
mmcblk1boot1: mmc1:0001 8GTF4R partition 2 4.00 MiB
mmcblk1rpmb: mmc1:0001 8GTF4R partition 3 512 KiB, chardev (242:0)
mmc0: host does not support reading read-only switch, assuming write-enable
mmc0: new high speed SDHC card at address e624
mmcblk1: p1 p2 p3
mmcblk0: mmc0:e624 SC32G 29.7 GiB
mmcblk0: p1 p2 p3 p4 p5
stm32-dwmac 5800a000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
IP-Config: Complete:
     device=eth0, hwaddr=b8:ae:1d:01:01:00, ipaddr=192.168.1.9, mask=255.255.255.0, gw=192.168.1.1
     host=192.168.1.9, domain=, nis-domain=(none)
     bootserver=192.168.1.6, rootserver=192.168.1.6, rootpath=
ALSA device list:
  No soundcards found.
reg11: disabling
reg18: disabling
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0100           65536 ram0
(driver?)
0101           65536 ram1
(driver?)
0102           65536 ram2
(driver?)
0103           65536 ram3
(driver?)
0104           65536 ram4
(driver?)
0105           65536 ram5
(driver?)
0106           65536 ram6
(driver?)
0107           65536 ram7
(driver?)
0108           65536 ram8
(driver?)
0109           65536 ram9
(driver?)
010a           65536 ram10
(driver?)
010b           65536 ram11
(driver?)
010c           65536 ram12
(driver?)
010d           65536 ram13
(driver?)
010e           65536 ram14
(driver?)
010f           65536 ram15
(driver?)
b300         7634944 mmcblk1
driver: mmcblk
  b301            2048 mmcblk1p1 7ae0a79c-ee95-4a75-8d8b-efc7462050e4

  b302           65536 mmcblk1p2 d91a16d7-1f2f-4b9d-bbd0-1ef9939f2541

  b303         7566336 mmcblk1p3 491f6117-415d-4f53-88c9-6e0de54deac6

b330        31166976 mmcblk0
driver: mmcblk
  b331             256 mmcblk0p1 6272f703-5fd3-435a-a343-bc37ebeddf45

  b332             256 mmcblk0p2 ac7c2f94-51ef-420c-b51d-1470a851e284

  b333            2048 mmcblk0p3 71a96f35-71c3-4cc8-b8a4-4b525a5452fe

  b334           65536 mmcblk0p4 ae9f5c08-3a5d-4bee-acaa-a7207d5baa69

  b335        31098845 mmcblk0p5 e91c4e10-16e6-4c0e-bd0e-77becf4a3582

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.31 #1
Hardware name: STM32 (Device Tree Support)
[<c0112518>] (unwind_backtrace) from [<c010d7a8>] (show_stack+0x10/0x14)
[<c010d7a8>] (show_stack) from [<c0b10494>] (dump_stack+0xb0/0xc4)
[<c0b10494>] (dump_stack) from [<c0125bd0>] (panic+0x11c/0x31c)
[<c0125bd0>] (panic) from [<c1001594>] (mount_block_root+0x1cc/0x27c)
[<c1001594>] (mount_block_root) from [<c10018b0>] (mount_root+0x124/0x148)
[<c10018b0>] (mount_root) from [<c1001a54>] (prepare_namespace+0x180/0x1c4)
[<c1001a54>] (prepare_namespace) from [<c0b27b78>] (kernel_init+0x8/0x110)
[<c0b27b78>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
Exception stack(0xe6897fb0 to 0xe6897ff8)
7fa0:                                     00000000 00000000 00000000 00000000
7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.4.31 #1
Hardware name: STM32 (Device Tree Support)
[<c0112518>] (unwind_backtrace) from [<c010d7a8>] (show_stack+0x10/0x14)
[<c010d7a8>] (show_stack) from [<c0b10494>] (dump_stack+0xb0/0xc4)
[<c0b10494>] (dump_stack) from [<c0110f50>] (handle_IPI+0x41c/0x448)
[<c0110f50>] (handle_IPI) from [<c056b05c>] (gic_handle_irq+0x8c/0x90)
[<c056b05c>] (gic_handle_irq) from [<c0101a8c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xe68c9f80 to 0xe68c9fc8)
9f80: 00000000 000012d8 e767b074 c011b7c0 00000001 e68c8000 c1104ca8 c1104ce8
9fa0: c000406a 410fc075 00000000 00000000 c11f01d8 e68c9fd0 c010a1c8 c010a1cc
9fc0: 60000013 ffffffff
[<c0101a8c>] (__irq_svc) from [<c010a1cc>] (arch_cpu_idle+0x38/0x3c)
[<c010a1cc>] (arch_cpu_idle) from [<c0158568>] (do_idle+0xc4/0x14c)
[<c0158568>] (do_idle) from [<c01588dc>] (cpu_startup_entry+0x18/0x1c)
[<c01588dc>] (cpu_startup_entry) from [<c010268c>] (__enable_mmu+0x0/0x14)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) ]---
回复 支持 0 反对 1

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-21 18:28:27 | 显示全部楼层
lgs鸽 发表于 2023-4-21 09:51
把完整的打印信息发出来,你这信息有点少

  1 # Number of servers to start up
  2 RPCNFSDCOUNT=8
  3
  4 # Runtime priority of server (see nice(1))
  5 RPCNFSDPRIORITY=0
  6
  7 # Options for rpc.mountd.
  8 # If you have a port-based firewall, you might want to set up
  9 # a fixed port here using the --port option. For more information,
10 # see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
11 # To disable NFSv4 on the server, specify '--no-nfs-version 4' here
12 RPCMOUNTDOPTS="--manage-gids"
13
14 # Do you want to start the svcgssd daemon? It is only required for Kerberos
15 # exports. Valid alternatives are "yes" and "no"; the default is "no".
16 NEED_SVCGSSD=""
17
18 # Options for rpc.svcgssd.
19 RPCSVCGSSDOPTS=""
20
21 RPCNFSDOPTS="--nfs-version 2,3,4 --debug --syslog"
~                                                                              
~                                                                              
"/etc/default/nfs-kernel-server" 21L, 684C   




xwp@xwp-virtual-machine:~$ sudo vi /etc/default/nfs-kernel-server
[sudo] xwp 的密码:
xwp@xwp-virtual-machine:~$ sudo /etc/init.d/nfs-kernel-server restart
[ ok ] Restarting nfs-kernel-server (via systemctl): nfs-kernel-server.service.
xwp@xwp-virtual-machine:~$
xwp@xwp-virtual-machine:~$
回复 支持 0 反对 1

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-19 22:33:32 | 显示全部楼层
lgs鸽 发表于 2023-4-19 09:56
你的nfs版本是多少?打开/etc/init.d/nfs-kernel/server 看一下是否添加了
RPCNFSDOPTS="--nfs-version 2, ...

xwp@xwp-virtual-machine:/etc/init.d$ sudo vi /etc/init.d/nfs-kernel-server
xwp@xwp-virtual-machine:/etc/init.d$ sudo /etc/init.d/nfs-kernel-server restart
[ ok ] Restarting nfs-kernel-server (via systemctl): nfs-kernel-server.service.

原来确实没有,现在加上了,但是还是:

IP-Config: Complete:
     device=eth0, hwaddr=b8:ae:1d:01:01:00, ipaddr=192.168.1.9, mask=255.255.255.0, gw=192.168.1.1
     host=192.168.1.9, domain=, nis-domain=(none)
     bootserver=192.168.1.6, rootserver=192.168.1.6, rootpath=
ALSA device list:
  No soundcards found.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0100           65536 ram0
(driver?)
0101           65536 ram1
回复 支持 0 反对 1

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-16 06:57:11 | 显示全部楼层
lgs鸽 发表于 2023-4-14 14:30
你这个没有文件系统目录吧

xwp@xwp-virtual-machine:~/linux/nfs/rootfs$ pwd
/home/xwp/linux/nfs/rootfs
xwp@xwp-virtual-machine:~/linux/nfs/rootfs$ ls
bin  etc   lib    linuxrc     media  opt   root  sbin  tmp  var
dev  home  lib32  lost+found  mnt    proc  run   sys   usr
xwp@xwp-virtual-machine:~/linux/nfs/rootfs$
回复 支持 1 反对 0

使用道具 举报

4

主题

67

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1011
金钱
1011
注册时间
2021-5-25
在线时间
185 小时
发表于 2023-4-14 14:30:52 | 显示全部楼层
你这个没有文件系统目录吧
回复 支持 反对

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-16 06:39:34 | 显示全部楼层
lgs鸽 发表于 2023-4-14 14:30
你这个没有文件系统目录吧

xwp@xwp-virtual-machine:/dev/nfs$ pwd
/dev/nfs

ubantu已有这个目录

xwp@xwp-virtual-machine:~/linux/nfs/rootfs$ pwd
/home/xwp/linux/nfs/rootfs

这个也有啊?

stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01T00:00:20 UTC (946684820)
ALSA device list:
  No soundcards found.
reg11: disabling
reg18: disabling






VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0100           65536 ram0
(driver?)
0101           65536 ram1
(driver?)
回复 支持 反对

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-16 07:48:57 | 显示全部楼层
lgs鸽 发表于 2023-4-14 14:30
你这个没有文件系统目录吧

Kernel command line: console=ttySTM0,115200 root=/dev/nfs nfsroot=192.168.1.6:/home/xwp/linux/nfs/rootfs,proto=tcp rw ip=192.168.1.9:192.168.1.6:192.168.1.1:255.255.255.0::eth0ff
回复 支持 反对

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-16 08:31:16 | 显示全部楼层
nfs启动内核:怎样配置nfs启动内核?
回复 支持 反对

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-16 08:32:04 | 显示全部楼层
lgs鸽 发表于 2023-4-14 14:30
你这个没有文件系统目录吧

nfs启动内核:怎样配置nfs启动内核?
回复 支持 反对

使用道具 举报

4

主题

67

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1011
金钱
1011
注册时间
2021-5-25
在线时间
185 小时
发表于 2023-4-18 10:17:00 | 显示全部楼层
你nfs服务器开了吗?uboot是否配置了网络,是否可以ping通nfs服务器地址(也就是ubuntu的地址)?
回复 支持 反对

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-19 06:44:52 | 显示全部楼层
lgs鸽 发表于 2023-4-18 10:17
你nfs服务器开了吗?uboot是否配置了网络,是否可以ping通nfs服务器地址(也就是ubuntu的地址)?

PING通UBANTU电脑:
STM32MP> ping 192.168.1.6
ethernet@5800a000 Waiting for PHY auto negotiation to complete.......... done
Using ethernet@5800a000 device
host 192.168.1.6 is alive


nfs服务器打开:
xwp@xwp-virtual-machine:~/linux/tftpboot$ sudo /etc/init.d/nfs-kernel-server restart
[sudo] xwp 的密码:
[ ok ] Restarting nfs-kernel-server (via systemctl): nfs-kernel-server.service.
xwp@xwp-virtual-machine:~/linux/tftpboot$
回复 支持 反对

使用道具 举报

4

主题

67

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1011
金钱
1011
注册时间
2021-5-25
在线时间
185 小时
发表于 2023-4-19 09:56:45 | 显示全部楼层
你的nfs版本是多少?打开/etc/init.d/nfs-kernel/server 看一下是否添加了
RPCNFSDOPTS="--nfs-version 2,3,4 --debug --syslog”
回复 支持 反对

使用道具 举报

4

主题

67

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1011
金钱
1011
注册时间
2021-5-25
在线时间
185 小时
发表于 2023-4-20 15:27:07 | 显示全部楼层
平xzd5199 发表于 2023-4-19 22:33
xwp@xwp-virtual-machine:/etc/init.d$ sudo vi /etc/init.d/nfs-kernel-server
xwp@xwp-virtual-machin ...

我看了一下,路径打错了,改这文件/etc/default/nfs-kernel-server
回复 支持 反对

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-20 21:23:41 | 显示全部楼层
lgs鸽 发表于 2023-4-20 15:27
我看了一下,路径打错了,改这文件/etc/default/nfs-kernel-server

这个老师讲座上已经让加上了,我这边实际也是加上了,重启也是成功的。

20
21 RPCNFSDOPTS="--nfs-version 2,3,4 --debug --syslog"
~                                                                              
~                                                                              
"/etc/default/nfs-kernel-server" [只读] 21L, 684C
回复 支持 反对

使用道具 举报

4

主题

67

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1011
金钱
1011
注册时间
2021-5-25
在线时间
185 小时
发表于 2023-4-21 09:51:22 | 显示全部楼层
把完整的打印信息发出来,你这信息有点少
回复 支持 反对

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-23 07:26:45 | 显示全部楼层
lgs鸽 发表于 2023-4-21 09:51
把完整的打印信息发出来,你这信息有点少

烧录到EMMC中并通过EMMC启动bootfs,正常,但是通过nfs网络加载失败。
回复 支持 反对

使用道具 举报

4

主题

67

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1011
金钱
1011
注册时间
2021-5-25
在线时间
185 小时
发表于 2023-4-23 16:03:13 | 显示全部楼层
平xzd5199 发表于 2023-4-21 18:28
1 # Number of servers to start up
  2 RPCNFSDCOUNT=8
  3

不是这个,是开机后的信息
回复 支持 反对

使用道具 举报

4

主题

67

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1011
金钱
1011
注册时间
2021-5-25
在线时间
185 小时
发表于 2023-4-26 14:06:24 | 显示全部楼层
平xzd5199 发表于 2023-4-24 07:24
NOTICE:  CPU: STM32MP157DAA Rev.Z
NOTICE:  Model: STMicroelectronics STM32MP157D eval daughter
INF ...

这样子看,你内核是起来了,当文件系统没检测到。问一下你的网络地址是自行指定的还是dhcp自动获取的?
回复 支持 反对

使用道具 举报

4

主题

67

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1011
金钱
1011
注册时间
2021-5-25
在线时间
185 小时
发表于 2023-4-28 09:51:07 | 显示全部楼层
平xzd5199 发表于 2023-4-27 21:21
我的网络地址都是自行指定的:ubantu=192.168.1.6  开发板=192.168.1.9

你可以试试自动获取
回复 支持 反对

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-4-29 22:01:45 | 显示全部楼层
lgs鸽 发表于 2023-4-28 09:51
你可以试试自动获取

自动获取:电脑的IP设为DHCP模式试了一下也一样。
回复 支持 反对

使用道具 举报

3

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
153
金钱
153
注册时间
2019-8-4
在线时间
27 小时
 楼主| 发表于 2023-5-10 06:58:56 | 显示全部楼层
是不是就无法进行下去了?
回复 支持 反对

使用道具 举报

18

主题

77

帖子

0

精华

初级会员

Rank: 2

积分
180
金钱
180
注册时间
2016-1-15
在线时间
49 小时
发表于 2023-7-25 15:55:44 | 显示全部楼层
用的是新版的 Utuntu ?
教程的方法可能無法在較新版本的Ubuntu開啟 nfs ver2
解法參考這裡
https://blog.csdn.net/zyc3257/article/details/127054617
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-22 09:15

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表