G5 Mac and powerpc64?

Nathan Whitehorn nwhitehorn at freebsd.org
Sun Mar 20 19:50:15 UTC 2011


On 03/20/11 14:38, Torfinn Ingolfsen wrote:
> Ok, so now my Mac G5 quad runs FreeBSD 8.2-release:
> root at kg-g5# uname -a
> FreeBSD kg-g5.kg4.no 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sat Feb 19
> 01:18:47 UTC 2011
> root at xserve.lan.xcllnt.net:/usr/obj/usr/src/sys/GENERIC  powerpc
>
> However, since this is 32-bits, it only sees 2 GB of the memory:
> root at kg-g5# dmesg | head -19
> Copyright (c) 1992-2011 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
> 	The Regents of the University of California. All rights
> reserved. FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 8.2-RELEASE #0: Sat Feb 19 01:18:47 UTC 2011
>      root at xserve.lan.xcllnt.net:/usr/obj/usr/src/sys/GENERIC powerpc
> Preloaded elf kernel "/boot/kernel/kernel" at 0x95d000.
> cpu0: IBM PowerPC 970MP revision 1.1, 18446744071914.99 MHz
> cpu0: Features dc000000<PPC32,PPC64,ALTIVEC,FPU,MMU>
> cpu0: HID0 1511081<DEEPNAP,NAP,DPM,NHR,TBEN,ENATTN>
> real memory  = 2127781888 (2029 MB)
> available KVA = 490659839 (467 MB)
> Physical memory chunk(s):
> 0x00018000 - 0x000fffff, 950272 bytes (232 pages)
> 0x017ec000 - 0x017fffff, 81920 bytes (20 pages)
> 0x01813000 - 0x01bfffff, 4116480 bytes (1005 pages)
> 0x01c3a000 - 0x03ffffff, 37511168 bytes (9158 pages)
> 0x08000000 - 0x7c9f6fff, 1956605952 bytes (477687 pages)
> avail memory = 1996570624 (1904 MB)
>
>
> Is there a way to get a 64-bits version of FreeBSD 8.2 onto this
> machine? (I couldn't find a 8.2 powerpc64 image)

64-bit PPC is a new platform in 9.0, so the reason you couldn't find an 
8.2 image is because there aren't any :)

If you want to upgrade to 64-bit, you have two options. One is that you 
can reinstall with 9.0 
(http://people.freebsd.org/~nwhitehorn/bsdinstall-powerpc64-20110308.iso.bz2). 
The other is you can try to do an in-place update from source code. You 
can probably find some tutorials on the web for doing that on 
i386->amd64 (the procedure is the same). The basic idea is:

cd /usr/src (updated to 9.0)
make -j5 buildworld buildkernel TARGET=powerpc TARGET_ARCH=powerpc64
make installkernel TARGET=powerpc TARGET_ARCH=powerpc64 DESTDIR=/
cp /usr/obj/powerpc.powerpc64/usr/src/sys/boot/powerpc/ofw/loader /boot
<reboot>
cd /usr/src
export UNAME_p=powerpc
make installworld TARGET=powerpc TARGET_ARCH=powerpc64 DESTDIR=/
<reboot>
mergemaster -Ui
<reboot>

The worst that happens with that is that you miss a step and totally 
hose your system, in which case you need to reinstall and end up in the 
same place you already were.
-Nathan


More information about the freebsd-ppc mailing list