[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Call for info: slave drives bootable from OpenFirmware (OldWorl d)



On  16 Apr, this message from Ethan Benson echoed through cyberspace:
> On Mon, Apr 16, 2001 at 05:40:17PM +0200, Michel Lanners wrote:
>> 
>> 7600/132, with G3/300 processor upgrade, OF version 1.0.5, booting from
>> internal SCSI disk. Note that OF 1.0.5 is broken (as far as we know) in
>> that you can't select a partition to boot from; it will use the first it
>> finds. Therefore I'm still using the quik installed on my old R4 root
>> partition ;-). I'll try reinstalling quik on my current root partition
>> one of these days....
> 
> interesting, i thought OF was supposed to boot the partition marked
> bootable.  when you use partition 0.  

Yes, sorry for not being clear, I did mean the first _bootable_
partition.

> even so that isn't really that big a deal, just make sure quik is only
> installed on the partition you want.  and dd if=/dev/zero of=/dev/sdaX
> bs=1k count=1 on the rest.  

Thanks; I'll need that part once I'll reinstall ;-)

>> (all others except nvramrc are at defaults)
> 
> what is in the nvramrc?  

Here you are. Top part is what's in there after an Cmd-Opt-P-R:

	: '& get-token drop ;
	: >& dup @ 6 << 6 >>a -4 and + ;
	: & na+ >& ;
	6ED '& execute

	0 value mi

	: mmr " map-range" mi if my-self $call-method else $call-parent then ;
	89B '& ' mmr BRpatch

	: mcm -1 to mi $call-method 0 to mi ;
	8CB '& 1E na+ ' mcm BLpatch

	: maa -1 to mi 1D swap ;
	8C9 '& 5 na+ ' maa BLpatch
	8C9 '& 134 + ' 1 BLpatch

	8CD '& 184 + dup 14 + >& BRpatch

	8C6 '& 7C + ' u< BLpatch

	0 value yn
	: y yn 0= if dup @ to yn then ;
	8CB '& ' y BRpatch
	' y 28 + 8CB '& 8 + BRpatch
	: z yn ?dup if over ! 0 to yn then ;
	8CC '& ' z BRpatch
	' z 2C + 8CC '& 8 + BRpatch

This is the part about getting chaos to display something sensible:

	dev /bandit/gc/via-cuda
	' write value &W
	: -&We &W swap - execute ;
	: P1 4D8 -&We false 548 -&We ;
	&W FC + ' P1 BLpatch
	: P2 0C 2 ms ;
	&W E0 + ' P2 BLpatch
	device-end

And this is from the darwin botloader. Not sure what it does:

	4180FFF0 ' msr! 44 + code!

	dev /packages/xcoff-loader
	: p&+ ['] open 600 - + ;

	: p3 { _a _s }
	       _a -1000 and _a _s + over - FFF ( + -1000 and )
	;

	60000000 dup 8 p&+ code! C p&+ code!
	18 p&+ ' p3 BLpatch
	device-end

This last part is for the config of my G3 upgrade, and 'slowing' down
the processor via ICTC to render my internal SCSI bootable (this is all
homebrew):

	code ictc!
	        7e9bfba6 l, 829f0000 l, 3bff0004 l, 4e800020 l,
	end-code

	pvr@ 80000 >=
	if
 	       hid0@ 208 or
 	       FFFFFF7F and
 	       hid0!
  	       11 ictc!
	then

The chaos part is from Alan Mimms, Apple bootloader guy in the days of
Copland. You can find a copy of his mail linked from this page:

http://www.cpu.lu/~mlan/linux/dev/g3upgrade.html

>> Also, on all chaos-based machines, your quik wrapper could patch OF to
>> correctly drive the chaos display under OF.... Let me know if you need
>> the patch.

It's inluded above, actually..

>> Or, include a means for user-specified nvramrc patches, and
>> pre-load it with the chaos patch.
> 
> well, i think it would have to use external user supplied patches,
> unless they are under a licence that permits free distribution.
> apple's licence is not.  

The problem I see is more in finding out what's already in the nvramrc,
possibly differing Apple-supplied patches, and various user-supplied
patches. Cooking this all together to get something sensible might be
non-trivial.

Cheers

Michel

-------------------------------------------------------------------------
Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "



Reply to: