kernel module mismatch?

Ken Grunke mol-general@lists.maconlinux.org
Mon, 24 Mar 2003 14:45:51 -0600


On Monday 24 March 2003 01:31 pm, you wrote:

> from the log it seems you are doing all the right things but to be
> sure:
>
> - rpm mol --erase                             #erase current
> versions - rpm mol-kmods --erase
> - rpm mol-kmods.x.x.x.rpm --rebuild           #build new versions 
> (substitute the right name) - rpm mol.x.x.x.rpm --rebuild
>

I got the user binary of MOL 0.9.68, and the K-mods source of the 
same version, from the maconlinux.org website and did this:

rpm -e mol-0.9.65-1
rpm -e mol-kmods-0.9.65-1
cd to directory containing the kmods source, then:
rpm -rebuild ./mol-kmods-9.68-1

rebuild seemed to proceed normally, no errors. I then moved the MOL 
binaries to /usr/src/rpm/RPMS/ppc/ where the kmods were placed 
instead of moving the kmods to where the binary was located as 
recommended in the how-to. I then installed the kmods first, then MOL:

cd /usr/src/rpm/RPMS/ppc/
rpm -ivh mol-kmods-0.9.68-1.ppc.rpm
rpm -ivh mol-0.9.68-1.ppc.rpm

No errors there, seemed to work OK but startmol --loadonly just 
returns "Starting MOL session 0" 
and --test returns the more specific error.

Starting MOL session 0
The MOL kernel module version 0.9.65 does not match the binary.
Please unload the kernel module (rmmod mol) and try again

rpm -qa |grep mol returns the newly installed version!

thanks,

Ken



>
> On Monday, March 24, 2003, at 11:21AM, Ken Grunke <kenspin@mwt.net> 
wrote:
> >After upgrading from version 0.9.65 to 0.9.68 using  Jamie
> > Maynard's step-by-step guide, I get this::
> >
> >[root@dsl-193 /]# startmol --test
> >Mac-on-Linux 0.9.68 Copyright (C) 1997-2003 Samuel Rydh
> >Starting MOL session 0
> >The MOL kernel module version 0.9.65 does not match the binary.
> >Please unload the kernel module (rmmod mol) and try again
> >
> >When I look back at the terminal output for the k-mods rebuild,
> >there's no indication of errors other than in the last few
> > lines--a warning about my hostname:
> >
> >Processing files: mol-kmods-0.9.68-1
> >Finding  Provides: (using /usr/lib/rpm/find-provides)...
> >Finding  Requires: (using /usr/lib/rpm/find-requires)...
> >Provides: mol-kernel-modules
> >PreReq: rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> >rpmlib(CompressedFileNames) <= 3.0.4-1
> >Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> >rpmlib(CompressedFileNames) <= 3.0.4-1
> >warning: Could not canonicalize hostname: dsl-193
> >Wrote: /usr/src/rpm/RPMS/ppc/mol-kmods-0.9.68-1.ppc.rpm
> >Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.43696
> >+ umask 022
> >+ cd /usr/src/rpm/BUILD
> >+ cd mol-kmods-0.9.68
> >+ rm -rf /var/tmp/mol-kmods-root
> >+ exit 0
> >Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.73331
> >+ umask 022
> >+ cd /usr/src/rpm/BUILD
> >+ rm -rf mol-kmods-0.9.68
> >+ exit 0
> >
> >Why is version 0.9.65 indicated even though I made sure to remove
> > it before upgrading?
> >I'm running kernel 2.4.18-0.9a on an oldworld PowerMac 7500/200.
> >MOL 0.9.65 worked fine, should I stay with it?
> >Or is my kernel too old for the new MOL?
> >Not sure what to do, thanks for any help in advance!
> >
> >Ken