LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2005, 07:48 AM   #1
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Rep: Reputation: 32
module compile - orinoco


Hi guys,
someone please help me out here. I am trying to recompile my orinoco and hermes modules after patching the source with orinoco-2.6.9-rfmon-dragorn-1.diff from kismetwirless.net. Apparentley this is neccessary to be able to put the card into monitor mode. According to the info I need to use this patch with Mandrake as opposed to the patch for the 2.6.8 kernels as Mandrake backported the 2.6.9 module to the 2.6.8 kernel. (I am using 2.6.8 kernel).

So never having done this before I have managed to get as far as patching the source files located in /usr/src/linux-2.6.8.1-12mdk/drivers/net/wireless. I am not to sure of how to proceed next but read I had to do the make, make install. However when I give the command 'make orinoco' I get a huge list of errors ......

cc orinoco.c -o orinoco
In file included from /usr/include/linux/sched.h:11,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/jiffies.h:16: error: syntax error before "jiffies_64"
/usr/include/linux/jiffies.h:20: error: syntax error before "get_jiffies_64"
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/cpumask.h:80: error: syntax error before "aDECLARE_BITMAP"
/usr/include/linux/cpumask.h:81: error: syntax error before "_unused_cpumask_arg_"
/usr/include/linux/cpumask.h:84: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function `__cpu_set':
/usr/include/linux/cpumask.h:86: error: `cpu' undeclared (first use in this function)
/usr/include/linux/cpumask.h:86: error: (Each undeclared identifier is reported only once
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:117: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function `__cpus_and':
/usr/include/linux/cpumask.h:120: error: `dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:120: error: `src1p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:160: error: syntax error before '*' token
/usr/include/linux/cpumask.h:343: error: syntax error before "cpu_possible_map"
/usr/include/linux/cpumask.h:344: error: syntax error before "cpu_online_map"
/usr/include/linux/cpumask.h:345: error: syntax error before "cpu_present_map"
/usr/include/linux/cpumask.h:347:5: missing binary operator before token "("
In file included from /usr/include/linux/sched.h:20,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/asm/mmu.h:13: error: field `sem' has incomplete type
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:24,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/list.h:685:2: warning: #warning "don't include kernel headers in userspace"
In file included from /usr/include/asm/siginfo.h:4,
from /usr/include/linux/signal.h:7,
from /usr/include/linux/sched.h:24,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/asm-generic/siginfo.h:58: error: size of array `_pad' is too large
In file included from /usr/include/linux/sched.h:26,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/fs_struct.h:9: error: syntax error before "rwlock_t"
/usr/include/linux/fs_struct.h:13: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:28,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/completion.h:15: error: syntax error before "wait_queue_head_t"
/usr/include/linux/completion.h: In function `init_completion':
/usr/include/linux/completion.h:26: error: dereferencing pointer to incomplete type
/usr/include/linux/completion.h:27: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/sched.h:29,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/pid.h: At top level:
/usr/include/linux/pid.h:18: error: field `task_list' has incomplete type
/usr/include/linux/pid.h:19: error: field `hash_chain' has incomplete type
/usr/include/linux/pid.h:24: error: field `pid_chain' has incomplete type
In file included from /usr/include/linux/sched.h:30,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/percpu.h: In function `__alloc_percpu':
/usr/include/linux/percpu.h:45: error: `GFP_KERNEL' undeclared (first use in this function)
In file included from /usr/include/linux/sched.h:101,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/timer.h: At top level:
/usr/include/linux/timer.h:11: error: field `entry' has incomplete type
In file included from orinoco.c:444:
/usr/include/asm/uaccess.h: In function `verify_area':
/usr/include/asm/uaccess.h:104: error: invalid type argument of `->'
/usr/include/asm/uaccess.h: In function `__copy_to_user':
/usr/include/asm/uaccess.h:409: error: `u8' undeclared (first use in this function)
/usr/include/asm/uaccess.h:409: error: syntax error before ')' token
/usr/include/asm/uaccess.h:409: error: syntax error before ')' token
hermes.h:246: error: syntax error before "u16"
hermes.h:246: warning: no semicolon at end of struct or union
orinoco.c:2135: error: `KERN_DEBUG' undeclared (first use in this function)
orinoco.c:2273: error: `KERN_DEBUG' undeclared (first use in this function)
orinoco.c:2273: error: syntax error before string constant
orinoco.c:2273: error: dereferencing pointer to incomplete type
orinoco.c:2273: error: syntax error before ')' token
orinoco.c:2274: error: dereferencing pointer to incomplete type
orinoco.c:2772: error: dereferencing pointer to incomplete type
orinoco.c:2773: error: `u16' undeclared (first use in this function)
orinoco.c:2773: error: syntax error before "xlen"
orinoco.c:2798: error: dereferencing pointer to incomplete type
orinoco.c:2864: warning: initialization makes pointer from integer without a cast
orinoco.c:2866: error: `u16' undeclared (first use in this function)
orinoco.c:2866: error: syntax error before "xlen"
orinoco.c:2876: error: dereferencing pointer to incomplete type
orinoco.c:4288: warning: (near initialization for `record_table[94]')
orinoco.c: In function `init_orinoco':
orinoco.c:4641: error: `KERN_DEBUG' undeclared (first use in this function)
orinoco.c:4641: error: syntax error before string constant
orinoco.c: At top level:
orinoco.h:243: error: storage size of `keys' isn't known
make: *** [orinoco] Error 1


JUST A SAMPLE

So its pretty obvious I'm missing something here. Could you please tell me what I SHOULD be doing to get this to make and then what I need to do to install it. Is it just a matter of subsitution?

I am running Mandrake 10.1 and my WIFI card is an Orinoco Gold PC24E, Agere.

Any help greatly appreciated, BashTin.
 
Old 02-03-2005, 01:51 PM   #2
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
This may not answer your question directly, but when I decided to switch from the 2.4 kernel to the 2.6 kernel (vanilla), I had great difficulties getting the orinoco patch you were talking about to work correctly (read: never got it to work). However, I have had lots of success with the HostAP drivers and Kismet works just fine with these drivers. I'm not trying to discourage you from fixing the problem you already have, but changing to the HostAP drivers might be the easier of the two paths.
 
Old 02-09-2005, 08:14 AM   #3
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Original Poster
Rep: Reputation: 32
module compile orinoco

Tino27,
thanks for your reply. Sorry I have been so late getting back to you but its took me this long to get it to work

To cut a long story short the patched 0-13 drivers have trouble compiling under the 2.6.x kernel.
The new 0.15 drivers will not work in monitor mode for firmware versions >= 8.10.
However I found this site with information and a patched 0-13e driver with some fixes that allow it to build on a 2.6.x kernel:

http://www.nervous.it/hw/dlink_dwl660_orinoco.html

It deals with D-Link but its all the same under the bonnet.

I also have submitted a how-to on this site.

Thanks again, BashTin.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
orinoco-pci module missing? redneon Linux - Software 2 07-14-2005 05:57 PM
Improper module format error for Orinoco driver relpats_eht Slackware 1 03-26-2005 11:04 AM
compiling orinoco module BashTin Linux - Wireless Networking 0 02-02-2005 03:29 AM
module for orinoco 802.11a/b/g geden Linux - Wireless Networking 0 11-21-2004 05:17 PM
Is there an orinoco module? kleptophobiac Linux - Hardware 8 07-30-2003 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration