www.netcomm.com.au
Rev.1 - YML618
Page 12
NP1500 Fast Ethernet LAN Adaptor
Linux
The procedure to activate NP1500 on linux is as follows:
1. Compile:
The instruction for compiling the driver is include at the end of the driver file. (Run this
instruction at /usr/src/linux)
2. Insert the driver as module:
insmod tulip.o
(Run 'lsmod' to see if the module is inserted)
3. Bind your card to an IP address
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST}
netmask ${NETMASK}
(Run 'netstat -i' to see if there is a interface 'ne0')
4. Add your card to IP routing table, then add gateway also your card:
/sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
(You should be able to ping local network now)
Gateway:
/sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1
5. Start inet deamon.
/usr/sbin/inetd
(You should now be on the network)
* Make sure that your kernel is built with network, fast Ethernet and module support.
Otherwise, you have to rebuild your kernel.
(1: go to /usr/src/linux directory
2: run 'make menuconfig' or 'make config'
3: mark the options list above.
4: exit and rebuild your kernel.
make dep;make clean;make zImage
the file 'zImage' will be at /usr/src/linux/arch/i386/boot/zImage
5: modify /etc/lilo.conf.(this file specify where kernel image is)
6: run 'lilo' )
You can run 'netconfig' which will do step 4,5,6 for you. This will create '/etc/rc.d/inet1'
and 'inet2' files. These two files will run at boot time.
Then just add a line at the beginning of 'inet1'.
'insmod /your driver'path/tulip.o'
Your driver will now work every time you boot.