Mandrake USB Connectivity
Mandrake 9.2 update thanks to Troy Will
usbdnet is outdated and has been replaced by usbnet making connection very simple:
As root, run
# modprobe usbnet
# ifconfig 192.168.129.1
# ping -c 3 192.168.129.201
Mandrake < 9.2 by David Cafaro
No patch is needed at all. The usbdnet driver is already installed.
The only thing needed to do from the default mandrake install was change two value in the modules.usbmap and add the /etc/sysconfig/network-scripts/ifcfg-usb0 file.
The ifcfg-usb0 file should contain the following:
BOOTPROTO=static
BROADCAST=192.168.129.255
IPADDR=192.168.129.1
NETMASK=255.255.255.0
NETWORK=192.168.129.0
DEVICE=usb0
In the /lib/modules/`uname -r`/modules.usbmap file one line needs to be changed. Look for a line that starts with the following:
usbdnet 0x0193 0x40dd 0x8004 0x0000
or
usbdnet 0x0193 0x04dd 0x8004 0x0000
and change one of them to this:
usbdnet 0x0003 0x04dd 0x8004 0x0000
Note that you need to put an entry in the /etc/hotplug/usb.handmap file and it will be reflected in the /lib/modules/`uname -r`/modules.usbmap file upon the rebuilding of the file.
Only one line in the file needs to be changed as far as I can tell (the other usbdnet lines are for different hardware, maybe?). I did find that after two days my modules.usbmap file reverted back to it's original version. I had to just change the one line again to get things working once more. I don't know if that is just something flaky with my system, or something more. Any ideas are welcome. Enjoy.
Followup:
I searched a little on the web and found the reason! /lib/modules/.../modules.usbmap file is created by "depmod -a" (on 2.4 kernels). The correct way to add a device is to use the /etc/hotplug/usb.handmap file and add a line there: (dont forget the linefeed if its the last line in the file)
usbdnet 0x0003 0x04dd 0x8004 0x0000 0x0000 0x02 0x00 0x00 0xff 0x01 0x00 0x00000000
|