This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: usb Host-side ethernet driver


> {warrenj@rtp00183.rtp.bops.com:163} make
> make -C /usr/src/linux-2.4 SUBDIRS=/tmp/usb_eth modules
> make[1]: Entering directory `/usr/src/linux-2.4.3'
> make -C  /tmp/usb_eth CFLAGS="-D__KERNEL__
> -I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe
> -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.4.3/include/linux/modversions.h" MAKING_MODULES=1
> modules
> make[2]: Entering directory `/tmp/usb_eth'
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
> -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686
> -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.4.3/include/linux/modversions.h   -c -o ecos_usbeth.o
> ecos_usbeth.c
> In file included from /usr/src/linux-2.4.3/include/linux/spinlock.h:35,
>                  from /usr/src/linux-2.4.3/include/linux/module.h:11,
>                  from ecos_usbeth.c:42:
> /usr/src/linux-2.4.3/include/asm/spinlock.h:9: nondigits in number and
> not hexadecimal
> /usr/src/linux-2.4.3/include/asm/spinlock.h:9: nondigits in number and
> not hexadecimal
> /usr/src/linux-2.4.3/include/asm/spinlock.h:9: parse error before
> `1b7d4074'

This errors are wierd...

Line 9 of spinlock.h is an prototype definition of printk. 

The 2b7d4074 is whats wrong. You seem to have some junk in your source
code. Try compiling it -E and have a look at the output from CPP. I
suspect you have corrupted either your kernel sources or the usb_eth
driver sources.

As for using the driver in 2.4.3, we have not experiance with
this. Wasn't the USB code re-written between kernels 2.2 and 2.4? I
don't follow what goes on with the kernel so i don't really know.

       Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]