LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-03-2004, 04:33 AM   #1
bige
Member
 
Registered: Mar 2003
Location: Kansas
Distribution: debian
Posts: 44

Rep: Reputation: 15
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
 
Old 07-03-2004, 09:36 AM   #2
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
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.

Last edited by 2Gnu; 07-03-2004 at 10:59 PM.
 
Old 07-22-2004, 10:01 AM   #3
byondrch
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 15

Rep: Reputation: 0
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
 
Old 07-24-2004, 10:32 PM   #4
byondrch
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 15

Rep: Reputation: 0
bump
 
Old 07-24-2004, 11:43 PM   #5
byondrch
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 15

Rep: Reputation: 0
actually i am mistaken, that worked with a different driver, I am unsucsesful with that patch
 
Old 07-25-2004, 09:35 AM   #6
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
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.
 
Old 07-25-2004, 09:50 AM   #7
byondrch
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 15

Rep: Reputation: 0
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
 
Old 07-25-2004, 11:05 AM   #8
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
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?
 
Old 07-25-2004, 10:51 PM   #9
byondrch
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 15

Rep: Reputation: 0
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
 
Old 07-25-2004, 11:58 PM   #10
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
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.
 
Old 07-26-2004, 12:40 AM   #11
byondrch
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 15

Rep: Reputation: 0
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
 
Old 07-26-2004, 01:07 AM   #12
byondrch
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 10.0
Posts: 15

Rep: Reputation: 0
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.
 
  


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 monitor mode patch? pete1234 Linux - Wireless Networking 1 09-03-2005 06:16 PM
Orinoco and monitor mode rafita Linux - Wireless Networking 1 04-11-2005 08:04 PM
fedora c3 + orinoco + monitor patch madj42 Linux - Wireless Networking 1 03-07-2005 01:05 AM
orinoco monitor mode in suse 9.2? evilhomer SUSE / openSUSE 2 01-02-2005 02:39 PM
Orinoco Patch(make) problem (The hunt for monitor mode.) Esid Linux - Wireless Networking 0 07-25-2004 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:41 AM.

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