Can't load MOL kernel modules

Samuel Rydh mol-general@lists.maconlinux.org
Mon, 15 Sep 2003 11:58:12 +0200


On Sun, Sep 14, 2003 at 05:23:05PM -0600, dpates@dsdk12.net wrote:
> Quoting Alex <ajsl@DigitalPhage.com>:
> 
> > Mac-on-Linux 0.9.69 Copyright (C) 1997-2003 Samuel Rydh
> > Starting MOL session 0
> > Loading Mac-on-Linux kernel module:
> >     /usr/local/lib/mol/0.9.69/modules/2.4.21-rc1-ben0/mol.o
> > /usr/local/lib/mol/0.9.69/modules/2.4.21-rc1-ben0/mol.o: unresolved 
> > symbol find_type_devices
> > /usr/local/lib/mol/0.9.69/modules/2.4.21-rc1-ben0/mol.o: unresolved 
> > symbol find_devices
> > /usr/local/lib/mol/0.9.69/modules/2.4.21-rc1-ben0/mol.o: unresolved 
> > symbol get_property
> > ====================================================================
> > 
> > I've built MOL from the bitkeeper source, rebuilt and installed my 
> > 2.4.21-rc1-ben0 kernel from source (twice) and have the right headers 
> > for my kernel.. all to no avail :-(
> 
> get_property() is implemented in arch/kernel/prom.c, so it's not like you can
> build that out, as far as I know. What does your '.config' look like? 
> This _is_ a PowerPC system, right?

This problem is almost certainly related to module symbol versioning.
The dependency tracking system of the 2.4 kernel is not perfect and it
is quite common that the symbol versioning stuff is not correctly
regenereated after a config change or source update (even if one does
a 'make dep').

To resolve this, do the following:

	1) backup the .config file containing your kernel configuration
	2) make mrproper
	3) restore the .config file
	4) make oldconfig
	5) make dep
	6) make
	7) make modules_install
	8) install the kernel

Besides installing any kernel modules, the 'make modules_install' also
installs a symlink to the kernel source (MOL uses this symlink to
find the correct kernel source).

After this has been done, rebuild MOL.

/Samuel