Craig White
2007-Dec-25 17:47 UTC
[CentOS] problems building appletalk module with new kernel
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 my Makefile that I have been using for quite some time but not the one used above is... # # Makefile for the Linux AppleTalk layer. # CONFIG_ATALK=m obj-$(CONFIG_IPDDP) += ipddp.o obj-$(CONFIG_COPS) += cops.o obj-$(CONFIG_LTPC) += ltpc.o
Akemi Yagi
2007-Dec-25 18:20 UTC
[CentOS] problems building appletalk module with new kernel
On Dec 25, 2007 9:47 AM, Craig White <craigwhite at 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' ? > > CraigI 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: http://wiki.centos.org/HowTos/BuildingKernelModules Akemi