Subject: Re: Installation on Apus A3000
To: Chris Tribo <talon16m@hotmail.com>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: port-macppc
Date: 04/01/2000 19:18:21
On Sat, Apr 01, 2000 at 02:12:12AM -0500, Chris Tribo wrote:
> on 3/28/00 6:55 PM, Thilo Manske at Thilo.Manske@HEH.Uni-Oldenburg.DE wrote
> something like:
> > I suppose there is no way to get that "Disc copy NDIF" file to floppy
> > without the use of MAC OS? 

>     Actually, I think you can just dd / rawwrite the NDIF image file right
> onto the floppy. I think I actually used Disk Copy to write the NetBSD
> boot.fs image to a floppy, and I'm reasonably sure that it worked. That
> won't work with compressed images (relatively recent), but you might get
> lucky with the regular ole' uncompressed ones.

Actually Apple calls this as "compressed image" though it doesn't look as it
really is.
( http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Macintosh/System/Mac_OS_8.1_Update/Disk_Tools_PPC_Info.txt )

I did it the hard way (with Disk Copy/Mac OS <- I really wonder how Apple
was able to survive (and why Amiga, Acorn & co died) when they sell their
computers with this $%& preinstalled.)

But maybe you are still right and all you have to do is to remove the 128
bytes header of the *.img.bin file (if you have downloaded it with NetBSD):

[...]
00000080  4c 4b 60 00 00 86 44 18  00 00 06 53 79 73 74 65  |LK`...D....Syste|
00000090  6d 00 00 00 00 00 00 00  00 00 06 46 69 6e 64 65  |m..........Finde|
000000a0  72 00 00 00 00 00 00 00  00 00 07 4d 61 63 73 42  |r..........MacsB|
000000b0  75 67 00 00 00 00 00 00  00 00 0c 44 69 73 61 73  |ug.........Disas|

floppy:
00000000  4c 4b 60 00 00 86 44 18  00 00 06 53 79 73 74 65  |LK`...D....Syste|
00000010  6d 00 00 00 00 00 00 00  00 00 06 46 69 6e 64 65  |m..........Finde|
00000020  72 00 00 00 00 00 00 00  00 00 07 4d 61 63 73 42  |r..........MacsB|
00000030  75 67 00 00 00 00 00 00  00 00 0c 44 69 73 61 73  |ug.........Disas|

But I have only checked the first few blocks...


Back to the OF:

The "System Disk" doesn't really work on my Apus 3000/OF 2.0 (when bootet
from the Disk Tools disk):
It can't read the contents of the NVRAM (e.g. the current setting of the
"Boot Device" environment variabel), it can't set anything (not even
"stop at OF prompt") and of course it doesn't patch the OF :-(.
(Yes, I have System Disk itself patched).  

Hmm, I'll try it (again) with serial console  -> pointers to mails
are on the "OF 1.0.5 Patch" page. I didn't get the video patch working
I tried it with device path /bandit/ohare/via-cuda as well) and the
original "wBoot" hack doesn't work that well. (SCSI-Resets, DEFAULT CATCH!
and other errors...)

Instead I replaced it with a simple 10s delay wich works reliable (for
me - But I haven't tried yet if it helps me with booting with CD-ROM
connected.)

And here's the mini-HowTo:

* Enter OpenFirmware 
* Edit the nvramrc "file" with nvedit, i.e.
enter nvedit (nvedit at the 0> prompt)
look at the file already there with CTRL-L (probably) empty,
if not empty scroll to the end with CTRL-N (or cursor down with my
terminal emulation (minicom)), add

  : wBoot
  cr ." One moment please" cr
  d# 10000 ms
  ." Booting" cr
  $boot
  ;

Exit nvedit with CTRL-C

* store nvramrc in nvram with "nvstore"
* make sure it will be executed next boot: "setenv use-nvramrc? true"
* set the boot command to the new function (err, "word"):
  "setenv boot-command wBoot"
* "reset-all" to try it

If it doesn't work ("unknown word" or something), you may have mistyped
something, so re-edit the nvramrc file again. 

Here are the the most important nvedit keys:
(found them here http://www.vigra.com/manuals/tigrix/userman.html :-)

CTRL-P/cursor-up	up one line
CTRL-N/cursor-down	down one line
CR		newline as usual (eg. as in vi insert mode)
CTRL-K		deletes everything from cursor up to end of line
		including CR (i.e. joins with next line)
CTRL-L		lists file
CTRL-C		exit



Now I have NetBSD installed and it comes up without manual intervention
after power failures...

Thank you all for your help and patience :-)
-- 
Dies ist Thilos Unix Signature! Viel Spass damit.