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

Re: powermac boot-floppy patches



On Thu, May 31, 2001 at 12:21:38PM -0500, Stephen R Marenka wrote:
> On Wed, May 30, 2001 at 11:07:30PM -0800, Ethan Benson wrote:
> > On Wed, May 30, 2001 at 08:39:27PM -0500, Stephen R Marenka wrote:
> > 
> > i have only newworld hardware to test on..    
> 
> My only newworld machine is my use-it-for-everything laptop. I plan to
> use it for some limited testing once I'm happy with the installing on
> the 7600 I rescued from the trash.

i have a test disk that i can and do routinly erase for testing like
this, i can do most of the newworld testing if you prefer.  it would
certianly reduce risk of trashing your working system.. 

im tinkering with it now, i cleaned up some of the useless cruft in
the yaboot function (quik cruft that wasn't used).  i gave it a run
yesterday and the partition checking stuff seems broken.  when i have
no Apple_Bootstrap it tells me / and Apple_Bootstrap must be on the
same partition.  not that i need an 800K Apple_Bootstrap.  

as a sidenote i would prefer for dbootstrap to notify the user they
screwed up immediatly after they exit the partitioning program that
they no/incorrect Apple_Bootstrap partition, rather then waiting until
after they go to all the trouble of installing the base system to tell
them they must start over...  (believe me ALOT of people screw up the
bootstrap partition creation, they think they did it right but
didn't).  

i still don't fully get how the find_partition_() functions work, but
p->disk->name seems to resolve to the whole disk (/dev/sda for
example) not the Apple_Bootstrap (even when one is there).
this is obviously a Bad Thing. 

let me work with the yaboot code a bit and ill see what i come up
with..  a suggestion/clarification about the
find_partition/fdisk_partition stuff would be welcome if i don't
figure it out soon enough.

> > one thing i think we should add is a dialog explaining that making an
> > oldworld bootable usually requires some effort on the part of the user
> > no matter what, typically running apple's System Disk control panel to
> > get the nvramrc patches, and of course the ritual goat sacrifice. 
> 
> Hmmm. I never had to do this, perhaps I'd better thoroughly read your
> documentation and then go back over what I've written. The only real 
> trick was the goat sacrifice and I'm use to that from supporting 
> Microsoft stuff. 

not all machines need anything more then boot-device.  beige g3s for
example are not one of them...

> I can do the nvsetenv from C, the only odd bit was that I had to use,
> for example,  ofpath '/dev/sda' and append a 0 instead of '/dev/sda6' 
> for boot-device. Fortunately, this was documented several places because
> it's a known "feature."

its a limitation of ofpath.. it won't return a path with partition
0. it could be fixed i suppose but it would change the semantics in a
way i don't really like.  

can't you read ofpath's stdout right into a variable or something?
dumping it into a file, then reading the file strikes me as rather
kludgy.. no offence ;-)

> > it should probably be a dialog letting the user backout, since if OF
> > fails to boot they will get the notorious `black screen syndrome' 
> 
> I should definitely clarify that bit about the black screen and probably 
> include a note about cmd-opt-P-R.

yes definitly.  

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpeHg77hGWSV.pgp
Description: PGP signature


Reply to: