On Tue, 2007-12-25 at 15:10 -0700, Craig White wrote:
On Tue, 2007-12-25 at 10:20 -0800, Akemi Yagi wrote:
On Dec 25, 2007 9:47 AM, Craig White craigwhite@azapple.com wrote:
I've been doing this on CentOS 4 and CentOS 5 but after installing 2.6.18-53.1.4el kernel, I'm having a bit of a struggle...
# make -C /lib/modules/2.6.18-53.1.4.el5/build \ SUBDIRS=/usr/src/appletalk modules make: Entering directory `/usr/src/kernels/2.6.18-53.1.4.el5-i686' CC [M] /usr/src/appletalk/aarp.o CC [M] /usr/src/appletalk/ddp.o CC [M] /usr/src/appletalk/dev.o CC [M] /usr/src/appletalk/atalk_proc.o CC [M] /usr/src/appletalk/sysctl_net_atalk.o LD [M] /usr/src/appletalk/appletalk.o Building modules, stage 2. MODPOST CC /usr/src/appletalk/appletalk.mod.o LD [M] /usr/src/appletalk/appletalk.ko make: Leaving directory `/usr/src/kernels/2.6.18-53.1.4.el5-i686'
# make -C /lib/modules/2.6.18-53.1.4.el5/build \ SUBDIRS=/usr/src/appletalk modules_install make: Entering directory `/usr/src/kernels/2.6.18-53.1.4.el5-i686' INSTALL /usr/src/appletalk/appletalk.ko DEPMOD 2.6.18-53.1.4.el5 make: Leaving directory `/usr/src/kernels/2.6.18-53.1.4.el5-i686'
and here is my problem... # insmod /lib/modules/2.6.18-53.1.4.el5/extra/appletalk.ko insmod: error inserting '/lib/modules/2.6.18-53.1.4.el5/extra/appletalk.ko': -1 Invalid module format
The above reflects an adjustment in my Makefile but it didn't seem to help
why all of a sudden, this 'Invalid module format' ?
Craig
I was able to build and install appletalk.ko under 2.6.18-53.1.4.
What do you see with:
/sbin/modinfo /lib/modules/2.6.18-53.1.4.el5/extra/appletalk.ko
Does the vermagic agree with your running kernel? Also, where did you get the source for appletalk? Is that the stuff from net/appletalk in your kernel's source tree?
Another option may be to follow the wiki:
I think I see the problem...it appears that it installed and booted the xen kernel
Will change and reboot with non-xen kernel
---- yup - that was it.
# lsmod|grep appletalk appletalk 39980 36
OK, I thought I ended xen excursions by removing previous copy of xen kernel but obviously it came back with updates. How do I make sure that xen kernel doesn't get installed next time?
Craig