-
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xx20 blobs fix #912
xx20 blobs fix #912
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Thrilleratplay small required changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Thrilleratplay : no more --ifd
specified regions here. We want whole flash, both for external flash and internal flash.
This is kind of the goal here :)
We also have to remind new comers that flashing internally this rom IS NOT compatible with prior versions board roms previously compiled.
The technical logic behind this is that we are tempting Murphy otherwise:
A user flashing internally only the BIOS region SHOULD not be possible since the BIOS region is bigger then the maximum IFD region. You can test that here from past xx20 board, and attempt an internal flash. Flashrom might permit (untested) to flash a bigger BIOS region inside of a too small BIOS region, where IFD was not resized properly on initial external flash to have proper ME and BIOS regions setuped correctly.
So we have a choice here:
- Document, where users will obviously attempt to upgrade internally since the board config is the same and brick their device if flashrom doesnt validate properly. It could permit the flash. From my early experiements with x230-external-flash, flashrom was permitting this kind of mess, while flashrom was upgraded since. Might be a flase problem but we will surprise some users. This is unclear upgrade path.
- Rename the board with
-external-flash
(note that coreboot config needs to point to BOARD related build dir, linux config is fine, while all should match for consistency, unless really sharing the same config (where here coreboot CBFS would be different. Unless really common for all boards where a xx20 variant could be introduced, or here again, a xx20-externak-flash.config would be self explainable).
@Thrilleratplay : Not sure about reusing xx20 previous boards definition. They should be phased out and replaced, so past builders will notice directly that they cannot This is why I named x230-external-flash board, expecting to remove x230 board altogether when the PR is approved. Not sure about this migration path, but I think we have to limit bricks of users who were using xx20 boards before. My thought process here was that if x230 disappears in board dir, that would be a clear, non-documentation needed path for builders to be forced to realize that board changed, where past board phased out. Thoughts welcome. So what I would recommend is: |
@tlaurion While I agree with most of the internal/external flashing comments, there seems to two different points being argued. One where the current user's layout is preserved by creating boards There does not seem to be a good answer. Currently, the internal flash scripts update only the BIOS region. By using the internal flash scripts with this rom as is, likely will result in an error. Flashing externally, means they will lose their configuration and need to set it up again. I am thinking a modified version of |
@tlaurion Generally speaking for this PR and #703, I think it is best to consolidate the board variations into single models (if possible). Instead of Initially, this will be a headache as users will need to take special steps to update the entire rom, as the current |
@Thrilleratplay My comments were targeting the following. I agree all those x230 boards should be merged inside of x230-external-flash. Where the scenario is more uncertain for the xx20 boards. This is where specialization of boards started for the different x230 boards for space constraints and use cases differences Once again:
I think the paths should be different and should differentiate those use cases too:
I just know that replacing the x220 doesn't seem the good path. This is why I would phased out xx20 board for their Let's chat live? |
@tlaurion Ok, I think I understand what you are try to accomplish. As for HOTP, if it needs to be a separate board build, that is fine. I assumed it wasn't included due to space restrictions and was being readded based on |
If we move away of The plan is to phase out two parts boards altogether, while enforcing clear distinction that one are not compatible with the other. As for As for implementing a generic xx30 board, there are differences on the coreboot config level for the t430 and x230 since the t430 has integrated graphics + external GPU, and there was requests to enforce those differences with OPTIONAL_ROM support if I recall well. Once again, since I do not own those boards, its hard for me to tell if they should be joined or not. I just recall that I was against merging those changes inside of the x230 since they were not relevant. So my recommendation stays to:
For the rest, I envision interest into having x220-hotp-external-flash board series. Where we could have all modules dependencies included, until space problems arises again and we will need, then, to specialize boards accordingly. Users of the same "labeled board" will be able to update |
( When we agree on nomenclature, I will modify xx30 PR accordingly. Same logic applying to all xx20 and xx30, and will even try to coordinate merging of those two pull requests.) Considering this, I would not mv board files but would create new ones (x220-external-flash, t420-external-flash, x230-external-flash, t430-external-flash, x220-hotp-external-flash, t420-hotp-external-flash, x230-hotp-external-flash, t430-hotp-external-flash). This would be first step before integrating #876 or attempting #562 inclusion and debugging, which would better work on top of this anyway. |
@merge Lazy here sorry to poke you. But in Skulls instructions, do you FORCE users to unlock IFD? Could a simple instruction be pushed to current users that if they intend to flash x230-external-flash, t430-external-flash, x220-external-flash t420-external-flash and all other future coming sandy / ivy bridge based upraders have to flash with a manual command from command line not only flashing BIOS region but whole flash? |
Note to myself, before merging both xx20 and xx30 branches, ethernet bringup script should randomize MAC address from Intel OUI range prior of trying to enable link. |
d1cdb29
to
d74c209
Compare
@Thrilleratplay hmmm your PR gots corrupted. bad rebase upon master? |
|
d74c209
to
0a21c5f
Compare
@tlaurion Huh. Not sure how that happened but rebased against heads/master |
f5f0bc8
to
d7d9fa2
Compare
@n4ru Same question would apply to users coming from 1vyrain path. The goal here is to deprecate x230 and x220 (all xx30 and xx20 boards) which relies on unmodified IFD which specifies BIOS region that is too minimalist. As we discussed precedently in other 1vyrain tickets, there is no possibility to trick environment to flash modified IFD and ME regions with neutered+deactivated+reduced ME space, have ifd modified accordinly so that BIOS region is maximized. (This PR and #703 produces roms containing such ifd, downloaded+neutered+minimized ME with BIOS region expended to 11.5mb for the xx30 and 7.5Mb for the xx20). What would be your thoughts and migration paths? Consequential xx20-maximized and xx30-maximized boards on Heads will arrive soon, requiring externally flashed unlocked IFD to be able to wholly internally flash full featured rom upgrades, also from fwupd (LVFS), where current xx30 and xx20 board configs instructs flashrom to only flash @merge @n4ru: Consequently. Will you issue a big fat warning to users for which external reprogramming would be necessary for users to migrate to the xx20-maximized and xx30-maximized boards produced roms without bricking their machine? |
no the skulls "external" install scripts don't force IFD unlocking. They have the |
@Thrilleratplay last rebase requested, #703 was merged! |
d7d9fa2
to
23b32b1
Compare
@tlaurion Rebased. |
7e3a33e
to
5c0ee32
Compare
b104bdd
to
f188ab0
Compare
@Thrilleratplay looks good to me while commits could be squashed a bit more (one commit per board addition, one commit for the scripts, and a commit for circleci, where xx20 boards should all be all in the same area for readability and to ease understanding of what the CI does.) The smaller SPI chips boards should be first in CI so that those builds fail first when someone attempts to add something that breaks those first for quick awareness. We would be ready to merge :) |
f0d66fc
to
75e11cb
Compare
@tlaurion Squashed. |
Replacement for PR #877
me7_update_parser.py
(more information on what it does) script which creates a minified cleaned version of ME7 from the xx02 ME update file.under blobs\xx20
I have externally flashed the artifact from my cicleci build 18 on a x220 and it boots to the Heads gui.