NetBSD Problem Report #11435

Received: (qmail 950 invoked from network); 7 Nov 2000 04:46:31 -0000
Message-Id: <200011070446.eA74kAW00533@gabriel.ece.ibaraki-ct.ac.jp>
Date: Tue, 7 Nov 2000 13:46:10 +0900 (JST)
From: you@nightbreak.org (Y. Takizawa)
To: gnats-bugs@gnats.netbsd.org
Subject: Open Firmware OS boot select support
X-Send-Pr-Version: 3.95

>Number:         11435
>Category:       port-macppc
>Synopsis:       Open Firmware OS boot select support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 07 04:47:00 +0000 2000
>Closed-Date:    
>Last-Modified:  
>Originator:     Y. Takizawa
>Release:        1.5 current
>Organization:
>Environment:

>Description:
	Installing NetBSD/macppc, LinuxPPC and MacOS to my PowerBook G3,
	I wrote an OS boot select script using Forth.
        (Thanks to Mr. Tsubai for Forth programming)
	It is better to describe on the macppc install documents
	for `NewWorld' Macintosh.

>How-To-Repeat:
	Using SimpleText on MacOS or hfsutils on NetBSD/macppc,
	create a text file with the following code and put on
	the top directory of the first HFS partition (can not
	write CRs on the first lines).

<CHRP-BOOT>
<COMPATIBLE>
PowerMac2,1 PowerBook3,1
</COMPATIBLE>
<DESCRIPTION>
Open Firmware OS Boot Selector
</DESCRIPTION>
<BOOT-SCRIPT>
" get-key-map" " keyboard" open-dev $call-method
l@
case
  00008000 of " boot hd:,\\:tbxi" endof
  00010000 of " boot hd:,yaboot" endof
  00004000 of " boot enet:0" endof
  02000000 of " boot cd:,\\:tbxi" endof
  00002000 of " noop" eval endof
  drop " boot hd:,ofwboot.elf hd:10" 0
endcase
eval
</BOOT-SCRIPT>
</CHRP-BOOT> 

	This IS only sample code. Maybe you need some changes
	for adapting to your environments, especially COMPATIBLE
	referring the Open Firmware boot messages. 

	The case values mean `0000ABCD EFGHIJKL MNOPQRST UVWXYZ00''
	which holding down is `1', or `0'. `00008000' means `M', `00010000'
	is `L' and `0C000000' is holding down both `A' and `B' keys,
	for example (I don't know values for space-bar, command and etc.)
	`drop' line is default case.

	Then, boot into the Open Firmware prompt to press down
	Command-Option-O-F keys while booting, type:

		setenv boot-device hd:,bootinfo
		setenv boot-command boot
		shut-down

	which the above text file is named `bootinfo'.

	You can boot MacOS, for example, to hold down 'M' key
	while booting.

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.