qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Jiaxun Yang" <jiaxun.yang@flygoat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>,
	"Huacai Chen" <chenhuacai@kernel.org>
Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"BALATON Zoltan via" <qemu-devel@nongnu.org>
Subject: Re: Could we document exact steps for loongson3-virt in the manual?
Date: Wed, 07 Apr 2021 11:47:58 +0800	[thread overview]
Message-ID: <aee9e99d-2cae-483d-9117-7a97e0d153b5@www.fastmail.com> (raw)
In-Reply-To: <87mtubwnsq.fsf@linaro.org>

On Tue, Apr 6, 2021, at 9:06 PM, Alex Bennée wrote:
> Hi,
> I was trying to bootstrap a Loongson3 Debian image but ran into some
> roadblocks. Philippe pointed me at:
>   https://www.mail-archive.com/qemu-devel@nongnu.org/msg768848.html
> which gives a bit of detail but elides over details such as how to
> handle block devices. AFAICT it should support virtio-blk although maybe
> Debian bullseye doesn't support the target, it's hard to say:
>   ./qemu-system-mips64el -M loongson3-virt -m 4096 -nographic -blockdev 
> driver=raw,node-name=hd0,discard=unmap,file.driver=host_device,file.filename=/dev/zvol/hackpool-0/debian-bullseye-mips64le -device virtio-blk,drive=hd0 -kernel ./vmlinuz-5.9.0-4-loongson-3 -initrd initrd.gz -append "root=/dev/sda1 console=tty0 nokaslr"

missing console=ttyS0,115200 in cmdline.

> Gets as far as:
> [    0.008641] printk: console [tty0] enabled
> [    0.009507] printk: bootconsole [early0] disabled
> and then just goes silent. It would be nice if we could add enough
> detail to the appropriate target-mips.rst to:
>  - give guidance on the best model to use for general purpose distros
>  - describe a common command line for such
>  - detail bootstraping a modern kernel
> In the ARM section there is a nice "Choosing a board model" which
> discusses what you want (probably "virt") and then we have varying
> levels of detail for the various myriad zoo of ARM machines that are
> emulated. I recently added sections to the versatile and vexpress
> sections after going through similar pain trying to get those up and
> running.

I’ll take a look.


> -- 
> Alex Bennée

- Jiaxun

  reply	other threads:[~2021-04-07  3:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06 13:06 Alex Bennée
2021-04-07  3:47 ` Jiaxun Yang [this message]
2021-04-07  7:47 ` Peter Maydell
2021-04-07  8:37   ` Alex Bennée

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:

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

  git send-email \
    --in-reply-to=aee9e99d-2cae-483d-9117-7a97e0d153b5@www.fastmail.com \
    --to=jiaxun.yang@flygoat.com \
    --cc=alex.bennee@linaro.org \
    --cc=chenhuacai@kernel.org \
    --cc=f4bug@amsat.org \
    --cc=qemu-devel@nongnu.org \
    --subject='Re: Could we document exact steps for loongson3-virt in the manual?' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).