From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBzOK-0005J7-UW for qemu-devel@nongnu.org; Wed, 30 Nov 2016 02:33:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBzOG-0003pQ-0e for qemu-devel@nongnu.org; Wed, 30 Nov 2016 02:33:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35570) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cBzOF-0003ol-S1 for qemu-devel@nongnu.org; Wed, 30 Nov 2016 02:33:15 -0500 References: <20161130010151.GL2546@bill-the-cat> From: Thomas Huth Message-ID: Date: Wed, 30 Nov 2016 08:33:02 +0100 MIME-Version: 1.0 In-Reply-To: <20161130010151.GL2546@bill-the-cat> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1sPI0CqhgajkhwQ1PWJVpUKaWRcGN0gOV" 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: Tom Rini , qemu-devel@nongnu.org Cc: Magnus Damm , Aurelien Jarno This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1sPI0CqhgajkhwQ1PWJVpUKaWRcGN0gOV Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 30.11.2016 02:01, Tom Rini wrote: > Hey all, >=20 > 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 ge= t > 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 th= e > '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? =2E.. Maybe the maintainer of the board (Magnus) knows the answer here...= Thomas --1sPI0CqhgajkhwQ1PWJVpUKaWRcGN0gOV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJYPoC1AAoJEC7Z13T+cC21i5UP/iOz5APDZGIqGt3fzDlKUEMA g8Lx/CkXw9mvB/tzX6HzUg860AdPccgn2v3PTx9LR+5z2KiBuaih/9mzCSp//piL p0WQuazcF981CFT04CegAMih4xgH2ve1R2oWywdPNUcs/X7PS08wu4Yn7saLktL8 PqUfL993jinSHuM278dj0XYDbFYLDVvOmlCrY8DSzvhKFSE9MqU5K+QYqMGo8GoF hxIusC5yg22AQUqOZJ/uXMKT0mEN9nHh29NIr0m9ExZ4WMmw4tXGDEpxo7dcpLxY iNTzl6eWW+8l6320uz/s41TDRYvhQAq6P6KjeMUKAUWDwGFkNWHBRhWu2Wgg7RNp vPXGXW2EFC3HKrT/Psq2nCIn6t76ORRacqvMkcKSNn8RlziFFrspCZMf3PJtktSH 8PCj7LZfs3UTOzECgFp2nxWERXzu0i/EW7pAIoZGIHkpDLhRaN2X9vFX69fIkUdC cvp0JdDTOD1A9GE2EDHYzOd41uIvSGNItGQdip6AQTKVoje90oJp1f81DjEidqTH bxiwhsXI4tY58tw3yoHxKwkHXc10dMNcrFgjoG8nRN9ekJOl6n4nqZjxQL4JXssj dY7jXMjnud593OxaEkVwcp+WsahUKONHaVP7+BdeHvD03y968MwToAyDqPpS/SdZ MqXSn29UUgQnRZvGfdSu =SZv1 -----END PGP SIGNATURE----- --1sPI0CqhgajkhwQ1PWJVpUKaWRcGN0gOV--