(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) MkLinux :
How do I install the pre-release DR3 of Mklinux
Below are instructions for installing the current pre-release build of DR3 which is available on ftp.linuxppc.org in the /devel/CD_Image directory
The following example explains the installation of the base DR3 rpm set on a Powermac 6100 with a MacOS-only boot drive and a Mklinux-only external scsi drive. The instructions assume the presence of an external Zip drive to hold the RedHat directory.
Preparation 1) Obtain the file MkLinux_Booter.1.2.9a.hqx from ftp.mklinux.apple.com in the /pub/wip/booter directory. Decode the file with Stuffit Expander. 2) From ftp.linuxppc.org download the following...
  a) the entire directory and contents of /devel/CD_Image/RedHat/base
  b) the file "Mach Kernel" from the directory
     "/devel/CD_Image/Install MkLinux/Put in Extensions Folder"
  c) the entire directory and contents of
     "/devel/CD_Image/Install MkLinux/Put on main hard drive/mach_servers"
...it is best to use Fetch 3.0.3 in binary transfer mode (not automatic) for these file transfers. 3) Now open the comps.pmac file in BBEdit Lite and examine the list of rpm module names in the *beforeskel* and Base subsystems. You will need to download everyone of these from ftp.linuxppc.org's /devel/CD_Image/RedHat/RPMS directory. They are identified by the first words before the version number in the ppc.rpm filename. You may also download the rpms listed in the other subsystems in comps.pmac (Basic Network Support(+7Meg) for example) but remember you are limited to 94 Mb of space on a Zip disk. 4) Now place everything in the correct locations
  a) Mklinux booter 1.2.9a and the "Mach Kernel" files go on the MacOS boot
disk in the Extensions folder of the System Folder.
  b) On the Zip drive you should have the RedHat folder on the Zip drive
folder level. In the RedHat directory should be the base directory and its contents. YOU MUST HAVE A COPY OF comps.pmac RENAMED comps present in the base directory!
  c) On the Zip drive in the RedHat directory you should have a RPMS directory
with all the RPMS listed in comps under the *beforeskel* and base subsystems as well as the rpms listed in any other subsystems you want to install. YOU MUST DELETE ALL THE REMAINING SUBSYSTEMS AND RPMS LISTED IN THE comps file! Otherwise you will get install errors since you are using a smaller installation RPMS set than full DR3. 5) Now with the Zip disk in the external Zip drive and the external Mklinux drive on reboot off the internal MacOS drive. At the Mklinux booter splash screen click the boot Mklinux button. You will get a booter error that bootdev is not defined followed by a system error. Click restart and on the reboot click the boot MacOS button. When in the MacOS edit the mklinux.pref or lilo.pref file to add the following
bootdev=/dev/sda4
assuming you have the MacOS partition on the 4th partition. This will case the booter to boot from the mach_servers directory which has the redhat installer on the MacOS-only internal drive. Reboot and click boot Mklinux. 6) You should now see Mklinux boot up all the way to the redhat installer. Following the instructions on the screen keeping the following points in mine
   a) the current redhat installer doesn't seem to be able to see the internal
MacOS HFS partition so the RedHat directory must reside on a HFS Zip disk.
   b) You can select the external Mklinux drive for repartitioning and using
pdisk delete all partitions including the disk drivers (but not the partition map partition) using the 'd' command. Then use the 'c' command to create a 'swap' and 'root' partition. Use 'w' to write down your changes and 'q' to quit pdisk. NOT THIS ASSUMES THAT THE EXTERNAL MKLINUX DRIVE IS DEDICATED ENTIRELY TO MLINUX AND HAS NO HFS PARTITIONS THAT YOU NEED!!!!!!
   c) allow the redhat installer to prepare the swap partition and format the
root partition when asked. Select the Zip drive partition as the location for the RedHat directory. YOU DO NOT NEED TO CHANGE THE PATH IF IT IS IN THE MAIN ZIP DRIVE FOLDER! That is the '/' root level!
   d) The redhat installer should scan all the rpms and present a set subsystems
to install. Select them all. 7) If all goes well the redhat installer will show a progress bar display as the rpms are installed. At the end it will ask you if you wish to edit the lilo.pref file. It seems to want to edit it on the wrong drive so I would not the value it suggests for the bootdev variable in lilo.pref and decline the change. After the redhat installer exits and reboots the system go into the MacOS and make the change by hand to the lilo.prefs file in the Preferences folder of the MacOS-only boot drive. 8) Now when you reboot again and select boot Mklinux you should have a clean boot into a minimal Mklinux system. 9) You can add the remaining rpms placing them in a directory on the MacOS drive and mounting it from Mklinux as follows...
mount -t hfs /dev/sda4 /mac_hd
or such. You can then 'cd /mac_hd' and then 'rpm -ivh *' in the directory with the additional rpms. The lists of rpms by subsystem in the base/comps.pmac file can be used to pick all the related rpms for this step.
howarth@bromo.med.uc.edu
[Append to This Answer]
Previous: (Answer) Does MkLinux run on a NuBus Powermac with the Sonnet Crescendo 604e accelerator card?
Next: (Answer) How do I upgrade from MkLinux DR2.1 to DR3?
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=349
[Search] [Appearance]
This is a Faq-O-Matic 2.717d.
Hosted by anduin.org and SourceForge Logo