[CentOS] rpmbuild a kernel module

Fri Oct 14 02:05:58 UTC 2005
Craig White <craigwhite at azapple.com>

We've been down this path before and I got things working but am not
self-sufficient which is where I would like to be.

Problem is new kernel 2.6.9-22 and I need 2 modules installed that
aren't part of the RHEL kernels.

1 - megaraid for older non-supported megaraid cards. I have the source
and can compile the modules and make them work no problem. We have
archives in the mail list for that.

2 - appletalk - previously, it was suggested that I get the module from
esmith which I did and it has worked fine but they have yet to update to
the new kernel (which they will undoubtedly do). So I have the source
for their 2.6.9-11 appletalk kernel module but I am not knowledgeable
enough to make this work...

# rpmbuild --rebuild /root/kernel-module-
appletalk-0.0.1-2_2.6.9_11.EL.src.rpm
Installing /root/kernel-module-appletalk-0.0.1-2_2.6.9_11.EL.src.rpm
warning: user slords does not exist - using root
warning: group slords does not exist - using root
error: line 20: Tag takes single token only: Release: 2_package
kernel_sourcecode is not installed

(do I have to boot to 2.6.9-22 first?)

and I'm thinking that if it were possible to isolate the appletalk code,
I could simply make the module as I do with megaraid but I can't figure
out where it's kept or if it can be isolated...

# ls -l /usr/src/kernels/2.6.9-11.EL-i686/
total 336
drwxr-xr-x  24 root root   4096 Aug 22 14:01 arch
drwxr-xr-x   4 root root   4096 Aug 22 14:01 crypto
drwxr-xr-x  45 root root   4096 Aug 22 14:01 drivers
drwxr-xr-x  54 root root   4096 Aug 22 14:01 fs
drwxr-xr-x  15 root root   4096 Aug 22 14:01 include
drwxr-xr-x   2 root root   4096 Aug 22 14:01 init
drwxr-xr-x   2 root root   4096 Aug 22 14:01 ipc
drwxr-xr-x   3 root root   4096 Aug 22 14:01 kernel
drwxr-xr-x   4 root root   4096 Aug 22 14:01 lib
-rw-r--r--   1 root root  42211 Jun  8 15:41 Makefile
drwxr-xr-x   2 root root   4096 Aug 22 14:01 mm
-rw-r--r--   1 root root 162245 Jun  8 15:41 Module.symvers
drwxr-xr-x  33 root root   4096 Aug 22 14:01 net
drwxr-xr-x  10 root root   4096 Aug 22 14:01 scripts
drwxr-xr-x   3 root root   4096 Aug 22 14:01 security
drwxr-xr-x  15 root root   4096 Aug 22 14:01 sound
drwxr-xr-x   2 root root   4096 Aug 22 14:01 usr

If there is someone who can direct me to either rebuild the src rpm for
the kernel-appletalk module or isolate the source code so I can simply
make the module, I would appreciate it.

Thanks

Craig



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.