From: Thomas Huth <thuth@redhat.com>
To: Tom Rini <trini@konsulko.com>, qemu-devel@nongnu.org
Cc: Magnus Damm <magnus.damm@gmail.com>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] qemu-system-sh4 vs qemu-system-arm/i386 default behavior
Date: Wed, 30 Nov 2016 08:33:02 +0100 [thread overview]
Message-ID: <a22a6db3-7601-0bc2-d849-2de74c66ea8e@redhat.com> (raw)
In-Reply-To: <20161130010151.GL2546@bill-the-cat>
[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]
On 30.11.2016 02:01, Tom Rini wrote:
> Hey all,
>
> I'm trying to make use of the r2d platform for U-Boot testing via QEMU.
> After applying a series[1] I can use the kernel.org sh4 toolchain to get
> a u-boot.bin that runs, mostly. I say mostly as first of all I have to
> pass "-monitor null -serial null -serial stdio -nographic" to
> qemu-system-sh4 and in that order for me to get output from U-Boot on
> the prompt. On other platforms such as arm and vexpress or i386 and the
> 'pc' machine I do not need to do this. Does anyone have any idea why
> this might be and where to start poking in the code to fix this?
The "-serial" parameter is related to the serial_hds[] array in the
code, so you could search for that one.
The following line in hw/sh4/r2d.c looks somewhat suspicious:
sm501_init(address_space_mem, 0x10000000, SM501_VRAM_SIZE,
irq[SM501], serial_hds[2]);
Why is this machine always using serial_hds[2] and not a lower index?
... Maybe the maintainer of the board (Magnus) knows the answer here...
Thomas
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2016-11-30 7:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-30 1:01 [Qemu-devel] qemu-system-sh4 vs qemu-system-arm/i386 default behavior Tom Rini
2016-11-30 7:33 ` Thomas Huth [this message]
2016-11-30 8:02 ` Aurelien Jarno
2016-11-30 9:12 ` Thomas Huth
2016-11-30 12:58 ` Tom Rini
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=a22a6db3-7601-0bc2-d849-2de74c66ea8e@redhat.com \
--to=thuth@redhat.com \
--cc=aurelien@aurel32.net \
--cc=magnus.damm@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=trini@konsulko.com \
/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).