LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   module compile - orinoco (https://www.linuxquestions.org/questions/linux-newbie-8/module-compile-orinoco-285749/)

BashTin 02-03-2005 07:48 AM

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:cry:

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.

Tino27 02-03-2005 01:51 PM

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.

BashTin 02-09-2005 08:14 AM

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.:D


All times are GMT -5. The time now is 03:50 PM.