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.

Reddit!

Related stories


RSS Feed RSS feed logo

About


3com

3ware

alsa

alsactl

alsamixer

amd

android

apache

areca

arm

ati

auditd

awk

badblocks

bash

bind

bios

bonnie

cable

carp

cat5

cdrom

cellphone

centos

chart

chrome

chromebook

cifs

cisco

cloudera

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

dkim

dns

dos

dovecot

drac

dsniff

dvdauthor

e-mail

echo

editor

emerald

ethernet

expect

ext3

ext4

fat32

fedora

fetchmail

fiber

filesystems

firefox

firewall

flac

flexlm

floppy

flowtools

fonts

format

freebsd

ftp

gdm

gmail

gnome

google

greasemonkey

greylisting

growisofs

grub

hacking

hadoop

harddrive

hba

hex

hfsc

html

html5

http

https

hulu

idl

ie

ilo

intel

ios

iperf

ipmi

iptables

ipv6

irix

javascript

kde

kernel

kickstart

kmail

kprinter

krecord

kubuntu

kvm

lame

ldap

linux

logfile

lp

lpq

lpr

maradns

matlab

memory

mencoder

mhdd

mkinitrd

mkisofs

moinmoin

motherboard

mouse

movemail

mplayer

multitail

mutt

myodbc

mysql

mythtv

nagios

nameserver

netflix

netflow

nginx

nic

ntfs

ntp

nvidia

odbc

openbsd

openntpd

openoffice

openssh

openssl

openvpn

opteron

parted

partimage

patch

perl

pf

pfflowd

pfsync

photorec

php

pop3

pop3s

ports

postfix

power

procmail

proftpd

proxy

pulseaudio

putty

pxe

python

qemu

r-studio

raid

recovery

redhat

router

rpc

rsync

ruby

saltstack

samba

schedule

screen

scsi

seagate

seatools

sed

sendmail

sgi

shell

siw

smtp

snort

solaris

soundcard

sox

spam

spamd

spf

spotify

sql

sqlite

squid

srs

ssh

ssh.com

ssl

su

subnet

subversion

sudo

sun

supermicro

switches

symbols

syslinux

syslog

systemrescuecd

t1

tcpip

tcpwrappers

telnet

terminal

testdisk

tftp

thttpd

thunderbird

timezone

ting

tls

tools

tr

trac

tuning

tunnel

ubuntu

unbound

vi

vpn

wget

wiki

windows

windowsxp

wireless

wpa_supplicant

x

xauth

xfree86

xfs

xinearama

xmms

youtube

zdump

zeromq

zic

zlib