On Sun, Sep 20, 2020 at 06:01:08PM +0000, Miod Vallat wrote: > I had noticed for years that eeprom(8) always reported failure when > attempting to change OpenFirmware environment variables on macppc. > > Upon further examination, it doesn't - the variables get changed, but > error is reported. This is caused by a difference in implementation > behaviour between Apple's OpenFirmware and Sun's. > > Suggested diff below; clue from NetBSD. I looked for openprom code there but only found it for SPARC, can you point me to where you got the "clue" from exactly?
> Before: > # eeprom boot-command > boot-command=mac-boot > # eeprom boot-command=boot > eeprom: invalid keyword: boot-command > # eeprom boot-command > boot-command=boot <-- yet the value has been changed > > After: > # eeprom boot-command > boot-command=mac-boot > # eeprom boot-command=boot > # eeprom boot-command > boot-command=boot Confirmed on my PowerBook G4. OK kn
