Which package needed for "make modules"

Marc-Olivier Killijian mol-general@lists.maconlinux.org
Thu, 01 Apr 2004 14:24:42 +0200


--=-rKsqTGPVZlmD/RSIbp3F
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

> > With 'apt-get source kernel-image-2.4.25-powerpc-pmac' I get a
> > directory called kernel-patch-2.4.25-powerpc-2.4.25.  I guess I
> > should use make-kpkg to compile kernel-source-2.4.25 using those
> > patches.  How ?  It is not a "simple" diff patch but a complete
> > directory with plain files and diff files.
>=20
> In order to get a working powerpc kernel tree from those packages, you
> need to install kernel-source-2.4.25, kernel-patch-2.4.25-powerpc and
> kernel-build-2.4.25-powerpc.  Then unpack the source tree from the
> tarball /usr/src/kernel-source-2.4.25.tar.bz2, apply the patch from
> /usr/src/kernel-patches/powerpc/debian-powerpc.diff.gz, and unpack
> /usr/src/kernel-build-2.4.25-powerpc.tar.bz2 on top of the result.

Sounds like do-able :-)

> At least, that's what I usually do.  No, it's neither easy nor
> straightforward.  But it wasn't meant to be.  Let me repeat, you
> probably don't need the kernel source in the first place.

I got your point but I used to compile my own kernels from Ben's tree
and never had any problem. Since I tried to use
kernel-image-2.4.25-powerpc-pmac for various reasons (e.g. alsa drivers,
cd-rom stuff), I wasn't able to compile the mol modules for this kernel.
This is the reason why I wanted to get a correct source tree
corresponding to the kernel I run.

> > OK, I have two versions of mol installed, the rsync'ed and the Debian
> > pkg .... I'll try to clean things a little bit. How to do a "make
> > uninstall" for the rsync version ?
>=20
> Since there is no uninstall target in the top-level Makefile, you need
> to weed them out by hand.  Most of it got installed in /usr/local, if
> you didn't change the default prefix when running the configure
> script.

OK, I should be able to locate mol related things.

> > tsfmok# modprobe mol
> >=20
> > tsfmok# startmol
> > Mac-on-Linux 0.9.71-pre1 [mar 29 2004 17:03]
> > Copyright (C) 1997-2004 Samuel Rydh
> > Starting MOL session 0
> > Removing stale lockfile /var/lock/mol-0
> > Fatal error: The MOL kernel module is not loaded
>=20
> Looks like you are using incompatible versions of the kernel module
> and the emulator.  To be sure, I need the output from 'modprobe -l
> mol\*' and 'md5sum /lib/modules/2.4.25-powerpc/misc/mol.o'.

Here we go:

tsfmok# modprobe -l mol\*
/lib/modules/2.4.25-powerpc/misc/mol.o

tsfmok# md5sum /lib/modules/2.4.25-powerpc/misc/mol.o
35fb76ad1a0879eb81ee6054c3e5a95e  /lib/modules/2.4.25-powerpc/misc/mol.o

BUT

I removed everything related to MOL except the config files : 'apt-get
remove mol' + 'rm -fr /usr/local/bin/mol* /usr/local/lib/mol/*'
and then re-installed the Debian package 'apt-get install mol
mol-drivers-macosx mol-drivers-linux' and it seems to run fine now.

Sorry for the mess :-)

Marco

--=-rKsqTGPVZlmD/RSIbp3F
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAbAoJFa6v2Z2+PJQRAjLXAKCiBcUkOJxt0vfUSLoGdborfo8q9QCeI/Dc
Xi4IyLq1kTAFvDTdUMjZcSc=
=VArZ
-----END PGP SIGNATURE-----

--=-rKsqTGPVZlmD/RSIbp3F--