Re: write into OF tree like nvsetenv

4 messages, 2 authors, 2000-01-11 · open the first message on its own page

Re: write into OF tree like nvsetenv

From: Olaf Hering <hidden>
Date: 2000-01-09 13:29:00

On Sun, Jan 09, Martin Costabel wrote:
I am somewhat surprised that nobody mentions the "Christmas Present"
boot script by BenH
(http://lists.linuxppc.org/listarcs/linuxppc-dev/199912/msg00191.html).
I installed this on several iMac DVs, and it works great. Now you don't
have to fiddle with OF any more, and if you put a timeout into
yaboot.conf, booting into Linux is completely automatic.
Yes, this script is just great.
You only have to enter OF once, type
setenv boot-device hd:10,yabootloader.script
I want exactly this automatic. This works fine on the current IDE Macs,
but with a B&W Scsi Mac a "typical" User has lost.
The path on my Mac is something like

/pci/pci-bridge/ADPT,2940U2B/@6:7,blah

Too complex.


Gruss Olaf

-- 
 $ man 1 current_release

BUGS
       Users never read manuals...

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: write into OF tree like nvsetenv

From: Ethan Benson <hidden>
Date: 2000-01-10 14:58:01

On 9/1/2000 Olaf Hering wrote:
I want exactly this automatic. This works fine on the current IDE Macs,
but with a B&W Scsi Mac a "typical" User has lost.
The path on my Mac is something like

/pci/pci-bridge/ADPT,2940U2B/@6:7,blah

Too complex.
agreed, OF device paths are gross ;)

I have two comments on this, one this can be automatic if you make 
the bootstrap partition look like a MacOS bootdisk  (as my ybin 
scripts will do) and the mac-boot function `should' find it and see 
it as bootable and load the bootfile(*) automatically, however this 
is quite slow, it can take up to 2 to 5 MINUTES for this to occur (at 
least on my B&W with a adaptec 2930).

(*) bootfile as in the file in the blessed directory with a HFS file 
type of tbxi, my scripts will set the OF script to this if a OF 
script is used and if not the yaboot file gets it.

the other problem, is there is currently no way to determine the OF 
device path of a Linux device file, we cannot tell what /dev/sdb3's 
OF path is, BenH tells me to add this would require modification of 
every block device driver (which opens a big can of worms).

in short we have 2 problems right now: 1) we cannot write to OF nvram 
from linux at the moment and 2) we cannot figure out WHAT to write to 
it...


-- 
Ethan Benson
To obtain my PGP key: http://www.alaska.net/~erbenson/pgp/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: write into OF tree like nvsetenv

From: Olaf Hering <hidden>
Date: 2000-01-11 08:08:36

On Mon, Jan 10, Ethan Benson wrote:
On 9/1/2000 Olaf Hering wrote:
quoted
I want exactly this automatic. This works fine on the current IDE Macs,
but with a B&W Scsi Mac a "typical" User has lost.
The path on my Mac is something like

/pci/pci-bridge/ADPT,2940U2B/@6:7,blah

Too complex.
agreed, OF device paths are gross ;)
...
in short we have 2 problems right now: 1) we cannot write to OF nvram 
from linux at the moment and 2) we cannot figure out WHAT to write to 
it...
We will change this, at least the last. Who solve the first problem? :)


Gruss Olaf

-- 
 $ man 1 current_release

BUGS
       Users never read manuals...

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: write into OF tree like nvsetenv

From: Ethan Benson <hidden>
Date: 2000-01-11 08:14:06

On 11/1/2000 Olaf Hering wrote:
 > in short we have 2 problems right now: 1) we cannot write to OF nvram
 > from linux at the moment and 2) we cannot figure out WHAT to write to
 > it...

We will change this, at least the last. Who solve the first problem? :)
I think BenH said he was going to work on fixing nvsetenv so it will 
actually write the changes back (need to document the new nvram 
format).

how will you fix the latter problem?   from what Ben has told me its 
quite non trivial.


-- 
Ethan Benson
To obtain my PGP key: http://www.alaska.net/~erbenson/pgp/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help