大网数据广告活动
服务器运维问答

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,0)

· 52CE 我爱测

I'm trying to run orange-pi emulation with self-build linux kernel by this commands: ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make mrproper ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make sunxi_defconfig ARCH=arm CROSS_COMPILE=ar…

问题原文

原帖链接 · Hid-K · CC BY-SA 4.0

I'm trying to run orange-pi emulation with self-build linux kernel by this commands:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make mrproper
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make sunxi_defconfig

ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make

and system generated with buildroot using default orangepi_zero_defconfig. Trying to run emulation by this command:

qemu-system-arm -M orangepi-pc -nic user -nographic \
-kernel linux/arch/arm/boot/zImage \
-append 'root=/dev/mmcblk0 panic=1 rootfstype=ext4 rw' \
-dtb linux/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dtb \
-drive file=sdcard.img,format=raw,if=sd \
-no-reboot

In boot logs i see this:

[    5.337453] List of all partitions: 
[    5.338217] b300         2097152 mmcblk0  
[    5.347713]  driver: mmcblk 
[    5.347884]   b301           61440 mmcblk0p1 4d1f495b-d662-4b1d-818a-591ebed99bac 
[    5.348161]  
[    5.348330] No filesystem could mount root, tried:  
[    5.349117]  ext4 
[    5.349219]   
[    5.349738] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,0) 

Full log on Google Drive.

zImage

dtb file

Emulation stops with reboot message.

已采纳解答

原帖链接 · Hid-K · CC BY-SA 4.0

I've fixed this problem.

  • Fix the system image
    fdisk sdcard.img
    >w

  • Fix kernel arguments in qemu command:

qemu-system-arm -M orangepi-pc -nic user -nographic \
-kernel linux/arch/arm/boot/zImage \
-append 'bootargs=console=ttyO0,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait' \
-dtb linux/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dtb \
-drive file=sdcard.img,format=raw,if=sd \
-no-reboot

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-06-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。