DaemonForums  

Go Back   DaemonForums > Miscellaneous > General Hardware

General Hardware General hardware related questions.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1 Week Ago
izder456's Avatar
izder456 izder456 is offline
Real Name: izzy Meyer
the srcerer
 
Join Date: Nov 2024
Location: Wisconsin, USA
Posts: 12
Default You can create a forth word to dual boot easier on macppc

I found a neat hack for open firmware if you dual boot multiple systems on macppc hardware.

If you setenv auto-boot? false it'll drop into open firmware right?

Well, you can usually either boot OS X with mac-boot (which will boot the partition marked as default boot set by the boot-device variable IIRC), but if you want to boot into OpenBSD/NetBSD, you need to remember a long and weird boot hd:,\ofwboot command. well, you can save that as a forth word bsd-boot actually!

type nvedit at your open firmware prompt then enter this:

Code:
: bsd-boot " boot hd:,\ofwboot" eval ;
then, Control+C will save the contents of your nvramrc script you just wrote.

this is just a forth expression that defines a word, bsd-boot which pushes that string to the stack, and then evaluates it with eval (make sure the spacing is exact. forth is picky)

to store it, nvstore


finally, to run this script at every startup and thus "save" this new word, do a: setenv use-nvramrc? true and a reset-all to reboot.

now you can just type bsd-boot to boot *BSD, and mac-boot to boot OS X!
__________________
iz (she/her)
> i like to say mundane things,
> there are too many uninteresting things that go unnoticed.
izder456 (dot) neocities (dot) org
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
Onauk's Avatar
Onauk Onauk is offline
Real Name: Thomas
Shell Scout
 
Join Date: Jan 2023
Location: France
Posts: 89
Default

Nice find! I struggled with this when I installed OpenBSD on a eMac 1GHz. Now I shall try to revive my PowerBook with this but I have to find another IDE drive...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid Signature when trying to boot Ubuntu 14.04 (Dual Boot) bsd007 FreeBSD General 7 18th September 2014 12:37 PM
Create a partition for OpenBSD in a multi-boot OS environment cravuhaw2C OpenBSD Installation and Upgrading 9 14th July 2014 09:16 AM
g4u -> create just one boot floppy ccc NetBSD General 4 19th June 2011 04:46 PM
dual boot buba OpenBSD General 2 5th August 2008 11:32 AM
Dual-boot laptop won't boot OpenBSD after upgrade to 4.3 kbeaucha OpenBSD Installation and Upgrading 17 30th May 2008 02:40 PM


All times are GMT. The time now is 03:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick