Greetings:<br><br>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.<br>But I still do not know, why in step 7 should I reboot, and what reboot do?<br>Later I found in "https://github.com/openbmc/docs/blob/master/code-update/code-update-diagrams.md", which tells that:<br> [*] In a static layout configuration, the images are stored in RAM and the
content is written to flash during BMC reboot. <br> Reference the update and
shutdown scripts provided by <a href="https://github.com/openbmc/openbmc/tree/master/meta-phosphor/recipes-phosphor/initrdscripts">initrdscripts</a><br>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?<br>What happens after I tap "reboot", and who calls the "update" script, and how it calls the "update" scripts?<br>Can someone tell me? Thanks a lot!<br><br>Best Regards!<br>Liu Hongwei<br>