From owner-freebsd-arm@FreeBSD.ORG Thu Mar 19 17:54:34 2009 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 983D31065678 for ; Thu, 19 Mar 2009 17:54:34 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (casselton.net [63.165.140.2]) by mx1.freebsd.org (Postfix) with ESMTP id 423538FC15 for ; Thu, 19 Mar 2009 17:54:34 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.14.3/8.14.3) with ESMTP id n2JHsVJR013912; Thu, 19 Mar 2009 12:54:31 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1237485271; bh=qQkUd8sGi7FNaJcmsNwuXWFZUOYPMydX1DNyVWhBFek=; h=Date:From:Message-Id:To:Subject:Cc:In-Reply-To; b=VfUpkzs0fEJRgn4psfRnK2evCiVO/qbQdC8p9gx7jUbu2lSGcAYMWMyJCFKmOAXUW afqKY9PftaQnkNmCenunA95HR6y23byyEH0Fj4sOqiLuhrY5tiw+0pVnfZorndLauN FdqtMOFW7CaaEb1L6cYdPsCdz+JLXBigHyZgSWc0= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n2JHsVae013911; Thu, 19 Mar 2009 12:54:31 -0500 (CDT) (envelope-from tinguely) Date: Thu, 19 Mar 2009 12:54:31 -0500 (CDT) From: Mark Tinguely Message-Id: <200903191754.n2JHsVae013911@casselton.net> To: imp@bsdimp.com, tinguely@casselton.net In-Reply-To: <20090319.104620.324381586.imp@bsdimp.com> Cc: freebsd-arm@FreeBSD.org Subject: Re: PXA255 QEM FYI X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 17:54:34 -0000 on Thu, 19 Mar 2009 10:46:20 -0600 (MDT), M. Warner Losh replied: > Mark Tinguely writes: > : A simple work around in FreeBSD would something like: > : static int > : uart_pxa_probe(device_t dev) > : +#ifdef QEMU > Should the PXA emulation be fixed in qemu? I will bring it to qemu developers' attention. If it is alright with the FreeBSD ARM group, I could ask if they would raise the UART Unit Enable (UUE) bit on the Interrupt Enable Register (IER) when activating a UART in emulation. Worst they can do is say no. > : 2) the new QEMU (qemu-0.10.0_1) compile under FreeBSD-8.0-current, incorrect > : brings a register value from the ARM enviroment to the QEMU SMC emulation > : evironment and QEMU crashes with a message: > : > : qemu: fatal: smc91c111_read: Bad reg 0:30e > : > : R00=00000000 R01=c5e1f300 R02=0000000e R03=c0a778e0 > : R04=c0ba8300 R05=c0baab00 R06=00000003 R07=00000001 > : R08=00000000 R09=00000000 R10=c0bb4540 R11=c00fbc50 > : R12=c00fbc54 R13=c00fbc44 R14=c0403950 R15=c03e8bac > : PSR=a0000113 N-C- A svc32 > : > : Notice register 2 has the correct value of 0x0e. > : > : Compiled under FreeBSD 6.4, the emulator runs fine. I will mention this > : to the QEMU people; it may be a difference in gcc3 vs gcc4. A temporary > : work around in QEMU might be a mask (0xff) of the offset variable in > : smc91c111_readb (and smc91c111_writeb ?) or removal of the ethernet card > : from the kernel configuration. > > Hmmm... That's a good question... I'd talk with them, since stuff > like that shouldn't be needed. I will send them this trace with a OS and compiler information. --Mark.