sossego
Retired from the forums
[ Post number 30 in this thread contains new insights and should be read as the first post in this thread -> http://forums.freebsd.org/showthread.php?p=124420#post124420 - Mod. ]
FreeBSD is a rich and robust operating system with its origins in UNIX which was began when Dennis Ritchie decided to port a game called Space Traveler to a PDP7. From here, he, Ken Thomson, and Rudd Carnady would develop a hierarchal system that would define the computing industry. Forty-one years have passed since that decision was made and UNIX has branched off into different operating systems. It has become a standard within itself.
FreeBSD was born from a project based on AT&T UNIX and has developed into a stable and trustworthy operating system. With a kernel and userland bound together as a single system, FreeBSD can be installed on anything from routers to supercomputers, from Desktops to laptops, and from PDAs to embedded devices. It is used by all walks of life. From the research scientist to the cafe owner, from government agencies to small cafes, FreeBSD is available as an Open and Free operating system in many languages.
In the early nineteen nineties, Apple, IBM, and Motorola formed an alliance into which the creation of the POWER architecture became one of the first RISC processors to be used by the general public for personal use. The load-store mechanism of the Power cpu allows it to "predict" the next set of commands, making it efficient in executing code. It is no wonder why Apple, Genesi, IBM, and others have preferred this chip in previous and/or current products.
Today, we shall combine the efficiency of this processor with the stability of FreeBSD by installing FreeBSD 9.0 PowerPC SNAPSHOT on a Blue & White G3.You will need the following equipment.
1) An Apple G3 or G4 with New World Open Firmware, a 60G ATA hard disk, 386M RAM, a working CD-RW/DVD-ROM, and the rest of the tower plus monitor, mouse, and keyboard.
2) A Debian PowerPC Install disk. The Net install image or business card will do.
3) An Ubuntu PPC live CD. "Hoary Hedgehog" 5.0x is what I used. There are also live images available from the Debian live project if you wish to use one.
4) Disc 1 of 9.0 PowerPC SNAPSHOT.
5) Lots of patience.
Let us begin, shall we.
Start by burning all three discs with your favorite CD burning program. My preference is to use k3b. Either with the G3/4 or on another computer, place the SNAPSHOT Disc 1 in the tray and close it. Do not let the disc be autmoatically mounted. You are going to create a directory and mount the disc through the command line.
Open a terminal and issue the following commands.
Copy the hfs1.boot image to your home directory and change the permissions.
Email yourself the hfs1.boot file. You will need it later during the exercise.
Place the Debian install cd into the drive of the G3/4 and reboot the computer while holding down the Option and Alt buttons. Immediately press the O and F buttons while still holding down the others until you see the white background of the Open Firmware Forth prompt. Issue the following commands.
let the system boot and fill in all applicable data until you arrive at the partitioning screen. Choose the following: Whole disk, automatic partitioning, and all files in one partition. Now look at the table and delete the / and swap partitions. You should be left with the APM and New World Boot Block areas. Create the following partitions with the following values. Use ext3 as the default non-swap areas.
a) 2600M mounted as /
b) 1G as swap
c) 2200M mounted as /tmp
d) 2200M mounted as /var
e) 25G mounted as /usr
f) the remaining area mounted as /home.
Commit the changes to the disk and let Debian begin downloading the distribution. Immediately shutoff the computer and restart it in the Open Firmware Forth prompt. Remove the Debian CD and place the SNAPSHOT disc 1 into the tray. Issue the same commands to set the cd as the first boot device followed by the
command. let the CD load and fill in all applicable data. When you come to the root menu, set the networking up first. You may need to add a value to hostname. For mine, I chose "tima.tiza." After setting this value and bringing up your network, return to the root menu and choose the fixit option. Enter this submenu and choose the shell. Immediately switch over to tty4 and begin by issuing the following commands.
Notice that / is the second and not first partition. Issue the following commands.
Anytime during this you may check the partitions with
When you are finished exit and return to the root menu. Use disklabel to edit the names of the partitions. You must choose a partition with C and then give it a value. Your list should be in the following order: /, swap, /tmp, /var, /usr, /home. Now you will choose the distribution set. Choose minimum and the CD(media) as the source. When you have finished installing, set up all srvices as usual, create a user with wheel privileges, enter the root password and finish. Do not install the ports system, that will come later. REboot the G3/4 and enter the Open Firmware Forth prompt again. Remove the SNAPSHOT disc 1 and place in the livecd. Let it boot and the Desktop come up. Open firefox and guide yourself to the email where you had uploaded the hfs1.boot file. Download it to the Desktop and quit the browser. Open a terminal and issue the following sets of commands.
Reboot the computer and be sure to remove the disk.
Let the system start and log in as the normal user. You will create a directory from which the rest of the system can be obtained. Place the SNAPSHOT disc 1 into the drive, close it, and issue the following commands.
Be sure to cd to / and unmount the disc. Remove it.
Because you are using another processor architecture, you must set the flags in make.conf. I have a G3/750 so a few of these values will be different. Look for the proper flags for your G4.
You will now setup Xorg. Pciutils mustbe installed first.
You are going to setup Xorg. Remember that when it comes to drivers for your card, choose only the card that you have installed.
Now you must "turn off" the frame buffer.
Set up the database.
Set up subversion.
Setting up the actual xorg.conf file takes a few tweaks.
Use vi to edit the new xorg.conf.new file in your /root directory. Add the following values to the Server Layout Section.
FreeBSD is a rich and robust operating system with its origins in UNIX which was began when Dennis Ritchie decided to port a game called Space Traveler to a PDP7. From here, he, Ken Thomson, and Rudd Carnady would develop a hierarchal system that would define the computing industry. Forty-one years have passed since that decision was made and UNIX has branched off into different operating systems. It has become a standard within itself.
FreeBSD was born from a project based on AT&T UNIX and has developed into a stable and trustworthy operating system. With a kernel and userland bound together as a single system, FreeBSD can be installed on anything from routers to supercomputers, from Desktops to laptops, and from PDAs to embedded devices. It is used by all walks of life. From the research scientist to the cafe owner, from government agencies to small cafes, FreeBSD is available as an Open and Free operating system in many languages.
In the early nineteen nineties, Apple, IBM, and Motorola formed an alliance into which the creation of the POWER architecture became one of the first RISC processors to be used by the general public for personal use. The load-store mechanism of the Power cpu allows it to "predict" the next set of commands, making it efficient in executing code. It is no wonder why Apple, Genesi, IBM, and others have preferred this chip in previous and/or current products.
Today, we shall combine the efficiency of this processor with the stability of FreeBSD by installing FreeBSD 9.0 PowerPC SNAPSHOT on a Blue & White G3.You will need the following equipment.
1) An Apple G3 or G4 with New World Open Firmware, a 60G ATA hard disk, 386M RAM, a working CD-RW/DVD-ROM, and the rest of the tower plus monitor, mouse, and keyboard.
2) A Debian PowerPC Install disk. The Net install image or business card will do.
3) An Ubuntu PPC live CD. "Hoary Hedgehog" 5.0x is what I used. There are also live images available from the Debian live project if you wish to use one.
4) Disc 1 of 9.0 PowerPC SNAPSHOT.
5) Lots of patience.
Let us begin, shall we.
Start by burning all three discs with your favorite CD burning program. My preference is to use k3b. Either with the G3/4 or on another computer, place the SNAPSHOT Disc 1 in the tray and close it. Do not let the disc be autmoatically mounted. You are going to create a directory and mount the disc through the command line.
Open a terminal and issue the following commands.
Code:
$mkdir /home/$USER/cdrom
$su
Password:
# mount -t cd9660 -o ro /dev/$CDROM /home/$USER/cdrom
Code:
# cp /home/$USER/cdrom/path/to/hfs1.boot /home/$USER && chmod 0666 /home/$USER/hfs1.boot
# cd
# umount /dev/$CDROM
# rmdir /home/$USER/cdrom
# exit
$ exit
Email yourself the hfs1.boot file. You will need it later during the exercise.
Place the Debian install cd into the drive of the G3/4 and reboot the computer while holding down the Option and Alt buttons. Immediately press the O and F buttons while still holding down the others until you see the white background of the Open Firmware Forth prompt. Issue the following commands.
Code:
> setenv boot-device cd:0
> mac-boot
a) 2600M mounted as /
b) 1G as swap
c) 2200M mounted as /tmp
d) 2200M mounted as /var
e) 25G mounted as /usr
f) the remaining area mounted as /home.
Commit the changes to the disk and let Debian begin downloading the distribution. Immediately shutoff the computer and restart it in the Open Firmware Forth prompt. Remove the Debian CD and place the SNAPSHOT disc 1 into the tray. Issue the same commands to set the cd as the first boot device followed by the
Code:
>mac-boot
Code:
gpart show ad0
Code:
gpart modify -i2 -t freebsd ad0
gpart modify -i3 -t freebsd-swap ad0
gpart modify -i4 -t freebsd ad0
gpart modify -i5 -t freebsd ad0
gpart modify -i6 -t freebsd ad0
gpart modify -i7 -t freebsd ad0
Code:
gpart show ad0
Code:
$ sudo -s
# ls /dev
(hdc is the hard disk)
# fdisk /dev/hdc
p:
(/dev/hdc2 is the boot partition.)
q:
# dd if=/home/ubuntu/Desktop/hfs1.boot of=/dev/hdc2
# exit
$ exit
Reboot the computer and be sure to remove the disk.
Let the system start and log in as the normal user. You will create a directory from which the rest of the system can be obtained. Place the SNAPSHOT disc 1 into the drive, close it, and issue the following commands.
Code:
$ mkdir cdrom
$ su
Password:
# mount -t cd9660 -o ro /dev/acd0 cdrom/
# cd 9*
(Here you can either enter each directory and install or use the following. Do not reinstall the base set or kernel.)
# sh $DIRECTORY/install.sh
Because you are using another processor architecture, you must set the flags in make.conf. I have a G3/750 so a few of these values will be different. Look for the proper flags for your G4.
Code:
vi /etc/make.conf
(Add the following values under the decleration of the PERL version)
CPUTYPE?=powerpc
CFLAGS= -mcpu=G3 -Os -mmultiple -mstring -fno-strict-aliasing -pipe
Code:
# cd /usr/ports/sysutls/pciutils
# make install clean
Code:
# cd /usr/ports/x11/xorg && make install clean
Code:
sysctl hw.ofwfb.relax_mmap=1
Code:
/usr/libexec/locate.updatedb
Code:
# cd /usr/ports/devel/subversion
# make install clean
Code:
# cd
# Xorg -configure -retro
Code:
Option "UseFBDev" "False"