[Avila] IXP 400 Access Libary and Ethernet Drivers
Tim Harvey
tim_harvey at yahoo.com
Thu Dec 7 19:37:19 EST 2006
Joel,=0A=0AI'm also not fond at all of snapgear... its very outdated and no=
t supported (its free :) ). I have no experience with uClibc as all of my =
work has been using glibc. Do you really need uClibc and does it really of=
fer a large space/footprint savings? I would love to see a good modern com=
parision of glibc vs uClibc. I've had no difficulties building the latest =
wireless-tools with glibc and the GW BSP.=0A=0AI haven't bothered trying to=
move to a better build system for my projects because of the difficulty I =
had before the latest GW BSP when I had to integrate the IAL myself into th=
e kernel. Over time I've added so many external packages to my build tree,=
its not very 'snapgear' anymore :)=0A=0ATim =0A=0A----- Original Message -=
---=0AFrom: Joel Lindsay <joel at waveteq.com>=0ATo: Avila <avila at lists.unixst=
udios.net>=0ASent: Thursday, December 7, 2006 4:25:45 PM=0ASubject: RE: [Av=
ila] IXP 400 Access Libary and Ethernet Drivers=0A=0AThanks Tim,=0A=0AI hav=
e used the snapgear distribution that you are speaking of, and though I=0Ad=
idn't find it as flexible as buildroot, it worked fairly well. The big=0Ap=
roblem is that some of the packages are a little outdated and had to be=0Au=
pdated, and this is more of a pain with snapgear than with buildroot.=0A=0A=
I would be totally happy to stick with snapgear as I have my whole platform=
=0Aup and running perfectly but compiled against libc. I want to compile=
=0Aagainst uClibc and I have been having a bugger of a time compiling 1 pac=
kage=0AI absolutely must have with snapgear/uclibc. The package is wireles=
s tools=0Aand with either the one that comes with the snapgear distribution=
or the=0Alatest version, I can compile against uClibc with no problem but =
I can't=0Aactually run the binary because it seems to still be looking for =
the libc=0Alibrary (when it was compiled against uClibc)=0A=0ASince I haven=
't been able to fix the snapgear problem (have a support=0Arequest on uClin=
ux message boards), I thought I would try to switch to=0Abuildroot which ha=
s gone fairly smoothly except for this issue. I would be=0Ahappy with some=
advice on either problem so I can complete the project and=0Abe done with =
it :)=0A=0AJoel=0A=0A-----Original Message-----=0AFrom: Tim Harvey [mailto:=
tim_harvey at yahoo.com] =0ASent: December 7, 2006 4:07 PM=0ATo: Avila=0ASubje=
ct: Re: [Avila] IXP 400 Access Libary and Ethernet Drivers=0A=0AJoel,=0A=0A=
Wow, looks like your going through a lot of uncessesary thrash. Why don't=
=0Ayou just use the BSP that Gateworks supplies for their boards? Its read=
y to=0Ago (although the 2.6.x kernel is 2.6.15-uc0, but quite frankly I'm n=
ot sure=0AI understand the constant desire to keep up with the absolute lat=
est=0Akernel).=0A=0AThe answer to your question is yes - if you want to use=
the ENET you have to=0Ahave the IntelAccess Library (or equivalent 'driver=
' code for the internal=0ANetwork Processing Engines or NPE's). Think of t=
he NPE's as a 'soft-mac'=0Afor lack of a better term. The reason you are g=
oing through all this thrash=0Ais that Intel, in their infinite wisdom will=
not release their library to=0Athe GPL which keeps it from being integrate=
d into the Linux kernel. There=0Ais some work on an opensource, reverse en=
gineered?, GPL driver to solve this=0Aissue, but I haven't followed that mu=
ch.=0A=0AThe Gateworks BSP, and possibly some of the other third party BSP'=
s=0Asupporting avila, keeps you from having to go through this thrash becau=
se it=0Asupplies a kernel pre-patched with the IAL.=0A=0ATim=0A=0A=0A----- =
Original Message ----=0AFrom: Joel Lindsay <joel at waveteq.com>=0ATo: Avila <=
avila at lists.unixstudios.net>=0ASent: Thursday, December 7, 2006 2:22:24 PM=
=0ASubject: [Avila] IXP 400 Access Libary and Ethernet Drivers=0A=0AI must =
say this is the biggest pain ever.=0A=0AI am trying to get the ethernet por=
t to work on the avila board, I am just =0Ausing the little 2347 board, so =
no hardware encryption. Should be simple =0Asimple simple.=0A=0AAfter stru=
ggling through the documentation to try to figure out what I =0Aneeded, and=
then realising that some of the files the document asks for are =0Anot eve=
n there I think I managed to find them all.=0A=0ABSD_ixp400AccessLibrary-2_=
3.zip - Access Library Source=0ABSD_ixp400AccessLibrary-2_3_1.zip - Access =
Library Source Patch=0AGPL_ixp400LinuxEthernetDriverPatch-1_6.zip - Etherne=
t Driver Source=0AIPL_ixp400NpeLibrary-2_3.zip - Microcode=0AGPL_kernel-2.6=
.19-bugfix-1_1.patch - Made this myself from some old file =0Afrom sourcefo=
rge that doesnt exist anymore=0Aixp400LinuxKernel-BE-1_3.patch - I think th=
is patch is supposed to patch =0Akernel so I can select to build the ethern=
et modules=0A=0AOf couse after having these files, I followed the documenta=
tion word for =0Aword and ended up with lots of errors that look like=0A=0A=
When I try to make modules from the linux directory:=0A=0A/home/joel/dev/bu=
ildroot/package/ixp400/ixp400_xscale_sw/src/include/IxQueue=0AAssignments.h=
:90:5: =0Awarning: "IX_UTOPIAMODE" is not defined=0A/home/joel/dev/buildroo=
t/package/ixp400/ixp400_xscale_sw/src/include/IxQueue=0AAssignments.h:93:5:=
=0Awarning: "IX_MPHYSINGLEPORT" is not defined=0Adrivers/net/ixp400_eth.c:=
189: error: parse error before string constant=0Adrivers/net/ixp400_eth.c:1=
89: warning: type defaults to `int' in declaration=0A=0Aof `MODULE_PARM'=0A=
drivers/net/ixp400_eth.c:189: warning: function declaration isn't a =0Aprot=
otype=0Adrivers/net/ixp400_eth.c:189: warning: data definition has no type =
or =0Astorage class=0Adrivers/net/ixp400_eth.c:192: error: parse error befo=
re string constant=0Adrivers/net/ixp400_eth.c:192: warning: type defaults t=
o `int' in declaration=0A=0Aof `MODULE_PARM'=0Adrivers/net/ixp400_eth.c:192=
: warning: function declaration isn't a =0Aprototype=0Adrivers/net/ixp400_e=
th.c:192: warning: data definition has no type or =0Astorage class=0Adriver=
s/net/ixp400_eth.c:194: error: parse error before string constant=0Adrivers=
/net/ixp400_eth.c:194: warning: type defaults to `int' in declaration=0A=0A=
of `MODULE_PARM'=0A=0AWhen I try a make ixp400 from the ixp400_xscale_sw di=
rectory:=0A=0AIn file included from =0A/home/joel/dev/buildroot/linux-2.6.1=
9/include/linux/bitops.h:9,=0A from =0A/home/joel/dev/build=
root/linux-2.6.19/include/linux/thread_info.h:20,=0A from =
=0A/home/joel/dev/buildroot/linux-2.6.19/include/linux/preempt.h:9,=0A =
from =0A/home/joel/dev/buildroot/linux-2.6.19/include/linux/spi=
nlock.h:49,=0A from =0A/home/joel/dev/buildroot/linux-2.6.1=
9/include/asm/semaphore.h:8,=0A from =0A/home/joel/dev/buil=
droot/package/ixp400/ixp400_xscale_sw/../ixp_osal/os/linu=0Ax/include/core/=
IxOsalOsTypes.h:52,=0A from =0A/home/joel/dev/buildroot/pac=
kage/ixp400/ixp400_xscale_sw/../ixp_osal/include=0A/IxOsalTypes.h:57,=0A =
from =0A/home/joel/dev/buildroot/package/ixp400/ixp400_xscale=
_sw/../ixp_osal/include=0A/IxOsal.h:52,=0A from src/atmdAcc=
/IxAtmdDescMgmt.c:64:=0A/home/joel/dev/buildroot/linux-2.6.19/include/asm/b=
itops.h: In function =0A`____atomic_set_bit':=0A/home/joel/dev/buildroot/li=
nux-2.6.19/include/asm/bitops.h:40: warning: =0Aimplicit declaration of fun=
ction `local_irq_save'=0A/home/joel/dev/buildroot/linux-2.6.19/include/asm/=
bitops.h:42: warning: =0Aimplicit declaration of function `local_irq_restor=
e'=0AIn file included from =0A/home/joel/dev/buildroot/linux-2.6.19/include=
/asm/semaphore.h:10,=0A from =0A/home/joel/dev/buildroot/pa=
ckage/ixp400/ixp400_xscale_sw/../ixp_osal/os/linu=0Ax/include/core/IxOsalOs=
Types.h:52,=0A from =0A/home/joel/dev/buildroot/package/ixp=
400/ixp400_xscale_sw/../ixp_osal/include=0A/IxOsalTypes.h:57,=0A =
from =0A/home/joel/dev/buildroot/package/ixp400/ixp400_xscale_sw/../i=
xp_osal/include=0A/IxOsal.h:52,=0A from src/atmdAcc/IxAtmdD=
escMgmt.c:64:=0A/home/joel/dev/buildroot/linux-2.6.19/include/linux/rwsem.h=
:24:65: =0Aasm/rwsem.h: No such file or directory=0A=0A=0AI have included t=
he full compile outputs. I am using the buildroot =0Aenvironment with 2.6.=
19 kernel. I have also tried a 2.6.18 kernel with =0Aexact same results. =
I managed to get a 2.6.12 kernel running about 6 months=0A=0Aago with proba=
bly the exact same problems but it took me 2 weeks and I don't=0A=0Aremembe=
r how I did it.=0A=0ADo I actually need to have all this microcode and acce=
ss library if I just =0Awant a basic ethernet port without encryption? Can=
somebody point me in a =0Adirection that make this a little easier?=0A=0AT=
hanks.=0A=0AJoel Lindsay, B.Eng=0AProject Engineer=0AWaveteq Communications=
=0A(250) 766-9229=0A> =0A=0A=0A--------------------------------------------=
-------------------------=0ATo unsubscribe, e-mail: avila-unsubscribe at lists=
.unixstudios.net=0AFor additional commands, e-mail: avila-help at lists.unixst=
udios.net=0A=0A=0A=0A=0A=0A------------------------------------------------=
---------------------=0ATo unsubscribe, e-mail: avila-unsubscribe at lists.uni=
xstudios.net=0AFor additional commands, e-mail: avila-help at lists.unixstudio=
s.net=0A=0A=0A-------------------------------------------------------------=
--------=0ATo unsubscribe, e-mail: avila-unsubscribe at lists.unixstudios.net=
=0AFor additional commands, e-mail: avila-help at lists.unixstudios.net=0A=0A=
=0A=0A
More information about the Avila
mailing list