From owner-freebsd-arm@FreeBSD.ORG Mon Sep 17 14:33:30 2007 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 0399516A41B for ; Mon, 17 Sep 2007 14:33:30 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 76EAA13C442 for ; Mon, 17 Sep 2007 14:33:29 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 6E19F15459; Mon, 17 Sep 2007 17:33:24 +0300 (EEST) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 56609-02; Mon, 17 Sep 2007 17:33:19 +0300 (EEST) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 4B4D4155B1; Mon, 17 Sep 2007 17:33:19 +0300 (EEST) Message-ID: <46EE902E.60600@bulinfo.net> Date: Mon, 17 Sep 2007 17:33:18 +0300 From: Krassimir Slavchev User-Agent: Thunderbird 2.0.0.6 (X11/20070913) MIME-Version: 1.0 To: ticso@cicely.de References: <46B9C68E.2010000@bulinfo.net> <20070808.074028.-749249084.imp@bsdimp.com> <46B9CAD8.4040103@bulinfo.net> <20070808144152.GM41893@cicely12.cicely.de> <46B9DD23.70608@bulinfo.net> <20070808154756.GN41893@cicely12.cicely.de> <46B9EA90.3050508@bulinfo.net> <20070808162011.GP41893@cicely12.cicely.de> <46BA0A40.8030208@bulinfo.net> <20070808210607.GR41893@cicely12.cicely.de> In-Reply-To: <20070808210607.GR41893@cicely12.cicely.de> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: CENTIPAD boot 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: Mon, 17 Sep 2007 14:33:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I have problems to get the link speed from Test register (25). After link negotiation complete bit 1 is always set. So I use bit 13 in BMCR register. The code in emac.c: ... update = pEmac->EMAC_CFG & ~(AT91C_EMAC_SPD | AT91C_EMAC_FD); printf("emac: link"); while (!(AT91F_MII_ReadPhy(pEmac, phyaddr, MII_BMSR_REG) & MII_BMSR_NEG)) continue; stat2 = AT91F_MII_ReadPhy(pEmac, phyaddr, MII_BMCR_REG); if(stat2 & MII_BMCR_SPD) { printf(" 100TX"); update |= AT91C_EMAC_SPD; } else printf(" 10TX"); if(stat2 & MII_BMCR_FDX) { printf(" FDX"); update |= AT91C_EMAC_FD; } printf("\n"); emac.h: #define MII_BMCR_REG 0x0 #define MII_BMCR_FDX 0x0100 #define MII_BMCR_SPD 0x2000 #define MII_BMSR_REG 0x1 #define MII_BMSR_NEG 0x0020 I have tested this against fxp adapter with crossover cable and there is difference when fxp is configured with: 'ifconfig fxp0 media auto' and 'ifconfig fxp0 media 100BaseTX mediaopt full-duplex'. When fxp is configured with 'mediaopt full-duplex' the duplex mode is not detected. Bernd Walter wrote: > On Wed, Aug 08, 2007 at 09:24:00PM +0300, Krassimir Slavchev wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> >>> I would assume a RTL8201BL or RTL8201C? >>> I have code for the RTL8201BL, which I use with the AT91SAM7X256, but >>> it is likely not correct, since I tried a 10BASET link once and it >>> failed, but I just took the original code without modification though. >>> Anyway - Realtek has datasheets available online. >> RTL8201BL > > Realtek did something special it seems. > You get the duplex state in the BMCR bit 8 (Register 0). > 1 = full, 0 = half > The speed is in the Test register (25). > Bit 0: 1 = 100Mbit link > Bit 1: 1 = 10MBit link > Bit 0/1 both 0 no link > > You might want to loop over BMSR (Register 1) bit 3 as well, since a > 1 means that auto negotiation has finished. > But it might be Ok without it, because there should be enough delays > already. > In a real world scenario, e.g. in the kernel or running embedded, > you'll have to poll the status regulary, to update the MAC accordingly. > But it's not required in this case, since the link partner shouldn't > change during booting. > > Let me know if you have success with this, since I'll have to update > my AT91SAM7X256 code as well. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFG7pAuxJBWvpalMpkRAgouAJ45QR74U4ZPTLabHDg+xVf4UpVEWQCfXCRf 21Nd2LZo+QHyNtV9XhXsisE= =Ssko -----END PGP SIGNATURE----- From owner-freebsd-arm@FreeBSD.ORG Mon Sep 17 15:19:41 2007 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 945C716A419 for ; Mon, 17 Sep 2007 15:19:41 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 3CFF713C483 for ; Mon, 17 Sep 2007 15:19:41 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l8HEwGg0077846; Mon, 17 Sep 2007 16:58:16 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l8HEwAIZ037740 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Sep 2007 16:58:10 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l8HEwAFV018290; Mon, 17 Sep 2007 16:58:10 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l8HEwAPC018289; Mon, 17 Sep 2007 16:58:10 +0200 (CEST) (envelope-from ticso) Date: Mon, 17 Sep 2007 16:58:09 +0200 From: Bernd Walter To: Krassimir Slavchev Message-ID: <20070917145809.GM97306@cicely12.cicely.de> References: <20070808.074028.-749249084.imp@bsdimp.com> <46B9CAD8.4040103@bulinfo.net> <20070808144152.GM41893@cicely12.cicely.de> <46B9DD23.70608@bulinfo.net> <20070808154756.GN41893@cicely12.cicely.de> <46B9EA90.3050508@bulinfo.net> <20070808162011.GP41893@cicely12.cicely.de> <46BA0A40.8030208@bulinfo.net> <20070808210607.GR41893@cicely12.cicely.de> <46EE902E.60600@bulinfo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46EE902E.60600@bulinfo.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: CENTIPAD boot X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2007 15:19:41 -0000 On Mon, Sep 17, 2007 at 05:33:18PM +0300, Krassimir Slavchev wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > I have problems to get the link speed from Test register (25). After > link negotiation complete bit 1 is always set. So I use bit 13 in BMCR > register. I will have to check this with with the datasheet. But Realtek publishes the datasheet on their website, so you can read it yourself. Unfortunately Relatek datasheets are hard to understand though, at least I always have difficulties. > The code in emac.c: > ... > update = pEmac->EMAC_CFG & ~(AT91C_EMAC_SPD | AT91C_EMAC_FD); > printf("emac: link"); > while (!(AT91F_MII_ReadPhy(pEmac, phyaddr, MII_BMSR_REG) & > MII_BMSR_NEG)) > continue; > stat2 = AT91F_MII_ReadPhy(pEmac, phyaddr, MII_BMCR_REG); > if(stat2 & MII_BMCR_SPD) { > printf(" 100TX"); > update |= AT91C_EMAC_SPD; > } > else > printf(" 10TX"); > if(stat2 & MII_BMCR_FDX) { > printf(" FDX"); > update |= AT91C_EMAC_FD; > } > printf("\n"); > > emac.h: > #define MII_BMCR_REG 0x0 > #define MII_BMCR_FDX 0x0100 > #define MII_BMCR_SPD 0x2000 > #define MII_BMSR_REG 0x1 > #define MII_BMSR_NEG 0x0020 > > > I have tested this against fxp adapter with crossover cable and there is > difference when fxp is configured with: > 'ifconfig fxp0 media auto' and 'ifconfig fxp0 media 100BaseTX mediaopt > full-duplex'. When fxp is configured with 'mediaopt full-duplex' the > duplex mode is not detected. That's expected. NWAY-Autodetection only works if both sides do it. Some OS do fixed settings by reducing the options to only one left, but still do NWAY, FreeBSD disables NWAY completely. Maybe there are expections with some drivers under FreeBSD. Most switches disable NWAY for fixed setting as well. Without the other side doing NWAY many PHY fall back to try and false, which works well for link speed, but not for duplex, so usually they do half-duplex to be compliant with repeater hubs. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 16:42:08 2007 Return-Path: Delivered-To: arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 028CD16A468; Tue, 18 Sep 2007 16:42:08 +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 9CEE313C48E; Tue, 18 Sep 2007 16:42:07 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.13.4) with ESMTP id l8IGeYYL029266; Tue, 18 Sep 2007 10:40:34 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 18 Sep 2007 10:40:33 -0600 (MDT) Message-Id: <20070918.104033.71118330.imp@bsdimp.com> To: marius.nuennerich@gmx.de, arm@FreeBSD.org From: Warner Losh In-Reply-To: <20070918171601.66837464@sol.hackerzberg.local> References: <20070918115334.569521c1@sol.hackerzberg.local> <20070918.075431.146407018.imp@bsdimp.com> <20070918171601.66837464@sol.hackerzberg.local> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 18 Sep 2007 10:40:34 -0600 (MDT) Cc: freebsd-embedded@FreeBSD.org Subject: Re: Porting FreeBSD to the Neo1973 (arm920t) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: arm@FreeBSD.org List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2007 16:42:08 -0000 P.S. I'd like move the rest of this discussion to arm@. From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 16:59:42 2007 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 D89EC16A417 for ; Tue, 18 Sep 2007 16:59:42 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by mx1.freebsd.org (Postfix) with ESMTP id 9DA8513C457 for ; Tue, 18 Sep 2007 16:59:42 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 43E2422489B; Tue, 18 Sep 2007 18:35:05 +0200 (CEST) Received: from fw.reifenberger.com (ppp-82-135-4-73.dynamic.mnet-online.de [82.135.4.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTP id 345D0903BF; Tue, 18 Sep 2007 18:35:05 +0200 (CEST) Received: from localhost (mike@localhost) by fw.reifenberger.com (8.13.8/8.13.8/Submit) with ESMTP id l8IGZ49Z024552; Tue, 18 Sep 2007 18:35:04 +0200 (CEST) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Tue, 18 Sep 2007 18:35:04 +0200 (CEST) From: Michael Reifenberger To: freebsd-arm@freebsd.org Message-ID: <20070918182508.V24397@fw.reifenberger.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cognet@freebsd.org Subject: 64bit integer problem? 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: Tue, 18 Sep 2007 16:59:42 -0000 Hi, on my AVILA-arm board I'm unable to compile lang/perl On of the problems seems to be related to long long handling: The following program: ############################## #include #include int main() { long long q = 12345678901LL; printf("%lld\n", q); } ############################## gives the output: -2315945094416433150 Is there a endian issue? Bye/2 --- Michael Reifenberger Michael@Reifenberger.com http://www.Reifenberger.com From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 17:17:44 2007 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 4C8CC16A419; Tue, 18 Sep 2007 17:17:44 +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 101A213C458; Tue, 18 Sep 2007 17:17:43 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.13.4) with ESMTP id l8IHGvuF029649; Tue, 18 Sep 2007 11:16:57 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 18 Sep 2007 11:16:56 -0600 (MDT) Message-Id: <20070918.111656.28814048.imp@bsdimp.com> To: mike@Reifenberger.com From: Warner Losh In-Reply-To: <20070918182508.V24397@fw.reifenberger.com> References: <20070918182508.V24397@fw.reifenberger.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 18 Sep 2007 11:16:57 -0600 (MDT) Cc: freebsd-arm@freebsd.org, cognet@freebsd.org Subject: Re: 64bit integer problem? 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: Tue, 18 Sep 2007 17:17:44 -0000 From: Michael Reifenberger Subject: 64bit integer problem? Date: Tue, 18 Sep 2007 18:35:04 +0200 (CEST) > Hi, > > on my AVILA-arm board I'm unable to compile lang/perl > > On of the problems seems to be related to long long handling: > > The following program: > ############################## > #include > #include > int main() { > long long q = 12345678901LL; > printf("%lld\n", q); > } > ############################## > > gives the output: > -2315945094416433150 > > Is there a endian issue? 12345678901 is 0x2DFDC1C35 2315945094416433151 is 0x2023E3CAFFFFFFFF -2315945094416433150 is therefore 0xdfdc1c3500000000 which the lower 32bits of 'q' shifted over 32 bits. Maybe this is an endian issue, since I don't see it on my AT91RM9200 based boards (which are little endian). Warner From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 17:31:20 2007 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 6C42016A41B for ; Tue, 18 Sep 2007 17:31:20 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from smtp123.sbc.mail.re3.yahoo.com (smtp123.sbc.mail.re3.yahoo.com [66.196.96.96]) by mx1.freebsd.org (Postfix) with SMTP id 13CC413C428 for ; Tue, 18 Sep 2007 17:31:19 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: (qmail 20468 invoked from network); 18 Sep 2007 17:04:39 -0000 Received: from unknown (HELO trantor.home) (nwhitehorn@att.net@76.204.101.254 with plain) by smtp123.sbc.mail.re3.yahoo.com with SMTP; 18 Sep 2007 17:04:38 -0000 X-YMail-OSG: jMrKn0cVM1nloKnamPlu5z2EuBJUXj3UyZdIMYQSssRwif6TSREB0DUn18KIabUlDSnrKn9qOD4.qUTrVT9qcqroag-- Message-ID: <46F0064C.3080702@uchicago.edu> Date: Tue, 18 Sep 2007 12:09:32 -0500 From: Nathan Whitehorn User-Agent: Thunderbird 2.0.0.6 (X11/20070819) MIME-Version: 1.0 To: Michael Reifenberger References: <20070918182508.V24397@fw.reifenberger.com> In-Reply-To: <20070918182508.V24397@fw.reifenberger.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: 64bit integer problem? 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: Tue, 18 Sep 2007 17:31:20 -0000 Did you remember CFLAGS=-mbig-endian in /etc/make.conf? GCC doesn't get configured to produce big-endian code by default. -Nathan Michael Reifenberger wrote: > Hi, > > on my AVILA-arm board I'm unable to compile lang/perl > > On of the problems seems to be related to long long handling: > > The following program: > ############################## > #include > #include > int main() { > long long q = 12345678901LL; > printf("%lld\n", q); > } > ############################## > > gives the output: > -2315945094416433150 > > Is there a endian issue? > > Bye/2 > --- > Michael Reifenberger > Michael@Reifenberger.com > http://www.Reifenberger.com > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 17:38:29 2007 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 C9A7616A417 for ; Tue, 18 Sep 2007 17:38:29 +0000 (UTC) (envelope-from marius.nuennerich@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 459C613C48A for ; Tue, 18 Sep 2007 17:38:29 +0000 (UTC) (envelope-from marius.nuennerich@gmx.de) Received: (qmail invoked by alias); 18 Sep 2007 17:11:47 -0000 Received: from f049187105.adsl.alicedsl.de (EHLO sol.hackerzberg.local) [78.49.187.105] by mail.gmx.net (mp027) with SMTP; 18 Sep 2007 19:11:47 +0200 X-Authenticated: #5707313 X-Provags-ID: V01U2FsdGVkX1/CvJ8HDu/C6NX64cxT42FwI5Z+knh8P57WdBKRo7 rXldK1SyC0AW0u Date: Tue, 18 Sep 2007 19:11:57 +0200 From: Marius Nuennerich To: Warner Losh Message-ID: <20070918191157.3b989c90@sol.hackerzberg.local> In-Reply-To: <20070918.100037.74721531.imp@bsdimp.com> References: <20070918115334.569521c1@sol.hackerzberg.local> <20070918.075431.146407018.imp@bsdimp.com> <20070918171601.66837464@sol.hackerzberg.local> <20070918.100037.74721531.imp@bsdimp.com> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-arm@FreeBSD.ORG Subject: Re: Porting FreeBSD to the Neo1973 (arm920t) 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: Tue, 18 Sep 2007 17:38:29 -0000 On Tue, 18 Sep 2007 10:00:37 -0600 (MDT) Warner Losh wrote: > From: Marius Nuennerich > Subject: Re: Porting FreeBSD to the Neo1973 (arm920t) > Date: Tue, 18 Sep 2007 17:16:01 +0200 > > > On Tue, 18 Sep 2007 07:54:31 -0600 (MDT) > > "M. Warner Losh" wrote: > > > > > In message: <20070918115334.569521c1@sol.hackerzberg.local> > > > Marius Nuennerich writes: > > > : Hi all, > > > : > > > : Andrew Turner and me are currently exploring what to do about getting > > > : FreeBSD to run on the Neo1973. Andrew put up some first instructions > > > : here: http://wiki.openmoko.org/wiki/FreeBSD > > > : > > > : Much information about the hardware can be found in that wiki. We are > > > : currently stuck after loading the kernel because there is no > > > : framebuffer driver (yet) and the uart is not working. > > > : > > > : I'm using qemu right now because I have no hardware yet. > > > > > > Are there instructions for that posted somewhere. Last time I tried > > > to get it going I hit all kinds of snags. > > > > Just checkout https://svn.openmoko.org/trunk/src/host/qemu-neo1973 with > > subversion and do this: > > http://wiki.openmoko.org/wiki/Talk:OpenMoko_under_QEMU#FreeBSD_and_Qemu... > > > > Then run openmoko/download.sh and openmoko/flash.sh if you have all the > > dependencies it should work. > > I'll take a look at these... I think there might be some of this > integrated into the qemu-devel port, but maybe I'm misremebering the > commit messages. I don't know anything about this. > > > : Any idea what to do next? How to get the uart working? And how to tell > > > : the kernel to use it as console? > > > > > > Chances are very good that you'll need more than just the uart. The > > > uart for the samsung devices will need a driver written for it. > > > You'll also need to initialize memory in some way that's unique for > > > this SoC > > > > Uh, I thought that this could happen. I have no experience with drivers > > like this. But at least it's documented in the User Manual from > > Samsung. > > Yes. There's also a console driver (but not serial port driver) in > NetBSD right now for at least earlier versions of the Samsung part's > uart. Do you have a link for cvsweb for this driver? Do I understand it correctly that, if integrated into FreeBSD, we could at least see the kernel output? > > > : Many Thanks > > > : Marius > > > : > > > : P.S. Should I have posted this to freebsd-arm? > > > > > > This is radically cool! > > > > > > I'd love to see FreeBSD going on this phone, and would help out as > > > best I can. I was going to buy one, but my cash flow won't allow it > > > until I can sell some real estate :-(. > > > > Hehe, similar problem here. I wait for the next hardware version as one > > should be able to use gps without a linux blob. > > Maybe I should wait for it as well :-) > > btw, the project offers p4 services for people that are doing cool > work. This would qualify. The arm-devel p4 branch has many items > that are being polished for integration into the tree, and this seems > like a good place to do the neo work. I did all my atmel work on a p4 > branch... So far there has not been much work on the FreeBSD kernel side but it's a good idea for when a patch grows :) Maybe there are other ideas what to try? Afaik the only Options for communicating with a neo in qemu are: 1. uart serial emulation 2. usb CDC ACM http://wiki.openmoko.org/wiki/CDC_ACM but I haven't seen if this is emulated and I don't know if FreeBSD has a driver for this. 3. Framebuffer support, I don't have any idea what's the status of this in FreeBSD. AND there will be a major change in the next hardware version (use of another chip to gain hw-acceleration) so it's not necessary to invest much time in getting the current thing to work. Kind regards Marius From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 21:39:18 2007 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 9CD7616A418 for ; Tue, 18 Sep 2007 21:39:18 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from mta02.xtra.co.nz (mta02.xtra.co.nz [210.54.141.253]) by mx1.freebsd.org (Postfix) with ESMTP id 3BFCE13C4EC for ; Tue, 18 Sep 2007 21:39:17 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from fep03.xtra.co.nz ([172.23.12.31]) by mta01.xtra.co.nz with ESMTP id <20070918210526.DOLO3767.mta01.xtra.co.nz@fep03.xtra.co.nz>; Wed, 19 Sep 2007 09:05:26 +1200 Received: from serv.int.fubar.geek.nz ([219.89.91.5]) by fep03.xtra.co.nz with ESMTP id <20070918210525.NYDS27104.fep03.xtra.co.nz@serv.int.fubar.geek.nz>; Wed, 19 Sep 2007 09:05:25 +1200 Date: Wed, 19 Sep 2007 09:05:24 +1200 From: Andrew Turner To: "M. Warner Losh" Message-ID: <20070919090524.4eede8e3@hermies.int.fubar.geek.nz> In-Reply-To: <20070918.075431.146407018.imp@bsdimp.com> References: <20070918115334.569521c1@sol.hackerzberg.local> <20070918.075431.146407018.imp@bsdimp.com> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.ORG, marius.nuennerich@gmx.net Subject: Re: Porting FreeBSD to the Neo1973 (arm920t) 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: Tue, 18 Sep 2007 21:39:18 -0000 On Tue, 18 Sep 2007 07:54:31 -0600 (MDT) "M. Warner Losh" wrote: > Are there instructions for that posted somewhere. Last time I tried > to get it going I hit all kinds of snags. I used: $ svn checkout https://svn.openmoko.org/trunk/src/host/qemu-neo1973 $ cd qemu-neo1973 $ ./configure --target-list=arm-softmmu $ gmake Lines 49 and 50 of gnokiigsm/device.h will need to be commented out. If you are running -CURRENT you will need to install the lang/gcc34 port and add "--cc=/usr/local/bin/gcc34" to the end of the configure line. > > : Any idea what to do next? How to get the uart working? And how to > tell : the kernel to use it as console? > > Chances are very good that you'll need more than just the uart. The > uart for the samsung devices will need a driver written for it. > You'll also need to initialize memory in some way that's unique for > this SoC Currently the processor specific code is just stub's to get the kernel to compile. The problem is getting information out of the emulator without a working UART or framebuffer. > > : Many Thanks > : Marius > : > : P.S. Should I have posted this to freebsd-arm? > > This is radically cool! > > I'd love to see FreeBSD going on this phone, and would help out as > best I can. I was going to buy one, but my cash flow won't allow it > until I can sell some real estate :-(. Wait until the next version is out, I have a current release phone that can be used to test FreeBSD on. Andrew -- Andrew Turner http://fubar.geek.nz/blog/ From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 21:53:54 2007 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 5719916A419 for ; Tue, 18 Sep 2007 21:53:54 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by mx1.freebsd.org (Postfix) with ESMTP id 155D413C428 for ; Tue, 18 Sep 2007 21:53:54 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id B1C80223CB2; Tue, 18 Sep 2007 23:53:52 +0200 (CEST) Received: from fw.reifenberger.com (ppp-82-135-4-73.dynamic.mnet-online.de [82.135.4.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTP id A3614903A2; Tue, 18 Sep 2007 23:53:52 +0200 (CEST) Received: from localhost (mike@localhost) by fw.reifenberger.com (8.13.8/8.13.8/Submit) with ESMTP id l8ILrpjf025653; Tue, 18 Sep 2007 23:53:51 +0200 (CEST) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Tue, 18 Sep 2007 23:53:51 +0200 (CEST) From: Michael Reifenberger To: Nathan Whitehorn In-Reply-To: <46F0064C.3080702@uchicago.edu> Message-ID: <20070918220327.V25238@fw.reifenberger.com> References: <20070918182508.V24397@fw.reifenberger.com> <46F0064C.3080702@uchicago.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-arm@freebsd.org, tobez@tobez.org Subject: Re: 64bit integer problem? 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: Tue, 18 Sep 2007 21:53:54 -0000 On Tue, 18 Sep 2007, Nathan Whitehorn wrote: ... > Did you remember CFLAGS=-mbig-endian in /etc/make.conf? GCC doesn't get > configured to produce big-endian code by default. > -Nathan Yes. Thats was it. Thanks! BTW: Why isn't it the default for big-endian architectures? Bye/2 --- Michael Reifenberger Michael@Reifenberger.com http://www.Reifenberger.com From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 22:25:21 2007 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 3207016A41A for ; Tue, 18 Sep 2007 22:25:21 +0000 (UTC) (envelope-from nb@synthcom.com) Received: from synthcom.com (static-71-245-103-2.ptldor.fios.verizon.net [71.245.103.2]) by mx1.freebsd.org (Postfix) with ESMTP id EBD4913C46B for ; Tue, 18 Sep 2007 22:25:20 +0000 (UTC) (envelope-from nb@synthcom.com) Received: from static-71-245-103-2.ptldor.fios.verizon.net (static-71-245-103-2.ptldor.fios.verizon.net [71.245.103.2]) by synthcom.com (8.13.8/8.13.8) with ESMTP id l8IMEgWx051731 for ; Tue, 18 Sep 2007 15:14:42 -0700 (PDT) (envelope-from nb@synthcom.com) Date: Tue, 18 Sep 2007 15:14:42 -0700 (PDT) From: Neil Bradley cc: freebsd-arm@freebsd.org In-Reply-To: <20070918220327.V25238@fw.reifenberger.com> Message-ID: <20070918151418.Y51724@synthcom.com> References: <20070918182508.V24397@fw.reifenberger.com> <46F0064C.3080702@uchicago.edu> <20070918220327.V25238@fw.reifenberger.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (synthcom.com [71.245.103.2]); Tue, 18 Sep 2007 15:14:42 -0700 (PDT) Subject: Re: 64bit integer problem? 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: Tue, 18 Sep 2007 22:25:21 -0000 >> Did you remember CFLAGS=-mbig-endian in /etc/make.conf? GCC doesn't get >> configured to produce big-endian code by default. >> -Nathan > Yes. Thats was it. Thanks! > BTW: Why isn't it the default for big-endian architectures? ARM Isn't a big endian architecture - it's little endian by default. -->Neil ---------------------------------------------------------------------------- C. Neil Bradley - KE7IXP - The one eyed man in the land of the blind is not king. He's a prisoner. From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 22:32:46 2007 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 B17FF16A46C for ; Tue, 18 Sep 2007 22:32:46 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (dong.ci0.org [IPv6:2001:7a8:2066:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id CFC0713C491 for ; Tue, 18 Sep 2007 22:32:45 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.8/8.13.8) with ESMTP id l8IND18q091078; Wed, 19 Sep 2007 01:13:01 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.1/8.13.8/Submit) id l8IND0f6091076; Wed, 19 Sep 2007 01:13:00 +0200 (CEST) (envelope-from mlfbsd) Date: Wed, 19 Sep 2007 01:13:00 +0200 From: Olivier Houchard To: Michael Reifenberger Message-ID: <20070918231300.GA91019@ci0.org> References: <20070918182508.V24397@fw.reifenberger.com> <46F0064C.3080702@uchicago.edu> <20070918220327.V25238@fw.reifenberger.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070918220327.V25238@fw.reifenberger.com> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org, tobez@tobez.org Subject: Re: 64bit integer problem? 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: Tue, 18 Sep 2007 22:32:46 -0000 On Tue, Sep 18, 2007 at 11:53:51PM +0200, Michael Reifenberger wrote: > On Tue, 18 Sep 2007, Nathan Whitehorn wrote: > ... > >Did you remember CFLAGS=-mbig-endian in /etc/make.conf? GCC doesn't get > >configured to produce big-endian code by default. > >-Nathan > > Yes. Thats was it. Thanks! > > BTW: Why isn't it the default for big-endian architectures? > > Bye/2 > --- Hi Michael, It used to be, that gcc defaulted to big-endian, when TARGET_BIG_ENDIAN was set while buildworlding. It has been lost during the gcc3 => gcc 4 transition. I'm going to restoare the old behavior ;) Thanks a lot for reporting ! Olivier From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 22:40:14 2007 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 12DBA16A420 for ; Tue, 18 Sep 2007 22:40:14 +0000 (UTC) (envelope-from nb@synthcom.com) Received: from synthcom.com (static-71-245-103-2.ptldor.fios.verizon.net [71.245.103.2]) by mx1.freebsd.org (Postfix) with ESMTP id DFC8F13C4B6 for ; Tue, 18 Sep 2007 22:40:13 +0000 (UTC) (envelope-from nb@synthcom.com) Received: from static-71-245-103-2.ptldor.fios.verizon.net (static-71-245-103-2.ptldor.fios.verizon.net [71.245.103.2]) by synthcom.com (8.13.8/8.13.8) with ESMTP id l8IMeDx7052101 for ; Tue, 18 Sep 2007 15:40:13 -0700 (PDT) (envelope-from nb@synthcom.com) Date: Tue, 18 Sep 2007 15:40:13 -0700 (PDT) From: Neil Bradley cc: freebsd-arm@freebsd.org In-Reply-To: <62362.2001:6f8:101e:0:20e:cff:fe6d:6adb.1190154987.squirrel@webmail.alpha-tierchen.de> Message-ID: <20070918153651.G51724@synthcom.com> References: <20070918182508.V24397@fw.reifenberger.com> <46F0064C.3080702@uchicago.edu> <20070918220327.V25238@fw.reifenberger.com> <20070918151418.Y51724@synthcom.com> <62362.2001:6f8:101e:0:20e:cff:fe6d:6adb.1190154987.squirrel@webmail.alpha-tierchen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (synthcom.com [71.245.103.2]); Tue, 18 Sep 2007 15:40:13 -0700 (PDT) Subject: Re: 64bit integer problem? 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: Tue, 18 Sep 2007 22:40:14 -0000 >> ARM Isn't a big endian architecture - it's little endian by default. > According to the ARM reference manual there is no default endianess. It > rather says that it is implementation defined whether the machine supports > little endian or big endian, or even both. All ARM architectures come up out of reset in little endian mode. It takes extra instructions to put it in big endian mode. I would call that a default endianness. ;-) For example, the PowerPC is a big endian architecture, but you can put it in little endian, but its default is still big endian. It's actually a bit worse because you can also (in some ARM architectures) set whether or not the I/O is big or little endian independently, but it still defaults to little endian. None of the ARM architectures I've worked with (XScale, ARM9, ARM7, ARM11) have ever come up by default in big endian. -->Neil ---------------------------------------------------------------------------- C. Neil Bradley - KE7IXP - The one eyed man in the land of the blind is not king. He's a prisoner. From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 22:56:30 2007 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 E964316A41A for ; Tue, 18 Sep 2007 22:56:30 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id A526213C468 for ; Tue, 18 Sep 2007 22:56:30 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from home.alpha-tierchen.de (port-212-202-41-17.dynamic.qsc.de [212.202.41.17]) by mail.liberty-hosting.de (Postfix) with ESMTP id DC5973E9508; Wed, 19 Sep 2007 00:38:04 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id C6EAC45068; Wed, 19 Sep 2007 00:36:27 +0200 (CEST) Received: from 2001:6f8:101e:0:20e:cff:fe6d:6adb (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Wed, 19 Sep 2007 00:36:27 +0200 (CEST) Message-ID: <62362.2001:6f8:101e:0:20e:cff:fe6d:6adb.1190154987.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <20070918151418.Y51724@synthcom.com> References: <20070918182508.V24397@fw.reifenberger.com> <46F0064C.3080702@uchicago.edu> <20070918220327.V25238@fw.reifenberger.com> <20070918151418.Y51724@synthcom.com> Date: Wed, 19 Sep 2007 00:36:27 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: "Neil Bradley" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: mike@Reifenberger.com, freebsd-arm@freebsd.org Subject: Re: 64bit integer problem? 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: Tue, 18 Sep 2007 22:56:31 -0000 Neil Bradley wrote: > ARM Isn't a big endian architecture - it's little endian by default. According to the ARM reference manual there is no default endianess. It rather says that it is implementation defined whether the machine supports little endian or big endian, or even both. Björn From owner-freebsd-arm@FreeBSD.ORG Tue Sep 18 23:05:44 2007 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 BE11D16A417 for ; Tue, 18 Sep 2007 23:05:44 +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 7691113C442 for ; Tue, 18 Sep 2007 23:05:44 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.13.4) with ESMTP id l8IN4QhO036436; Tue, 18 Sep 2007 17:04:27 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 18 Sep 2007 17:04:43 -0600 (MDT) Message-Id: <20070918.170443.-1548242567.imp@bsdimp.com> To: mike@Reifenberger.com From: "M. Warner Losh" In-Reply-To: <20070918220327.V25238@fw.reifenberger.com> References: <20070918182508.V24397@fw.reifenberger.com> <46F0064C.3080702@uchicago.edu> <20070918220327.V25238@fw.reifenberger.com> 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 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 18 Sep 2007 17:04:28 -0600 (MDT) Cc: freebsd-arm@FreeBSD.org, tobez@tobez.org Subject: Re: 64bit integer problem? 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: Tue, 18 Sep 2007 23:05:44 -0000 In message: <20070918220327.V25238@fw.reifenberger.com> Michael Reifenberger writes: : On Tue, 18 Sep 2007, Nathan Whitehorn wrote: : ... : > Did you remember CFLAGS=-mbig-endian in /etc/make.conf? GCC doesn't get : > configured to produce big-endian code by default. : > -Nathan : : Yes. Thats was it. Thanks! : : BTW: Why isn't it the default for big-endian architectures? because there's some integration work that hasn't happened. We need to create TARGET_ARCH=armeb for your platform. We've not done that. Warner From owner-freebsd-arm@FreeBSD.ORG Wed Sep 19 06:06:54 2007 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 B139716A419 for ; Wed, 19 Sep 2007 06:06:54 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id 55BE113C48D for ; Wed, 19 Sep 2007 06:06:54 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from home.alpha-tierchen.de (port-212-202-41-17.dynamic.qsc.de [212.202.41.17]) by mail.liberty-hosting.de (Postfix) with ESMTP id A808E3E95B0; Wed, 19 Sep 2007 08:08:27 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id 0E6DD45068; Wed, 19 Sep 2007 08:06:52 +0200 (CEST) Received: from 2001:6f8:101e:0:20e:cff:fe6d:6adb (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Wed, 19 Sep 2007 08:06:52 +0200 (CEST) Message-ID: <52048.2001:6f8:101e:0:20e:cff:fe6d:6adb.1190182012.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <20070918.170443.-1548242567.imp@bsdimp.com> References: <20070918182508.V24397@fw.reifenberger.com> <46F0064C.3080702@uchicago.edu> <20070918220327.V25238@fw.reifenberger.com> <20070918.170443.-1548242567.imp@bsdimp.com> Date: Wed, 19 Sep 2007 08:06:52 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: "M. Warner Losh" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: mike@reifenberger.com, freebsd-arm@freebsd.org, tobez@tobez.org Subject: Re: 64bit integer problem? 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: Wed, 19 Sep 2007 06:06:54 -0000 M. Warner Losh: > We need to create TARGET_ARCH=armeb for your platform. > We've not done that. In case someone works on adding this target: Although "armeb" is used very commonly I think a more designated name of the target is "armbe". The letters "el" in "armel" are in reversed order to indicate the reversed byte order of this endianess. Björn P.S. It's just a thought. I don't want to discuss about the color of the bikeshed. Feel free to do whatever you want. ;-) From owner-freebsd-arm@FreeBSD.ORG Wed Sep 19 07:49:58 2007 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 064E016A417 for ; Wed, 19 Sep 2007 07:49:58 +0000 (UTC) (envelope-from marius.nuennerich@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 5393D13C45E for ; Wed, 19 Sep 2007 07:49:56 +0000 (UTC) (envelope-from marius.nuennerich@gmx.de) Received: (qmail invoked by alias); 19 Sep 2007 07:49:55 -0000 Received: from f049187105.adsl.alicedsl.de (EHLO sol.hackerzberg.local) [78.49.187.105] by mail.gmx.net (mp047) with SMTP; 19 Sep 2007 09:49:55 +0200 X-Authenticated: #5707313 X-Provags-ID: V01U2FsdGVkX18Jz2ZmHjMJ/87ACjV/oXX47EJSic/UxsC7nek/zR nHxZZHA9WL6ox+ Date: Wed, 19 Sep 2007 09:50:03 +0200 From: Marius Nuennerich To: Rafal Jaworowski Message-ID: <20070919095003.19d95312@sol.hackerzberg.local> In-Reply-To: <46EFFB5E.9040407@semihalf.com> References: <20070918115334.569521c1@sol.hackerzberg.local> <20070918.080043.-1625879466.imp@bsdimp.com> <46EFFB5E.9040407@semihalf.com> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-arm@FreeBSD.ORG, freebsd-embedded@FreeBSD.ORG Subject: Re: Porting FreeBSD to the Neo1973 (arm920t) 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: Wed, 19 Sep 2007 07:49:58 -0000 On Tue, 18 Sep 2007 18:22:54 +0200 Rafal Jaworowski wrote: > M. Warner Losh wrote: > > : > > : Any idea what to do next? How to get the uart working? And how to tell > > : the kernel to use it as console? > > > > It might also make sense to create a mkimage port. I have another > > AT91RM9200 board with uboot I'd like to be able to boot from... > > > > If you mean mkimage from U-Boot, it doesn't require to be "ported" as it > already supports branding images as FreeBSD right now. The problem is > that stock U-Boot would not recognize them during usual boot command. > There are modifications to U-Boot required to run FreeBSD kernel directly. > > For FreeBSD/powerpc running with U-Boot we have loader(8) running as a > second stage bootloader on top of it (as a standalone app), which loads > and runs the kernel, providing it with full metadata etc. This however > needs changes to U-Boot itself, and they were not merged with its > mainline yet, but I can provide patches if you're intersted. For the > loader(8) piece you can have a look at some preliminary approach in the > e500 branch in P4 for reference: in particular it has a common library > that is intended to be used also on ARM, MIPS etc., only the lowest > level gluing needs equivalent asm routines. Do we really need loader(8)? > > For early development however there's a quick path that one can always > exercise to boot the kernel (or anything else): > > 1. on the host: > - build FreeBSD kernel > - objcopy it to kernel.bin > > 2. at U-Boot > - tftp /tftpboot/kernel.bin > - go Sadly this won't work with qemu-neo1973 on FreeBSD, because it's not possible to attach emulated usb devices from qemu to the freebsd host. I think something like gadgetfs in linux is missing for that. And even if we had that I don't know if u-boot is capable of speaking CDC ethernet over usb so that we can tftp the kernel. The Neo1973 has no real ethernet onboard. Another way is possibly to copy the kernel to an sd card (or image for qemu) and boot it from there. But until now qemu always says size = 0 when I use -sd sd.img. And I haven't found a way to format I file with fat32. I installed e2fsprogs and will try that later as u-boot can read ext2 too. Kind regards Marius From owner-freebsd-arm@FreeBSD.ORG Wed Sep 19 08:08:47 2007 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 9AF8516A417 for ; Wed, 19 Sep 2007 08:08:47 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id 425D713C483 for ; Wed, 19 Sep 2007 08:08:47 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from home.alpha-tierchen.de (port-212-202-41-17.dynamic.qsc.de [212.202.41.17]) by mail.liberty-hosting.de (Postfix) with ESMTP id 8B2FF3E9659; Wed, 19 Sep 2007 10:10:20 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id 4EDA545068; Wed, 19 Sep 2007 10:08:45 +0200 (CEST) Received: from 87.234.225.18 (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Wed, 19 Sep 2007 10:08:45 +0200 (CEST) Message-ID: <1153.87.234.225.18.1190189325.squirrel@webmail.alpha-tierchen.de> Date: Wed, 19 Sep 2007 10:08:45 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: "Neil Bradley" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal References: <20070918182508.V24397@fw.reifenberger.com> <46F0064C.3080702@uchicago.edu> <20070918220327.V25238@fw.reifenberger.com> <20070918151418.Y51724@synthcom.com> <62362.2001:6f8:101e:0:20e:cff:fe6d:6adb.1190154987.squirrel@webmail.alpha-tierchen.de> <20070918153651.G51724@synthcom.com> In-Reply-To: <20070918153651.G51724@synthcom.com> Cc: freebsd-arm@freebsd.org Subject: Re: 64bit integer problem? 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: Wed, 19 Sep 2007 08:08:47 -0000 Neil Bradley wrote: > All ARM architectures come up out of reset in little endian mode. > It takes extra instructions to put it in big endian mode. I would > call that a default endianness. ;-) [...] Oh, there is a misunderstanding between us. The thing that you call "architecture" is what I call "implementation". There is only one architecture (ARM), several families (i.e. ARMv4, ARMv5), and many implementations (XScale, ARM9, ARM7, ARM11). The ARM architecture doesn't define specific endianess, but commonly known implementations provide both endianesses. > None of the ARM architectures I've worked with (XScale, ARM9, ARM7, > ARM11) have ever come up by default in big endian. This is correct behaviour. The reference manual demands little endian as default if both are implemented. Björn From owner-freebsd-arm@FreeBSD.ORG Wed Sep 19 08:16:09 2007 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 9F07C16A421 for ; Wed, 19 Sep 2007 08:16:09 +0000 (UTC) (envelope-from nb@synthcom.com) Received: from synthcom.com (static-71-245-103-2.ptldor.fios.verizon.net [71.245.103.2]) by mx1.freebsd.org (Postfix) with ESMTP id 5F53813C4B0 for ; Wed, 19 Sep 2007 08:16:09 +0000 (UTC) (envelope-from nb@synthcom.com) Received: from static-71-245-103-2.ptldor.fios.verizon.net (static-71-245-103-2.ptldor.fios.verizon.net [71.245.103.2]) by synthcom.com (8.13.8/8.13.8) with ESMTP id l8J8G80Y060324 for ; Wed, 19 Sep 2007 01:16:08 -0700 (PDT) (envelope-from nb@synthcom.com) Date: Wed, 19 Sep 2007 01:16:08 -0700 (PDT) From: Neil Bradley cc: freebsd-arm@freebsd.org In-Reply-To: <1153.87.234.225.18.1190189325.squirrel@webmail.alpha-tierchen.de> Message-ID: <20070919011453.U55860@synthcom.com> References: <20070918182508.V24397@fw.reifenberger.com> <46F0064C.3080702@uchicago.edu> <20070918220327.V25238@fw.reifenberger.com> <20070918151418.Y51724@synthcom.com> <62362.2001:6f8:101e:0:20e:cff:fe6d:6adb.1190154987.squirrel@webmail.alpha-tierchen.de> <20070918153651.G51724@synthcom.com> <1153.87.234.225.18.1190189325.squirrel@webmail.alpha-tierchen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (synthcom.com [71.245.103.2]); Wed, 19 Sep 2007 01:16:09 -0700 (PDT) Subject: Re: 64bit integer problem? 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: Wed, 19 Sep 2007 08:16:09 -0000 > There is only one architecture (ARM), several families (i.e. ARMv4, > ARMv5), and many implementations (XScale, ARM9, ARM7, ARM11). The ARM > architecture doesn't define specific endianess, but commonly known > implementations provide both endianesses. If the architecture supports both, then it really doesn't matter. PowerPC is a "big endian" architecture, but supports little endian. >> None of the ARM architectures I've worked with (XScale, ARM9, ARM7, >> ARM11) have ever come up by default in big endian. > This is correct behaviour. The reference manual demands little endian as > default if both are implemented. There isn't an ARM implementation that doesn't have little endian (or the option for big endian AFAIK). The bigger question is, why put the chip in big endian mode in the first place when little is the default? -->Neil ---------------------------------------------------------------------------- C. Neil Bradley - KE7IXP - The one eyed man in the land of the blind is not king. He's a prisoner. From owner-freebsd-arm@FreeBSD.ORG Wed Sep 19 10:00:42 2007 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 D248A16A421 for ; Wed, 19 Sep 2007 10:00:42 +0000 (UTC) (envelope-from marius.nuennerich@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 2F9A813C483 for ; Wed, 19 Sep 2007 10:00:41 +0000 (UTC) (envelope-from marius.nuennerich@gmx.de) Received: (qmail invoked by alias); 19 Sep 2007 10:00:40 -0000 Received: from f049175163.adsl.alicedsl.de (EHLO sol.hackerzberg.local) [78.49.175.163] by mail.gmx.net (mp017) with SMTP; 19 Sep 2007 12:00:40 +0200 X-Authenticated: #5707313 X-Provags-ID: V01U2FsdGVkX18xZHoGxwkxjL/TXg4LoIb0/pm80Jvv90PtXnKHEe YjG9khZUckqniQ Date: Wed, 19 Sep 2007 12:00:48 +0200 From: Marius Nuennerich To: Philip Schulz Message-ID: <20070919120048.226d982c@sol.hackerzberg.local> In-Reply-To: <92FE2033-4C29-4FEE-BA42-FF6CDBC4E5C3@deadc0.de> References: <20070918115334.569521c1@sol.hackerzberg.local> <20070918.080043.-1625879466.imp@bsdimp.com> <46EFFB5E.9040407@semihalf.com> <20070919095003.19d95312@sol.hackerzberg.local> <92FE2033-4C29-4FEE-BA42-FF6CDBC4E5C3@deadc0.de> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-arm@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: Porting FreeBSD to the Neo1973 (arm920t) 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: Wed, 19 Sep 2007 10:00:43 -0000 On Wed, 19 Sep 2007 10:55:39 +0200 Philip Schulz wrote: > Am 19.09.2007 um 09:50 schrieb Marius Nuennerich: > > > On Tue, 18 Sep 2007 18:22:54 +0200 > > Rafal Jaworowski wrote: > > [...] > > >> > >> For FreeBSD/powerpc running with U-Boot we have loader(8) running > >> as a > >> second stage bootloader on top of it (as a standalone app), which > >> loads > >> and runs the kernel, providing it with full metadata etc. This > >> however > >> needs changes to U-Boot itself, and they were not merged with its > >> mainline yet, but I can provide patches if you're intersted. For the > >> loader(8) piece you can have a look at some preliminary approach > >> in the > >> e500 branch in P4 for reference: in particular it has a common > >> library > >> that is intended to be used also on ARM, MIPS etc., only the lowest > >> level gluing needs equivalent asm routines. > > > > Do we really need loader(8)? > > You don't absolutely need it, but you probably want it. > > The loader gives you the ability to pass parameters to the kernel. > Without > the loader, you can still boot the kernel, however you can't even > (easily) > tell it to do a verbose boot. Maybe we can tell u-boot how to do that or tell the kernel how to read the u-boot environment... From owner-freebsd-arm@FreeBSD.ORG Wed Sep 19 14:10:56 2007 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 7F65316A417 for ; Wed, 19 Sep 2007 14:10:56 +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 2EB2013C45D for ; Wed, 19 Sep 2007 14:10:56 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.13.8/8.13.8) with ESMTP id l8JDlkX4051408; Wed, 19 Sep 2007 08:47:46 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1190209666; bh=znDtswNUlP9atuSJlSRTWag+chzl4SGD6Wu9/Ci hDtE=; h=Received:Date:From:Message-Id:To:Subject:Cc:In-Reply-To; b=CZj9jV6IqUsYBh8C0plyYb/ga2OlYg5LCfch2SJGgIfPGu5QnYjdWczVfW+xrPcAk NCqSEow/OfvTJQ/HJgZwmHgkixoS0v07SDXVx1PcIf/gwot+suaY46bvMG0/jgibAVE uLl5fTUUmyB5dibWVFitx/7vnBj4NpH/cF6hzDE= Received: (from tinguely@localhost) by casselton.net (8.13.8/8.13.8/Submit) id l8JDlkT2051407; Wed, 19 Sep 2007 08:47:46 -0500 (CDT) (envelope-from tinguely) Date: Wed, 19 Sep 2007 08:47:46 -0500 (CDT) From: Mark Tinguely Message-Id: <200709191347.l8JDlkT2051407@casselton.net> To: nb@synthcom.com In-Reply-To: <20070919011453.U55860@synthcom.com> Cc: freebsd-arm@freebsd.org Subject: Re: 64bit integer problem? 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: Wed, 19 Sep 2007 14:10:56 -0000 > There isn't an ARM implementation that doesn't have little endian (or the > option for big endian AFAIK). The bigger question is, why put the chip in > big endian mode in the first place when little is the default? In the XScale case, the (network) micro-engines are running in big endian. Running the processor in big endian saves a lot of byte swapping. --Mark Tinguely. From owner-freebsd-arm@FreeBSD.ORG Wed Sep 19 16:54:38 2007 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 3521916A478 for ; Wed, 19 Sep 2007 16:54:38 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id 0738513C4B0 for ; Wed, 19 Sep 2007 16:54:37 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0JOM000A6GSR6S90@osl1smout1.broadpark.no> for freebsd-arm@freebsd.org; Wed, 19 Sep 2007 17:38:51 +0200 (CEST) Received: from kg-work.kg4.no ([80.202.72.202]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0JOM00ARDGSPQ9F0@osl1sminn1.broadpark.no> for freebsd-arm@freebsd.org; Wed, 19 Sep 2007 17:38:51 +0200 (CEST) Date: Wed, 19 Sep 2007 17:38:02 +0200 From: Torfinn Ingolfsen To: Marius Nuennerich Message-id: <20070919173802.dfe88343.torfinn.ingolfsen@broadpark.no> In-reply-to: <20070919095003.19d95312@sol.hackerzberg.local> References: <20070918115334.569521c1@sol.hackerzberg.local> <20070918.080043.-1625879466.imp@bsdimp.com> <46EFFB5E.9040407@semihalf.com> <20070919095003.19d95312@sol.hackerzberg.local> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Resent-date: Wed, 19 Sep 2007 17:38:49 +0200 Resent-from: Torfinn Ingolfsen Resent-to: freebsd-arm@freebsd.org Resent-message-id: <20070919173849.e34c243b.torfinn.ingolfsen@broadpark.no> Cc: Subject: Re: Porting FreeBSD to the Neo1973 (arm920t) 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: Wed, 19 Sep 2007 16:54:38 -0000 On Wed, 19 Sep 2007 09:50:03 +0200 Marius Nuennerich wrote: > And even if we had that I don't know if u-boot is capable of speaking > CDC ethernet over usb so that we can tftp the kernel. The Neo1973 has > no real ethernet onboard. Heh? U-Boot supports ethernet, according to manual and faqs. And Neo1973 only have USB (in current devices, anyway). I thought CDCe was *the* ethernet driver for usb. Hmm, the wiki[1] seems to say that the Linux kernel has support for cdc ethernet, at least. That doesn't mean that the bootloader does. I must remember to connect my Neo1973 to a FreeBSd machine and test what U-Boot can do. 1) http://wiki.openmoko.org/wiki/Getting_Started_with_your_Neo1973 -- Regards, Torfinn Ingolfsen From owner-freebsd-arm@FreeBSD.ORG Wed Sep 19 18:29:51 2007 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 6640816A41A for ; Wed, 19 Sep 2007 18:29:51 +0000 (UTC) (envelope-from marius.nuennerich@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id AC01E13C47E for ; Wed, 19 Sep 2007 18:29:50 +0000 (UTC) (envelope-from marius.nuennerich@gmx.de) Received: (qmail invoked by alias); 19 Sep 2007 18:29:47 -0000 Received: from f049175163.adsl.alicedsl.de (EHLO sol.hackerzberg.local) [78.49.175.163] by mail.gmx.net (mp056) with SMTP; 19 Sep 2007 20:29:47 +0200 X-Authenticated: #5707313 X-Provags-ID: V01U2FsdGVkX1+tY3widlutp+JG9jnTy8bVBnvdzNlSHGhcuCo/n9 BBUoTe1FiIwV+M Date: Wed, 19 Sep 2007 20:29:59 +0200 From: Marius Nuennerich To: freebsd-arm@freebsd.org Message-ID: <20070919202959.5d90b9c4@sol.hackerzberg.local> In-Reply-To: <20070919173802.dfe88343.torfinn.ingolfsen@broadpark.no> References: <20070918115334.569521c1@sol.hackerzberg.local> <20070918.080043.-1625879466.imp@bsdimp.com> <46EFFB5E.9040407@semihalf.com> <20070919095003.19d95312@sol.hackerzberg.local> <20070919173802.dfe88343.torfinn.ingolfsen@broadpark.no> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: Porting FreeBSD to the Neo1973 (arm920t) 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: Wed, 19 Sep 2007 18:29:51 -0000 On Wed, 19 Sep 2007 17:38:02 +0200 Torfinn Ingolfsen wrote: > On Wed, 19 Sep 2007 09:50:03 +0200 > Marius Nuennerich wrote: > > > And even if we had that I don't know if u-boot is capable of speaking > > CDC ethernet over usb so that we can tftp the kernel. The Neo1973 has > > no real ethernet onboard. > > Heh? > U-Boot supports ethernet, according to manual and faqs. And Neo1973 > only have USB (in current devices, anyway). > I thought CDCe was *the* ethernet driver for usb. > > Hmm, the wiki[1] seems to say that the Linux kernel has support for cdc > ethernet, at least. That doesn't mean that the bootloader does. > I must remember to connect my Neo1973 to a FreeBSd machine and test > what U-Boot can do. I spoke to roh in the #openmoko channel and he told me that u-boot is not capable of using USB CDC ethernet. However u-boot can speak DFU and one can use it for writing a kernel to neo's ram and starting it afterwars. mkudfu from the u-boot tarball at least compiles fine under FreeBSD. (That won't help for qemu users though :( ) regards Marius From owner-freebsd-arm@FreeBSD.ORG Thu Sep 20 21:25:45 2007 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 F278016A47D for ; Thu, 20 Sep 2007 21:25:44 +0000 (UTC) (envelope-from member@ebay.com) Received: from mx58.sjc.ebay.com (mxpool07.ebay.com [66.135.197.13]) by mx1.freebsd.org (Postfix) with ESMTP id C53F113C4A7 for ; Thu, 20 Sep 2007 21:25:43 +0000 (UTC) (envelope-from member@ebay.com) Received: from mx37.sjc.ebay.com (mxpool15.ebay.com [66.135.197.21]) by mx58.sjc.ebay.com (8.13.5/8.13.5) with ESMTP id l8KCw1TF029636 for ; Thu, 20 Sep 2007 05:58:11 -0700 Received: from sj-v3conta18 (sj-v3conta18.sjc.ebay.com [10.11.88.109]) by mx37.sjc.ebay.com (8.13.5/8.13.5) with ESMTP id l8KCsv5p020183 for ; Thu, 20 Sep 2007 05:55:04 -0700 DomainKey-Signature: a=rsa-sha1; s=dksm28; d=ebay.com; c=nofws; q=dns; h=message-id:from:to:subject:mime-version:content-type:x-ebay-mailtracker; b=oN2sfzjJGXkYdfagOH9pjrXIHEuueEhmLi6jVXBVuBB1eUgDsx7kQcrnz5/NhpO0M r1VqqTTEU/v4Ko1V/EC8w== Date: Thu, 20 Sep 2007 05:55:04 -0700 Message-ID: <398989256.1190292904744.JavaMail.SYSTEM@sj-v3conta18> From: "eBay member: dvj@jkao.com" To: freebsd-arm@freebsd.org Mime-Version: 1.0 X-eBay-MailTracker: 10036.529.3.38331 Content-Type: text/plain;charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: David Jones sent you this eBay item: MASSIVE COLLECTION PSION SOFTWARE(ALL PDA 'S) ON 3 CDS 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, 20 Sep 2007 21:25:45 -0000 ----------------------------------------------------------------- David Jones sent you this eBay item. ----------------------------------------------------------------- Dear friend, There must be worthy of spending a few minutes to visit our website = www.herebuy365.com to make you get much benefit or profit. We are a large w= holesale company on internet. All of our products come from original famous= manufacturers with complete warranty. the price we can offer you is lower = than any other retail dealers on Ebay.=20 Please feel free to contact us if any questions, You will get a satisfactor= y answer. Contact: ----- Email : herebuy365@hotmail.com----- ----- MSN : herebuy365@hotmail.com----- ----- Website : www.herebuy365.com------ Item Name: MASSIVE COLLECTION PSION SOFTWARE(ALL PDA 'S) ON 3 CDS Current bid: =A34.90 (0 bids) =09= =09 (Approximately=A0US $9.79)=09=09=09=09=09 Buy It Now Price: =A37.49(Approximately=A0US $14.97) (immediate payment required) Shipping: =A31.99 End date: 16-Sep-07 09:45:06 BST -----------------------------------------------------------------=09 Find out more - View this Item http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=3D160158177951&ssPageN= ame=3DADME:B:EF:UK:11 ----------------------------------------------------------------- To add to your watch list, click: http://cgi1.ebay.co.uk/ws/eBayISAPI.dll?M= akeTrack&item=3D160158177951&ssPageName=3DADME:B:EF:UK:3 See similar items at: http://search.ebay.co.uk/MASSIVE-COLLECTION-PSION-SOF= TWARE-ALL-PDA-S-ON-3-CDS_W0QQsacatZ38331QQssPageNameZADME-B-EF-UK-4 ----------------------------------------------------------------- Details for item number: 160158177951 ----------------------------------------------------------------- Item URL: http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=3D1601581779= 51&ssPageName=3DADME:B:EF:UK:11 Description: =20 Over 4200 Programs on 3 CDs=20 For use with the following Psion PDAs: Psion Series 3, Psion Series 3a, Psion Series 3c, Psion Series 3mx, Psion S= iena Ships to: Worldwide Seller: softwareatgoodprices(738) 98.3% Positive Feedback Member since 04-Jul-02 in United Kingdom ----------------------------------------------------------------- Learn how you can protect yourself from spoof (fake) emails at:=20 http://pages.ebay.com/education/spooftutorial This email was generated by the sender through the eBay platform because=20 the sender thinks you are likely to be interested in this item. eBay takes= =20 no liability for the sending of this email and its content. If you did not= =20 authorize the sender to send you this email, you can report this message=20 as unsolicited (spam) email so that eBay can take appropriate action=20 against the sender. For more information, go to:=20 http://pages.ebay.com/help/policies/rfe-spam-ov.html. Please note that it= =20 may take up to 10 days to process your request.=20 See our Privacy Policy and User Agreement if you have questions about=20 eBay's communication policies.=20 Privacy Policy: http://pages.ebay.com/help/policies/privacy-policy.html User Agreement: http://pages.ebay.com/help/policies/user-agreement.html Copyright =A9 2006-2007 eBay, Inc. All Rights Reserved. Designated trademarks and brands are the property of their respective owner= s. eBay and the eBay logo are registered trademarks or trademarks of eBay, Inc= .=20 eBay is located at 2145 Hamilton Avenue, San Jose, CA 95125.