LinuxQuestions.org
Visit Jeremy's Blog.
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-13-2005, 03:48 AM   #1
z3nith
Member
 
Registered: Jan 2005
Posts: 40

Rep: Reputation: 15
Patching kernel for eciadsl


I am having trouble with the eciadsl setup. Here are my specs.

Mandrake 10
D-Link DSL200 USB ADSL modem
Kernel 2.6.3 (When i type 'uname -r -p' i get '2.6.3-4mdk unknown')

I have downloaded and installed:
rpm -i eciadsl-usermode-0.10-1.i386.rpm

I am supposed to patch the kernel and from what i've read i have to
cd /usr/src/linux-2.6.3
patch -p1 </path/to/2.6.x-usb.patch

My problem is that this /usr/src/linux-2.6.3 does not exist. Even from root i can get as far as /usr/src but can't find linux-2.6.3. I then tried making a symbolic link in the /usr/src directory by using:
ln -s /lib/modules/2.6.3-4mdk (This path does exist)

Now i go into /usr/src and try to run the patch again 'patch -p1 </path/to/patch
This is the error i have been getting.
-------------------
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux-2.6.0/drivers/usb/core/devio.c 2003-12-18 21:32:47.000000000 +0100
|+++ linux-2.6.0/drivers/usb/core/devio-new.c 2003-12-18 21:33:51.000000000 +0100
--------------------------
File to patch:


I am not sure where to point the script to in order to patch the kernel. Can anyone help me get connected??
 
Old 02-13-2005, 03:53 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you need the kernel-source package installed. then, cd into the kernel-source directory (/usr/src/linux-xxxxxx) and patch -p1 <path to patch>))
 
Old 02-13-2005, 07:20 PM   #3
z3nith
Member
 
Registered: Jan 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Thankyou

i ran 'rpmdrake' and searched for 'kernel'
A list with 2.6.3-4mdk was there and after installing it the directoory was there and the patch ran fine.

However, when i run: 'eciadsl-start | tee log.txt'
everything synchs ok and when connecting i get this error:

Couldn't get channel number: Input/output error
ioctl(PPPIOCGFLAGS): Bad file descriptor
ERROR: failed to connect

If anyone can help here i would really appreciate it. I have searched the net for a week with no resolve.

Mandrake 10
DSL200 USB ADSL modem (in the list in eciadsl-config-tk)
eciadsl-usermode-0.10.1.i386.rpm (installed ok)
2.6.3-usb.patch (patched ok)
Tried different synch.bin files
 
Old 02-15-2005, 02:05 AM   #4
z3nith
Member
 
Registered: Jan 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Well i am at wits end. I have tried everything within my linux knowledge. (laughs at himself, which isnt much)

Can anyone tell me at least what this error means? I am thinking i may have to get an ethernet modem instead of this USB one.
 
  


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
Patching the kernel MTT1k Linux - Newbie 6 09-15-2005 06:42 AM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 05:18 AM
kernel patching pfunk Linux - Software 3 10-06-2004 07:55 PM
Kernel Patching? blmartin777 Linux - Software 1 05-10-2004 04:56 PM
Patching Kernel loke137 Linux - General 1 04-01-2003 09:09 PM


All times are GMT -5. The time now is 06:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration