OpenEdv-开源电子网

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

[XILINX] u-boot启动加载rootfs失败,提示“VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6”

[复制链接]

4

主题

11

帖子

0

精华

新手上路

积分
37
金钱
37
注册时间
2019-5-9
在线时间
6 小时
发表于 2022-1-17 23:15:49 | 显示全部楼层 |阅读模式
1金钱
u-boot启动,加载zImage正常,加载到rootfs不正常,提示root参数不对,但对这教程看了几遍,“system-top.dts”文件里的“bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait"”也是对的,重新做了BOOT.BIN和rootfs,还是不行,看起来好像是启动参数没有传递过来,打印提示如下:
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA
mmc0: new high speed SDHC card at address 1234
mmcblk0: mmc0:1234 SA16G 14.4 GiB
mmcblk0: p1 p2
mmc1: SDHCI controller on e0101000.mmc [e0101000.mmc] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
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 20170425) max_hops=1
Registering SWP/SWPB emulation handler
hctosys: unable to open rtc device (rtc0)
of_cfs_init
of_cfs_init: OK
ALSA device list:
  No soundcards found.
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0100           16384 ram0
(driver?)
0101           16384 ram1
(driver?)


u-boot加载rootfs不正常

u-boot加载rootfs不正常

最佳答案

查看完整内容[请看2#楼]

初步摸索出一个解决办法,通过setenv增加bootargs变量并保存,重启后系统工作正常,还是不知道为啥u-boot的参数没有传递过来: setenv bootargs "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait" saveenv reset
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

4

主题

11

帖子

0

精华

新手上路

积分
37
金钱
37
注册时间
2019-5-9
在线时间
6 小时
 楼主| 发表于 2022-1-17 23:15:50 | 显示全部楼层
初步摸索出一个解决办法,通过setenv增加bootargs变量并保存,重启后系统工作正常,还是不知道为啥u-boot的参数没有传递过来:
setenv bootargs "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait"
saveenv
reset
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2024-10-4 00:23

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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