open-power / petitboot

GNU General Public License v2.0
213 stars 56 forks source link

Warn on booting from golden side #18

Open ghost opened 8 years ago

ghost commented 8 years ago

When booting from golden side of pnor, pop up some visual warning, maybe with help explaining it.

ghost commented 8 years ago

Raw notes I have laying around:

[umay@gfw172 ~]$ ipmitool -H habcap10 -I lanplus -U ADMIN -P admin
sensor 
list|grep -i gold
BIOS Golden Side | 0x0 | discrete | 0x0180| na | na | na | na | na | na
BMC Golden Side | 0x0 | discrete | 0x0080| na | na | na | na | na | na
[umay@gfw172 ~]$ ipmitool -H habcap10 -I lanplus -U ADMIN -P admin raw 
0x04 0x30 0x5c 0x01 0x00 0x00 0 0 0 0 0 0

[umay@gfw172 ~]$ ipmitool -H habcap10 -I lanplus -U ADMIN -P admin
sensor 
list|grep -i gold
BIOS Golden Side | 0x0 | discrete | 0x0080| na | na | na | na | na | na
BMC Golden Side | 0x0 | discrete | 0x0080| na | na | na | na | na | na

-- BIOS Golden sides: ipmitool -H IP -I lanplus -U ADMIN -P admin raw 0x04 0x30 0x5c 0x01 0x00 0x01 0 0 0 0 0 0 -- BIOS Primary sides: ipmitool -H IP -I lanplus -U ADMIN -P admin raw 0x04 0x30 0x5c 0x01 0x00 0x00 0 0 0 0 0 0

  1. If the system is coming up on golden side BMC, you can switch sides using /etc/init.d/boot_into_primary or /etc/init.d/boot_into_golden (from BMC)
sammj commented 8 years ago

Is the format of the "BIOS Golden Side" sensor defined anywhere, or is it just a case of "Well I'm on this type of BMC so I know this probably means something"?

Do you know what those two raw commands actually do? :)

williamspatrick commented 8 years ago

On Sun, Jul 10, 2016 at 09:20:54PM -0700, Sam Mendoza-Jonas wrote:

Is the format of the "BIOS Golden Side" sensor defined anywhere, or is it just a case of "Well I'm on this type of BMC so I know this probably means something"?

Do you know what those two raw commands actually do? :)

This is exclusively AMI behavior.

Patrick Williams