Bios upgrade

CS20 CTCchien CTCCHIEN at nuvoton.com
Wed Dec 18 11:33:30 AEDT 2019


Hi,

We have a gpio which could control the MUX
When I want to do BIOS upgrade, I will shut down the host and operate the gpio, and rescan, then BIOS flash will be accessible from BMC now.

B.R.
Medad

From: Oskar Senft <osk at google.com>
Sent: Wednesday, December 18, 2019 4:57 AM
To: CS20 CTCchien <CTCCHIEN at nuvoton.com>
Cc: Vijay Khemka <vijaykhemka at fb.com>; OpenBMC Maillist <openbmc at lists.ozlabs.org>
Subject: Re: Bios upgrade

Hi

How did you configure the BIOS flash device? I assume via the device tree? I haven't tested this in a while, but I seem to remember that if the BIOS SPI flash is not accessible Linux doesn't "detect" the device and doesn't create the MTD, i.e. it's not accessible from the BMC. This can be the case if the mux between BMC, PCH and BIOS SPI flash) is configured to connect the SPI flash to the BMC at the time the BMC boots. Or is there a way to make BMC's Linux "rescan" for SPI flash chips at runtime?

Thanks
Oskar.

On Tue, Dec 17, 2019 at 12:38 AM CS20 CTCchien <CTCCHIEN at nuvoton.com<mailto:CTCCHIEN at nuvoton.com>> wrote:
Hi Vijay,

You could build a host daemon and a ipmi library on BMC from phosphor-ipmi-flash
Here is the link I implement BIOS upgrade on my system
https://github.com/Nuvoton-Israel/openbmc/tree/runbmc/meta-phosphor/nuvoton-layer/recipes-phosphor/ipmi<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Nuvoton-2DIsrael_openbmc_tree_runbmc_meta-2Dphosphor_nuvoton-2Dlayer_recipes-2Dphosphor_ipmi&d=DwMFaQ&c=ue8mO8zgC4VZ4q_aNVKt8G9MC01UFDmisvMR1k-EoDM&r=HqT4ScbSY2YNT4sFBmDErzNgMDeKfQmTiR08x2qtobg&m=7mxCYr2Rn71qEomdvLXWG3GkbwRmfjiYt-8PEs6Vr4M&s=VQpRXaKHfEykzUskGOobziNpXXSFdsD5KBmZLYGys-U&e=>.

You need to prepare a BIOS image and a signature file for this BIOS
After you execute the command on host, ipmid in BMC will launch a script to upgrade BIOS.

For example,
sudo  ./burn_my_bmc --command update --interface ipmipci --image BIOS.img --sig BIOS.img.sig --type static


B.R.
Medad
From: Vijay Khemka <vijaykhemka at fb.com<mailto:vijaykhemka at fb.com>>
Sent: Tuesday, December 17, 2019 8:16 AM
To: OpenBMC Maillist <openbmc at lists.ozlabs.org<mailto:openbmc at lists.ozlabs.org>>
Subject: Bios upgrade

Hi,
I am looking for bios upgrade from BMC. I looked at phosphor-ipmi-flash but
couldn’t figure out how to use this for bios upgrade. I checked few old mails
where oskar was asking about using user space application instead of kernel.
Can anyone please give steps to use any existing kernel driver or user space
Application for upgrading host firmware.

Regards
-Vijay
________________________________
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.
________________________________
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191218/6f6f5cee/attachment-0001.htm>


More information about the openbmc mailing list