Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem installing kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
twister666
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2007
Posts: 138
Location: MTL,QC,Canada

PostPosted: Sun May 18, 2008 10:20 pm    Post subject: Problem installing kernel Reply with quote

Code Listing 3.11: Installing the kernel

1)# cd /usr/src/linux
2)# cp vmlinux /boot/kernel-2.6.24-gentoo-r5
3)# cp arch/powerpc/boot/images/zImage /boot/<kernel-version>
--------------------

Guys anyone knows whats wrong could have gone wrong? When I do 3rd step it says: "cp: cannot stat 'arch/powerpc/boot/images/zImage' : No such file or directory"

Thanks in advance.

My system is G3 old crt mac.
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sun May 18, 2008 10:36 pm    Post subject: Re: Problem installing kernel Reply with quote

twister666 wrote:
Code Listing 3.11: Installing the kernel

1)# cd /usr/src/linux
2)# cp vmlinux /boot/kernel-2.6.24-gentoo-r5
3)# cp arch/powerpc/boot/images/zImage /boot/<kernel-version>


The 2nd step listed is unnecessary, and instead I would do it like this:

cp arch/powerpc/boot/bzImage /boot/bzImage-2.6.24-r5

and then configure grub to load that filename for the kernel. Note the space after the first bzImage.

Really, the file naming in /boot can be done however you like, and the way I personally do it is by renaming the old kernel with .old at the end, and just leaving the default bzImage name for the new one - this way I can still boot the old kernel if I need to by editing the boot command in grub. Make sure your /boot is mounted if it's on a separate partition.
Back to top
View user's profile Send private message
twister666
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2007
Posts: 138
Location: MTL,QC,Canada

PostPosted: Sun May 18, 2008 10:42 pm    Post subject: Reply with quote

Hi!
For some reson it still doesnt work. It gives me same error message. I tried checking if the kernel file is there and it shows that exists. I think what is missing is the arch/poerpc/boot/zImage directory but not sure how to check it.
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sun May 18, 2008 11:19 pm    Post subject: Reply with quote

double check you're typing the command right (powerpc, bzImage), and make sure you've of course compiled the kernel first ;)
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon May 19, 2008 6:58 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on PPC.
ppc stuff, so moved here.

Make sure you're trying to copy zImage not bzImage. The first should exist, the latter won't. Oh and make sure you're in /usr/src/linux before trying to copy or use the full path /usr/src/linux/arch/powerpc/boot/zImage
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue May 20, 2008 7:10 am    Post subject: Re: Problem installing kernel Reply with quote

twister666 wrote:
Code Listing 3.11: Installing the kernel

1)# cd /usr/src/linux
2)# cp vmlinux /boot/kernel-2.6.24-gentoo-r5
3)# cp arch/powerpc/boot/images/zImage /boot/<kernel-version>
--------------------

Guys anyone knows whats wrong could have gone wrong? When I do 3rd step it says: "cp: cannot stat 'arch/powerpc/boot/images/zImage' : No such file or directory"

Thanks in advance.

My system is G3 old crt mac.



i wander why you have to do point 3) ...

if your system is "old world" you need 2) + bootx
if your system is "new world" you need 2) + yaboot

GRUB is not the right apple/ppc bootloader !
(yes, with other ppc motherboard it can boot a kernel, too, but we are speaking about apple ppc here, so it is not the case)

anyway, arch/powerpc/boot/images is not populated just out of the make
it need something more directive to populate it ...
i dunno why and if you really need it,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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