View previous topic :: View next topic |
Author |
Message |
send2cj n00b
Joined: 09 Apr 2004 Posts: 4
|
Posted: Fri Apr 09, 2004 6:08 pm Post subject: Compiling at76c503a berlios wlan on Sparc |
|
|
I've downloaded the berlios wlan driver to work with my linksys WUSB11 wireless card. This USB card works fine under RH9 (386 architecture) but only using the berlios driver. I tried the other atmel drivers and they didn't work. I have been given a nice Ultra 10 and would like to use the WUSB11 with it.
http://at76c503a.berlios.de/index.html
http://download.berlios.de/at76c503a/at76c503-0.11.tar.gz
I downloaded and then tried to compile it. During compilation it complained about architecture so I modified CFLAGS by adding -mcpu=ultrasparc. This helped the compile to complete without errors, though there were a large number of worrisome warnings.
Next I type in make install and it fails :
mkdir -p /lib/modules/2.4.24-sparc-r2/kernel/drivers/usb/
for f in at76c503.o usbdfu.o at76c503-rfmd.o at76c503-rfmd-acc.o at76c505-rfmd.o at76c503-i3861.o at76c503-i3863.o at76c505-rfmd2958.o; do install -m 644 -o 0 -g 0 $f /lib/modules/2.4.24-sparc-r2/kernel/drivers/usb//$f; done
/sbin/depmod -a
depmod: ELF file /lib/modules/2.4.24-sparc-r2/kernel/drivers/usb/at76c503-i3861.o not for this architecture
depmod: ELF file /lib/modules/2.4.24-sparc-r2/kernel/drivers/usb/at76c503-i3863.o not for this architecture
depmod: ELF file /lib/modules/2.4.24-sparc-r2/kernel/drivers/usb/at76c503-rfmd-acc.o not for this architecture
depmod: ELF file /lib/modules/2.4.24-sparc-r2/kernel/drivers/usb/at76c503-rfmd.o not for this architecture
depmod: ELF file /lib/modules/2.4.24-sparc-r2/kernel/drivers/usb/at76c503.o not for this architecture
depmod: ELF file /lib/modules/2.4.24-sparc-r2/kernel/drivers/usb/at76c505-rfmd.o not for this architecture
depmod: ELF file /lib/modules/2.4.24-sparc-r2/kernel/drivers/usb/at76c505-rfmd2958.o not for this architecture
depmod: ELF file /lib/modules/2.4.24-sparc-r2/kernel/drivers/usb/usbdfu.o not for this architecture
depmod: *** Unresolved symbols in /lib/modules/2.4.24-sparc-r2/kernel/arch/sparc64/solaris/solaris.o
make: *** [install] Error 1
Any help with this would be appreciated.
|
|
Back to top |
|
|
hardave Retired Dev
Joined: 12 Nov 2003 Posts: 38 Location: Alberta, Canada
|
Posted: Fri Apr 09, 2004 9:49 pm Post subject: |
|
|
Remember you have to pass -m64 as well to compile your modules as 64-bit. Look at the output of 'make modules' from your kernel to get a good idea of flags you will need.
The files with i386 in the name also could be a problem, you might want to make sure there is nothing like assemblly code, or anything else i386 specific in those files. |
|
Back to top |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Sat Apr 10, 2004 2:59 pm Post subject: |
|
|
Ajdusting the makefile to use sparc64-linux-gcc as the compiler made those drivers build for me here. However I don't have one of those cards so I can't test to see if it works. |
|
Back to top |
|
|
send2cj n00b
Joined: 09 Apr 2004 Posts: 4
|
Posted: Tue Apr 13, 2004 4:30 am Post subject: compiling berlios at76c503 drivers |
|
|
Hey,
I should have mentioned that I'm new to the Sparc arena and haven't coded in C in a number of years.
I modified my makefile to use the sparc64-linux-gcc compiler. That gave errors. I also ran make modules from from usr/src/linux and picked up the compiler flags and replaced the CFLAGS and CPPFLAGS with them. Still got errors.
Would you mind posting your modified Makefile.
Thanks,
Charles |
|
Back to top |
|
|
send2cj n00b
Joined: 09 Apr 2004 Posts: 4
|
Posted: Wed Apr 14, 2004 6:57 am Post subject: |
|
|
Well I upgraded my kernel from 2.4.24 to 2.4.25 and it compiled and installed just fine. Problem solved |
|
Back to top |
|
|
|