LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Patching kernel for eciadsl (https://www.linuxquestions.org/questions/linux-newbie-8/patching-kernel-for-eciadsl-289557/)

z3nith 02-13-2005 02:48 AM

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??

__J 02-13-2005 02:53 AM

you need the kernel-source package installed. then, cd into the kernel-source directory (/usr/src/linux-xxxxxx) and patch -p1 <path to patch>))

z3nith 02-13-2005 06:20 PM

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

z3nith 02-15-2005 01:05 AM

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.


All times are GMT -5. The time now is 03:18 AM.