Shut down from the ok prompt

Share uncovered secrets, useful notes, guides and hacks!

Shut down from the ok prompt

Postby easthope » Wed Feb 22, 2012 6:14 am

How can the machine be shut down from the ok prompt?
Thanks, ... Peter E.
easthope
 
Posts: 22
Joined: Fri Feb 17, 2012 11:04 am

Re: Shut down from the ok prompt

Postby ektoric » Wed Feb 22, 2012 5:27 pm

The OLPC uses Open Firmware as the startup firmware. Instead of auto-booting into the Sugar (linux) operating system, you can ESC out into the firmware's environment and perform actions at its "OK" prompt.

At the "OK" prompt, Open Firmware understands the FORTH programming language, with certain built in commands.

By googling openfirmware forth shutdown, you can get the
Code: Select all
shut-down
FORTH command.
ektoric
Support Team
 
Posts: 470
Joined: Wed Jan 02, 2008 3:46 pm
Location: Austin, TX

Re: Shut down from the ok prompt

Postby easthope » Thu Feb 23, 2012 3:10 pm

Thanks ektoric.

By googling openfirmware forth shutdown, ...


Google gives http://mac.linux.be/content/guide-<blah, blah> which tells me to try shut-down. No dice.

So try googling '"mitch bradley" "shut-down" power'. Bingo! The twenty-first link is entitled "Re: GRUB on OLPC/XO". Therein we find power-off. That's it, power-off.

More deductive souls might turn to http://wiki.laptop.org/go/Forth_Lessons and in lesson 5 find the command sifting. With an inkling that power might be involved, "ok sifting power" yields about a dozen commands. Near end is power-off. Bingo again!

Regards, ... Peter E.
easthope
 
Posts: 22
Joined: Fri Feb 17, 2012 11:04 am

Re: Shut down from the ok prompt

Postby ektoric » Wed Feb 29, 2012 11:07 am

Thanks for the update, and resolution! :D
ektoric
Support Team
 
Posts: 470
Joined: Wed Jan 02, 2008 3:46 pm
Location: Austin, TX


Return to Tips, Tricks & Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests

cron