LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   orinoco patch -- seek monitor mode (https://www.linuxquestions.org/questions/linux-wireless-networking-41/orinoco-patch-seek-monitor-mode-200612/)

bige 07-03-2004 04:33 AM

orinoco patch -- seek monitor mode
 
I was just writing to seek a little guidance for patching the orinoco wireless card driver. I just installed slackware 10.0 (2.4.26 kernel) and couldn't get it patched. I tried schmoo's patch with:

Code:

patch -p1 < orinoco-0.13e-dragorn-patch.diff
but it returned errors :

Code:

can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
 --------------------------
|diff -aur orinoco-0.13e/hermes.c orinoco-0.13e-dragorn-patch/hermes.c |--- orinoco-0.13e/hermes.c2003-05-11 23:22:27.000000000 -0700 |+++ orinoco-0.13e-dragorn-patch/hermes.c2003-11-23 18:04:31.000000000 -0800
--------------------------
File to patch: hermes.c
patching file hermes.c Hunk #1 FAILED at 183. 1 out of 1 hunk FAILED --
saving rejects to file hermes.c.rej can't find file to patch at input line 18 Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -aur orinoco-0.13e/hermes.h orinoco-0.13e-dragorn-patch/hermes.h |--- orinoco-0.13e/hermes.h2003-05-11 23:22:27.000000000 -0700 |+++ orinoco-0.13e-dragorn-patch/hermes.h2003-11-23 18:04:31.000000000 -0800
--------------------------
File to patch: hermes.h
patching file hermes.h patch: **** malformed patch at line 50: HERMES_RXSTATUS_MSGTYPE) >> 13)


any suggestions...
btw, this approach didn't work with slackware 9.0 either, but many act as though it is no big deal with other distros. I just want to be able to throw my card into monitor mode so I can do some scanning.

thanks

2Gnu 07-03-2004 09:36 AM

Running Slack here with Schmoo patches.

1. Download the orinoco driver source and unzip
2. Copy the patch to the source folder and apply
3. make, make install
4. Restart PCMCIA

Alternatively, I've read that the version 0.14x driver source does not need to be patched.

Correction to the last comment. I tried the 0.14alpha2 driver and Kismet errored out with a "can't put the card into monitor mode." The 0.15rc1 driver did work without patching, though. I tried both of them on the 2.6.7 kernel with Slack 10.

byondrch 07-22-2004 10:01 AM

I was succsesful at patching the drivers by altering the above command,

patch -p1 < orinoco-0.13e-dragorn-patch.diff to

patch -p0 < orinoco-0.13e-dragorn-patch.diff ,

although I was never able to set my card to monitor mode, I am using slack 10 and am using the 2.6.7 kernel, I would love to here if anyone got this working yet, as I am reluctant to go back to the old kernel.

Thanks

byondrch 07-24-2004 10:32 PM

bump

byondrch 07-24-2004 11:43 PM

actually i am mistaken, that worked with a different driver, I am unsucsesful with that patch

2Gnu 07-25-2004 09:35 AM

It's not clear what you have tried or what went wrong.

I offered some specific steps that worked for me. Did you try those steps and, if so, what were the results. Please post specific errors if any.

If you're using a different set of drivers or patches, please list them along with any compile errors.

byondrch 07-25-2004 09:50 AM

I downloaded the orinoco 0.13e- dragorn patch and have been unsucsessful at patching that, this is on the 2.6.7 kernel. This seems to be a dead end for now, I have been able to patch the orinoco_cs driver for my 2.4.26 kernel put i am still unable to put the card into monitor mode. I have not patched the pcmcia-cs drivers as I'm not sure where they live in the kernel tree.

esssentially i cant patch the 2.6.7, and Im not sure where to patch 2.4.26

Thanks

2Gnu 07-25-2004 11:05 AM

Quote:

Originally posted by byondrch
I downloaded the orinoco 0.13e- dragorn patch and have been unsucsessful at patching that ...
Explain. Where did you place the patch, what command did you use to try to apply it and what was the output - errors or otherwise?

Quote:

Originally posted by byondrch
I have been able to patch the orinoco_cs driver for my 2.4.26 kernel put i am still unable to put the card into monitor mode.
How so? Same questions as above: where and how did you apply the patch and what was the output? What is the output of iwpriv after you apply the patch, make, make install and restart PCMCIA services?

Have you tried the 0.15rc1 driver as suggested above?

byondrch 07-25-2004 10:51 PM

for the 2.6.7 kernel I tried applying the the orinoco 0.13e-dragorn patch in the drivers/net/wireless directory of the kernel, getting the resulting output:



bash-2.05b# patch -p1 < orinoco-0.13e-2.6.2-patch.diff
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur linux-2.6.2/drivers/net/wireless/airport.c linux-2.6.2-orinoco/drivers/net/wireless/airport.c
|--- linux-2.6.2/drivers/net/wireless/airport.c 2003-12-18 10:59:45.000000000 +0800
|+++ linux-2.6.2-orinoco/drivers/net/wireless/airport.c 2004-02-17 15:26:40.000000000 +0800
--------------------------
File to patch:

I have also for the 2.4.26 kernel patched with the orinoco-cs-0.13d patch in the same directory as above for the 2.4.26 kernel. this was successful, however as I understand it I need to also patch the pcmcia-cs driver, but I am unable to locate this driver to see which patch applies

also do compile my kernel after applying the patches?

thanks for all the intrest 2gnu

2Gnu 07-25-2004 11:58 PM

From the Shmoo instructions:
"If you want to install one of the orinoco-0.xx patches directly to your kernel sources or to pcmcia-cs sources that I have not yet provided a patch for (see pcmcia-cs-X.Y.Z/wireless/orinoco_cs.c to determine what version you need), then drop the patch in the same directory as the orinoco source files and use the following command

patch -p1 < orinoco-0.XX-patch.diff"

So, what I suggested above, with as much detail as I can:

Download and unzip orinoco-0.13e.tar.gz
Download the orinoco-0.13e-patch.diff patch
$ cd orinoco-0.13e
$ cp path_to_file/orinoco-0.13e-patch.diff .
$ patch -p1 < orinoco-0.13e-patch.diff
$ make
$ su
# make install
Restart pcmcia services - /etc/rc.d/rc.pcmcia restart or /etc.initrd/pcmcia restart depending on your distro.
Check for monitor mode with iwpriv.

Again, as an alternative, try the most recent orinoco_cs drivers - 0.15RC1. They work for me with Kismet and 2.4.26 without patching (a couple of odd artifacts, thought). I've not been able to get Kismet to run under 2.6.7 for more than a minute or so. I've not recompiled under 2.6.7 to see if that will help.

byondrch 07-26-2004 12:40 AM

Thanks for all the help, guys,

I recompiled my 2.4.26 kernel removing the wavelan modules, and after that my card now goes int monitor mode. I will have to see if the same will work for the 2.6.7 kernel.

Thanks again

byondrch 07-26-2004 01:07 AM

That seems to be the trick, removing the wavelan modules from the kernel allows me to go into monitor mode with the stock drivers that are in the slackware packages. I was able to start kismet in the 2.6.7 kernel and had no problems that i could tell in 10 minutes, I hope this helps.


All times are GMT -5. The time now is 01:32 AM.