It is currently Wed, 22 May 2013 18:29:47 GMT



 
Author Message
 booting linux-2.4.10 on powerbook G3 firewire (aka pismo)
I just compiled linux-2.4.10 using gcc-2.95.3 and libc-2.2.4 on an apple
powerbook G3 firewire (aka pismo). Using yaboot-1.3.4 I get the following
error code when I try to boot the machine:

boot: kernel
Please wait, loading kernel...
   ELF32 kernel loaded...
(everything is fine... but)

DEFAULT CATCH!, code=300 at %SRR0: 0141146c %SSR1: 00003030
(the system goes back to open firmware...)

Then, I have no other option than rebooting the machine and loading the
generic linux-2.2.17 from the debian's ppc port.

What's wrong..?

---
Pierre Snchal
(p...@pierresenechal.qc.ca)



 Sat, 03 Apr 2004 06:07:23 GMT   
 booting linux-2.4.10 on powerbook G3 firewire (aka pismo)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <j_Iy7.6967$uJ3.858...@news20.bellglobal.com>,
        "Pierre Snchal" <p...@pierresenechal.qc.ca> writes:

I've seen this from a few different people in a few different
places.  I'm guessing it's some sort of change in the Open
Firmware, since I've used other CHRP-BOOT scripts which load
okay (but don't do what I want).

There's another script at
http://sdb.suse.de/sdb/en/html/olh_ppc_macosx.html
which has the following excerpt:

dup 20 dump
3 + c@ 10 = if
" Booting MacOS X ..." cr " boot ultra0:11,\\:tbxi" eval
then
" get-key-map" " keyboard" open-dev $call-method
dup 20 dump
2 + c@ 80 = if
" Booting MacOS 9 ..." cr " boot ultra0:9,\\:tbxi" eval
then
" get-key-map" " keyboard" open-dev $call-method
dup 20 dump
1 + c@ 01 = if
" Booting Linux ..." cr " boot ultra0:10,\\yaboot" eval
then
" 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 Linux ..." cr " boot ultra0:10,\\yaboot" eval
then

As closely as I can tell, the lines like "3 + c@ 10" are
comparing the keyboard input to a certain character, and
acting if the input matches (the = if...).  The only problem
I'm having is, how do I read something like "3 + c@ 10"?
I can't for the life of me find any resources that document
what this means.  It'd be really nice, because then I could
change the meaning of the characters and add my own boot
options.

Any ideas?

- --keith

- --
kkel...@speakeasy.net
alt.os.linux.slackware FAQ:
http://wombat.san-francisco.ca.us/perl/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjvL1uYACgkQhVcNCxZ5ID9CAgCfSXZmRXvmrDkXjAydF8FCUMr0
dp4An1TrvVrTt/UpMQr+q1IQEmlhp6aD
=OnKo
-----END PGP SIGNATURE-----



 Sat, 03 Apr 2004 14:42:49 GMT   
 booting linux-2.4.10 on powerbook G3 firewire (aka pismo)

Keith, OpenFirmware is a FORTH, so any FORTH text (if you can find one)
will tell you what's going on. What you gave as an example is fairly
simple, once you get your head around the stack-based nature of FORTH,
along with the reverse-Polish way of writing things.
e.g. dup 20 dump
means duplicate the number on the top of the stack, dump the 20 bytes
from there

3 + c@ 10 = if
" Booting MacOS X ..." cr " boot ultra0:11,\\:tbxi" eval
then

means add 3 to the number on the top of the stack fetch the byte at that
address, compare it to 10, if true do the stuff until the word 'then'
(which looks like emitting a string, folowed by a RETURN (cr) followed
by executing (eval) the boot command.

I suspect basic FORTH knowledge is required for any rational work on OF
scripts. Try comp.lang.forth or comp.forth.lang.mac.

HTH,

Michael
(take out the dots if you want my real address)



 Sun, 04 Apr 2004 00:17:05 GMT   
 booting linux-2.4.10 on powerbook G3 firewire (aka pismo)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <3BCC5D81.600E0...@bbsrcdot.acdot.uk>,
        michaeldotba...@bbsrcdot.acdot.uk writes:

I actually had some of this figured out before posting, then got
some more of it figured out last night after posting, but the big
issue still is, what does the comparison actuall compare?  Why add
3 to the top of the stack?  Why compare to 10?

Way ahead of you--I subscribed just before reading my news this
morning.  :)

Thanks for the help,

- --keith

- --
kkel...@speakeasy.net
alt.os.linux.slackware FAQ:
http://wombat.san-francisco.ca.us/perl/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjvMZdwACgkQhVcNCxZ5ID8egACZAcScePbgwLvGT79gW8fQaanO
10oAn0i0o5+Ti0FNkCBpbQPM5DL1bYVN
=P7+Z
-----END PGP SIGNATURE-----



 Sun, 04 Apr 2004 00:52:47 GMT   
 
   [ 4 post ] 

Similar Threads

1. Q: Powerbook G3 firewire and Linux

2. Keyboard on PowerBook G3 Pismo

3. Sound on G3 Powerbook Pismo and Mandrake 8.2

4. Wake after Sleep lockup on G3 Powerbook (Pismo)

5. Video on a G3 Firewire Powerbook

6. sleep and sound on g3 powerbook firewire

7. Powerbook G3 firewire supported by MkLinux?

8. Cant boot Suse6.4 on pismo powerbook

9. cant boot debian on a powerbook g3

10. Booting Problems on a Powerbook G3 (brand new)


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software