All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vijay Khemka <vijaykhemka@fb.com>
To: 南野ムルシエラゴ <1181052146@qq.com>, openbmc <openbmc@lists.ozlabs.org>
Subject: Re: What does openbmc system do after update BMC Firmware and taps reboot?
Date: Mon, 2 Mar 2020 20:41:11 +0000	[thread overview]
Message-ID: <98E446FD-0DC1-4E37-B63E-7CB92AFDA6B8@fb.com> (raw)
In-Reply-To: <tencent_50CE0F4E75A8AC62FF7879B0299213180707@qq.com>

[-- Attachment #1: Type: text/plain, Size: 1673 bytes --]

During reboot, shutdown scripts check for any images in initramfs and it overwrites to its predefined partition via update scripts.

From: openbmc <openbmc-bounces+vijaykhemka=fb.com@lists.ozlabs.org> on behalf of 南野ムルシエラゴ <1181052146@qq.com>
Date: Sunday, March 1, 2020 at 11:30 PM
To: openbmc <openbmc@lists.ozlabs.org>
Subject: What does openbmc system do after update BMC Firmware and taps reboot?

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<https://github.com/openbmc/openbmc/tree/master/meta-phosphor/recipes-phosphor/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: 3893 bytes --]

  reply	other threads:[~2020-03-02 20:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2020-03-03  1:34 ` Milton Miller II
2020-03-04 13:50   ` =?gb18030?B?u9i4tKO6ICBXaGF0IGRvZXMgb3BlbmJtYyBzeXN0ZW0gZG8gYWZ0ZXIgdXBkYXRlIEJNQyBGaXJtd2FyZSBhbmQgdGFwcyByZWJvb3Q/?= =?gb18030?B?xM/SsKXgpeult6WopemltA==?=

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=98E446FD-0DC1-4E37-B63E-7CB92AFDA6B8@fb.com \
    --to=vijaykhemka@fb.com \
    --cc=1181052146@qq.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.