Linux booting problems
John Abreau
jabr at abreau.net
Thu Feb 27 18:21:40 EST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kenny Donahue <kennyd at mc.com> writes:
> Ok.... deeep breath. I'm ready to though
> Linux out. I've been fighting with a Linux kernel
> build for a while now. I'm getting very angry.
> I can load a Redhat 7.2 distribution and everything
> works. I need to patch the kernel for a project at
> work. so, I do my patch (../fs/proc/base.c if it makes a
> difference) then....
[snip]
I've been running Redhat for ages, and I've found that it's easier to
stick with kernel rpms. Fortunately the stock kernel sources include
an "rpm" target, so building rpms from the virgin kernel source should
be fairly straightforward. The trick is to load the same config that
your system is already using, which you'll find in one of the files
under /usr/src/linux-2.4/configs, while in "make xconfig". Then apply
your changes from that known-good setting.
Try this:
make mrproper
make xconfig
load config from /usr/src/linux-2.4/configs/kernel-2.4.18-i686.conf
ig
add your scsi driver into the kernel
make dep
make rpm
sudo rpm -i /usr/src/redhat/RPMS/i686/kernel-2.4.18.i686.rpm
edit lilo.conf
...
When I do this, I like to do the full build without adding my patches,
so I can explicitly verify that the pre-patched setup is working.
Note that you want to "install" (-i) the new kernel, not "upgrade" (-U).
That way you don't lose the older kernel that already works correctly,
so if the new kernel fails you can still boot the system.
- --
John Abreau / Executive Director, Boston Linux & Unix
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Exmh version 2.6 02/09/2003
iQCVAwUBPl6dglV9A5rVx7XZAQLnoQP+L2InebdmlniwFBwpnK+GtjGqzikHthyL
sjLSMaGgiCWKNwGm3GlSAR61UsmLB+Ye5HHiZ4U8WFgPrh0QdBSRZweqMdvqvTQH
UxRDTnJwU8Oph73bxAgikGFa+O06/veeEN/wYRm8Z814iWvApPKbnWXqmrJo7jWK
n7Hhs/YUsEc=
=Pq/5
-----END PGP SIGNATURE-----
More information about the gnhlug-discuss
mailing list