[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] raspi2 unable to mount root fs using latest raspbian imag
From: |
Jacob Yundt |
Subject: |
[Qemu-discuss] raspi2 unable to mount root fs using latest raspbian image |
Date: |
Fri, 24 Nov 2017 14:11:59 -0500 |
This could be related to a recent post[1], but I'm unable to boot the
latest raspbian stretch image ("2017-09-07-raspbian-stretch-lite.img")
using 2.11.0-rc2 (or master).
I'm using these args:
./qemu-system-arm -M raspi2 -kernel ~/stretch/kernel7.img -append "ro
earlyprintk loglevel=8 dwc_otg.lpm_enable=0 root=PARTUUID=11eccc69-02
elevator=deadline fsck.repair=yes rootfstype=ext4
console=ttyAMA0,115200 debug rootwait" -dtb
~/stretch/bcm2709-rpi-2-b.dtb -serial stdio -sd
~/stretch/2017-09-07-raspbian-stretch-lite.img
And I end up with this panic:
[ 3.414873] Waiting for root device PARTUUID=11eccc69-02...
[ 3.432500] mmc0: host does not support reading read-only switch,
assuming write-enable
[ 3.433265] mmc0: new SDHC card at address 4567
[ 3.437952] mmcblk0: mmc0:4567 QEMU! 1.73 GiB
[ 3.447732] mmcblk0: p1 p2
[ 3.448958] mmcblk0: p2 size 3528040 extends beyond EOD, truncated
[ 3.551639] EXT4-fs (mmcblk0p2): bad geometry: block count 441005
exceeds size of device (440960 blocks)
[ 3.555863] List of all partitions:
[ 3.556767] 0100 4096 ram0 [ 3.557104] (driver?)
[ 3.557369] 0101 4096 ram1 [ 3.557601] (driver?)
[ 3.557801] 0102 4096 ram2 [ 3.558025] (driver?)
[ 3.558223] 0103 4096 ram3 [ 3.558446] (driver?)
[ 3.558640] 0104 4096 ram4 [ 3.558860] (driver?)
[ 3.559051] 0105 4096 ram5 [ 3.559271] (driver?)
[ 3.559453] 0106 4096 ram6 [ 3.559667] (driver?)
[ 3.559858] 0107 4096 ram7 [ 3.560081] (driver?)
[ 3.560278] 0108 4096 ram8 [ 3.560490] (driver?)
[ 3.560681] 0109 4096 ram9 [ 3.560892] (driver?)
[ 3.561097] 010a 4096 ram10 [ 3.561324] (driver?)
[ 3.561520] 010b 4096 ram11 [ 3.561747] (driver?)
[ 3.561967] 010c 4096 ram12 [ 3.562282] (driver?)
[ 3.562547] 010d 4096 ram13 [ 3.562851] (driver?)
[ 3.563126] 010e 4096 ram14 [ 3.563865] (driver?)
[ 3.564151] 010f 4096 ram15 [ 3.564437] (driver?)
[ 3.564715] b300 1810944 mmcblk0 [ 3.565314] driver: mmcblk
[ 3.565924] b301 42811 mmcblk0p1 11eccc69-01[ 3.566267]
[ 3.566440] b302 1763840 mmcblk0p2 11eccc69-02[ 3.566751]
[ 3.566986] No filesystem could mount root, tried: [ 3.567299] ext4
[ 3.567481]
[ 3.568053] Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(179,2)
[ 3.568643] CPU: 3 PID: 1 Comm: swapper/0 Tainted: G W
4.9.41-v7+ #1023
[ 3.569145] Hardware name: BCM2835
[ 3.569535] [<8010fb3c>] (unwind_backtrace) from [<8010c058>]
(show_stack+0x20/0x24)
[ 3.570357] [<8010c058>] (show_stack) from [<80455f84>]
(dump_stack+0xd4/0x118)
[ 3.571222] [<80455f84>] (dump_stack) from [<80209a28>] (panic+0xf0/0x274)
[ 3.571925] [<80209a28>] (panic) from [<80b01464>]
(mount_block_root+0x268/0x2b4)
[ 3.572639] [<80b01464>] (mount_block_root) from [<80b016c0>]
(mount_root+0x124/0x12c)
[ 3.573387] [<80b016c0>] (mount_root) from [<80b01860>]
(prepare_namespace+0x198/0x1e0)
[ 3.573929] [<80b01860>] (prepare_namespace) from [<80b00fe8>]
(kernel_init_freeable+0x2b4/0x2c8)
[ 3.574390] [<80b00fe8>] (kernel_init_freeable) from [<8071446c>]
(kernel_init+0x18/0x124)
[ 3.574805] [<8071446c>] (kernel_init) from [<80108148>]
(ret_from_fork+0x14/0x2c)
[ 3.575710] CPU1: stopping
[ 3.576110] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G W
4.9.41-v7+ #1023
[ 3.576650] Hardware name: BCM2835
[ 3.577035] [<8010fb3c>] (unwind_backtrace) from [<8010c058>]
(show_stack+0x20/0x24)
[ 3.577692] [<8010c058>] (show_stack) from [<80455f84>]
(dump_stack+0xd4/0x118)
[ 3.578281] [<80455f84>] (dump_stack) from [<8010e1e4>]
(handle_IPI+0x2a4/0x2c4)
[ 3.578857] [<8010e1e4>] (handle_IPI) from [<801014e0>]
(bcm2836_arm_irqchip_handle_irq+0x7c/0xac)
[ 3.579654] [<801014e0>] (bcm2836_arm_irqchip_handle_irq) from
[<8071a47c>] (__irq_svc+0x5c/0x7c)
[ 3.580249] Exception stack(0xba94bf58 to 0xba94bfa0)
[ 3.580730] bf40:
00000000 baf50470
[ 3.581219] bf60: 00000000 00000000 ba94a000 80c0312c 00000002
80c03198 80c15f08 80c15f08
[ 3.581669] bf80: 00000000 ba94bfb4 80c040a4 ba94bfa8 80108a54
80108a58 60000013 ffffffff
[ 3.582182] [<8071a47c>] (__irq_svc) from [<80108a58>]
(arch_cpu_idle+0x34/0x4c)
[ 3.582616] [<80108a58>] (arch_cpu_idle) from [<80719bc4>]
(default_idle_call+0x34/0x48)
[ 3.583116] [<80719bc4>] (default_idle_call) from [<80161df0>]
(cpu_startup_entry+0xe4/0x160)
[ 3.583666] [<80161df0>] (cpu_startup_entry) from [<8010dcf0>]
(secondary_start_kernel+0x130/0x13c)
[ 3.584686] [<8010dcf0>] (secondary_start_kernel) from [<0010196c>]
(0x10196c)
[ 3.585478] CPU0: stopping
[ 3.585938] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W
4.9.41-v7+ #1023
[ 3.586425] Hardware name: BCM2835
[ 3.586757] [<8010fb3c>] (unwind_backtrace) from [<8010c058>]
(show_stack+0x20/0x24)
[ 3.587346] [<8010c058>] (show_stack) from [<80455f84>]
(dump_stack+0xd4/0x118)
[ 3.587849] [<80455f84>] (dump_stack) from [<8010e1e4>]
(handle_IPI+0x2a4/0x2c4)
[ 3.588375] [<8010e1e4>] (handle_IPI) from [<801014e0>]
(bcm2836_arm_irqchip_handle_irq+0x7c/0xac)
[ 3.589302] [<801014e0>] (bcm2836_arm_irqchip_handle_irq) from
[<8071a47c>] (__irq_svc+0x5c/0x7c)
[ 3.589872] Exception stack(0x80c01f18 to 0x80c01f60)
[ 3.590251] 1f00:
00000000 baf42470
[ 3.590761] 1f20: 00000000 00000000 80c00000 80c0312c 00000001
80c03198 80c15f08 80c15f08
[ 3.591248] 1f40: bb7ffc40 80c01f74 80c040a4 80c01f68 80108a54
80108a58 60000013 ffffffff
[ 3.601374] [<8071a47c>] (__irq_svc) from [<80108a58>]
(arch_cpu_idle+0x34/0x4c)
[ 3.602336] [<80108a58>] (arch_cpu_idle) from [<80719bc4>]
(default_idle_call+0x34/0x48)
[ 3.603174] [<80719bc4>] (default_idle_call) from [<80161df0>]
(cpu_startup_entry+0xe4/0x160)
[ 3.603989] [<80161df0>] (cpu_startup_entry) from [<80714450>]
(rest_init+0x84/0x88)
[ 3.604340] [<80714450>] (rest_init) from [<80b00d28>]
(start_kernel+0x3b4/0x3c0)
[ 3.604670] [<80b00d28>] (start_kernel) from [<0000807c>] (0x807c)
[ 3.609208] CPU2: stopping
[ 3.609421] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G W
4.9.41-v7+ #1023
[ 3.609728] Hardware name: BCM2835
[ 3.609937] [<8010fb3c>] (unwind_backtrace) from [<8010c058>]
(show_stack+0x20/0x24)
[ 3.610255] [<8010c058>] (show_stack) from [<80455f84>]
(dump_stack+0xd4/0x118)
[ 3.610536] [<80455f84>] (dump_stack) from [<8010e1e4>]
(handle_IPI+0x2a4/0x2c4)
[ 3.610815] [<8010e1e4>] (handle_IPI) from [<801014e0>]
(bcm2836_arm_irqchip_handle_irq+0x7c/0xac)
[ 3.611146] [<801014e0>] (bcm2836_arm_irqchip_handle_irq) from
[<8071a47c>] (__irq_svc+0x5c/0x7c)
[ 3.611454] Exception stack(0xba94df58 to 0xba94dfa0)
[ 3.611659] df40:
00000000 baf5e470
[ 3.611970] df60: 00000000 00000000 ba94c000 80c0312c 00000004
80c03198 80c15f08 80c15f08
[ 3.612281] df80: 00000000 ba94dfb4 80c040a4 ba94dfa8 80108a54
80108a58 60000013 ffffffff
[ 3.612591] [<8071a47c>] (__irq_svc) from [<80108a58>]
(arch_cpu_idle+0x34/0x4c)
[ 3.612879] [<80108a58>] (arch_cpu_idle) from [<80719bc4>]
(default_idle_call+0x34/0x48)
[ 3.613200] [<80719bc4>] (default_idle_call) from [<80161df0>]
(cpu_startup_entry+0xe4/0x160)
[ 3.613516] [<80161df0>] (cpu_startup_entry) from [<8010dcf0>]
(secondary_start_kernel+0x130/0x13c)
[ 3.613860] [<8010dcf0>] (secondary_start_kernel) from [<0010196c>]
(0x10196c)
[ 3.614870] ---[ end Kernel panic - not syncing: VFS: Unable to
mount root fs on unknown-block(179,2)
I verified that I'm able to mount the mmcblk0p2 ext4 partition on my
host operating system without issue. I also fsck-ed the ext4 partition
for good measure. I tried using different -drive/-sd flag options for
the raspbian image but get the same results.
Is this a known issue? Any other flags I could throw at this to get
more meaningful debug information?
Full console output[2] in case this is helpful.
-Jacob
[1] http://lists.nongnu.org/archive/html/qemu-discuss/2017-11/msg00038.html
[2]
https://gist.githubusercontent.com/jyundt/c8aae9dfd8191ebff72f7d419762f62c/raw/7074ab947a2cb8e104da31cf6f60684771578ddb/raspi2_panic.txt
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-discuss] raspi2 unable to mount root fs using latest raspbian image,
Jacob Yundt <=