qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Jiahuan Zhang <jiahuanzhang90@gmail.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] versatilepb cannot load roofs
Date: Mon, 6 Mar 2017 09:37:07 +0000	[thread overview]
Message-ID: <CAFEAcA8w3JXfqv6Td9rz3d9f1FMjA6QtpzkW0MgD+XcqH8ajyA@mail.gmail.com> (raw)
In-Reply-To: <CAJy91CaOxWeGAnpSU8ETpbaWQCdp6W6heYTcr5qtKQjE9qQh5g@mail.gmail.com>

On 5 March 2017 at 07:57, Jiahuan Zhang <jiahuanzhang90@gmail.com> wrote:
> Dear QEMU developers,
>
> I have a problem when running qemu to build a system with versatilepb,
> linux zImage and rootfs. the qemu cmdl is as follows.
>
> ../qemu/build/arm-softmmu/qemu-system-arm.exe -M versatilepb -kernel zImage
> -dtb versatile-pb.dtb -initrd ramfs.gz -nographic -append "console=ttyAMA0
> root=/dev/ram0"
>
> However, the running result is the same as the case without the initrd
> file, which is "Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(1,0)".
>
> The kernel is configured with versatile_defconfig, ramfs.gz is created by
> busybox 1.25.1. I am using QEMU 2.8.50 and Linux 4.7. I've also tried with
> Linux 2.6.35 and 3.2.8, and still versatilepb gives this kernel panic.

> No filesystem could mount root, tried:  ext2 cramfs minix romfs
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(1,0)


This is a guest configuration error, not a QEMU bug. The kernel
message means "I found the root device, but I did not recognize
its contents as one of the above filesystem types". Probably
the thing you are trying to use as an initrd is something
like a compressed cpio archive, not an actual filesystem that
you can pass to root=. You need to either fix what you're using
to create the initrd or you need to fix the kernel command line
so you don't try to use it as a root device. (Usually an initrd
isn't the root= device, unless you've constructed it specially
for that purpose.)

thanks
-- PMM

      reply	other threads:[~2017-03-06  9:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-05  7:57 [Qemu-devel] versatilepb cannot load roofs Jiahuan Zhang
2017-03-06  9:37 ` Peter Maydell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFEAcA8w3JXfqv6Td9rz3d9f1FMjA6QtpzkW0MgD+XcqH8ajyA@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=jiahuanzhang90@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).