Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Question about 64Bit kernel for G5
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
mox2k
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2004
Posts: 119

PostPosted: Fri May 28, 2004 7:26 am    Post subject: Question about 64Bit kernel for G5 Reply with quote

I have installed 32Bit userland and 32Bit kernel. Now I would like to install a 64Bit kernel. Somewhere I have read to grab a PPC64 CD and copy the kernel as well as the modules from the CD to the disk. Can anyone confirm this?
Back to top
View user's profile Send private message
korg
n00b
n00b


Joined: 27 Jan 2004
Posts: 46

PostPosted: Fri May 28, 2004 7:46 am    Post subject: Reply with quote

Im running a ppc32 system with the ppc64 kernel from the ppc64 2004.1 cd.

Im using the ppc32 system because its stable and the ppc64 kernel so I can chroot into a ppc64 stageN directory and play with a full ppc64 setup.

Yes its probably dumb :).

root@kali usr/src/linux # /bin/uname.real -a
Linux kali 2.6.6-rc1-ames #2 SMP Sat Apr 24 23:39:57 Local time zone must be set--see zic ppc64 PPC970, altivec supported PowerMac7,2 GNU/Linux

(more on this uname.real and 'zone' stuff later)

You can just mount the cd and:

* cp /mnt/cdrom/boot/G5-SMP /boot/ppc64-2.6.6-rc1

* mkdir /tmp/t

* mount -o loop /mnt/cdrom/livecd.iso /tmp/t

* cp -rp /tmp/t/lib/modules/2.6.6-rc1-ames /lib/modules

* umount /tmp/t

Then you can add an entry in your yaboot.conf for the image /boot/ppc64-2.6.6-rc1 to us it.

I had to hack uname to strip out the '64' from ppc64 to get some stuff to build as ppc32. Other than that it works fine :).

I have yet to build a kernel, but look at the thread just near this one for the status :).


If you want to do this remember that you'll need to hack /bin/uname and /bin/arch to _NOT_ return ppc64 as this breaks some ebuilds in your ppc32 file system.

I renamed /bin/uname to uname.real and then added the following as my uname script:

Code:

#!/bin/sh
if [ "$FORCE32" = "1" ]; then
  /bin/uname.real $* | sed -e 's/ppc64/ppc/g' | sed -e 's/Local time zone must be set--see zic/EST 2004/'
else
  /bin/uname.real $* | sed -e 's/Local time zone must be set--see zic/EST 2004/'
fi


I also changed /bin/arch to the following:

Code:

#!/bin/sh
/bin/uname -m


Then you just need to export the variable FORCE32=1 to have uname behave correctly to let stuff build.

Yes its very ugly. Use at own risk :).
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