All of lore.kernel.org
 help / color / mirror / Atom feed
* What does openbmc system do after update BMC Firmware and taps reboot?
@ 2020-03-02  7:24 =?gb18030?B?xM/SsKXgpeult6WopemltA==?=
  2020-03-02 20:41 ` Vijay Khemka
  2020-03-03  1:34 ` Milton Miller II
  0 siblings, 2 replies; 4+ messages in thread
From: =?gb18030?B?xM/SsKXgpeult6WopemltA==?= @ 2020-03-02  7:24 UTC (permalink / raw)
  To: =?gb18030?B?b3BlbmJtYw==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 1221 bytes --]

Greetings:

I am learning how openbmc update BMC firmware. I am following the guide "https://github.com/openbmc/docs/blob/master/code-update/code-update.md" to update BMC Firmware. It works well for me.
But I still do not know, why in step 7 should I reboot, and what reboot do?
Later I found in "https://github.com/openbmc/docs/blob/master/code-update/code-update-diagrams.md", which tells that:
        [*] In a static layout configuration, the images are stored in RAM and the content is written to flash during BMC reboot. 
        Reference the update and shutdown scripts provided by initrdscripts
I am using a static layout. And I found two scripts named "shutdown" and "update" in "/run/initramfs/". So I thought it is that, the update applications put the firmware image in /run/initramfs/ and when I tap reboot, by some means the "update" script runs and the "update" script using "flashcp" command to write the firmware image to the /dev/mtd. Is that right?
What happens after I tap "reboot", and who calls the "update" script, and how it calls the "update" scripts?
Can someone tell me? Thanks a lot!

Best Regards!
Liu Hongwei

[-- Attachment #2: Type: text/html, Size: 1355 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-04 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-02  7:24 What does openbmc system do after update BMC Firmware and taps reboot? =?gb18030?B?xM/SsKXgpeult6WopemltA==?=
2020-03-02 20:41 ` Vijay Khemka
2020-03-03  1:34 ` Milton Miller II
2020-03-04 13:50   ` =?gb18030?B?u9i4tKO6ICBXaGF0IGRvZXMgb3BlbmJtYyBzeXN0ZW0gZG8gYWZ0ZXIgdXBkYXRlIEJNQyBGaXJtd2FyZSBhbmQgdGFwcyByZWJvb3Q/?= =?gb18030?B?xM/SsKXgpeult6WopemltA==?=

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.