I recently bought a USB to LAN RJ45 Ethernet Network Adapter off ebay.
While it was working fine under Win7 (I had to install the drivers from the small CD), I could not get it to work under Debian Squeeze.
I had to compile the drivers.
On the CD, there were a few folders:
I chose RD9700, this is what worked on Win7.
DM9601 would have worked as well, just follow the same instructions…
Now, copy the contents of the RD9700/Linux to a folder.
What you will need to compile:
Open a shell and get the proper headers for your kernel version
Type: (or copy and paste)
apt-get install linux-headers-`uname -r`
if you type uname -r it is useful to get your kernel version
You probably have the next package installed, it is necessary to compile stuff on your linux box
You can install those with synaptic package manager.
Now go to the folder where you copied the files and type:
This is where I ran into problems…
make: Entering directory `/usr/src/linux-headers-2.6.32-5-686′
CC [M] /usr/src/usblan/rd9700/qf9700.o
/usr/src/usblan/rd9700/qf9700.c: In function âqf9700_bindâ:
/usr/src/usblan/rd9700/qf9700.c:380: error: âstruct net_deviceâ has no member named âdo_ioctlâ
/usr/src/usblan/rd9700/qf9700.c:381: error: âstruct net_deviceâ has no member named âset_multicast_listâ
/usr/src/usblan/rd9700/qf9700.c: In function âqf9700_rx_fixupâ:
/usr/src/usblan/rd9700/qf9700.c:443: error: âstruct usbnetâ has no member named âstatsâ
/usr/src/usblan/rd9700/qf9700.c:444: error: âstruct usbnetâ has no member named âstatsâ
/usr/src/usblan/rd9700/qf9700.c:445: error: âstruct usbnetâ has no member named âstatsâ
/usr/src/usblan/rd9700/qf9700.c:446: error: âstruct usbnetâ has no member named âstatsâ
/usr/src/usblan/rd9700/qf9700.c:447: error: âstruct usbnetâ has no member named âstatsâ
make: *** [/usr/src/usblan/rd9700/qf9700.o] Error 1
make: *** [_module_/usr/src/usblan/rd9700] Error 2
make: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.32-5-686′
make: *** [all] Error 2
No matter what I did, I could not get the driver to compile…
After a while, I found these:
I downloaded QF9700-source.zip from
and extracted the contents into the same folder.
I ran make clean and then make
All you need to do now, is to copy the .ko file to /lib/modules/`uname -r`/kernel/drivers/net/usb
then run depmod to register the module,
modprobe usbnet and
insmod /lib/modules/`uname -r`/kernel/drivers/net/usb/qf9700.ko
and voilà the driver should be installed.
You can verify that you have a new network interface with
I got a new eth1 🙂
You then have to configure it the usual way:
nano -w /etc/network/interfaces
iface eth1 inet dhcp
For dhcp. You might have a different eth device, replace eth1 with the proper one such as eth0
or service networking restart
or it is just as easy to reboot
I might have forgotten a few steps, i am writing this off the top of my head. Hope it helped someone!