Subject: Re: ? booting install cd on ANS 500
To: Bill Studenmund , Joseph Sarkes <jsarkes@tiac.net>
From: Henry B. Hotz <hotz@jpl.nasa.gov>
List: port-macppc
Date: 10/16/2002 09:24:08
At 1:55 PM -0700 10/15/02, Bill Studenmund wrote:
>On Tue, 15 Oct 2002, Joseph Sarkes wrote:
>
>>
>>  On Tuesday, October 15, 2002, at 07:04 AM, Daniel Eggert wrote:
>>
>>  >
>>  > On s=AFndag, okt 13, 2002, at 01:24 Europe/Copenhagen, Michael Bartosh
>>  > wrote:
>>  >
>>  >> OK, some progress-
>>  >>
>>  >> when I give the .gz as an argument to the boot cmd- ie-
>>  >>
>>  >> boot scsi-int/sd@0:,\OFWBOOT.XCF;1 NETBSD.GZ;1
>>
>>  I think this type of command works when the machine is working with
>>  a cd9660 (iso) style image and not hfs. I get the impression from the
>>  install docs that some versions of earlier macs only work with iso
>>  filesystems
>>  and some with only hfs, and some with both. This could be partly a
>>  matter
>
>All the ones that work with hfs work w/ cd9660, AFAIK, but you're right
>that only OF 3.0 on seems to work w/ hfs.

OF 1.0.5 works with vanilla 9660 disks.  OF 3 (used to) require HFS 
or hybrid disks.  It took some work to come up with a hybrid format 
that would work with both.

>  > of how you burned the disk, as I ran into something like this on a
>>  powerbook
>>  G4 where I didn't burn the disk right, and it only saw the iso
>>  filenames in
>>  capitals, instead of the lower case filenames.
>
>...
>
>>  The upshot is that the filenames change depending upon the underlying
>>  filesystem that you are using, and the ofw dir command only works on ofw
>>  supported filesystems.  I don't recall if it is another netbsd port, or
>
>I think the DIR command only works in later versions of OF too.

No.  DIR works in OF 1.0.5.  I suspect there may be disks you can 
boot from that you can't DIR, but I can't prove it.  Well, I know you 
can't DIR a HFS partition that you can boot MacOS from, but that's 
not what I mean.

It seems pretty safe to assume that if you can see a file with DIR 
you can load it with the boot command.

Every time I deal with OF I feel like I'm walking a minefield.  I 
can't always see the footprints from the last time I walked the same 
field.

>  > linux which
>>  has a facility in the boot program that allows you to get a directory
>>  listing off
>>  of the disk. However, Since ofwboot alone knows what it understands, if
>>  it
>>  could give a directory listing from whatever it was reading from, it
>>  might help
>>  sort out these confusions. Maybe even partition info would be needed in
>>  some
>>  instances. Personally, I looked at the source for ofwboot and got
>>  somewhat
>>  confused, but think I may have finally figured out how it gets stuff
>>  off of different
>>  style filesystems, but am not at all sure. I find it a very surprising
>>  program.
>
>Depends on the file name. ofwboot will try to have OF read the file,
>permitting us to get files off of OF-readable file systems. If that fails,
>we try to open what we think is the disk, and read a dislabel off of that.
>That lets us load off of ffs partitions.
>
>>  >>
>>  >> ... I don't see the error about
>>  >>
>>  >> /netbsd: Inappropriate file type or formatt
>>  >>
>>  >> However the boot still hangs at the 0x800000 line
>>  >
>>  > What exactly are you seeing.
>>  > What do you mean by 'the 0x800000 line'?
>
>From the EMail describing this, I'd suggest getting a new copy of ofwboot.
>There was a bug in the one released with 1.6 which might be the problem.
>
>You can get a new verison at
>ftp://ftp.netbsd.org/pub/NetBSD/misc/wrstuden/ofwboot.xcf
>
>Take care,
>
>Bill


-- 
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu