4.Add the following lines to any of the startup scripts like /etc/rc.d/rc.local or /etc/rc.d/init.d/network so that the driver will load when the system boots up:

#/sbin/insmod /lib/modules/2.2.12-20/net/gam.o

#/sbin/ifconfig <interface-name> <ip-addr>

Note: You may need to enter a different pathname than what is shown on the first line, above, depending on the Linux kernel version number you have.To find out the exact version number of the Linux kernel, use this command:

ls -al /lib/modules

You can dynamically load and unload the driver from a running kernel with the following commands:

#insmod gam.o

#rmmod gam.o

Testing the Driver Software

To install and test the driver, shut down the network stack, install the driver, and re-start the stack again with these commands:

#sh /etc/rc.d/init.d/network stop

#insmod gam.o

#sh /etc/rc.d/init.d/network start

When the driver is loaded into the system with the insmod command, the driver probes the PCI bus to locate all GA621 devices, and creates control structures for each.The driver logs a couple of messages available in the /var/log/messages file for each device with information about its PCI geographic location, IRQ, IO address, and some basic debug information (addresses of some important structures).

Linux driver software

7-3

Page 47
Image 47
NETGEAR GA621 manual Testing the Driver Software