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