kernel args with miboot
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · William H. Schultz
Maybe I'm just not as quick as everyone else, but how do you pass kernel arguments when using miboot? I found some stuff when I looked at the "Sytem" file with ResEdit, but it didn't look like that's where I was supposed to put the stuff. I also haven't found any documentation on the bootloader.
There is a resource CMDL, you can have two configurations. Just enter your stuff carefully.
Documentation is available in .c fomat ;)
Gruss Olaf
--
$ man 1 current_release
BUGS
Users never read manuals...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Setting up yaboot
In reply to a message not in the archiveIs there some sort of instructions to setting up yaboot? I managed to get LinuxPPC 2000 installed on my Pismo, and I'd like to actually be able to use it now. Here's how I have the partitions set up.
hda9 -> 2gb MacOS partition (HFS+)
hda10 -> 32mb HFS partition
hda11 -> 128mb swap
hda12 -> Rest of drive is linux "/"
Don't ask me why the partition numbers are so high, cuz I don't know. Any help offered would be appreciated.
Tim
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: Setting up yaboot
Quoted 4 lines · Tim Wojtulewicz
Is there some sort of instructions to setting up yaboot? I managed to get LinuxPPC 2000 installed on my Pismo, and I'd like to actually be able to use it now. Here's how I have the partitions set up.
There is the suseboot.hqx at
ftp://ftp.suse.com/pub/suse/ppc/update/BETA/
docs are included.
Quoted 7 lines
hda9 -> 2gb MacOS partition (HFS+)
hda10 -> 32mb HFS partition
hda11 -> 128mb swap
hda12 -> Rest of drive is linux "/"Don't ask me why the partition numbers are so high, cuz I don't know. Any help offered would be appreciated.
A pdisk -l will show you many system partitions for drivers etc. 8 System Partitions is very high, yes.
Gruss Olaf
--
$ man 1 current_release
BUGS
Users never read manuals...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: Setting up yaboot
Quoted 10 lines · Olaf Hering
Quoted 4 lines · Tim Wojtulewicz
Is there some sort of instructions to setting up yaboot? I managed to get LinuxPPC 2000 installed on my Pismo, and I'd like to actually be able to use it now. Here's how I have the partitions set up.
There is the suseboot.hqx at
ftp://ftp.suse.com/pub/suse/ppc/update/BETA/
docs are included.
Ok, I downloaded this file and got it all copied over correctly. I edited the os-chooser script to point to what I thought were the correct drives. I must be mistaken, sinced OF doesn't seem to want to boot from the one I want.
If I boot into OF, then type 'boot' at the prompt, I get the following error message:
boot load-size=196 adler32=2e0879a0
DEFAULT CATCH, code=70 at %SRR0: ff80b320 %SRR1:0000b030
Here's what I have for a os-chooser script:
<CHRP-BOOT>
<COMPATIBLE>
iMac,1 PowerMac1,1 PowerBook1,1 PowerMac2,1 PowerMac3,1 PowerBook2,1 </COMPATIBLE>
<DESCRIPTION>
Linux/PPC Yaboot bootloader
</DESCRIPTION>
<BOOT-SCRIPT>
" get-key-map" " keyboard" open-dev $call-method
dup 20 dump
5 + c@ 08 = if
" Booting MacOS ..." cr " boot ultra0:9,\\:tbxi" eval else
" Booting Yaboot ..." cr " boot ultra0:10,\\yaboot" eval then
</BOOT-SCRIPT>
</CHRP-BOOT>
As before, my MacOS partition is #9, and my boot partition is #10.
Thanks.
Tim
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: Setting up yaboot
Quoted 7 lines · Tim Wojtulewicz
If I boot into OF, then type 'boot' at the prompt, I get the following error message:
boot load-size=196 adler32=2e0879a0
DEFAULT CATCH, code=70 at %SRR0:
ff80b320%SRR1:0000b030
ain't OF great ;-)
Quoted 1 line
Here's what I have for a os-chooser script:
this probably isn't it given the above gibberish, but try adding PowerBook3,1 to the <COMPATIBLE> line below.
if that does not work try loading this script directly (or just load yaboot directly) like so:
boot ultra0:10,ofboot.b (or whatever its called)
or
boot ultra0:10,yaboot <-- this one should work if not something is really borked.
Quoted 25 lines
<CHRP-BOOT>
<COMPATIBLE>
iMac,1 PowerMac1,1 PowerBook1,1 PowerMac2,1 PowerMac3,1 PowerBook2,1 </COMPATIBLE>
<DESCRIPTION>
Linux/PPC Yaboot bootloader
</DESCRIPTION>
<BOOT-SCRIPT>
" get-key-map" " keyboard" open-dev $call-method
dup 20 dump
5 + c@ 08 = if
" Booting MacOS ..." cr " boot ultra0:9,\\:tbxi" eval else
" Booting Yaboot ..." cr " boot ultra0:10,\\yaboot" eval then
</BOOT-SCRIPT>
</CHRP-BOOT>As before, my MacOS partition is #9, and my boot partition is #10.
Thanks.
Tim
Signature · 2 lines
Ethan Benson http://www.alaska.net/~erbenson/
Re: Setting up yaboot
Quoted 7 lines · Ethan Benson
Quoted 6 lines · Tim Wojtulewicz
If I boot into OF, then type 'boot' at the prompt, I get the following error message:
boot load-size=196 adler32=2e0879a0
Quoted 8 lines
Quoted 1 line
DEFAULT CATCH, code=70 at %SRR0:
ff80b320%SRR1:0000b030ain't OF great ;-)
Quoted 1 line
Here's what I have for a os-chooser script:
this probably isn't it given the above gibberish, but try adding PowerBook3,1 to the <COMPATIBLE> line below.
This is exactly the question I had now, so it seems we all have to update the os-chooser script and add PowerBook3,1 to it.
I will update the suseboot.hqx today, it includes more funny AppleScript files for automate the setup process. SCSI Booting is still an issue, the only way is to boot directly into yaboot. It works here on many differnt machines.
Why should ELF loading not work?
boot hd:9,\\yaboot in the os-chooser script should be the same like hd:9,\\yaboot in boot-device for the OF.
Yes, there is macboot on newer machine, I had no problems so far.
Gruss Olaf
--
$ man 1 current_release
BUGS
Users never read manuals...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: Setting up yaboot
Quoted 3 lines · Olaf Hering
This is exactly the question I had now, so it seems we all have to update the os-chooser script and add PowerBook3,1 to it.
yup, ben made be aware of this recently.. it might be possible to do away with that part altogether but that would mean alot of testing, that i can't really do.
Quoted 5 lines
I will update the suseboot.hqx today, it includes more funny AppleScript files for automate the setup process. SCSI Booting is still an issue, the only way is to boot directly into yaboot. It works here on many differnt machines.
Why should ELF loading not work?
elf booting works so long as you don't try to call the yaboot file by its type (hd:,\\:tbxi) for some bizzare reason OF barfs if a tbxi file is not a CHRP script. just for kicks go open a MacOSROM file in a text editor to see how they worked around this. (about 80 lines of nasty Forth code)
Quoted 2 lines
boot hd:9,\\yaboot in the os-chooser script should be the same like hd:9,\\yaboot in boot-device for the OF.
yup, but the fact is people hate screwing with OF, so if i use a CHRP wrapper they should be able to zap OF to its default settings and still have it automagically boot into the yaboot menu. (if they followed my recommendations for how to setup the bootstrap partition)
your failure occured when OF tried to load the CHRP script, not yaboot. i would think it would output a less obfuscated error then that if the COMPATIBLE tag was wrong...
Quoted 1 line
Yes, there is macboot on newer machine, I had no problems so far.
mac-boot works the same as boot, the only difference is it searches for bootable partitions like the old hardware ROMs did. but it trys to load blah:,\\:tbxi
Signature · 2 lines
Ethan Benson http://www.alaska.net/~erbenson/
Re: Setting up yaboot
Quoted 7 lines · Ethan Benson
Quoted 5 lines · Olaf Hering
I will update the suseboot.hqx today, it includes more funny AppleScript files for automate the setup process. SCSI Booting is still an issue, the only way is to boot directly into yaboot. It works here on many differnt machines.
Why should ELF loading not work?
Quoted 5 lines
elf booting works so long as you don't try to call the yaboot file by its type (hd:,\\:tbxi) for some bizzare reason OF barfs if a tbxi file is not a CHRP script. just for kicks go open a MacOSROM file in a text editor to see how they worked around this. (about 80 lines of nasty Forth code)
Ok, our os-chooser looks like hd:9,\\yaboot and this way it works.
Gruss Olaf
--
$ man 1 current_release
BUGS
Users never read manuals...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: Setting up yaboot
In reply to Olaf HeringQuoted 28 lines · on 6/4/2000 12:37 pm, Olaf Hering at [email protected] wrote:
Quoted 7 lines · Ethan Benson
Quoted 6 lines · Tim Wojtulewicz
If I boot into OF, then type 'boot' at the prompt, I get the following error message:
boot load-size=196 adler32=2e0879a0
Quoted 8 lines
Quoted 1 line
DEFAULT CATCH, code=70 at %SRR0:
ff80b320%SRR1:0000b030ain't OF great ;-)
Quoted 1 line
Here's what I have for a os-chooser script:
this probably isn't it given the above gibberish, but try adding PowerBook3,1 to the <COMPATIBLE> line below.
This is exactly the question I had now, so it seems we all have to update the os-chooser script and add PowerBook3,1 to it.
I will update the suseboot.hqx today, it includes more funny AppleScript files for automate the setup process. SCSI Booting is still an issue, the only way is to boot directly into yaboot. It works here on many differnt machines.
Why should ELF loading not work?
Quoted 6 lines
boot hd:9,\\yaboot in the os-chooser script should be the same like hd:9,\\yaboot in boot-device for the OF.
Yes, there is macboot on newer machine, I had no problems so far.
Gruss Olaf
I've recently setup my new Pismo/400 with Linux and, as of this morning, Darwin 1.0 and I think I'm going to require a hard drive upgrade about 6 months sooner than I'd planned for...
I can confirm that you do need to add the PowerBook3,1 line into the <COMPATIBLE> section before the Pismo will use the os chooser script correctly.
One thing I noticed, at least with this machine, is that the line:-
boot hd:10,\\yaboot
will fail unless I rewrite it as:-
boot hd:10,yaboot
This is the first new world machine that I have setup with Linux so I don't know if this is right for others or if my configuration may be different. I'm going to be upgrading :-) an iMac DV with Linux this afternoon so I'll report back what that one does with regard to the os chooser script.
Now I'm off to try and rewrite the script so that I can choose Darwin as well...
Regards,
Mark Steer.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: Setting up yaboot
Quoted 3 lines · Mark Steer
I've recently setup my new Pismo/400 with Linux and, as of this morning, Darwin 1.0 and I think I'm going to require a hard drive upgrade about 6 months sooner than I'd planned for...
;-)
Quoted 3 lines
I can confirm that you do need to add the PowerBook3,1 line into the <COMPATIBLE> section before the Pismo will use the os chooser script correctly.
thought so...
Quoted 7 lines
One thing I noticed, at least with this machine, is that the line:-
boot hd:10,\\yaboot
will fail unless I rewrite it as:-
boot hd:10,yaboot
that line means boot yaboot from the root directory, certianly the most reliable method i have found other then hd:,\\:tbxi (which only works on CHRP scripts with a properly blessed directory)
the first notation means to load the file from the blessed directory, which if there isn't one will fail. macos tends to remove the blessing from non-macos directories.
Quoted 7 lines
This is the first new world machine that I have setup with Linux so I don't know if this is right for others or if my configuration may be different. I'm going to be upgrading :-) an iMac DV with Linux this afternoon so I'll report back what that one does with regard to the os chooser script.
Now I'm off to try and rewrite the script so that I can choose Darwin as well...
does darwin still use UFS or ffs for its default filesystem? if so it probably uses a bootstrap partition of type Apple_Bootstrap or Apple_BootROM setup pretty much the same way i advocate (that is where i got the idea, from OSX server) if it does still use this partition you should be able to add a reference to it like so:
hd:6,\\:tbxi
to your chooser script. where 6 is the real partition number of the darwin bootstrap partition.
Signature · 2 lines
Ethan Benson http://www.alaska.net/~erbenson/
Re: Setting up yaboot
Quoted 22 lines · on 6/4/2000 2:40 pm, Ethan Benson at [email protected] wrote:
Quoted 3 lines · Mark Steer
I've recently setup my new Pismo/400 with Linux and, as of this morning, Darwin 1.0 and I think I'm going to require a hard drive upgrade about 6 months sooner than I'd planned for...
;-)
Quoted 3 lines
I can confirm that you do need to add the PowerBook3,1 line into the <COMPATIBLE> section before the Pismo will use the os chooser script correctly.
thought so...
Quoted 7 lines
One thing I noticed, at least with this machine, is that the line:-
boot hd:10,\\yaboot
will fail unless I rewrite it as:-
boot hd:10,yaboot
Quoted 8 lines
that line means boot yaboot from the root directory, certianly the most reliable method i have found other then hd:,\\:tbxi (which only works on CHRP scripts with a properly blessed directory)
the first notation means to load the file from the blessed directory, which if there isn't one will fail. macos tends to remove the blessing from non-macos directories.
Ah! thank you, that clears it up. I haven't bothered to set a system folder on my HFS exchange disk. [Thanks also to BenH for that information.]
Quoted 9 lines
Quoted 7 lines
This is the first new world machine that I have setup with Linux so I don't know if this is right for others or if my configuration may be different. I'm going to be upgrading :-) an iMac DV with Linux this afternoon so I'll report back what that one does with regard to the os chooser script.
Now I'm off to try and rewrite the script so that I can choose Darwin as well...
does darwin still use UFS or ffs for its default filesystem?
The Darwin binary that I downloaded installs onto an HFS+ volume from an image (darwin.img) using the Apple Software Restore utility. In my case the supplied version of the Software Restore utility failed each time it was started(error: can't locate HID, I think) and I had to use the one that came with my system restore CD.
Quoted 9 lines
if so it probably uses a bootstrap partition of type
Apple_BootstraporApple_BootROMsetup pretty much the same way i advocate (that is where i got the idea, from OSX server) if it does still use this partition you should be able to add a reference to it like so:hd:6,\\:tbxi
to your chooser script. where 6 is the real partition number of the darwin bootstrap partition.
Yes, that's it. The System Disk utility (version 3 is supplied) showed me the info that it writes into OF, giving me enough info to modify the script. In my case hd:13,\\:tbxi
I think that's just too many partitions :-)
Regards,
Mark Steer.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/