Received: from eggs.gnu.org ([2001:4830:134:3::10]:43807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC4Tg-0000wC-9r for qemu-devel@nongnu.org; Wed, 30 Nov 2016 07:59:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC4Td-0006kP-9l for qemu-devel@nongnu.org; Wed, 30 Nov 2016 07:59:12 -0500 Received: from mail-yw0-x22d.google.com ([2607:f8b0:4002:c05::22d]:35793) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cC4Td-0006k5-4G for qemu-devel@nongnu.org; Wed, 30 Nov 2016 07:59:09 -0500 Received: by mail-yw0-x22d.google.com with SMTP id i145so157160194ywg.2 for ; Wed, 30 Nov 2016 04:59:08 -0800 (PST) Date: Wed, 30 Nov 2016 07:58:36 -0500 From: Tom Rini Message-ID: <20161130125836.GQ2546@bill-the-cat> References: <20161130010151.GL2546@bill-the-cat> <20161130080232.whbjegirbddf5ned@aurel32.net> <3bc775a3-6fdd-4ead-571e-2f316b0d969f@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SIa6NwWvRsr2U8xx" Content-Disposition: inline In-Reply-To: <3bc775a3-6fdd-4ead-571e-2f316b0d969f@redhat.com> Subject: Re: [Qemu-devel] qemu-system-sh4 vs qemu-system-arm/i386 default behavior List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: Aurelien Jarno , qemu-devel@nongnu.org --SIa6NwWvRsr2U8xx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 30, 2016 at 10:12:09AM +0100, Thomas Huth wrote: > On 30.11.2016 09:02, Aurelien Jarno wrote: > > On 2016-11-30 08:33, Thomas Huth wrote: > >> 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 QEM= U. > >>> 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? > >=20 > > The reason is that u-boot and the linux kernel do not have the same way > > to number the serial port than the physical hardware. Therefore u-boot > > and the Linux kernel use the second physical serial port .The question = is > > whether we should number our ports from the software (or part of the > > sofrware) or hardware point of view. >=20 > OK, thanks for the explanation, that makes sense now. ... maybe we > should put this information on a SH4 machine page under > http://qemu-project.org/Documentation/Platforms so that users have a > possibility to understand this serial port numbering? I'm still a bit confused, sorry. Digging around a bit I guess what is happening is that serial_hds[0] is being used, but Linux and U-Boot expect to use serial_hds[1] and that's what the above combination of arguments is getting me? How would I go about saying in a more simple form perhaps, to use the second described port not the first described port? Thanks! --=20 Tom --SIa6NwWvRsr2U8xx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJYPsz8AAoJEIf59jXTHXZSX+YQALZadmlB78wl7dl1TslFRbWi 7ZjOzHmR6Zo2rQM8yAz5ozILM6UrG3FulXqOi2SWSnt32/qLCcTy9hdGkm+wFqTU NtAaqjKmiS3KkeaGRRwf/kc8L1XMDofI5m1hVGRF2tA1WQeSNj9lGfp2x1PNRKHG y9uzt8slJpffUhogVIUM12EKsgbfAb2oUWwjmBm6sWfQzV0Y5UfxIyqvAG6nhlAj VWnolI0Yc49r8j9QjEtOH15L287H18HDSD2yt5MCRuTsKyjC4kH3NiEAa/Vk8Sqt oEdRzhdw4p9D5DcekgIW7elLQ82vNYkZx791230OpJnxlnvVTN0x+4fPdVxnumfR /S616RfiHfbD7yvlHqSVP8LTLZay70qC/108hjQ68nNOvqHKLmR64UIoFYY8dv9z EBOOuUNRFdOrhJfqZ4PrI/PCSxfIsaHfmSywlitP9i4kz7UOIoYxEOaX5RgV6RX0 byyxj5P5JQSgt3EON1rG09MMiP0r4sAXhLCUiXZKAChamDCRGu7ZO+YuSKddfxEu uqAV2aLRxa5ZGvSRZegR1QwkjoO3CT/ydoI5psTYCB35c4Splzz6XOnHdMTQ97dM 3jzPHVrF4UUzGeAj/BksrU2pafzEId8jWjQffjqpf6JztlDRnv1R5BRI+qNESO/N rsPDtay9gx3HlGc6G6QB =96rk -----END PGP SIGNATURE----- --SIa6NwWvRsr2U8xx--