Support system can re-init flash at any time after booting up#258
Closed
DelphineChiu wants to merge 1 commit into
Closed
Support system can re-init flash at any time after booting up#258DelphineChiu wants to merge 1 commit into
DelphineChiu wants to merge 1 commit into
Conversation
Contributor
|
@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
GoldenBug
reviewed
Apr 21, 2022
Summary: 1. Add a kernel patch to support the re-init-support property for re-initing spi flash at runtime 2. Set the default status of the BIOS SPI selection pin to "L"(connected to PCH) 3. BIC sets the BIOS SPI selection pin to "H" while updating BIOS firmware. And then BIC sets to default status after updating successfully. Test Plan: 1. Build Code: pass 2. Update BIOS firmware: pass 3. Check ME self test result after clearing CMOS: pass Log: 1. Update BIOS firmware root@bmc-oob:~# fw-util slot3 --version|grep BIOS BIOS Version: Y35CLE12 root@bmc-oob:~# fw-util slot3 --update bios /tmp/Y35CLE11.bin Checking if the server is ready... Server power status: 1 Powering off the server (cmd 4)... Server power status: 0 Putting ME into recovery mode... Switching BIOS SPI MUX for update... slot_id: 3, comp: 9, intf: 0, img: /tmp/Y35CLE11.bin, force: 0 Init libusb Successful! ... Updating BIOS, dedup is off, verification is off. 1024 blocks (1024 written, 0 skipped)...finished. Elapsed time: 265 sec. Switching BIOS SPI MUX for default value... Doing ME Reset... Power-cycling the server... Upgrade of slot3 : bios succeeded root@bmc-oob:~# fw-util slot3 --version|grep BIOS BIOS Version: Y35CLE11 2. Check ME self test result after clearing CMOS root@bmc-oob:~# bic-util slot3 --clear_cmos Performing CMOS clear root@bmc-oob:~# me-util slot3 0x18 0x04 55 00
b476186 to
7872292
Compare
Contributor
|
@DelphineChiu has updated the pull request. You must reimport the pull request before landing. |
facebook-github-bot
pushed a commit
that referenced
this pull request
Apr 22, 2022
Summary: 1. Add a kernel patch to support the re-init-support property for re-initing spi flash at runtime 2. Set the default status of the BIOS SPI selection pin to "L"(connected to PCH) 3. BIC sets the BIOS SPI selection pin to "H" while updating BIOS firmware. And then BIC sets to default status after updating successfully. Pull Request resolved: #258 Test Plan: 1. Build Code: pass 2. Update BIOS firmware: pass 3. Check ME self test result after clearing CMOS: pass Log: 1. Update BIOS firmware root@bmc-oob:~# fw-util slot3 --version|grep BIOS BIOS Version: Y35CLE12 root@bmc-oob:~# fw-util slot3 --update bios /tmp/Y35CLE11.bin Checking if the server is ready... Server power status: 1 Powering off the server (cmd 4)... Server power status: 0 Putting ME into recovery mode... Switching BIOS SPI MUX for update... slot_id: 3, comp: 9, intf: 0, img: /tmp/Y35CLE11.bin, force: 0 Init libusb Successful! ... Updating BIOS, dedup is off, verification is off. 1024 blocks (1024 written, 0 skipped)...finished. Elapsed time: 265 sec. Switching BIOS SPI MUX for default value... Doing ME Reset... Power-cycling the server... Upgrade of slot3 : bios succeeded root@bmc-oob:~# fw-util slot3 --version|grep BIOS BIOS Version: Y35CLE11 2. Check ME self test result after clearing CMOS root@bmc-oob:~# bic-util slot3 --clear_cmos Performing CMOS clear root@bmc-oob:~# me-util slot3 0x18 0x04 55 00 Reviewed By: garnermic Differential Revision: D35820093 Pulled By: GoldenBug fbshipit-source-id: 99c07e8743bcaf27c2c07af8f3a42fa9f3da7690
LoraLin1
pushed a commit
to Wiwynn/OpenBIC
that referenced
this pull request
Apr 25, 2022
…ok#258) Summary: 1. Add a kernel patch to support the re-init-support property for re-initing spi flash at runtime 2. Set the default status of the BIOS SPI selection pin to "L"(connected to PCH) 3. BIC sets the BIOS SPI selection pin to "H" while updating BIOS firmware. And then BIC sets to default status after updating successfully. Pull Request resolved: facebook#258 Test Plan: 1. Build Code: pass 2. Update BIOS firmware: pass 3. Check ME self test result after clearing CMOS: pass Log: 1. Update BIOS firmware root@bmc-oob:~# fw-util slot3 --version|grep BIOS BIOS Version: Y35CLE12 root@bmc-oob:~# fw-util slot3 --update bios /tmp/Y35CLE11.bin Checking if the server is ready... Server power status: 1 Powering off the server (cmd 4)... Server power status: 0 Putting ME into recovery mode... Switching BIOS SPI MUX for update... slot_id: 3, comp: 9, intf: 0, img: /tmp/Y35CLE11.bin, force: 0 Init libusb Successful! ... Updating BIOS, dedup is off, verification is off. 1024 blocks (1024 written, 0 skipped)...finished. Elapsed time: 265 sec. Switching BIOS SPI MUX for default value... Doing ME Reset... Power-cycling the server... Upgrade of slot3 : bios succeeded root@bmc-oob:~# fw-util slot3 --version|grep BIOS BIOS Version: Y35CLE11 2. Check ME self test result after clearing CMOS root@bmc-oob:~# bic-util slot3 --clear_cmos Performing CMOS clear root@bmc-oob:~# me-util slot3 0x18 0x04 55 00 Reviewed By: garnermic Differential Revision: D35820093 Pulled By: GoldenBug fbshipit-source-id: 99c07e8743bcaf27c2c07af8f3a42fa9f3da7690
facebook-github-bot
pushed a commit
that referenced
this pull request
Apr 26, 2022
Summary: 1. Add a kernel patch to support the re-init-support property for re-initing spi flash at runtime 2. Set the default status of the BIOS SPI selection pin to "L"(connected to PCH) 3. BIC sets the BIOS SPI selection pin to "H" while updating BIOS firmware. And then BIC sets to default status after updating successfully. Pull Request resolved: #258 Test Plan: 1. Build Code: pass 2. Update BIOS firmware: pass 3. Check ME self test result after clearing CMOS: pass Log: 1. Update BIOS firmware root@bmc-oob:~# fw-util slot3 --version|grep BIOS BIOS Version: Y35CLE12 root@bmc-oob:~# fw-util slot3 --update bios /tmp/Y35CLE11.bin Checking if the server is ready... Server power status: 1 Powering off the server (cmd 4)... Server power status: 0 Putting ME into recovery mode... Switching BIOS SPI MUX for update... slot_id: 3, comp: 9, intf: 0, img: /tmp/Y35CLE11.bin, force: 0 Init libusb Successful! ... Updating BIOS, dedup is off, verification is off. 1024 blocks (1024 written, 0 skipped)...finished. Elapsed time: 265 sec. Switching BIOS SPI MUX for default value... Doing ME Reset... Power-cycling the server... Upgrade of slot3 : bios succeeded root@bmc-oob:~# fw-util slot3 --version|grep BIOS BIOS Version: Y35CLE11 2. Check ME self test result after clearing CMOS root@bmc-oob:~# bic-util slot3 --clear_cmos Performing CMOS clear root@bmc-oob:~# me-util slot3 0x18 0x04 55 00 Reviewed By: garnermic Differential Revision: D35941627 Pulled By: GoldenBug fbshipit-source-id: 851b060ccd91e92d3bc3e45fd3194e0540c32205
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
And then BIC sets to default status after updating successfully.
Test Plan:
Log:
root@bmc-oob:
# fw-util slot3 --version|grep BIOS# fw-util slot3 --update bios /tmp/Y35CLE11.binBIOS Version: Y35CLE12
root@bmc-oob:
Checking if the server is ready...
Server power status: 1
Powering off the server (cmd 4)...
Server power status: 0
Putting ME into recovery mode...
Switching BIOS SPI MUX for update...
slot_id: 3, comp: 9, intf: 0, img: /tmp/Y35CLE11.bin, force: 0
Init libusb Successful!
...
Updating BIOS, dedup is off, verification is off.
1024 blocks (1024 written, 0 skipped)...finished.
Elapsed time: 265 sec.
Switching BIOS SPI MUX for default value...
Doing ME Reset...
Power-cycling the server...
Upgrade of slot3 : bios succeeded
root@bmc-oob:~# fw-util slot3 --version|grep BIOS
BIOS Version: Y35CLE11
root@bmc-oob:
# bic-util slot3 --clear_cmos# me-util slot3 0x18 0x04Performing CMOS clear
root@bmc-oob:
55 00