Re: Kernel Compiling and installation

Bryn Paul Arnold Jones (bpaj@gytha.demon.co.uk)
Mon, 7 Jul 1997 23:30:01 +0100 (BST)


On Mon, 7 Jul 1997, Simon Lea wrote:

> Ok, the machine is a P200 Compaq deskpro 200 with 128Mb ram
>
> I have Linux Kernel 1.2.13.
>
> The system works ok but the kernel could do with re-compiling to meet
> the needs of this system.
>
> The steps I took;
>
> 1. make config - O.k.
> 2. make dep - O.k.
> 3. make clean - O.k.
> 4. make zlilo - O.k.
>
> zlilo file put in /, lilo ran o.k. and disks were sync'ed
>

Erm, if you run make zlilo you don't need to do anything else, it's done
(unless you're saying that it did that in which case it's ok).

> Rebooted the system and everythin was ok till I got the 'VFS kernel
> panic: unable to mount root file system.'
>
> Both partitions on the Hard drive are formatted to ext2. Ext2 support
> is enabled in the new kernel.
>

Hmm, something's screwy. Add a root=/dev/whatever after the name you
used (make sure it's the right one ;), if that works it's your
/etc/lilo.conf, specfically the root=... line.

> Remade the kernel with filesystem support for all file systems and still
> the same problem.
>
> made zImage, copied file to /, edited /etc/lilo.config to look for
> zImage, reran lilo and rebooted. Same error.
>

Still look at the /etc/lilo.conf's root= line. If that's right, try
putting the zImage on a floppy (have to be a 1.44M disk, a 720k one won't
work if it's a >1.2.x kernel).

Use "cat /zImage >/dev/fd0", or "dd if=/zImage of=/dev/fd0 bs=9k", you
have to set the root fs with rdev, like "rdev /dev/fd0 /dev/whatever", and
make sure that it mounts the root readonly with "rdev -R /dev/fd0 1" (you
don't have to do this if use lilo, as it passes that on the commandline).

> Thge machine does work with the old image but this is something I would
> like to sort out.
>

Hmm, odd, is still works ? You tryed a newer lilo ?

> Any ideas would be very welcome.
>
> Cheers
>
> Si
>

Bryn

--
PGP Pub key http://www.gytha.demon.co.uk/pubkey.asc      ID: 1024/30AF2D69
On-line, adj.:         FP: FC 4E 41 9E 64 C3 AB 28 A3 5A 57 F8 CC D9 A7 B8
    The idea that a human being should always be accessible to a computer.