Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling at76c503a berlios wlan on Sparc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
send2cj
n00b
n00b


Joined: 09 Apr 2004
Posts: 4

PostPosted: Fri Apr 09, 2004 6:08 pm    Post subject: Compiling at76c503a berlios wlan on Sparc Reply with quote

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.

Code:
Back to top
View user's profile Send private message
hardave
Retired Dev
Retired Dev


Joined: 12 Nov 2003
Posts: 38
Location: Alberta, Canada

PostPosted: Fri Apr 09, 2004 9:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Sat Apr 10, 2004 2:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
send2cj
n00b
n00b


Joined: 09 Apr 2004
Posts: 4

PostPosted: Tue Apr 13, 2004 4:30 am    Post subject: compiling berlios at76c503 drivers Reply with quote

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
View user's profile Send private message
send2cj
n00b
n00b


Joined: 09 Apr 2004
Posts: 4

PostPosted: Wed Apr 14, 2004 6:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum