ST意法半导体
登录
直播中
李舒桀
7年用户
1323经验值
私信
关注
[问答]
STM32MP151c内核找不到rootfs怎么解决?
开启该帖子的消息推送
rootfs
我有一个基于
STM32
MP151c 的定制板,上面有一个 eMMC(没有 SD 卡)。在U-Boot中成功找到eMMC,分区如下:
part list mmc 0
Par
ti
tion Map for MMC device 0 -- Partition Type: EFI
Part Start LBA End LBA Name
Attributes
Type GUID
Partition GUID
1 0x00000400 0x000013ff "ssbl"
attrs: 0x0000000000000000
type: 8da63339-0007-60c0-c436-083ac8230908
guid: 81ae02b5-e823-4dfa-909e-f18021275bd7
2 0x00001400 0x000213ff "boot"
attrs: 0x0000000000000004
type: 0fc63daf-8483-4772-8e79-3d69d8477de4
type: linux
guid: 8691f7b3-c55d-4979-ad45-ab006af4d469
3 0x00021400 0x000293ff "vendorfs"
attrs: 0x0000000000000000
type: 0fc63daf-8483-4772-8e79-3d69d8477de4
type: linux
guid: c1241248-0452-4a9d-a181-dd26b1b8dc4a
4 0x00029400 0x001a93ff "rootfs"
attrs: 0x0000000000000000
type: 0fc63daf-8483-4772-8e79-3d69d8477de4
type: linux
guid: e91c4e10-16e6-4c0e-bd0e-77becf4a3582
5 0x001a9400 0x0075fbff "userfs"
attrs: 0x0000000000000000
type: 0fc63daf-8483-4772-8e79-3d69d8477de4
type: linux
guid: 91050ee0-2f8c-4a37-b0b1-54b16dfb2ec8
在启动之前,我将 bootargs 设置如下:
setenv bootargs root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rw console=ttySTM0,115200
但是,内核找不到 rootfs 分区:
[ 3.256832] VFS: Cannot open root device "PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582" or unknown-block(0,0): error -6
[ 3.266412] Please append a correct "root=" boot option; here are the available partitions:
[ 3.274832] 0100 65536 ram0
[ 3.274837] (driver?)
[ 3.280751] 0101 65536 ram1
[ 3.280754] (driver?)
[ 3.286888] 0102 65536 ram2
[ 3.286892] (driver?)
[ 3.293295] 0103 65536 ram3
[ 3.293300] (driver?)
[ 3.299064] 0104 65536 ram4
[ 3.299067] (driver?)
[ 3.305204] 0105 65536 ram5
[ 3.305207] (driver?)
[ 3.311270] 0106 65536 ram6
[ 3.311273] (driver?)
[ 3.317536] 0107 65536 ram7
[ 3.317540] (driver?)
[ 3.323516] 0108 65536 ram8
[ 3.323520] (driver?)
[ 3.329580] 0109 65536 ram9
[ 3.329583] (driver?)
[ 3.335685] 010a 65536 ram10
[ 3.335688] (driver?)
[ 3.341873] 010b 65536 ram11
[ 3.341876] (driver?)
[ 3.348065] 010c 65536 ram12
[ 3.348068] (driver?)
[ 3.354275] 010d 65536 ram13
[ 3.354278] (driver?)
[ 3.360443] 010e 65536 ram14
[ 3.360446] (driver?)
[ 3.366635] 010f 65536 ram15
[ 3.366638] (driver?)
[ 3.372830] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 3.381109] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.56 #1
[ 3.387030] Hardware name: STM32 (Device Tree Support)
[ 3.392210] [
] (unwind_backtrace) from [
] (show_stack+0x10/0x14)
[ 3.399953] [
] (show_stack) from [
] (dump_stack+0xb0/0xc4)
[ 3.407192] [
] (dump_stack) from [
] (panic+0x11c/0x31c)
[ 3.414167] [
] (panic) from [
] (mount_block_root+0x1cc/0x27c)
[ 3.421663] [
] (mount_block_root) from [
] (mount_root+0x124/0x148)
[ 3.429597] [
] (mount_root) from [
] (prepare_namespace+0x180/0x1c4)
[ 3.437622] [
] (prepare_namespace) from [
] (kernel_init+0x8/0x110)
[ 3.445557] [
] (kernel_init) from [
] (ret_from_fork+0x14/0x2c)
[ 3.453136] Exception stack(0xcf089fb0 to 0xcf089ff8)
[ 3.458197] 9fa0: 00000000 00000000 00000000 00000000
[ 3.466397] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.474592] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 3.481232] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
关于什么可能是错误的以及如何纠正它的任何想法?
回帖
(1)
魏贝贝
2023-1-10 11:13:47
实际上,在挂载 rootfs 时找不到 MMC(竞争条件)。所以 cmd 行中的 rootdelay 解决了这个问题(暂时)。
实际上,在挂载 rootfs 时找不到 MMC(竞争条件)。所以 cmd 行中的 rootdelay 解决了这个问题(暂时)。
举报
更多回帖
rotate(-90deg);
回复
相关问答
rootfs
如何将KSZ8794与
STM32MP151C
一起使用?
2023-01-10
258
如何为uboot配置
STM32MP151
?
2023-01-06
227
STM32MP151C
构建Custom Board“Eco system V2.1.0”发行版时存在不创建devicetree符号链接怎么解决?
2023-01-12
186
在工作区中
找不到
我的
内核
设备树如何解决?
2022-12-07
534
可以使用
stm32mp
153AACx设备树引导
stm32mp151
AACx板吗
2022-12-14
186
stm32mp151
AACx板在加载
内核
时是否有限制呢
2022-12-14
188
构建openstlinux-5.4-dunfell-
mp
1-20-06-24时为什么
找不到
`update-desktop-database` 命令?
2023-02-03
294
将flash_layout图像加载到自定义
STM32MP
1中出错是何原因?
2023-01-04
238
为什么不能使用create_sdcard_from_flashlayout.sh将数据写入SD卡呢?
2023-01-17
220
为什么无法使用
STM32
CubeMX生成的原始设备树启动安装
STM32MP151
CAA3 MPU的原始板?
2023-01-17
253
发帖
登录/注册
20万+
工程师都在用,
免费
PCB检查工具
无需安装、支持浏览器和手机在线查看、实时共享
查看
点击登录
登录更多精彩功能!
首页
论坛版块
小组
免费开发板试用
ebook
直播
搜索
登录
×
20
完善资料,
赚取积分