PDA

View Full Version : [kubuntu] Drivers compilation - orinoco 0.15



Zielevitz
June 21st, 2008, 11:23 AM
Hello :)

I use Kubuntu 7.10 and I have problem with compilation of orinoco 0.15x drivers. Here is what I do:

* Download the drivers in version 0.15 from official site (http://www.nongnu.org/orinoco/downloads/) and unpack them
* make - I get following output:

ziells@inferno:~/Desktop/orinoco-0.15$ make
make -C /usr/src/linux-headers-2.6.22-14-generic M=/home/ziells/Desktop/orinoco-0.15 KERNELRELEASE=2.6.22-14-generic modules
make[1]: Wejście do katalogu `/usr/src/linux-headers-2.6.22-14-generic'
/home/ziells/Desktop/orinoco-0.15/Kbuild:34: *** Wireless extensions are not enabled. Stop.
make[1]: *** [_module_/home/ziells/Desktop/orinoco-0.15] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [modules] Błąd 2

* I found information about this bug and the way to fix it is to edit 33th line of Kbuild file and replace
ifndef CONFIG_NET_RADIO with
ifndef CONFIG_WIRELESS_EXT

* also, there is nesecarry to comment those lines:
ifdef CONFIG_HERMES
$(error This driver is already enabled in the kernel)
endif

* Now, after make command, the output is following:


ziells@inferno:~/Desktop/orinoco-0.15$ sudo make
make -C /usr/src/linux-headers-2.6.22-14-generic M=/home/ziells/Desktop/orinoco-0.15 KERNELRELEASE=2.6.22-14-generic modules
make[1]: Wejście do katalogu `/usr/src/linux-headers-2.6.22-14-generic'
CC [M] /home/ziells/Desktop/orinoco-0.15/orinoco.o
/home/ziells/Desktop/orinoco-0.15/orinoco.c: In function ‘orinoco_stat_gather’:
/home/ziells/Desktop/orinoco-0.15/orinoco.c:720: error: ‘struct sk_buff’ has no member named ‘mac’
/home/ziells/Desktop/orinoco-0.15/orinoco.c: In function ‘orinoco_rx_monitor’:
/home/ziells/Desktop/orinoco-0.15/orinoco.c:801: error: ‘struct sk_buff’ has no member named ‘mac’
/home/ziells/Desktop/orinoco-0.15/orinoco.c:2466:67: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/ziells/Desktop/orinoco-0.15/orinoco.c: In function ‘alloc_orinocodev’:
/home/ziells/Desktop/orinoco-0.15/orinoco.c:2466: error: ‘INIT_WORK’ undeclared (first use in this function)
/home/ziells/Desktop/orinoco-0.15/orinoco.c:2466: error: (Each undeclared identifier is reported only once
/home/ziells/Desktop/orinoco-0.15/orinoco.c:2466: error: for each function it appears in.)
/home/ziells/Desktop/orinoco-0.15/orinoco.c:2467:68: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/ziells/Desktop/orinoco-0.15/orinoco.c:2468:75: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/ziells/Desktop/orinoco-0.15/orinoco.c: In function ‘orinoco_get_drvinfo’:
/home/ziells/Desktop/orinoco-0.15/orinoco.c:4330: error: ‘struct net_device’ has no member named ‘class_dev’
/home/ziells/Desktop/orinoco-0.15/orinoco.c:4331: error: ‘struct net_device’ has no member named ‘class_dev’
make[2]: *** [/home/ziells/Desktop/orinoco-0.15/orinoco.o] Błąd 1
make[1]: *** [_module_/home/ziells/Desktop/orinoco-0.15] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [modules] Błąd 2

My iwconfig return this:
ziells@inferno:~/Desktop/orinoco-0.15$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11b ESSID:"essid" Nickname:"HERMES I"
Mode:Managed Frequency:2.437 GHz Access Point: 00:1C:F0:89:0C:70
Bit Rate:1 Mb/s Sensitivity:1/3
Retry limit:4 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=17/92 Signal level=-87 dBm Noise level=-104 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:339
Tx excessive retries:121 Invalid misc:0 Missed beacon:0

Is this the fault of wrong version of linux-headers? Is the problem known by someone?

chili555
June 21st, 2008, 01:08 PM
This is from the official site you linked:
Q2: How do I compile/install the driver?

The easiest way is to use the version included in the kernel source ...Your iwconfig looks very healthy, like your interface is all set up and ready to go. First, let's check to see if the module is loaded:
lsmod | grep orinocoI'll bet orinoco is already loaded. Next, let's see if we can find your network:
sudo iwlist eth1 scanNow, let's try to connect:
sudo iwconfig eth1 essid <network_you_scanned>
sudo iwconfig eth1 key <any_encryption_here?>
sudo dhclient eth1The only thing that concernes me is:
Link Quality=17/92