updating the kernel to 2.6.9

All kernel questions! 2.4 or new 2.6 kernel, compiling, modules, panics, etc.

updating the kernel to 2.6.9

Postby promy » 21 Dec 2004, 12:49

i did a clean install of YD4.0 from the iso's
then i updated the iptables with patch-o-matic from www.netfilter.org
then i followed the guide on http://www.yellowdoglinux.com/support/s ... nels.shtml

but my system is still loading the wrong kernel.
as far as i know, i do not use the yaboot (no other os installed on this mac g3)
the guide did NOT create an updated img file in the /boot/
in the guide they make "links" from vmlinux to the new kernel (and also for the System.map) but the standard install for YD4 does not seem to have them (and as such does not use them to choose te kernel)

can anyone please tell me how to make sure that the new kernel is used in stead of the old one?
promy
 

Postby nyne » 26 Jan 2005, 11:21

double check your /etc/yaboot.conf

if it has the wrong kernel --replace it with the correct entry, and run mkofboot
fortune favours the brave
nyne
ydl newbie
ydl newbie
 
Posts: 15
Joined: 25 Jan 2005, 08:14
Location: Ithaca, NY

Postby anorexorcist » 27 Jan 2005, 09:51

**edit**
after typing this I considered it may look like a hi-jack attempt on my part. It's not. just trying to add to the conversation ;)


Nyne,
If your bootloader is on a different partition than the kernel how can you modify yaboot.conf without mounting the filesystem? If you try to mkofboot with a mounted bootloader, it will abort. Should you, in order?:
mount bootload partition
nano yaboot.conf
unmount bootload partition
mkofboot
reboot

If you do not successfully configure yaboot.conf you will have problems either shutting down, rebooting, or booting, no? My attempts at proper kernel upgrade have failed due to my inability to do the proper things in order. I'd like to learn it. Also what is the unmount command? The ones I've tried have been unsuccessful....(newbie forever)

just for kicks here's my yaboot.conf:

# yaboot.conf generated by anaconda

boot=/dev/sda2
init-message="Welcome to Linux Hell! Hit <TAB> for boot options."
partition=7
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
delay=10
enablecdboot
macosx=/dev/sda3

image=/boot/vmlinux-2.6.8-1.ydl.7g5-smp
label=linux
read-only
initrd=/boot/initrd-2.6.8-1.ydl.7g5-smp.img
root=/dev/sda7
append="rhgb quiet"

image=/boot/vmlinux-2.6.8-1.ydl.7g5
label=linux-up
read-only
initrd=/boot/initrd-2.6.8-1.ydl.7g5.img
root=/dev/sda7
append="rhgb quiet"

image=/boot/vmlinux-2.6.10-2-power4
label=ubuntu
read-only
initrd=/boot/initrd.img-2.6.10-2-power4
root=/dev/sda4
append="quiet splash"
User avatar
anorexorcist
ydl newbie
ydl newbie
 
Posts: 21
Joined: 07 Jan 2005, 07:17

Postby vcam57 » 11 Feb 2005, 00:01

I'm triying to update to 2.6.9 I got yaboot conf. right i think
image=/vmlinux-2.6.8-1.ydl.7g5
label=linux
read-only
initrd=/initrd-2.6.8-1.ydl.7g5.img
root=/dev/sdb3
append="rhgb quiet"
image=/vmlinux-2.6.8-1.ydl.7g5
label=linux-up
read-only
initrd=/initrd-2.6.8-1.ydl.7g5.img
root=/dev/sdb3
append="rhgb quiet"
image=/vmlinux-2.6.9-1.ydl.8g5
label=linux-2.6.9
read-only
initrd=/initrd-2.6.9-1.ydl.8g5.img
root=/dev/sdb3
append="rhgb quiet"
when I ybin I get message You must specify the device for the bootstrap partition. (ie: boot=/dev/hdaX)
I do this ybin -b boot=/dev/sdb3
then I get message /usr/lib/yaboot/yaboot magicboot=/usr/lib/yaboot/ofboot delay=10: No such file or directory
what am I doing wrong?

[/quote]
vcam57
ydl newbie
ydl newbie
 
Posts: 2
Joined: 10 Feb 2005, 23:10

Postby StarKnight83 » 11 Feb 2005, 06:15

quick note about yaboot (i did/noticed it the other day) unless you have a line specifically stating which kernel ver to boot itll default to the top one. so always add the new lines of what you want to be your default kernel above the current one. (and if someone can post the line to specify the kernel ver. as im in osx id appreciate it-but i think that editing/adding the line "defaultos="xxx" would do it though that means that you cant specify a kernel ver. and a default boot os mac OS)

and anorexorcist very funny editting the boot message (though a little wrong if you ask me) :D


<edit> I just reread the orig. post and you should have yaboot installed-even if you dont have another OS on the system; ydl 4.0 does it at the end of the installation </edit>
Last edited by StarKnight83 on 11 Feb 2005, 06:26, edited 1 time in total.
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA

Postby StarKnight83 » 11 Feb 2005, 06:24

for those of you wondering here's my yaboot config:

# yaboot.conf generated by anaconda

boot=/dev/hda2
init-message="Welcome to Yellow Dog Linux! Hit <TAB> for boot options."
partition=5
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
delay=10
enablecdboot
macosx=/dev/hda4
macos=/dev/hda4
defaultos=macosx

image=/boot/vmlinux-2.6.10-1.ydl.1
label=linux
read-only
initrd=/boot/initrd-2.6.10-1.ydl.1.img
root=/dev/hda5
append="rhgb quiet"

image=/boot/vmlinux-testing
label=testing
read-only
initrd=/boot/initrd-testing.img
root=/dev/hda5
append="rhgb quiet"

image=/boot/vmlinux-2.6.8-1.ydl.7
label=linux.old
read-only
initrd=/boot/initrd-2.6.8-1.ydl.7.img
root=/dev/hda5
append="rhgb quiet"
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA


Return to Kernel

Who is online

Users browsing this forum: No registered users and 4 guests