[vox-tech] Compile 2.6.5 kernel Debian-style, get unbootable system

Ken Bloom vox-tech@lists.lugod.org
Wed, 5 May 2004 08:36:38 -0700


--4SFOXa2GPu3tIq4H
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, May 05, 2004 at 03:55:27AM -0700, Issac Trotts wrote:
> Part of the problem now seems to be resolved.  I used GRUB this time,
> which made the boot loading part much easier.  All the needed info was
> in /usr/share/doc/grub/README.Debian.
>=20
> On Wed, May 05, 2004 at 12:55:44AM -0700, Issac Trotts wrote:
> > Here's what I remember of what happened:
> >=20
> > $ apt-get kernel-source-2.6.5
> > $ tar xjvf /usr/src/kernel-source-2.6.5.tar.bz2
> > $ cd kernel-source-2.6.5
> > $ cp /boot/config-2.6.3-1-686 .config  # or something similar
> > $ make menuconfig
> > $ MAKEFLAGS=3D'CC=3Dgcc-3.3' fakeroot make-kpkg --append_to_version -68=
6 \
> > kernel_image modules_image
> > $ cd ..
> > $ sudo dpkg -i kernel-image-2.6.5-686_.01_i386.deb
>=20
> First, I reinstalled Debian since my floppy drive is hosed (so I can't
> use a rescue floppy) and I couldn't figure out how to use the install
> CD as a rescue disk.
>=20
> Then I compiled kernel version 2.4.25 using /boot/config-2.4.22-1-386.
> For all questions involving LILO, I told it to do nothing.  Once the
> questioning stopped, I ran update-grub to automatically update the boot
> menu. =20

You might be interested in my /etc/kernel-img.conf

# Do not create symbolic links in /
postinst_hook =3D /sbin/update-grub
postrm_hook =3D /sbin/update-grub
do_bootloader =3D no
do_symlinks =3D no
do_initrd =3D Yes

>=20
> I was then able to boot the recompiled 2.4.25, but the networking was
> intolerably slow.  Running /sbin/ifconfig showed me that there were
> lots of network errors, but I couldn't tell how to track them down.
>=20
> I haven't yet found a way to get a recompiled 2.6.5 kernel to run.
> Its latest complaint is=20
>=20
>     VFS: Cannot open root device "hda1" or unknown-block(0,0)
>     Please append a correct "root=3D" boot option=20
>     Kernel panic: Unable to mount root fs on unknown-block(0,0)
>=20
> which also comes up when I choose 2.6.5 in "recovery mode" in GRUB.
>=20

I have a working .config for kernel 2.6.5, ask me if you want it.

--=20
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.
My key was last signed 10/14/2003. If you use GPG *please* see me about=20
signing the key. ***** My computer can't give you viruses by email. ***

--4SFOXa2GPu3tIq4H
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFAmQoFlHapveKyytERAnyKAJ0U59acQ4BcY95ktrPugWTmj5t/IQCdH29u
lpSpV6ZBjAmsmMv9V9o8JJY=
=hsGI
-----END PGP SIGNATURE-----

--4SFOXa2GPu3tIq4H--