View previous topic :: View next topic |
Author |
Message |
faldore n00b
Joined: 03 May 2004 Posts: 17
|
Posted: Wed May 05, 2004 12:57 am Post subject: Please help - Getting genkernel / ramdisk working |
|
|
I am trying to use genkernel to set up my kernel. Why? Because when when I am running mandrake I can set DMA on my hard drive, and when I boot off the liveCD I can set DMA on my hard drive, but whever I compile a kernel myself I can never set DMA on my hard drive. When I type "hdparm -d1 /dev/hda" it says:
Code: | setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
|
So since I can't get DMA to work (and I have compiled the kernel myself about 20 times with different DMA settings selected trying to make it work) I decided to use genkernel to compile it. Only whenever I use genkernel the ramdisk doesn't work. I have tried genkernel 3.x and 1.9 and neither works. I am working with vanilla 2.4.25 with low latency patch applied (but I have tried other kernels with the same result so I know that's not the problem.)
Here is the error message:
Code: | sh-2021: reiserfs_read_super: can not find reiserfs on ramdisk(1,0)
Kernel panic: VFS: Unable to mount root fs on 01:00 |
Here is my lilo.conf:
Code: | boot=/dev/hda
prompt
timeout=50
default=gentoo
#vga=788
image=/boot/kernel-2.4.25-llp
label=gentoo
read-only
#root=/dev/ram0
root=/dev/hda3
#append="init=/linuxrc real_root=/dev/hda3"
#initrd=/boot/initrd-2.4.25-llp
|
The commented out things are what the directions told me to do; I later commented them out to see if that would fix the problem; it didn't.
Here is my fstab:
Code: |
/dev/hda1 /boot reiserfs noauto,noatime,notail 1 2
/dev/hda3 / reiserfs noatime,notail 0 0
/dev/hda2 none swap sw 0 1
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,user 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
none /tmp/jack tmpfs defaults 0 0
|
Thanks for your help. |
|
Back to top |
|
|
FreeFly42 l33t
Joined: 03 Nov 2003 Posts: 848 Location: Houston, TX
|
Posted: Wed May 05, 2004 3:06 am Post subject: |
|
|
If you want to use genkernel you're going to need the stuff you commented out, or it's not going to work. The genkernel kernel puts a lot of stuff in modules which otherwise would have to be compiled into the kernel, and decides what modules to load at boot time. It gets away with this by loading an init ram disk with a driver for a ram disk, and the ram disk kernel is configured on the fly.
It seems what is happening (also seems like I helped someone through this before?...) is your genkernel configuration doesn't include reiserfs in the kernel, only as a module, and it can't load it properly on the fly, so the boot fails. You're going to have to use
Code: | genkernel --menuconfig |
and include reiserfs directly in the kernel. (check out this thread--same reference as above)
Or reformat your /boot partition to use ext2.
Sooner or later you're going to have to learn how to configure and compile your kernel yourself, might as well be sooner (aka abandon genkernel, but that's another topic!) _________________ Kent
Planes are dangerous, get out of 'em quick |
|
Back to top |
|
|
faldore n00b
Joined: 03 May 2004 Posts: 17
|
Posted: Thu May 06, 2004 5:30 am Post subject: |
|
|
Thanks for the reply. I did use genkernel --menuconfig and compiled reiserfs into the kernel, and it was still giving the same ramdisk error. Anyway, I figured out that my problem was that I hadn't run lilo after changing my lilo.conf to remove the ramdisk references. So when I fixed that it started booting. I finally made it past that issue (only to run into more shortly thereafter) |
|
Back to top |
|
|
FreeFly42 l33t
Joined: 03 Nov 2003 Posts: 848 Location: Houston, TX
|
Posted: Thu May 06, 2004 5:50 am Post subject: |
|
|
faldore wrote: | only to run into more shortly thereafter |
That's really lucky because today I found a bunch of solutions I didn't have problems for. _________________ Kent
Planes are dangerous, get out of 'em quick |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|