Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFHKb-00027p-5c for qemu-devel@nongnu.org; Sun, 29 Jul 2007 18:33:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFHKa-00027d-J0 for qemu-devel@nongnu.org; Sun, 29 Jul 2007 18:33:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFHKa-00027a-FZ for qemu-devel@nongnu.org; Sun, 29 Jul 2007 18:33:44 -0400 Received: from gwyn.kn-bremen.de ([212.63.36.242]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IFHKZ-0006gE-Rr for qemu-devel@nongnu.org; Sun, 29 Jul 2007 18:33:44 -0400 From: Juergen Lock Date: Mon, 30 Jul 2007 00:30:23 +0200 Subject: Re: [Qemu-devel] qemu-system-arm -M akita/terrier - which roms work? (more patches... :) Message-ID: <20070729223022.GA49435@saturn.kn-bremen.de> References: <20070724011115.GA44643@saturn.kn-bremen.de> <200707242025.l6OKPSnJ010124@saturn.kn-bremen.de> <20070726213747.GA23871@saturn.kn-bremen.de> <20070728001237.GA17097@saturn.kn-bremen.de> <20070729011535.GA24527@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: andrzej zaborowski Cc: qemu-devel@nongnu.org --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Jul 29, 2007 at 03:46:37AM +0200, andrzej zaborowski wrote: > Hi, Hi, > > On 29/07/07, Juergen Lock wrote: > > Anyway, boot now fails with: > > qemu: fatal: pxa2xx_gpio_read: Bad offset 0x1c > > i.e. it is apparently expecting something there that is not yet > > Oh, it's Sharp's poor code :) the GPSR (0x1c) and GPCR registers are > write-only. I think it's safe to assume that the real hardware returns > the last written value in these addresses when reading, but in the > documentation they are write-only. Yeah it was crashing in static int force_8bit_access_check_and_set in linux/drivers/pcmcia/cistpl.c, apparently while doing an GPSR(GPIO54_nPCE_2) = GPSR(GPIO54_nPCE_2); Patched that (patch-pxa-gpsr, attached), and now the boot seems to be hanging somewhere in userland... > > > emulated. And when i boot with init=/bin/sh I can't do much because > > the keymap seems to be wrong or the fn key otherwise gets lost. > > (similar effect with the poky image btw, I wonder is this a qemu > > problem or is just noone using the terminal there? :) > > The problem here is the 2.6 kernel's default keymap and the zaurusd > daemon used in poky and openzaurus. They use this strange keymap and > qemu tries to account for that. I had first set a keymap in qemu that > matched the console keymap but later when I started using X it was > unusable and other users also didn't like that so I remapped all the > keys, but the remapping is not perfect even now, because the real > Zaurus keymap is too far from a normal pc keyboard (and I don't have a > physical one). Yeah it has an fn key that is used to generate most special characters... But even shift didn't work on the 2.4 kernel's console (and as I said fn apparently got lost too), and with the poky rxvt it seemed like anything that uses fn caused an error (cursor flashes quickly) instead of sending the corresponding character. > > Thanks for the patches, I will have a look tomorrow (hopefully). Thanx for committing, :) Juergen --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-pxa-gpsr Index: qemu/hw/pxa2xx_gpio.c @@ -152,6 +152,9 @@ case GPDR: /* GPIO Pin-Direction registers */ return s->dir[bank]; + case GPSR: /* GPIO Pin-Output Set registers */ + return s->olevel[bank]; + case GRER: /* GPIO Rising-Edge Detect Enable registers */ return s->rising[bank]; --3MwIy2ne0vdjdPXF--