Subject: Re: storing nvaliases in NVRAM ('NVRAMRC not valid')
To: zeta.orionis <zeta.orionis@gmail.com>
From: Michael <macallan18@earthlink.net>
List: port-macppc
Date: 04/18/2005 11:31:54
--Signature_Mon__18_Apr_2005_11_31_54_-0400_C_1bRjDPRcF0Ta06
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> What I've been typing is
> nvalias bsd /pci@f2000000/mac-io@17/ata-4@1f000/@0:9,ofwboot.xcf
Two things:
- you don't need to include all the addresses - you can safely omit what's =
unambiguous, like this: /pci/mac-io/ata-4/disk@0:9
- the above path implies that your firmware knows how to handle the filesys=
tem it points to - if the partition contains a UNIX filesystem don't includ=
e ofwboot.xcf

> (I had quite a lot of trouble originally working out what the boot=20
> command should be. I eventually copied the ofwboot.xcf file to my Mac=20
> OS partition manually; the installer hadn't done it for me. I put it at=20
> the root level of my Mac partition, but it may be in the wrong place --=20
> I don't know how I would have got it there if I hadn't had OS 9=20
> installed, as that partition isn't recognised by BSD -- is there a way=20
> to do this, and did I put it i the right place?)
Ok, so you want to load ofwboot.xcf from a MacOS partition and then load th=
e kernel from a FFS filesystem? That's easy.
boot hd:ofwboot.xcf hd:9/netbsd
this will load ofwboot.xcf from the first partition OF understands ( usuall=
y your MacOS system ), ofwboot.xcf will in turn try to load netbsd from par=
tition 9

> nvramrc type gives me
> nvramrc dump gives me to the side of the hex output
> devalias bsd /pci@f2000000/mac-io@17/ata-4@1f000/@0:9,ofwboot.xcf=20
> .devalias bsd /pci@f2000000/mac-io@17/ata-4@1f000/@0:9,ofwboot.xcf
> What's the .devalias bit for?
you tried to define a permanent device alias with the commands above. It's =
made permanent by putting it into nvramrc.

> If I use devalias can I alias more than the device? For example, I can=20
> already boot with
> boot hd:9,ofwboot.xcf
> I wanted to make this shorter.
setenv boot-device hd:9,ofwboot.xcf
setenv boot-file hd:10/netbsd
( with the respective partition numbers changed as needed )
and then just
boot

the settings accessed by setenv are stored in NVRAM.

have fun
Michael

--Signature_Mon__18_Apr_2005_11_31_54_-0400_C_1bRjDPRcF0Ta06
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQmPS68pnzkX8Yg2nAQKu3QgAlsp+Ry5GdlO7YY9XgqjoGVxjzTajKjN0
6N0wnGpj1tw1tcziQQ43JeQbv40PANMv48uO2oyAnwhB26UbWW8kjHTsQNkneSI2
JXDaJg2uWUybuIlmBRy/mQ6ftHYx+8iv3ydYQzAU/ai2WGgVBDjTUFjsFz2JlBML
9duBcADDJlck6nZ2JKttLsCMbgcuAws0s0sHbTnUnCbuIyc3HkU+uj2+WLAbEBhn
I3sUZJJH3Ok60BFRDKiwPu9TxZGePYVuoiNDsdZf73V6x8NzWTR0OHX7L3PqvHSt
BL31fYavYByPb8TrF3blQdBmJlPKSzorFIkJXvJdSgoeVwExTWjKKw==
=1cca
-----END PGP SIGNATURE-----

--Signature_Mon__18_Apr_2005_11_31_54_-0400_C_1bRjDPRcF0Ta06--