
Arcom Embedded Linux Technical Manual Configuring AEL
Example configuration
For a node that is connected to the ABC-Wireless-Network using encryption and
obtaining its IP information via DHCP, the following /etc/network/interfaces stanza might
be used:
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid ABC-Wireless-Network
wireless_channel 11
wireless_enc restricted
wireless_key1 893248A248B9443FC00D423090
Configuring and loading kernel modules
The Linux kernel supports configuring and loading device drivers as external modules.
This means much of the system need only be resident in RAM when necessary.
Modules are loaded using the modprobe utility, which in turn calls the lower level
insmod utility. You need not normally call either of these utilities manually, since the
kernel automatically calls modprobe when it is asked to open a device for which no
module is currently loaded. The modules that are available via modprobe on the current
system are usually found in the /lib/modules/VERSION/ folder corresponding to the
running kernel.
You can load a module that is installed in the /lib/modules/VERSION/ folder by calling
modprobe with just the module name and without the .o suffix. For example, to load the
ppp_generic.o module, which is installed under /lib/modules/VERSION/, enter the
following command:
# modprobe ppp_generic
Modules can be loaded from elsewhere by using the insmod utility directly and giving a
full path to the module. For example, to load the module /tmp/mymodule.o, enter the
following:
# insmod /tmp/mymodule.o
You can view the list of currently loaded modules using the command lsmod.
Passing parameters to modules
Many kernel modules can take parameters that allow you to tweak various options. The
available parameters (along with other interesting information) can be listed using the
modinfo utility, as follows:
# modinfo ppp_generic
# modinfo /tmp/mymodule.o
In many cases, the parameters of a particular module are documented more fully within
the kernel source tree.
© 2006 Arcom Issue G 21
Comentários a estes Manuais