Port-macppc archive

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

Re: The first reboot to hard drive after the CD-rom install failed



Hello,

On Fri, 3 Apr 2020 01:41:55 +0200
Martin Husemann <martin%duskware.de@localhost> wrote:

> On Thu, Apr 02, 2020 at 04:48:22PM -0400, Michael wrote:
> > In hw.openfirmware ?  
> 
> Just the raw string, yes please.

I added a file, dev/ofw/ofw_sysctl.c, which takes care of that, using
hw.ofw.* as uwe@ suggested.
Here's what it looks like on my Quicksilver:
/data/src# sysctl hw.ofw
hw.ofw.version = OpenFirmware 3

Beige G3:
~> sysctl hw.ofw
hw.ofw.version = Open Firmware, 2.0f1

v210:
~> sysctl hw.ofw
hw.ofw.version = SUNW,4.16.2

Shark:
~> sysctl hw.ofw
hw.ofw.version = FirmWorks,3.0

that said, I'm a little uncomfortable using .version here, since the
property we read is 'model', and at least some sparc64 machines have a
'version' property there:

f002d298: /openprom
aligned-allocator       
model                   53554e57 2c342e31 372e31.. ........   "SUNW,4.17.1"
name                    6f70656e 70726f6d 00...... ........   "openprom"
relative-addressing     
version                 4f425020 342e3137 2e312032 3030352f   OBP 4.17.1 2005/
            0010:       30342f31 31203134 3a323400 ........   04/11 14:24.

Maybe we should just copy the properties from the /openprom node.

have fun
Michael


Home | Main Index | Thread Index | Old Index