LinuxPPC and Pismo Powerbook
A message that is not in the archive (sent off-list or not yet received): [email protected]
I'm not a Linux expert at all and I tried to download the files that you have at ppclinux.apple.com/~benh. But, I some difficulty setting stuff up. So, I'll explain what I did, and perhaps you can give me a lift. Then, I'll write it up and post it on the web on how to set it up for the beginners. :)
* SETTING :
- Powerbook 400Mhz + 192MB RAM...
- Mac OS 9.0.2
- Attempt to use 1 harddrive to setup LinuxPPC2000.
* STEPS :
1. partitioned the HD into three partititions: MacOS, Linux, Swap
2. download the image file of LinuxPPC2000 from the mirror site and placed it in the swap disk.
3. using 'diskcopy", installed the linuxppc2000 image in the swap disk creating LinuxPPC 2000 install directory.
4. downloaded the kernels from ppclinux.apple.com/~benh at swap disk
vmlinux... system.map... modules... patches...
5. downloaded yaboot from ppclinux.apple.com/~benh as well. -> to boot yaboot?
- but I saw yaboot in Linuxppc2000 install directory as well. But reading the file, it seems as it's assuming to read boot file from CD rom.
6. ran LinuxPPC installer.
7. reboot, but it will go with BootX.
Would you tell me what are the other steps that I need to take? Such as where to place those four files, if I need to uncompress them...
Thanks
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Henry Worth
Quoted 2 lines
* STEPS :
1. partitioned the HD into three partititions: MacOS, Linux, SwapI'd strongly recommend a small HFS boot partition (~32MB).
32MB?? lord no, 800K is more then enough for yaboot.
this partition should also be given a partition type of Apple_Bootstrap to prevent Macos from mounting, and subsquently screwing it up. (it removes the `blessing' from anything that might not be a valid macos system folder)
Quoted 4 lines
2) Set up a "blessed" system folder in the HFS boot partition containing yaboot and yaboot.conf. There is a link to tool on Ben's website to help with that (or copy the system folder from the LinuxPPC 2000 CD). You can then:
the tool i think you are refering to is ybin, which i wrote to format bootstrap partitions in such a way that OpenFirmware will boot from them with its default settings.
the following is required for this to work:
* bootstrap partition must be placed BEFORE the macos partition.
* bootstrap partition must NOT be mountable by macos, otherwise it will undo my changes. so you MUST use the Apple_Bootstrap partition type.
once you have this, you can run the following command with ybin 0.11 (0.12 will be a bit better)
mkofboot --boot /dev/hda5 --magicboot /boot/ofboot.b
you must have yaboot installed at /boot/yaboot and the yaboot.conf at /etc/yaboot.conf, if not specify the paths with -i /path/to/yaboot and -c /path/to/yaboot.conf
ofboot.b is a small openfirmware script, i include 2, one is intendted for linux only systems, the other has a mini boot menu, you need to edit them to correct the OF partitions for macos and the bootstrap partition.
now what mkofboot does for you is create the HFS filesystem on the bootstrap partition (example above is /dev/hda5, adjust for your system) and copy yaboot, yaboot.conf, and the ofboot.b OF script to the boot partition. it then sets the filetype on the ofboot.b script to `tbxi' and blesses the root directory. this way when you reboot you can hold down:
command option o f
while your system boots to reset OF to default values, and up comes the multiboot menu. neat eh? no need to enter OF at all under most circumstances.
Quoted 2 lines
a> Set that partition as the default boot partition from
the MacOS partition.
no need. and you can't, if macos is allowed to mount the bootstrap partition it will remove the blessing and OF will reject the partition as bootable.
Quoted 4 lines
c> The OF boot-device and boot-file variables can be set to change
the default boot partition and file. With this approach you don't need the system folder, see the maillist archives.
if you must set the boot-device (i have not had to on my blue g3, you might for a scsi system) set it to:
hd:<#>,\\:tbxi
where <#> is the partition number of the bootstrap partition.
Quoted 4 lines
3) There are examples of some slick dual-boot OF scripts in the recent mail archives. I need to find them again myself (there was a thread with a good writeup), and set my system up that way, it's
there is a simple one with ybin, fancier ones may be found elsewhere, just drop whichever one you prefer in /boot/ofboot.b and ybin will use it.
ybin is available at my web page (.sig) or at
http://www.linuxppc.org/ybin/
Signature · 2 lines
Ethan Benson http://www.alaska.net/~erbenson/
Quoted 8 lines · Ethan Benson
Quoted 4 lines · Henry Worth
Quoted 2 lines
* STEPS :
1. partitioned the HD into three partititions: MacOS, Linux, SwapI'd strongly recommend a small HFS boot partition (~32MB).
32MB?? lord no, 800K is more then enough for yaboot.
What about different kernel images? 32 MB is a good value. And it is more secure, even for older Macs with BootX. I don't trust the hfs.o
Quoted 4 lines
this partition should also be given a partition type of
Apple_Bootstrapto prevent Macos from mounting, and subsquently screwing it up. (it removes the `blessing' from anything that might not be a valid macos system folder)
There is nothing on that partition that can be screwed up and the user can change the yaboot.conf and the os-chooser file from the MacOS side.
I had never problems with my faked system folder, I move it around, to CDs, to netatalk servers and where ever I want. This can be a "feature" of OS9 that it doesn't remove the information, I don't know.
What makes this blessing so special??
I have the Finder from MiBoot.smi, I changed the type/creator to FNDR/MACS. The System is the same from MiBoot, unchanged. There is a faked RomFile = yaboot and its .conf. Thats all.
You have to move the Finder file out of that folder and move it back onto the closed folder icon and it is bootable. All you have to do now is to open the control panel Startup volume and you are done.
I don't see the problem. What we really need is an app that creates the os-chooser file, what we need is the partition number and the path to a bootable SCSI device. I could do that from the Linux side via a bootable CD, but it would be nice to do it with a Mac application.
Gruss Olaf
--
$ man 1 current_release
BUGS
Users never read manuals...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 4 lines · Olaf Hering
What about different kernel images? 32 MB is a good value. And it is more secure, even for older Macs with BootX. I don't trust the hfs.o
kernel images do not belong on this partition, they belong on your ext2 root filesystem in the /boot directory, this is where yaboot will load them from.
Quoted 2 lines
There is nothing on that partition that can be screwed up and the user can change the yaboot.conf and the os-chooser file from the MacOS side.
yes there is, the blessing WILL get removed by macos, if it has not happened to you, then your lucky, macos for me NEVER fails to ruin fake system folders. don't play with fire is my philosophy on this.
Quoted 5 lines
I had never problems with my faked system folder, I move it around, to CDs, to netatalk servers and where ever I want. This can be a "feature" of OS9 that it doesn't remove the information, I don't know.
What makes this blessing so special??
OF will not boot automatically with its default configuration otherwise. unless you LIKE screwing with its variables ;-)
Quoted 3 lines
I have the Finder from MiBoot.smi, I changed the type/creator to FNDR/MACS. The System is the same from MiBoot, unchanged. There is a faked RomFile = yaboot and its .conf. Thats all.
miboot has nothing to do with yaboot. creating fake system files SOMETIMES prevents macos from deblessing, but usually it does not. (take my word for it i have much experience dealing with fake system folders like this for other purposes)
also yaboot cannot be given type tbxi because its an ELF executable, and OF refuses to boot a type tbxi file unless its a CHRP script. that is why we have to use that wrapper instead.
Quoted 3 lines
You have to move the Finder file out of that folder and move it back onto the closed folder icon and it is bootable. All you have to do now is to open the control panel Startup volume and you are done.
i have found this is very unreliable and usually does NOT work. my method allows for default OF settings with no modification. and guarenteed access to the boot menu.
Signature · 2 lines
Ethan Benson http://www.alaska.net/~erbenson/
Quoted 4 lines · Olaf Hering
I have the Finder from MiBoot.smi, I changed the type/creator to FNDR/MACS. The System is the same from MiBoot, unchanged. There is a faked RomFile = yaboot and its .conf. Thats all.
Quoted 8 lines
You have to move the Finder file out of that folder and move it back onto the closed folder icon and it is bootable. All you have to do now is to open the control panel Startup volume and you are done.
I don't see the problem. What we really need is an app that creates the os-chooser file, what we need is the partition number and the path to a bootable SCSI device. I could do that from the Linux side via a bootable CD, but it would be nice to do it with a Mac application.
The good news is that I have the algorithm for writing to NVRAM on new machines. That means that I'll be able to make a version of nvsetenv (or nvtool) that works on all supported macs, probably this week-end.
There's still the problem of figuring out the correct OF path however. Note that in my latest trees (and in bk 2.3.x), I've changed ide-pmac.c to set it's own interface type so that /proc returns "mac-io" instead of generic IDE. This should help differenciate the mac-io built-in IDE and the CMD646 on B&W G3.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 12 lines · Benjamin Herrenschmidt
Quoted 4 lines · Olaf Hering
I don't see the problem. What we really need is an app that creates the os-chooser file, what we need is the partition number and the path to a bootable SCSI device. I could do that from the Linux side via a bootable CD, but it would be nice to do it with a Mac application.
The good news is that I have the algorithm for writing to NVRAM on new machines. That means that I'll be able to make a version of nvsetenv (or nvtool) that works on all supported macs, probably this week-end.
Quoted 5 lines
There's still the problem of figuring out the correct OF path however. Note that in my latest trees (and in bk 2.3.x), I've changed
ide-pmac.cto set it's own interface type so that /proc returns "mac-io" instead of generic IDE. This should help differenciate the mac-io built-in IDE and the CMD646 on B&W G3.
I did a small update to the show_of_path.sh script, it display now everything correct. It assumes that ultra0 is always the first hd, ultra1 is the second. hdb can also be a cdrom drive, we have it in on of our iMacs. The OF to SCSI devices is "guessed" from bootpath. I think there is no real need for the exact path to an IDE controller.
It is available from ftp://ftp.suse.com/pub/suse/ppc/update/BETA/show_of_path.sh
Everybody is invited to send us the output of ftp://ftp.suse.com/pub/suse/ppc/update/BETA/suse_hw_info.sh
It is a little tar.gz file, 30kb.
New kernels with the status from linux-pmac-benh monday morning will arrive tomorrow, we do some internal tests. It includes also pcmcia support. They will support pmac, chrp and prep machines.
A newer quik.rpm for RS/6000 booting is available from ftp://ftp.suse.com/pub/suse/ppc/update/6.3/a1/quik-2.0-7.ppc.rpm It scans now every partition on sda for quik.conf, take the kernel from that partition and mount it as the root device if there is no root= argument.
Gruss Olaf
--
$ man 1 current_release
BUGS
Users never read manuals...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/