[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] kernel compile woes....



>>>>> "ross" == ross h <ross> writes:

    ross> hi all, well i followed Barries advice and got myself the
    ross> 2.4.4 kernel to try to resolve the problem with related
    ross> connections.

    ross> kernel compiles fine, modules make ok (eventually), lilo
    ross> installs ok.

    ross> on boot.... kernel panic :-(

    ross> boot message......  ds:no socket drivers loaded!  kernel
    ross> panic:vfs:unable to mount root fs on 03:46

Do you still have your old kernel installed?

When you editted /etc/lilo.conf and ran lilo (please tell me you did)
were there any errors?

    ross> i did meddle a little before making (couldn't resist it)
    ross> mainly removing things like irda, pcmcia and file systems
    ross> that i don't use. (and selecting correct processor group)

Ah. You didn't remove support for ext2 (or ReiserFS if you're using
that) did you?

Removing PCMCIA and IrDA is fine - as you said - you don't use them. 

    ross> i must have missed something but i've no idea what?  i ran
    ross> make oldconfig to get a base to start from, i then ran make
    ross> xconfig to make the changes from the mandrake default
    ross> (include all sorts of stuff!)  during make bzImage, there
    ross> were a few errors about reaching beyond the end of a
    ross> function (associate with raid i think) but it didn't
    ross> terminate the make!

It might be worth while running through a fresh kernel compile, so you
get the hang of which options are selected by default.

Try:

su -
cd /whereever/the/kernel/source/is
make mrproper
make menuconfig
 [select all the options you want]
make dep
make clean
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.4 
  [or whatever version it is]
cp System.map /boot/System.map-2.4.4

edit /etc/lilo.conf

add something along the lines of:

image=/boot/vmlinuz-2.4.4
        label=linux-new
        read-only
        root=/dev/hda6 # [check this!!]

change the "default =" line to 

default=linux-new

save changes

run /sbin/lilo

you should get

linux
linux-new *

or similar.

I might have missed a step, but this is what has worked for me for 2
years :-)

Cheers.

Baz.
-- 
Barrie J. Bremner 		OpenPGP public key ID: 5164F553
baz [at] barriebremner.com	http://barriebremner.com/

baz /baz/ n.
 1. [common] The third metasyntactic variable.
 2. interj. A term of mild annoyance.
 3. Occasionally appended to foo to produce `foobaz'

	-- Jargon File v4.3.0, www.tuxedo.org/jargon

 4. Me.

---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.