VFS:无法打开根设备“ mmcblk0p2”或未知块179,2:错误-2

如何解决VFS:无法打开根设备“ mmcblk0p2”或未知块179,2:错误-2

我要做的是在STM32F769I发现板上运行一个运行rootfs的Linux内核。

我使用Buildroot为它构建了u-boot,内核和设备树,因为我是嵌入式系统的初学者,这对我来说是艰巨的努力。

我已经设法使其到达内核必须从SD卡挂载rootfs分区的地步,但是它无法做到这一点,因此此处的引导分区已正确设置,甚至可以被内核识别,但是内核仍然会崩溃,无法读取。

SD卡上有两个分区:

mmcblk0p1: vfat
mmcblk0p2: ext3

内核启动日志:

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 5.4.61 (zjerina@debian) (gcc version 8.4.0 (Buildroot 2020.02.5)) #1 PREEMPT Thu Sep 10 17:22:19 EDT 2020
CPU: ARMv7-M [411fc270] revision 0 (ARMv7M),cr=00000000
CPU: PIPT / VIPT nonaliasing data cache,PIPT instruction cache
OF: fdt: Machine model: STMicroelectronics STM32F769-DISCO board
On node 0 totalpages: 4096
  Normal zone: 32 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 4096 pages,LIFO batch:0
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists,mobility grouping off.  Total pages: 4064
Kernel command line: console=ttySTM0,115200n8 noinitrd root=/dev/mmcblk0p2 rootfstype=ext3 rw rootwait rootdelay=60 loglevel=60
Dentry cache hash table entries: 2048 (order: 1,8192 bytes,linear)
Inode-cache hash table entries: 1024 (order: 0,4096 bytes,linear)
mem auto-init: stack:off,heap alloc:off,heap free:off
Memory: 12784K/16384K available (2278K kernel code,170K rwdata,544K rodata,104K init,117K bss,3600K reserved,0K cma-reserved)
SLUB: HWalign=32,Order=0-3,MinObjects=0,CPUs=1,Nodes=1
rcu: Preemptible hierarchical RCU implementation.
        Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
NR_IRQS: 16,nr_irqs: 16,preallocated irqs: 16
/soc/interrupt-controller@40013c00: bank0
random: get_random_bytes called from 0xc02ee535 with crng_init=0
clocksource: arm_system_timer: mask: 0xffffff max_cycles: 0xffffff,max_idle_ns: 298634427 ns
ARM System timer initialized as clocksource
sched_clock: 32 bits at 100MHz,resolution 10ns,wraps every 21474836475ns
timer@40000c00: STM32 sched_clock registered
Switching to timer-based delay loop,resolution 10ns
timer@40000c00: STM32 delay timer registered
clocksource: timer@40000c00: mask: 0xffffffff max_cycles: 0xffffffff,max_idle_ns: 19112604467 ns
/soc/timer@40000c00: STM32 clockevent driver initialized (32 bits)
Calibrating delay loop (skipped),value calculated using timer frequency.. 200.00 BogoMIPS (lpj=1000000)
pid_max: default: 4096 minimum: 301
Mount-cache hash table entries: 1024 (order: 0,linear)
Mountpoint-cache hash table entries: 1024 (order: 0,linear)
rcu: Hierarchical SRCU implementation.
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff,max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
stm32f769-pinctrl soc:pin-controller: No package detected,use default one
stm32f769-pinctrl soc:pin-controller: GPIOA bank added
stm32f769-pinctrl soc:pin-controller: GPIOB bank added
stm32f769-pinctrl soc:pin-controller: GPIOC bank added
stm32f769-pinctrl soc:pin-controller: GPIOD bank added
stm32f769-pinctrl soc:pin-controller: GPIOE bank added
stm32f769-pinctrl soc:pin-controller: GPIOF bank added
stm32f769-pinctrl soc:pin-controller: GPIOG bank added
stm32f769-pinctrl soc:pin-controller: GPIOH bank added
stm32f769-pinctrl soc:pin-controller: GPIOI bank added
stm32f769-pinctrl soc:pin-controller: GPIOJ bank added
stm32f769-pinctrl soc:pin-controller: GPIOK bank added
stm32f769-pinctrl soc:pin-controller: Pinctrl STM32 initialized
clocksource: Switched to clocksource timer@40000c00
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 512 (order: 0,linear)
TCP established hash table entries: 1024 (order: 0,linear)
TCP bind hash table entries: 1024 (order: 0,linear)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0,linear)
UDP-Lite hash table entries: 256 (order: 0,linear)
NET: Registered protocol family 1
workingset: timestamp_bits=30 max_order=12 bucket_order=0
fuse: init (API version 7.31)
io scheduler mq-deadline registered
io scheduler kyber registered
STM32 USART driver initialized
40011000.serial: ttySTM0 at MMIO 0x40011000 (irq = 35,base_baud = 6250000) is a stm32-usart
printk: console [ttySTM0] enabled
stm32-usart 40011000.serial: rx dma alloc failed
stm32-usart 40011000.serial: interrupt mode used for rx (no dma)
stm32-usart 40011000.serial: tx dma alloc failed
stm32-usart 40011000.serial: interrupt mode used for tx (no dma)
libphy: Fixed MDIO Bus: probed
stm32_rtc 40002800.rtc: registered as rtc0
stm32_rtc 40002800.rtc: Date/Time must be initialized
i2c /dev entries driver
stm32f7-i2c 40005400.i2c: can't use DMA
stm32f7-i2c 40005400.i2c: STM32F7 I2C-0 bus adapter
mmci-pl18x 40011c00.sdio2: Got CD GPIO
mmci-pl18x 40011c00.sdio2: mmc0: PL180 manf 80 rev8 at 0x40011c00 irq 36,0 (pio)
mmci-pl18x 40011c00.sdio2: DMA channels RX none,TX none
mmc0: host does not support reading read-only switch,assuming write-enable
mmc0: new SDHC card at address aaaa
input: gpio_keys as /devices/platform/gpio_keys/input/input0
mmcblk0: mmc0:aaaa SL08G 7.40 GiB 
stm32_rtc 40002800.rtc: setting system clock to 2000-01-01T00:38:58 UTC (946687138)
 mmcblk0: p1 p2
Warning: unable to open an initial console.
Waiting 60 sec before mounting root device...
random: fast init done
Failed to create /dev/root: -2
VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -2
Please append a correct "root=" boot option; here are the available partitions:
b300         7761920 mmcblk0 
 driver: mmcblk
  b301           51200 mmcblk0p1 d7154cc1-01

  b302         7709696 mmcblk0p2 d7154cc1-02

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) ]---

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 <select id="xxx"> SELECT di.id, di.name, di.work_type, di.updated... <where> <if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 <property name="dynamic.classpath" value="tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-