Netgear GA622T GA622T Reference Manual - Page 49

Testing the Driver Software

Page 49 highlights

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 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 GA622T 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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57

Linux driver software
7-3
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 GA622T 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).