На 28.10.2012 г. 12:04, Tom and Elke Butz написа:
I wonder if anyone has managed to compile an operating system that supports legacy PATA/IDE hard-discs. As long as I haven't rebooted yet everything works well. LILO also works but when it tries to access the root partition (/dev/sda1 ext2) it panics..
It seems to me you need to read up on the kernel configuration part. Current linux kernels and 3.5.4 in particular, which CRUX 2.8 ships, use the new and really fine libata layer, which supports both Serial ATA and Parallel ATA devices, as long as the correct ATA controller driver is either compiled as a module and the module is loaded during boot time (this requires init.rd as far as I know) or built into the kernel (this is the way I use libata for my kernels). What happened to you is as follows: 1) you booted the install disk, which has a kernel with all of the controllers drivers linux supports built as modules AND loaded during boot; 2) you did most of setup 3) you compiled yourself a kernel which does not have the correct hard disk controller built in or as module 4) you setup the above kernel and LILO, which works, because you are still running the setup disk kernel; 5) you reboot the computer - boot fails altough LILO starts because the kernel cannot drive the controller to which your boot hard drive is attached, and as the kernel cannot find the root partition LILO told it - it panics; You need to compile support for the correct hard disk controller. I would advise you to build in all the relevant hard disk controllers for your machine, for example if your motherboard has an Intel chipset - during kernel configuration select Y (not M) for all Intel SATA and PATA controllers (PIIX is one of them, if I remember correctly). Good luck! -- Plamen Petrov