From owner-freebsd-arm@FreeBSD.ORG Wed Feb 14 07:52:19 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3BA2B16A401 for ; Wed, 14 Feb 2007 07:52:19 +0000 (UTC) (envelope-from dave@dogwood.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.225]) by mx1.freebsd.org (Postfix) with ESMTP id 0584C13C491 for ; Wed, 14 Feb 2007 07:52:18 +0000 (UTC) (envelope-from dave@dogwood.com) Received: by wr-out-0506.google.com with SMTP id i22so117606wra for ; Tue, 13 Feb 2007 23:52:18 -0800 (PST) Received: by 10.90.71.12 with SMTP id t12mr2424aga.1171437882251; Tue, 13 Feb 2007 23:24:42 -0800 (PST) Received: from Gecko.dogwood.com ( [66.91.140.187]) by mx.google.com with ESMTP id 3sm611545wrh.2007.02.13.23.24.41; Tue, 13 Feb 2007 23:24:41 -0800 (PST) Message-Id: <7.0.1.0.2.20070213210920.05cd65b8@dogwood.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Tue, 13 Feb 2007 21:24:36 -1000 To: freebsd-arm@freebsd.org From: David Cornejo Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: ixp4xx microcode 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, 14 Feb 2007 07:52:19 -0000 Hi, I downloaded IPL_ixp400NpeLibrary-2_3.zip from Intel to build a kernel for my Gateworks GW2348-2-CF (the one Netgate sells). But when I attempt to boot the kernel it didn't find the image identifier requested in if_npe (0x01000200) and crashes (similar for npe1 also). I looked through IxNpeMicrocode.c, but the closest I found was 0x01000201. So I hacked ixp425_npevar.h thusly: Index: ixp425_npevar.h =================================================================== RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/ixp425_npevar.h,v retrieving revision 1.1 diff -u -r1.1 ixp425_npevar.h --- ixp425_npevar.h 19 Nov 2006 23:55:23 -0000 1.1 +++ ixp425_npevar.h 14 Feb 2007 01:27:37 -0000 @@ -76,8 +76,8 @@ #define NPEFW_B_DMA 0x01020100 /* DMA only */ /* XXX ... more not include */ -#define IXP425_NPE_B_IMAGEID 0x01000200 -#define IXP425_NPE_C_IMAGEID 0x02000200 +#define IXP425_NPE_B_IMAGEID 0x01000201 +#define IXP425_NPE_C_IMAGEID 0x02000201 struct ixpnpe_softc; struct ixpnpe_softc *ixpnpe_attach(device_t); So it now boots and I'm not seeing any problems (with npe0 at least) and it nfs mounts a root fs. Is there any reason why I shouldn't do this, or can someone point me at the correct file to download from Intel that has the expected image in it? thanks, dave c From owner-freebsd-arm@FreeBSD.ORG Wed Feb 14 14:01:43 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9672616A400 for ; Wed, 14 Feb 2007 14:01:43 +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 55B6E13C4AA for ; Wed, 14 Feb 2007 14:01:39 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id E9275665C8 for ; Wed, 14 Feb 2007 15:41:57 +0200 (EET) 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 09917-04-3 for ; Wed, 14 Feb 2007 15:41:55 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 97A78665C4 for ; Wed, 14 Feb 2007 15:41:52 +0200 (EET) Message-ID: <45D3119F.4020302@bulinfo.net> Date: Wed, 14 Feb 2007 15:41:51 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Subject: At91rm9200 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: Wed, 14 Feb 2007 14:01:43 -0000 Hi I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. There is bootloader installed in iic which boots linux kernel from dataflash. What I need to know for this bootloader to be able to boot FreeBSD kernel? Thanks in advance From owner-freebsd-arm@FreeBSD.ORG Wed Feb 14 15:34:13 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 021BC16A406 for ; Wed, 14 Feb 2007 15:34:13 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B6D9013C47E for ; Wed, 14 Feb 2007 15:34:12 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id l1EFWuwX086847; Wed, 14 Feb 2007 08:32:56 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 14 Feb 2007 08:33:39 -0700 (MST) Message-Id: <20070214.083339.-1581797982.imp@bsdimp.com> To: krassi@bulinfo.net From: "M. Warner Losh" In-Reply-To: <45D3119F.4020302@bulinfo.net> References: <45D3119F.4020302@bulinfo.net> X-Mailer: Mew version 4.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]); Wed, 14 Feb 2007 08:32:56 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 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: Wed, 14 Feb 2007 15:34:13 -0000 In message: <45D3119F.4020302@bulinfo.net> Krassimir Slavchev writes: : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. : There is bootloader installed in iic which boots linux kernel from : dataflash. : What I need to know for this bootloader to be able to boot FreeBSD kernel? How to install the FreeBSD kernel in place of the linux kernel currently in dataflash. Depending on the dataflash, you may also be able to do any or all of the following: (1) install the freebsd boot loader that boots from SD cards (boot2) (2) install the freebsd boot loader that boots from dataflash (bootspi) (3) Use the FreeBSD dataflash support to manage this situation. However, without more specific detais, I can't help more. what boot loader is in the iic? Warner From owner-freebsd-arm@FreeBSD.ORG Wed Feb 14 16:24:25 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE82116A400 for ; Wed, 14 Feb 2007 16:24:25 +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 9CE7913C491 for ; Wed, 14 Feb 2007 16:24:25 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 770E866B51; Wed, 14 Feb 2007 18:24:24 +0200 (EET) 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 26137-07; Wed, 14 Feb 2007 18:24:21 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 9912866B2B; Wed, 14 Feb 2007 18:24:21 +0200 (EET) Message-ID: <45D337B3.2000401@bulinfo.net> Date: Wed, 14 Feb 2007 18:24:19 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: "M. Warner Losh" References: <45D3119F.4020302@bulinfo.net> <20070214.083339.-1581797982.imp@bsdimp.com> In-Reply-To: <20070214.083339.-1581797982.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 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: Wed, 14 Feb 2007 16:24:26 -0000 Thanks for the reply. M. Warner Losh wrote: > In message: <45D3119F.4020302@bulinfo.net> > Krassimir Slavchev writes: > : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. > : There is bootloader installed in iic which boots linux kernel from > : dataflash. > : What I need to know for this bootloader to be able to boot FreeBSD kernel? > > How to install the FreeBSD kernel in place of the linux kernel > currently in dataflash. > > Depending on the dataflash, you may also be able to do any or all of > the following: > (1) install the freebsd boot loader that boots from SD cards (boot2) > (2) install the freebsd boot loader that boots from dataflash (bootspi) > (3) Use the FreeBSD dataflash support to manage this situation. > > However, without more specific detais, I can't help more. what boot > loader is in the iic? > > Warner > > I don't know what exactly is the bootloader installed in the iic but it seems to be similar to bootspi because stage2 boot is located in dataflash. The dataflash is partitioned and there is the linux kernel which is loaded at 0x20400000. I made several attempts to set physical and virtual addresses when compile the kernel but no luck. I will change the existing bootloader but the current one has support for USB and I can easy write images in the dataflash (fat formatted). Is it possible to boot freebsd kernel with linux bootloader? Best Regards From owner-freebsd-arm@FreeBSD.ORG Wed Feb 14 20:36:53 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9C3F216A407 for ; Wed, 14 Feb 2007 20:36:53 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 7287413C474 for ; Wed, 14 Feb 2007 20:36:53 +0000 (UTC) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id l1EKanMW003827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Feb 2007 12:36:51 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <45D372E1.6090402@errno.com> Date: Wed, 14 Feb 2007 12:36:49 -0800 From: Sam Leffler User-Agent: Thunderbird 1.5.0.9 (X11/20070208) MIME-Version: 1.0 To: David Cornejo References: <7.0.1.0.2.20070213210920.05cd65b8@dogwood.com> In-Reply-To: <7.0.1.0.2.20070213210920.05cd65b8@dogwood.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: ixp4xx microcode 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, 14 Feb 2007 20:36:53 -0000 David Cornejo wrote: > Hi, > > I downloaded IPL_ixp400NpeLibrary-2_3.zip from Intel to build a kernel > for my Gateworks GW2348-2-CF (the one Netgate sells). But when I > attempt to boot the kernel it didn't find the image identifier requested > in if_npe (0x01000200) and crashes (similar for npe1 also). I looked > through IxNpeMicrocode.c, but the closest I found was 0x01000201. So I > hacked ixp425_npevar.h thusly: > > Index: ixp425_npevar.h > =================================================================== > RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/ixp425_npevar.h,v > retrieving revision 1.1 > diff -u -r1.1 ixp425_npevar.h > --- ixp425_npevar.h 19 Nov 2006 23:55:23 -0000 1.1 > +++ ixp425_npevar.h 14 Feb 2007 01:27:37 -0000 > @@ -76,8 +76,8 @@ > #define NPEFW_B_DMA 0x01020100 /* DMA only */ > /* XXX ... more not include */ > > -#define IXP425_NPE_B_IMAGEID 0x01000200 > -#define IXP425_NPE_C_IMAGEID 0x02000200 > +#define IXP425_NPE_B_IMAGEID 0x01000201 > +#define IXP425_NPE_C_IMAGEID 0x02000201 > > struct ixpnpe_softc; > struct ixpnpe_softc *ixpnpe_attach(device_t); > > So it now boots and I'm not seeing any problems (with npe0 at least) and > it nfs mounts a root fs. > > Is there any reason why I shouldn't do this, or can someone point me at > the correct file to download from Intel that has the expected image in it? I got my ucode image from a Gateworks Linux distribution. I believe you've got an image that includes packet header conversion support (check the IAL and/or sys/arm/xscale/ixp425/ixp425_npevar.h); no clue what'll happen. Sam From owner-freebsd-arm@FreeBSD.ORG Thu Feb 15 00:43:43 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 31B4716A407 for ; Thu, 15 Feb 2007 00:43:43 +0000 (UTC) (envelope-from dave@dogwood.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.freebsd.org (Postfix) with ESMTP id DAAC413C467 for ; Thu, 15 Feb 2007 00:43:42 +0000 (UTC) (envelope-from dave@dogwood.com) Received: by wx-out-0506.google.com with SMTP id s18so439549wxc for ; Wed, 14 Feb 2007 16:43:42 -0800 (PST) Received: by 10.70.111.2 with SMTP id j2mr1760135wxc.1171500222385; Wed, 14 Feb 2007 16:43:42 -0800 (PST) Received: from Gecko.dogwood.com ( [66.91.140.187]) by mx.google.com with ESMTP id h19sm2875093wxd.2007.02.14.16.43.40; Wed, 14 Feb 2007 16:43:41 -0800 (PST) Message-Id: <7.0.1.0.2.20070214144058.05c84cb0@dogwood.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Wed, 14 Feb 2007 14:43:34 -1000 To: Sam Leffler From: David Cornejo In-Reply-To: <45D372E1.6090402@errno.com> References: <7.0.1.0.2.20070213210920.05cd65b8@dogwood.com> <45D372E1.6090402@errno.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: freebsd-arm@freebsd.org Subject: Re: ixp4xx microcode 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: Thu, 15 Feb 2007 00:43:43 -0000 Well, it seems to work reasonably well - I've been using npe0 for a day or so to do compilations without major incident. Thanks for the reply, dave c At 10:36 AM 2/14/2007, Sam Leffler wrote: >David Cornejo wrote: > > Hi, > > > > I downloaded IPL_ixp400NpeLibrary-2_3.zip from Intel to build a kernel > > for my Gateworks GW2348-2-CF (the one Netgate sells). But when I > > attempt to boot the kernel it didn't find the image identifier requested > > in if_npe (0x01000200) and crashes (similar for npe1 also). I looked > > through IxNpeMicrocode.c, but the closest I found was 0x01000201. So I > > hacked ixp425_npevar.h thusly: > > > > Index: ixp425_npevar.h > > =================================================================== > > RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/ixp425_npevar.h,v > > retrieving revision 1.1 > > diff -u -r1.1 ixp425_npevar.h > > --- ixp425_npevar.h 19 Nov 2006 23:55:23 -0000 1.1 > > +++ ixp425_npevar.h 14 Feb 2007 01:27:37 -0000 > > @@ -76,8 +76,8 @@ > > #define NPEFW_B_DMA 0x01020100 /* DMA only */ > > /* XXX ... more not include */ > > > > -#define IXP425_NPE_B_IMAGEID 0x01000200 > > -#define IXP425_NPE_C_IMAGEID 0x02000200 > > +#define IXP425_NPE_B_IMAGEID 0x01000201 > > +#define IXP425_NPE_C_IMAGEID 0x02000201 > > > > struct ixpnpe_softc; > > struct ixpnpe_softc *ixpnpe_attach(device_t); > > > > So it now boots and I'm not seeing any problems (with npe0 at least) and > > it nfs mounts a root fs. > > > > Is there any reason why I shouldn't do this, or can someone point me at > > the correct file to download from Intel that has the expected image in it? > >I got my ucode image from a Gateworks Linux distribution. I believe >you've got an image that includes packet header conversion support >(check the IAL and/or sys/arm/xscale/ixp425/ixp425_npevar.h); no clue >what'll happen. > > Sam From owner-freebsd-arm@FreeBSD.ORG Thu Feb 15 12:30:39 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E1BE16A400 for ; Thu, 15 Feb 2007 12:30:39 +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 0BE4313C442 for ; Thu, 15 Feb 2007 12:30:38 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id E6F75BE9D3; Thu, 15 Feb 2007 14:30:36 +0200 (EET) 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 02723-01; Thu, 15 Feb 2007 14:30:34 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 58B2FBE9D0; Thu, 15 Feb 2007 14:30:34 +0200 (EET) Message-ID: <45D45269.4050509@bulinfo.net> Date: Thu, 15 Feb 2007 14:30:33 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 1.5 (X11/20060201) MIME-Version: 1.0 To: "M. Warner Losh" , freebsd-arm@freebsd.org References: <45D3119F.4020302@bulinfo.net> <20070214.083339.-1581797982.imp@bsdimp.com> In-Reply-To: <20070214.083339.-1581797982.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: Subject: Re: At91rm9200 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: Thu, 15 Feb 2007 12:30:39 -0000 M. Warner Losh wrote: > In message: <45D3119F.4020302@bulinfo.net> > Krassimir Slavchev writes: > : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. > : There is bootloader installed in iic which boots linux kernel from > : dataflash. > : What I need to know for this bootloader to be able to boot FreeBSD kernel? > > How to install the FreeBSD kernel in place of the linux kernel > currently in dataflash. > > Depending on the dataflash, you may also be able to do any or all of > the following: > (1) install the freebsd boot loader that boots from SD cards (boot2) > (2) install the freebsd boot loader that boots from dataflash (bootspi) > These boot loaders can't be fitted in the 8kbytes eeprom (24C64). > (3) Use the FreeBSD dataflash support to manage this situation. > Where to find more information about this support? > However, without more specific detais, I can't help more. what boot > loader is in the iic? > > Warner > > Best Regards From owner-freebsd-arm@FreeBSD.ORG Thu Feb 15 16:46:29 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E44416A401 for ; Thu, 15 Feb 2007 16:46:29 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 227D813C474 for ; Thu, 15 Feb 2007 16:46:29 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id l1FGk03G002439; Thu, 15 Feb 2007 09:46:00 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 15 Feb 2007 09:46:42 -0700 (MST) Message-Id: <20070215.094642.1645217654.imp@bsdimp.com> To: krassi@bulinfo.net From: "M. Warner Losh" In-Reply-To: <45D45269.4050509@bulinfo.net> References: <45D3119F.4020302@bulinfo.net> <20070214.083339.-1581797982.imp@bsdimp.com> <45D45269.4050509@bulinfo.net> X-Mailer: Mew version 4.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]); Thu, 15 Feb 2007 09:46:00 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 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: Thu, 15 Feb 2007 16:46:29 -0000 In message: <45D45269.4050509@bulinfo.net> Krassimir Slavchev writes: : M. Warner Losh wrote: : > In message: <45D3119F.4020302@bulinfo.net> : > Krassimir Slavchev writes: : > : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. : > : There is bootloader installed in iic which boots linux kernel from : > : dataflash. : > : What I need to know for this bootloader to be able to boot FreeBSD kernel? : > : > How to install the FreeBSD kernel in place of the linux kernel : > currently in dataflash. : > : > Depending on the dataflash, you may also be able to do any or all of : > the following: : > (1) install the freebsd boot loader that boots from SD cards (boot2) : > (2) install the freebsd boot loader that boots from dataflash (bootspi) : > : These boot loaders can't be fitted in the 8kbytes eeprom (24C64). Well, they could be made to fit into 8KB, but they don't right now. A lot of effort has been made to make them small. bootspi likely is the easiest candidate, since it is closest. I tried really hard to make boot2 fit into 8k, but ran out of time. I did manage to slim down the boot loaders from about 48k when I started to 9-10k after all was said and done. The at91rm9200 parts have 16k of SRAM, of which 12k are useful. The newer AT91SAM926x parts have only 4kb of SRAM, so I'm unsure what I'll be doing there. : > (3) Use the FreeBSD dataflash support to manage this situation. : > : Where to find more information about this support? At the moment there's only source. src/sys/dev/flash/at45d.c has the main support for dataflash. SPI infrastructure is in src/sys/dev/spi and src/sys/arm/at91/at91_spi.c. /dev/flash/spi0, etc, appears when these devices are active. The block size that the dataflash supports is, alas, hard coded into at45d.c file at the moment, but I think that most parts have at least some support in there. Warner From owner-freebsd-arm@FreeBSD.ORG Thu Feb 15 20:28:17 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6265A16A47C for ; Thu, 15 Feb 2007 20:28:17 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe01.tele2.dk [212.247.154.3]) by mx1.freebsd.org (Postfix) with ESMTP id 636F913C442 for ; Thu, 15 Feb 2007 20:28:15 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 393944320; Thu, 15 Feb 2007 20:28:11 +0100 Received: by x12.dk (Postfix, from userid 666) id 9231C50845; Thu, 15 Feb 2007 20:28:10 +0100 (CET) Date: Thu, 15 Feb 2007 20:28:10 +0100 From: Soeren Straarup To: "M. Warner Losh" Message-ID: <20070215192810.GC78895@x12.dk> References: <45D3119F.4020302@bulinfo.net> <20070214.083339.-1581797982.imp@bsdimp.com> <45D45269.4050509@bulinfo.net> <20070215.094642.1645217654.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070215.094642.1645217654.imp@bsdimp.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 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: Thu, 15 Feb 2007 20:28:17 -0000 On Thu, Feb 15, 2007 at 09:46:42AM -0700, M. Warner Losh wrote: > In message: <45D45269.4050509@bulinfo.net> > Krassimir Slavchev writes: > : M. Warner Losh wrote: > : > In message: <45D3119F.4020302@bulinfo.net> > : > Krassimir Slavchev writes: > : > : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. > : > : There is bootloader installed in iic which boots linux kernel from > : > : dataflash. > : > : What I need to know for this bootloader to be able to boot FreeBSD kernel? > : > > : > How to install the FreeBSD kernel in place of the linux kernel > : > currently in dataflash. > : > > : > Depending on the dataflash, you may also be able to do any or all of > : > the following: > : > (1) install the freebsd boot loader that boots from SD cards (boot2) > : > (2) install the freebsd boot loader that boots from dataflash (bootspi) > : > > : These boot loaders can't be fitted in the 8kbytes eeprom (24C64). > > Well, they could be made to fit into 8KB, but they don't right now. A > lot of effort has been made to make them small. bootspi likely is the > easiest candidate, since it is closest. I tried really hard to make > boot2 fit into 8k, but ran out of time. I did manage to slim down the > boot loaders from about 48k when I started to 9-10k after all was said > and done. The at91rm9200 parts have 16k of SRAM, of which 12k are > useful. > > The newer AT91SAM926x parts have only 4kb of SRAM, so I'm unsure what > I'll be doing there. Is there support at all for AT91SAM9260? Or should i stick to AT91RM9200 ? > > : > (3) Use the FreeBSD dataflash support to manage this situation. > : > > : Where to find more information about this support? > > At the moment there's only source. src/sys/dev/flash/at45d.c has the > main support for dataflash. SPI infrastructure is in src/sys/dev/spi > and src/sys/arm/at91/at91_spi.c. /dev/flash/spi0, etc, appears when > these devices are active. The block size that the dataflash supports > is, alas, hard coded into at45d.c file at the moment, but I think that > most parts have at least some support in there. > > Warner /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch From owner-freebsd-arm@FreeBSD.ORG Thu Feb 15 20:52:17 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6FBD16A400 for ; Thu, 15 Feb 2007 20:52:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 880CD13C4B4 for ; Thu, 15 Feb 2007 20:52:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id l1FKnfg9004471; Thu, 15 Feb 2007 13:49:41 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 15 Feb 2007 13:49:41 -0700 (MST) Message-Id: <20070215.134941.104122801.imp@bsdimp.com> To: xride@x12.dk From: Warner Losh In-Reply-To: <20070215192810.GC78895@x12.dk> References: <45D45269.4050509@bulinfo.net> <20070215.094642.1645217654.imp@bsdimp.com> <20070215192810.GC78895@x12.dk> 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]); Thu, 15 Feb 2007 13:49:42 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 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: Thu, 15 Feb 2007 20:52:17 -0000 From: Soeren Straarup Subject: Re: At91rm9200 boot? Date: Thu, 15 Feb 2007 20:28:10 +0100 > On Thu, Feb 15, 2007 at 09:46:42AM -0700, M. Warner Losh wrote: > > In message: <45D45269.4050509@bulinfo.net> > > Krassimir Slavchev writes: > > : M. Warner Losh wrote: > > : > In message: <45D3119F.4020302@bulinfo.net> > > : > Krassimir Slavchev writes: > > : > : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. > > : > : There is bootloader installed in iic which boots linux kernel from > > : > : dataflash. > > : > : What I need to know for this bootloader to be able to boot FreeBSD kernel? > > : > > > : > How to install the FreeBSD kernel in place of the linux kernel > > : > currently in dataflash. > > : > > > : > Depending on the dataflash, you may also be able to do any or all of > > : > the following: > > : > (1) install the freebsd boot loader that boots from SD cards (boot2) > > : > (2) install the freebsd boot loader that boots from dataflash (bootspi) > > : > > > : These boot loaders can't be fitted in the 8kbytes eeprom (24C64). > > > > Well, they could be made to fit into 8KB, but they don't right now. A > > lot of effort has been made to make them small. bootspi likely is the > > easiest candidate, since it is closest. I tried really hard to make > > boot2 fit into 8k, but ran out of time. I did manage to slim down the > > boot loaders from about 48k when I started to 9-10k after all was said > > and done. The at91rm9200 parts have 16k of SRAM, of which 12k are > > useful. > > > > The newer AT91SAM926x parts have only 4kb of SRAM, so I'm unsure what > > I'll be doing there. > > Is there support at all for AT91SAM9260? Or should i stick to > AT91RM9200 ? only in my trees. Atmel gave me a board a couple of weeks ago to add support for it, but I've not yet had time to integrate it into the p4 tree or to -current. Short term at91rm9200 is what is there and supported. The work will be at my own pace, since I'm not funded to do it at the moment... If that changes, the pace will pick up. Warner > > : > (3) Use the FreeBSD dataflash support to manage this situation. > > : > > > : Where to find more information about this support? > > > > At the moment there's only source. src/sys/dev/flash/at45d.c has the > > main support for dataflash. SPI infrastructure is in src/sys/dev/spi > > and src/sys/arm/at91/at91_spi.c. /dev/flash/spi0, etc, appears when > > these devices are active. The block size that the dataflash supports > > is, alas, hard coded into at45d.c file at the moment, but I think that > > most parts have at least some support in there. > > > > Warner > > /Soeren > > -- > Soeren Straarup | aka OZ2DAK aka Xride > FreeBSD committer | FreeBSD since 2.2.6-R > If a program is not working right, then send a patch > > From owner-freebsd-arm@FreeBSD.ORG Sat Feb 17 20:10:26 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D624516A400 for ; Sat, 17 Feb 2007 20:10:26 +0000 (UTC) (envelope-from xride@x12.dk) Received: from swip.net (mailfe06.tele2.dk [212.247.154.163]) by mx1.freebsd.org (Postfix) with ESMTP id 2AB3A13C4B7 for ; Sat, 17 Feb 2007 20:10:25 +0000 (UTC) (envelope-from xride@x12.dk) X-Cloudmark-Score: 0.000000 [] Received: from x12.dk (account mu12272@get2net.dk [83.72.97.231] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 415467598; Sat, 17 Feb 2007 21:10:23 +0100 Received: by x12.dk (Postfix, from userid 666) id ED3AA50844; Sat, 17 Feb 2007 21:10:21 +0100 (CET) Date: Sat, 17 Feb 2007 21:10:21 +0100 From: Soeren Straarup To: Warner Losh Message-ID: <20070217201021.GB66059@x12.dk> References: <45D45269.4050509@bulinfo.net> <20070215.094642.1645217654.imp@bsdimp.com> <20070215192810.GC78895@x12.dk> <20070215.134941.104122801.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070215.134941.104122801.imp@bsdimp.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 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: Sat, 17 Feb 2007 20:10:26 -0000 On Thu, Feb 15, 2007 at 01:49:41PM -0700, Warner Losh wrote: > From: Soeren Straarup > Subject: Re: At91rm9200 boot? > Date: Thu, 15 Feb 2007 20:28:10 +0100 > > > On Thu, Feb 15, 2007 at 09:46:42AM -0700, M. Warner Losh wrote: > > > In message: <45D45269.4050509@bulinfo.net> > > > Krassimir Slavchev writes: > > > : M. Warner Losh wrote: > > > : > In message: <45D3119F.4020302@bulinfo.net> > > > : > Krassimir Slavchev writes: > > > : > : I have board with at91rm9200, 64Mb SDRAM, 4Mb dataflash and 64kb iic. > > > : > : There is bootloader installed in iic which boots linux kernel from > > > : > : dataflash. > > > : > : What I need to know for this bootloader to be able to boot FreeBSD kernel? > > > : > > > > : > How to install the FreeBSD kernel in place of the linux kernel > > > : > currently in dataflash. > > > : > > > > : > Depending on the dataflash, you may also be able to do any or all of > > > : > the following: > > > : > (1) install the freebsd boot loader that boots from SD cards (boot2) > > > : > (2) install the freebsd boot loader that boots from dataflash (bootspi) > > > : > > > > : These boot loaders can't be fitted in the 8kbytes eeprom (24C64). > > > > > > Well, they could be made to fit into 8KB, but they don't right now. A > > > lot of effort has been made to make them small. bootspi likely is the > > > easiest candidate, since it is closest. I tried really hard to make > > > boot2 fit into 8k, but ran out of time. I did manage to slim down the > > > boot loaders from about 48k when I started to 9-10k after all was said > > > and done. The at91rm9200 parts have 16k of SRAM, of which 12k are > > > useful. > > > > > > The newer AT91SAM926x parts have only 4kb of SRAM, so I'm unsure what > > > I'll be doing there. > > > > Is there support at all for AT91SAM9260? Or should i stick to > > AT91RM9200 ? > > only in my trees. Atmel gave me a board a couple of weeks ago to add > support for it, but I've not yet had time to integrate it into the p4 > tree or to -current. Short term at91rm9200 is what is there and > supported. > > The work will be at my own pace, since I'm not funded to do it at the > moment... If that changes, the pace will pick up. > > Warner > > > > > : > (3) Use the FreeBSD dataflash support to manage this situation. > > > : > > > > : Where to find more information about this support? > > > > > > At the moment there's only source. src/sys/dev/flash/at45d.c has the > > > main support for dataflash. SPI infrastructure is in src/sys/dev/spi > > > and src/sys/arm/at91/at91_spi.c. /dev/flash/spi0, etc, appears when > > > these devices are active. The block size that the dataflash supports > > > is, alas, hard coded into at45d.c file at the moment, but I think that > > > most parts have at least some support in there. > > > > > > Warner > > > > /Soeren > > Hmm.. i can't really get started, looked through how linux is beeing booted via u-boot, but that doesn't seem to be the same for this board: http://www.mechatronicbrick.dk/index.php?option=com_content&task=view&id=13&Itemid=35 If i wanna test boot it at first without placing anything in flash how can i then make it boot, supply a patched version of bootspi or should it be boot0spi? And then tftp the kernel down? and then nfs mount everything? /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch