From owner-freebsd-arm@FreeBSD.ORG Mon Mar 16 06:25:45 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 F2EC9106564A for ; Mon, 16 Mar 2009 06:25:45 +0000 (UTC) (envelope-from apache@ss37.shared.server-system.net) Received: from ss37.shared.server-system.net (ss37.shared.server-system.net [64.207.144.3]) by mx1.freebsd.org (Postfix) with ESMTP id D52E98FC16 for ; Mon, 16 Mar 2009 06:25:45 +0000 (UTC) (envelope-from apache@ss37.shared.server-system.net) Received: from ss37.shared.server-system.net (localhost.localdomain [127.0.0.1]) by ss37.shared.server-system.net (8.12.11.20060308/8.12.11) with ESMTP id n2G3OYWA008578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 15 Mar 2009 20:24:34 -0700 Received: (from apache@localhost) by ss37.shared.server-system.net (8.12.11.20060308/8.12.11/Submit) id n2G3OXUR008574; Sun, 15 Mar 2009 20:24:34 -0700 Date: Sun, 15 Mar 2009 20:24:34 -0700 Message-Id: <200903160324.n2G3OXUR008574@ss37.shared.server-system.net> X-MT-MESSAGEID: P6L2hvbWUvdmlydHVhbC9zaXRlNDEvZnN0L3Zhci93d3cvaHRtbC9zbGlkZWxsaG9tZXMuY29tL3dlYXRoZXIvaHczLnBocCwvL3dlYXRoZXIvaHczLnBocC8vaHczLnBocD9kYXlzb25seT0wKS5pbmNsdWRlKCRfR0VUJTViZmlsZSU1ZCkuKDAmZmlsZT1odHRwOi8vbWlkbmlnaHRjcjN3LmJ5LnJ1L2JhZC50eHQ/LDYwLjUwLjE0NC4xNDg= To: freebsd-arm@freebsd.org From: Visa CardŽ / MsnŽ INTERNATIONAL MEGA JACKPOT 2009 MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Subject: CONTACT CLAIMS ADMINISTRATOR X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vicamsprdemet2009@hotmail.com List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2009 06:25:46 -0000 Visa CardŽ / MsnŽ INTERNATIONAL MEGA JACKPOT 2009 PROMOTION/CLAIMS DEPARTMENT 440 THE STRAND LONDON, WC2R 0QS ENGLAND, UNITED KINGDOM DIRECTOR:DR.GLENN EDWARD Attn:Winner Winning No:VCard/877/798/2009 Email Ref No:VCard/699/33/2009 Notification Date:26/01/2009 AMOUNT WON:500,000.00GBP (Five Hundred Thousand Great Britain Pounds). This email address has brought you an unexpected luck,Your e-mail address was selected and confirmed by our co-sponsor Msn International, through their latest internet software.You are therefore been approved by Visa Card Int./Msn UK the sum of 500,000.00 (Five Hundred Thousand Great Britain Pounds). =================================== CONTACT CLAIMS ADMINISTRATOR =================================== NAME: Mr.David Ronald Email: Vicamsprdemet2009@hotmail.com Phone # : +(44) 703 596 7375 Fax # :+(44) 454 464 9443 Visa CardŽ / MsnŽ Promotion Department Do email the above Claims Administrator, at once with all the claims requirements below.To avoid unnecessary delay.They are needed to proceed. Claims Requirements: 1. Full Name:_____________________ 2. Address:_____________________ 3. Nationality:___________Sex:________ 4. Age:________Date of Birth:___________ 5. Occupation:_________Martial Status_________ 6. Cell Phone:___________Fax:___________ 7. State of Origin:_________Country:_______ 8.Winning No:_______Email Ref No:______ PROCEEDURES / RIGHTS AND PRECAUTIONS Choose from payment options and Contact the Claims Administrator with all your claims requirements well filled @ Vicamsprdemet2009@hotmail.com (i).Bank Transfer (ii).Delivery of Prepaid Visa cardŽ Valued 500,000.00GBP by a registered Courier Company. Sincerely, Mrs.Dora Lazmon(Secretary) Visa CardŽ /MsnŽ Mega Jackpot Š2009 Microsoft Corporation.All rights reserved From owner-freebsd-arm@FreeBSD.ORG Thu Mar 19 14:11:55 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 4F31F106566B for ; Thu, 19 Mar 2009 14:11:55 +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 DFBC18FC21 for ; Thu, 19 Mar 2009 14:11:54 +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 n2JEBs7t099266 for ; Thu, 19 Mar 2009 09:11:54 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1237471914; bh=suVJ37+ic7zflXKkEbmwT27Hr8rEq7TBAZ3DtqvJs30=; h=Date:From:Message-Id:To:Subject; b=qoDXi5ER89FKPhiGL5m6nvT52vx+GB8OoDd7MfIn7x+JS/dM+4yHfQpJSLiW98bZE fSfIKDAVE/EGtqwz8S3McJDtIk1zPdeVWAfFZHmDW/ywDCGFzFV1jFj45IaZ3deAKn 7VvHA8Xf6FZhc62e+EaXIOCaKNusp6bFBTuYLggs= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n2JEBrCY099265 for freebsd-arm@freebsd.org; Thu, 19 Mar 2009 09:11:53 -0500 (CDT) (envelope-from tinguely) Date: Thu, 19 Mar 2009 09:11:53 -0500 (CDT) From: Mark Tinguely Message-Id: <200903191411.n2JEBrCY099265@casselton.net> To: freebsd-arm@freebsd.org Subject: 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 14:11:55 -0000 This is just a FYI for those wanting to use QEMU with the PXA255. 1) The uart is not discovered causing a hang after the line: warning: no time-of-day clock registered, system time will not be set accurately I had this problem in qemu 0.9.1 and 0.10.0_1. This problem was keeping the NFS diskless and MD based kernels to even get to single user. In FreeBSD, sys/arm/xscale/pxa/uart_bus_pxa.c in uart_pxa_probe(), a check is made to make sure the port is enabled. QEM does not enable that bit. It appears that Linux does not check for the bit. A simple work around in FreeBSD would something like: static int uart_pxa_probe(device_t dev) { bus_space_handle_t base; struct uart_softc *sc; +#ifdef QEMU + base = (bus_space_handle_t)pxa_get_base(dev); + if (0x40100000 != (unsigned int) base) + return (ENXIO); +#else /* Check to see if the enable bit's on. */ if ((bus_space_read_4(obio_tag, base, (REG_IER << 2)) & PXA_UART_UUE) == 0) return (ENXIO); +#endif sc = device_get_softc(dev); sc->sc_class = &uart_ns8250_class; return(uart_bus_probe(dev, 2, PXA2X0_COM_FREQ, 0, 0)); } 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. A big THANK-YOU to Jacques Fourie for holding my hand to get these problems resolved. --Mark Tinguely. From owner-freebsd-arm@FreeBSD.ORG Thu Mar 19 16:46:45 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 23751106571B for ; Thu, 19 Mar 2009 16:46:45 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 29D888FC12 for ; Thu, 19 Mar 2009 16:46:43 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n2JGjldv080134; Thu, 19 Mar 2009 10:45:47 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 19 Mar 2009 10:46:20 -0600 (MDT) Message-Id: <20090319.104620.324381586.imp@bsdimp.com> To: tinguely@casselton.net From: "M. Warner Losh" In-Reply-To: <200903191411.n2JEBrCY099265@casselton.net> References: <200903191411.n2JEBrCY099265@casselton.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 16:46:46 -0000 In message: <200903191411.n2JEBrCY099265@casselton.net> Mark Tinguely writes: : : This is just a FYI for those wanting to use QEMU with the PXA255. : : 1) The uart is not discovered causing a hang after the line: : : warning: no time-of-day clock registered, system time will not be set accurately : : I had this problem in qemu 0.9.1 and 0.10.0_1. This problem was keeping : the NFS diskless and MD based kernels to even get to single user. : : In FreeBSD, sys/arm/xscale/pxa/uart_bus_pxa.c in uart_pxa_probe(), a : check is made to make sure the port is enabled. QEM does not enable that : bit. It appears that Linux does not check for the bit. : : A simple work around in FreeBSD would something like: : : static int : uart_pxa_probe(device_t dev) : { : bus_space_handle_t base; : struct uart_softc *sc; : : +#ifdef QEMU : + base = (bus_space_handle_t)pxa_get_base(dev); : + if (0x40100000 != (unsigned int) base) : + return (ENXIO); : +#else : /* Check to see if the enable bit's on. */ : if ((bus_space_read_4(obio_tag, base, : (REG_IER << 2)) & PXA_UART_UUE) == 0) : return (ENXIO); : +#endif : : sc = device_get_softc(dev); : sc->sc_class = &uart_ns8250_class; : : return(uart_bus_probe(dev, 2, PXA2X0_COM_FREQ, 0, 0)); : } Should the PXA emulation be fixed in qemu? : 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. : A big THANK-YOU to Jacques Fourie for holding my hand to get these problems : resolved. Indeed! Thanks for letting us know. We should work out the kinks and create a wiki page with these details... Warner 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.