PDA

View Full Version : Realtime Kernel Loading Issues


jaboit
June 20th, 2007, 02:52 AM
I just compiled a new realtime kernel (according to http://ubuntuforums.org/showthread.php?t=453497&highlight=low+latency) , but am having trouble booting into it. "Realtime" is listed as a boot option in the yaboot menu, but when I type it in and press 'Enter', "Linux" is instead loaded; this is confirmed by running uname.

I should mention also that I had to create a new yaboot.conf file after I edited it and restarted my computer without running ybin -v. Perhaps my problem is related?

thanks!

PS here's my current yaboot.conf

## yaboot.conf generated by yabootconfig 1.0.8
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
## see also: /usr/share/doc/yaboot/examples for example configurations.
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ

boot=/dev/hda2
device=/pci@f4000000/ata-6@d/disk@0:
partition=6
root=/dev/hda6
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
enablecdboot
macosx=/dev/hda3
defaultos=macosx

image=/boot/vmlinux
label=Linux
read-only
initrd=/boot/initrd.img
append="quiet splash"

image=/boot/vmlinux.old
label=old
read-only
initrd=/boot/initrd.img.old
append="quiet splash"

image=/boot/vmlinux-2.6.21.5-realtime
label=Realtime
read-only
initrd=/boot/initrd.img-2.6.21.5-realtime
append="quiet splash"

pxwpxw
June 20th, 2007, 04:15 AM
I should mention also that I had to create a new yaboot.conf file after I edited it and restarted my computer without running ybin -v. Perhaps my problem is related?


Yes, must rerun ybin -v to update the boot files.

jaboit
June 20th, 2007, 12:40 PM
Yes, must rerun ybin -v to update the boot files.

Yea, I've done that. I'm still having the same problem. I ended up running yabootconfig to create a new yaboot.conf file (I'm not sure that that was necessary in the end)... still the same. I should also point out that based on several feature differences (powerbook sleep light becoming HD seek light, differences in graphics at startup) the kernel I keep booting into is not actually the "Linux" kernel as reported by uname, it's actually "old." I know this because after I edited yaboot.conf and restarted without running ybin -v, "old" was the only boot option available, and it looks exactly like the one I'm using now.

pxwpxw
June 21st, 2007, 08:02 AM
Yea, I've done that. I'm still having the same problem. I ended up running yabootconfig to create a new yaboot.conf file (I'm not sure that that was necessary in the end)... still the same. I should also point out that based on several feature differences (powerbook sleep light becoming HD seek light, differences in graphics at startup) the kernel I keep booting into is not actually the "Linux" kernel as reported by uname, it's actually "old." I know this because after I edited yaboot.conf and restarted without running ybin -v, "old" was the only boot option available, and it looks exactly like the one I'm using now.

You seem to be working in the dark about your kernel versions. When you reran yabootconfig while booted from the old kernel, it woudl rewrite yaboot.conf to boot from that kernel and confuse the "old" situation. Anyway, clear the confusion by listing the current config;

ls -l /boot
### and
cat /etc/yaboot.conf
uname -a

will show you what kernel versions and symbolic links are there.

jaboit
June 21st, 2007, 01:34 PM
You seem to be working in the dark

Correct. ;)

ls -l boot:


root@bonemachine:~# ls -l /boot
total 22908
-rw-r--r-- 1 root root 386247 2007-04-15 02:47 abi-2.6.20-15-powerpc
-rw-r--r-- 1 root root 71267 2007-04-15 01:03 config-2.6.20-15-powerpc
-rw-r--r-- 1 root root 50212 2007-06-20 00:17 config-2.6.21.5-realtime
lrwxrwxrwx 1 root root 28 2007-06-20 01:08 initrd.img -> initrd.img-2.6.21.5-realtime
-rw-r--r-- 1 root root 8271324 2007-05-15 00:40 initrd.img-2.6.20-15-powerpc
-rw-r--r-- 1 root root 2987890 2007-06-20 01:08 initrd.img-2.6.21.5-realtime
lrwxrwxrwx 1 root root 28 2007-05-15 00:40 initrd.img.old -> initrd.img-2.6.20-15-powerpc
-rw-r--r-- 1 root root 738673 2007-04-15 02:47 System.map-2.6.20-15-powerpc
-rw-r--r-- 1 root root 746506 2007-06-20 00:56 System.map-2.6.21.5-realtime
lrwxrwxrwx 1 root root 25 2007-06-20 01:08 vmlinux -> vmlinux-2.6.21.5-realtime
-rw-r--r-- 1 root root 4572309 2007-04-15 02:47 vmlinux-2.6.20-15-powerpc
-rw-r--r-- 1 root root 5548657 2007-06-20 00:56 vmlinux-2.6.21.5-realtime
lrwxrwxrwx 1 root root 25 2007-05-15 00:40 vmlinux.old -> vmlinux-2.6.20-15-powerpc

cat /etc/yaboot.conf:


## yaboot.conf generated by yabootconfig 1.0.8
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
## see also: /usr/share/doc/yaboot/examples for example configurations.
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ

boot=/dev/hda5
device=/pci@f4000000/ata-6@d/disk@0:
partition=6
root=/dev/hda6
timeout=100
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
enablecdboot
macosx=/dev/hda3
defaultos=macosx

image=/boot/vmlinux
label=Linux
read-only
initrd=/boot/initrd.img
append="quiet splash"

image=/boot/vmlinux.old
label=old
read-only
initrd=/boot/initrd.img.old
append="quiet splash"

image=/boot/vmlinux-2.6.21.5-realtime
label=Realtime
read-only
initrd=/boot/initrd.img-2.6.21.5-realtime
append="quiet splash"


uname -a


Linux bonemachine 2.6.21.5-realtime #1 PREEMPT Wed Jun 20 00:36:24 EDT 2007 ppc GNU/Linux


Thanks!