pantz.org banner
Areca kernel module insert problem on CentOS 5
Posted on 06-09-2007 03:11:00 UTC | Updated on 06-09-2007 03:11:00 UTC
Section: /software/linux/ | Permanent Link

If your trying to insert a kernel module (insmod) after compiling it and get the error below:

insmod: error inserting 'arcmsr.ko': -1 Unknown symbol in module

Then you may not have loaded the modules that module depends on. In the example the arcmsr.ko is a raid scsi driver. But the scsi subsystem modules were not loaded before the scsi raid driver was inserted. So it failed with the error message. You would need to modprobe for the scsi devices modules first.

modprobe scsi_mod
modprobe sd_mod

Then insert the raid driver module.

insmod arcmsr.ko

To get a scsi raid driver to load on boot do the following. The example is for a scsi raid dirver from Areca compiled with the name arcmsr.ko. Get the raid (scsi) driver and make it. Take the made driver (for example arcmsr.ko) and copy to current kernel modules dir.

cp arcmsr.ko /lib/modules/`uname -r`/kernel/drivers/scsi/

Put "alias" line below in file /etc/modprobe.conf

echo alias scsi_hostadapter arcmsr >>/etc/modprobe.conf

Update a the lists the dependencies for every module.

depmod -A

Make the new initrd image and copy it into boot directory

mkinitrd -f -v /boot/initrd-`uname -r`.img `uname -r`

The above mkinitrd line is for CentOS 5 kernel. Your kernel name may be different. Also, note you might need --with=sd_mod --with=scsi_mod in mkinitrd line. Since the raid module is dependent on these. Try it without them first. Don't forget to change your /boot/grub/menu.lst file to reflect the new initrd image name if need be.

Del.icio.us! | Digg Me! | Reddit!

Related stories


RSS Feed RSS feed logo
About


3com
3ware
alsa
alsactl
alsamixer
amd
apache
areca
arm
ati
auditd
awk
badblocks
bind
bios
bonnie
cable
carp
cat5
cdrom
centos
chart
cifs
cisco
comcast
commands
comodo
compiz-fusion
corsair
cpufreq
cpufrequtils
cpuspeed
cron
crontab
crossover
cu
cups
cvs
database
dbus
dd
dd_rescue
ddclient
debian
decimal
dhclient
dhcp
diagnostic
diskexplorer
disks
dns
dos
dovecot
dsniff
dvdauthor
e-mail
editor
emerald
ethernet
ext3
fat32
fedora
fetchmail
fiber
filesystems
firefox
firewall
flexlm
floppy
flowtools
fonts
format
ftp
gdm
gnome
greylisting
growisofs
grub
harddrive
hba
hex
hfsc
html
http
idl
ie
intel
ios
ipmi
iptables
irix
javascript
kde
kernel
kmail
kprinter
krecord
kubuntu
ldap
linux
logfile
maradns
matlab
memory
mencoder
mhdd
mkinitrd
mkisofs
moinmoin
motherboard
mouse
movemail
mplayer
multitail
mutt
myodbc
mysql
mythtv
nagios
nameserver
netflow
nic
ntfs
ntp
nvidia
odbc
openbsd
openntpd
openoffice
openssh
openssl
opteron
parted
partimage
patch
perl
pf
pfflowd
pfsync
photorec
php
pop3
pop3s
ports
postfix
power
procmail
proftpd
proxy
putty
pxe
python
qemu
r-studio
raid
recovery
router
rpc
rsync
samba
schedule
scsi
seagate
seatools
sed
sendmail
sgi
shell
siw
smtp
snort
solaris
soundcard
spam
spamd
sql
sqlite
squid
ssh
ssh.com
ssl
subnet
subversion
sun
supermicro
switches
symbols
syslinux
systemrescuecd
t1
tcpip
tcpwrappers
telnet
terminal
testdisk
tftp
thttpd
thunderbird
timezone
tools
tr
trac
tuning
tunnel
vi
wget
wiki
windows
windowsxp
wireless
wpa_supplicant
x
xauth
xfree86
xfs
xinearama
xmms
zdump
zic
zlib