You are on page 1of 2

USB Driver for Linux Install

Date: 2006/6/8
1. Install RedHat 9.0 (RedHat 8.0)
2. Login as root
3. Check out Linux version (RedHat 8.0 -> linux-2.4.18-14, RedHat 9.0 -> linux-2
.4.20-8)
[root@CNXT root]# cd /usr/src
[root@CNXT src]# pwd
/usr/src
[root@CNXT src]# ls -l
total 12
drwxr-xr-x 2 root root 4096 Jan 25 2003 debug
lrwxrwxrwx 1 root root 14 Jun 17 2005 linux-2.4 -> linux-2.4.2
0-8
drwxr-xr-x 16 root root 4096 Jun 17 2005 linux-2.4.20-8
drwxr-xr-x 7 root root 4096 Jun 17 2005 redhat
4. RedHat 9.0 for example
#ln -s linux-2.4.20-8 linux
[root@CNXT src]# ln -s linux-2.4.20-8 linux
[root@CNXT src]# ls -l
total 12
drwxr-xr-x 2 root root 4096 Jan 25 2003 debug
lrwxrwxrwx 1 root root 14 Jun 8 12:19 linux -> linux-2.4.20-8
lrwxrwxrwx 1 root root 14 Jun 17 2005 linux-2.4 -> linux-2.4.2
0-8
drwxr-xr-x 16 root root 4096 Jun 17 2005 linux-2.4.20-8
drwxr-xr-x 7 root root 4096 Jun 17 2005 redhat
5. Copy folder ASL-25020 to /root
6. #cd /root/ASL-25020
#make clean
#make all
[root@CNXT ASL-25020]# pwd
/root/ASL-25020
[root@CNXT ASL-25020]# make clean
rm -f ./src/CDCEther.o ./src/CDCEther.o *.o .depend ./VKGEther
[root@CNXT ASL-25020]# make all
gcc -c -O2 -Wall -Wno-missing-braces -Wstrict-prototypes -fomit-frame-pointer -
fno-strict-aliasing -pipe -fno-strength-reduce -mcpu=i486 -falign-loops=2 -falig
n-jumps=2 -falign-functions=2 -I/usr/src/linux/include -I./inc -D__KERNEL__ -DM
ODULE -Dlinux -DDBG=0 -o src/CDCEther.o src/CDCEther.c
ld -r -o ./VKGEther ./src/CDCEther.o
7. Add "alias eth1 VKGEther" in file /etc/modules.conf
#vi /etc/modules.conf
alias eth0 pcnet32
alias scsi_hostadapter BusLogic
alias sound es1371
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1
|| :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 |
| :
alias usb-controller usb-uhci
alias eth1 VKGEther
8. Edit file "ifcfg-eth1"
#vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.3
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
9. Add "insmod /root/ASL-25020/VKGEther" to file rc.local
#vi /etc/rc.d/rc.local
insmod /root/ASL-25020/VKGEther
10. Connect USB to device and reboot
11. Test
#ifconfig eth0 down
#ping 192.168.1.2
[root@CNXT ASL-25020]# ifconfig eth0 down
[root@CNXT ASL-25020]# ping 192.168.1.2 -c 3
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=2.03 ms
64 bytes from 192.168.1.2: icmp_seq=3 ttl=64 time=3.06 ms
--- 192.168.1.2 ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2021ms
rrt min/avg/max/mdev = 2.038/2.549/3.061/0.513 ms
[root@CNXT ASL-25020]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:05:5D:00:00:04
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3200 (3.1 Kb) TX bytes:3396 (3.3 Kb)

You might also like