From: hch@infradead.org (Christoph Hellwig)
To: linux-riscv@lists.infradead.org
Subject: Risc-V, qemu, and initrd
Date: Thu, 21 Jun 2018 22:38:05 -0700 [thread overview]
Message-ID: <20180622053805.GA19304@infradead.org> (raw)
In-Reply-To: <20180621220859.GA9268@roeck-us.net>
On Thu, Jun 21, 2018 at 03:08:59PM -0700, Guenter Roeck wrote:
> On Thu, Jun 21, 2018 at 10:55:09AM -0700, Christoph Hellwig wrote:
> > On Thu, Jun 21, 2018 at 10:33:14AM -0700, Guenter Roeck wrote:
> > > Are you able to boot anything but -M virt ? If yes, can you send me the
> > > necessary command line parameters ?
> >
> > Just -m virt. For the SiFive board emulations a lot more driver
> > support is required.
>
> Ok. At least it is a start. Have you managed to connect a hard drive ?
> I was only able to get it to work with initrd.
Yes, I use virtio-blk. Here is my qemu command line:
/opt/qemu-riscv/bin/qemu-system-riscv64 \
-nographic \
-machine virt \
-kernel bbl \
-append "root=/dev/vda ro console=ttyS0" \
-drive file=../../busybear-linux/busybear.bin,format=raw,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-netdev user,id=net0, \
-device virtio-net-device,netdev=net0
next prev parent reply other threads:[~2018-06-22 5:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-21 6:11 Risc-V, qemu, and initrd Guenter Roeck
2018-06-21 8:11 ` Atish Patra
2018-06-21 14:30 ` Andreas Schwab
2018-06-21 14:48 ` Guenter Roeck
2018-06-21 14:52 ` Christoph Hellwig
2018-06-21 16:34 ` Guenter Roeck
2018-06-21 17:33 ` Guenter Roeck
2018-06-21 17:55 ` Christoph Hellwig
2018-06-21 22:08 ` Guenter Roeck
2018-06-22 5:38 ` Christoph Hellwig [this message]
2018-06-22 16:34 ` Guenter Roeck
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=20180622053805.GA19304@infradead.org \
--to=hch@infradead.org \
--cc=linux-riscv@lists.infradead.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