Toast, Take 2
Collins
erichey2
Mon May 17 11:31:12 PDT 2004
On Mon, 13 May 2002 17:40:05 -0600 "Bonez" <drjones at vii.com> wrote:
> Having compiled a downloaded source for 2.4.18, I proceeded to
> update my bzImage and System.map files in /boot.
>
> Since I am using GRUB as my bootloader, I went in and created a new
> enter for the new 2.4.18 kernel, to try booting with it.
>
> Now, where I had sound, networking to the internet, email, web
> browsing etc., when I boot up to my original 2.4.2 configuration,
> the sound, access to the net, is all gone, plus I get multiple
> failure notices as the various modules and daemons load at boot
> time.
>
> How can I get things back to the way they were before, so that I can
> boot up and continue working on my upgrade?
>
> In my effort to upgrade I followed the listing found at
> www.linuxnewbie.org, under configuration and compilation of new
> kernel.
>
A few pointers which will help you avoid future grief
1) When you compile a new kernel, always copy the resulting bzImage to
a new name (ex. /boot/kernel-2.4.18-test) and the System.map to
/boot/System.map-2.4.18-test)
2) duplicate the kernel stanza in /boot/grub/menu.lst and give it a
new name and point to the new kernel name. Do not overlay the kernel
stanza that you are currently using.
3) That way, you can easily revert to the old working kernel at any
time
Now to your current problem - it depends on what you did - some
questions.
1) I presume you unpacked your kernl source to a new directory? i.e.
you have something like /usr/src/linux or /usr/src/linus- 2.4.2 plus
your new /usr/src/linux-2.4.18. If not, you must tediously rebuild
your .config by hand.
2) Do you have the current config parameters for your 2.4.2 kernel in
your /usr/src /linux (or /usr/src/linus-2.4.2, etc.)? That failing, if
you are using the original kernel for your distro, do you have
documentation that points you to the .config file used to build the
kernel? If the answer is yes to either, do the following:
1) cd /usr/src/linux-2.4.18 and do 'make mrproper'
2)cp /usr/src/????/.config (or the original .config file) .
3) do 'make oldconfig'. You will be prompted for new kernel
parameters
that are not in your original config. Just reply no in most
cases
3a)
4) cp .config /somewhere/else/safe (for future use)
5) make dep && make clean && make bzImage && make modules && make
modules_install
6) Copy the bzImage and System.map to new test names in /boot
7) Update your /boot/grub/menu.lst with a new stanza to invoke the
kernel
8) Hopefully you are now back in business
3) If you don't have the original config, you will need to manually
configure the kernel. Do the following:
1) cd /usr/src/linux-2.4.18 and do 'make mrproper'
2) do 'make menuconfig'. Enter each section of the code and answer
the questions. This is tedious. Ask more questions here if you need
to.
3) Save the config /somewhere/else/save and exit and say yes to save
the config
4) Follow steps 5-8 above.
Good luck,
--
Collins Richey - Denver Area - WWTLRD?
gentoo(since 01/01/01) 2.4.19+(ext3) xfce-sylpheed-mozilla
More information about the Linux-users
mailing list