T113-S3 SD卡启动时报错VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6

听话坏小孩儿嵌入式Linux 2024-04-24 17:05:23 4510阅读


T113-S3 SD卡启动时报错VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6

请教大家如何解决?

详细打印日志如下:

[    3.146395] alloc_fd: slot 0 not NULL!
[    3.150965] /dev/root: Can't open blockdev
[    3.155567] VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6
[    3.164308] Please append a correct "root=" boot option; here are the available partitions:
[    3.173698] 1f00            1024 mtdblock0 
[    3.173701]  (driver?)
[    3.181083] 1f01            4096 mtdblock1 
[    3.181086]  (driver?)
[    3.188434] 1f02            1024 mtdblock2 
[    3.188436]  (driver?)
[    3.195773] 1f03          124928 mtdblock3 
[    3.195775]  (driver?)
[    3.203129] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.212404] CPU1: stopping
[    3.215442] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.4.61 #13
[    3.222176] Hardware name: Generic DT based system
[    3.227571] [<c010de4c>] (unwind_backtrace) from [<c010a5f4>] (show_stack+0x10/0x14)
[    3.236267] [<c010a5f4>] (show_stack) from [<c061f788>] (dump_stack+0x88/0xa4)
[    3.244375] [<c061f788>] (dump_stack) from [<c010c234>] (handle_IPI+0xe4/0x180)
[    3.252582] [<c010c234>] (handle_IPI) from [<c02f13b4>] (gic_handle_irq+0x70/0x78)
[    3.261080] [<c02f13b4>] (gic_handle_irq) from [<c01021cc>] (__irq_svc+0x6c/0xa8)
[    3.269472] Exception stack(0xc705df80 to 0xc705dfc8)
[    3.275141] df80: 0000c378 c76c8334 00000000 c0114740 00000002 c705c000 c0a03de8 c0a03e24
[    3.284318] dfa0: 4000406a 410fc075 00000000 00000000 00000000 c705dfd0 c0107f48 c0107f38
[    3.293490] dfc0: 60000013 ffffffff
[    3.297408] [<c01021cc>] (__irq_svc) from [<c0107f38>] (arch_cpu_idle+0x1c/0x38)
[    3.305710] [<c0107f38>] (arch_cpu_idle) from [<c013d3dc>] (do_idle+0xd4/0x128)
[    3.313913] [<c013d3dc>] (do_idle) from [<c013d6c8>] (cpu_startup_entry+0x18/0x20)
[    3.322408] [<c013d6c8>] (cpu_startup_entry) from [<40102bac>] (0x40102bac)
[    3.330226] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

提示:如果此问题没有解决您的需求,您可以点击 “我也要问” 在线咨询。 我也要问

若此问题存在违规行为,您可以点击 “举报”

2条回答

  • 杨福毅
    2024-04-24 17:09:59 已采纳


    检查下你SD卡硬件山是否有连接SD卡插入检测引脚,如果没有连接的话要屏蔽掉board.dts中关于检测引脚的那一行。

    如下,注释掉:cd-gpios = <&pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;

    &sdc0 {
    	bus-width = <4>;
    	/*cd-gpios = <&pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;*/
    	/*non-removable;*/
    	/*broken-cd;*/
    	/*cd-inverted*/
    	/*data3-detect;*/
    	/*card-pwr-gpios = <&pio PH 14 1 1 2 0xffffffff>;*/
    	cd-used-24M;
    	cap-sd-highspeed;
    	/*sd-uhs-sdr50;*/
    	/*sd-uhs-ddr50;*/
    	/*sd-uhs-sdr104;*/
    	no-sdio;
    	no-mmc;
    	sunxi-power-save-mode;
    	/*sunxi-dis-signal-vol-sw;*/
    	max-frequency = <150000000>;
    	ctl-spec-caps = <0x8>;
    	/*vmmc-supply = <&reg_dcdc1>;*/
    	/*vqmmc33sw-supply = <&reg_dcdc1>;*/
    	/*vdmmc33sw-supply = <&reg_dcdc1>;*/
    	/*vqmmc18sw-supply = <&reg_eldo1>;*/
    	/*vdmmc18sw-supply = <&reg_eldo1>;*/
    	status = "okay";
    };
    3557 举报
  • 天冰天降
    2024-04-24 17:09:20


    检查下env.cfg环境变量配置是否正确。

    234 举报
103电阻是多少
STM32 38732人阅读
Linux内核printfk打印信息怎么打开
Linux驱动 8813人阅读
ECxx旋转编码器如何消除抖动和杂波
传感器设计与应用 5470人阅读

快速提问,在线解答

1

描述需求

填写需求概要标题,补充详细需求

2

耐心等

等待网友或网站工作人员在线解答

3

巧咨询

还有疑问?及时追问回复

立即咨询