Change in flashrom[master]: layout: Increase max rom layout size
Hello Patrick Rudolph, I'd like you to do a code review. Please visit https://review.coreboot.org/c/flashrom/+/34025 to review the following change. Change subject: layout: Increase max rom layout size ...................................................................... layout: Increase max rom layout size When trying to flash a single FMAP region on VBOOT enabled boards the default of 32 entries is to small to store all regions. Increase the maximum rom layout size to 128 to support complex FMAPs. Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> --- M layout.h 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://review.coreboot.org:29418/flashrom refs/changes/25/34025/1 diff --git a/layout.h b/layout.h index 5c07407..1912ce2 100644 --- a/layout.h +++ b/layout.h @@ -33,7 +33,7 @@ #define PRIxCHIPOFF "06"PRIx32 #define PRIuCHIPSIZE PRIu32 -#define MAX_ROMLAYOUT 32 +#define MAX_ROMLAYOUT 128 struct romentry { chipoff_t start; -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 1 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-MessageType: newchange
Christian Walter has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34025 ) Change subject: layout: Increase max rom layout size ...................................................................... Patch Set 2: Code-Review+1 Tested it with a sf600 with a apollolake platform -works fine ( did not worked with 32 ) -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 2 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-Comment-Date: Wed, 03 Jul 2019 17:54:15 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
David Hendricks has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34025 ) Change subject: layout: Increase max rom layout size ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 2 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com> Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-Comment-Date: Wed, 03 Jul 2019 19:55:04 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34025 ) Change subject: layout: Increase max rom layout size ...................................................................... Patch Set 2: Philipp told me that this resulted in a brick, I wonder how? Doesn't flashrom bail out properly if the FMAP is too big? -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 2 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com> Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-CC: Nico Huber <nico.h@gmx.de> Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Gerrit-Comment-Date: Wed, 03 Jul 2019 20:14:18 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: No Gerrit-MessageType: comment
David Hendricks has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34025 ) Change subject: layout: Increase max rom layout size ...................................................................... Patch Set 2: -Code-Review That's... odd. Philipp, is that right? Any idea what's wrong, or should we just hold off on merging this patch until someone can investigate further? -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 2 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com> Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-CC: Nico Huber <nico.h@gmx.de> Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Gerrit-Comment-Date: Wed, 03 Jul 2019 22:51:59 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
Hello Patrick Rudolph, David Hendricks, Christian Walter, build bot (Jenkins), I'd like you to reexamine a change. Please visit https://review.coreboot.org/c/flashrom/+/34025 to look at the new patch set (#3). Change subject: layout: Increase max rom layout size ...................................................................... layout: Increase max rom layout size When trying to flash a single FMAP region on VBOOT enabled boards the default of 32 entries is to small to store all regions. Flashrom will bail out with "Cannot add fmap entries to layout - Too many entries." Increase the maximum rom layout size to 128 to support complex FMAPs. Tested on coreboot's UP/squared mainboard using SF600. With this patch it's possible to update a single FMAP region. Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> --- M layout.h 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://review.coreboot.org:29418/flashrom refs/changes/25/34025/3 -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 3 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com> Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-CC: Nico Huber <nico.h@gmx.de> Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Gerrit-MessageType: newpatchset
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34025 ) Change subject: layout: Increase max rom layout size ...................................................................... Patch Set 3:
Patch Set 2:
Philipp told me that this resulted in a brick, I wonder how? Doesn't flashrom bail out properly if the FMAP is too big?
It does and there's no brick. Clarified commit message. -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 3 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com> Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-CC: Nico Huber <nico.h@gmx.de> Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Gerrit-Comment-Date: Thu, 04 Jul 2019 06:42:28 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: No Gerrit-MessageType: comment
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34025 ) Change subject: layout: Increase max rom layout size ...................................................................... Patch Set 3: Code-Review+2 (1 comment) Wouldn't be necessary with topic:fcp ;) https://review.coreboot.org/c/flashrom/+/34025/3//COMMIT_MSG Commit Message: https://review.coreboot.org/c/flashrom/+/34025/3//COMMIT_MSG@11 PS3, Line 11: "Cannot add fmap entries to layout - Too many entries." Please adhere to the 72 char line limit in commit messages. -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 3 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com> Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com> Gerrit-Reviewer: Nico Huber <nico.h@gmx.de> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net> Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Gerrit-Comment-Date: Thu, 04 Jul 2019 14:08:05 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
Hello Patrick Rudolph, David Hendricks, Christian Walter, build bot (Jenkins), Nico Huber, I'd like you to reexamine a change. Please visit https://review.coreboot.org/c/flashrom/+/34025 to look at the new patch set (#4). Change subject: layout: Increase max rom layout size ...................................................................... layout: Increase max rom layout size When trying to flash a single FMAP region on VBOOT enabled boards the default of 32 entries is to small to store all regions. Flashrom will bail out with "Cannot add fmap entries to layout - Too many entries." Increase the maximum rom layout size to 128 to support complex FMAPs. Tested on coreboot's UP/squared mainboard using SF600. With this patch it's possible to update a single FMAP region. Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> --- M layout.h 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://review.coreboot.org:29418/flashrom refs/changes/25/34025/4 -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 4 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com> Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com> Gerrit-Reviewer: Nico Huber <nico.h@gmx.de> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net> Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Gerrit-MessageType: newpatchset
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34025 ) Change subject: layout: Increase max rom layout size ...................................................................... Patch Set 4: Verified+1 -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 4 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com> Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com> Gerrit-Reviewer: Nico Huber <nico.h@gmx.de> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net> Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Gerrit-Comment-Date: Thu, 04 Jul 2019 18:48:29 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
Nico Huber has submitted this change and it was merged. ( https://review.coreboot.org/c/flashrom/+/34025 ) Change subject: layout: Increase max rom layout size ...................................................................... layout: Increase max rom layout size When trying to flash a single FMAP region on VBOOT enabled boards the default of 32 entries is to small to store all regions. Flashrom will bail out with "Cannot add fmap entries to layout - Too many entries." Increase the maximum rom layout size to 128 to support complex FMAPs. Tested on coreboot's UP/squared mainboard using SF600. With this patch it's possible to update a single FMAP region. Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/34025 Tested-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Christian Walter <christian.walter@9elements.com> --- M layout.h 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Nico Huber: Verified; Looks good to me, approved Christian Walter: Looks good to me, but someone else must approve diff --git a/layout.h b/layout.h index 53a20d6..8e4eb13 100644 --- a/layout.h +++ b/layout.h @@ -33,7 +33,7 @@ #define PRIxCHIPOFF "06"PRIx32 #define PRIuCHIPSIZE PRIu32 -#define MAX_ROMLAYOUT 32 +#define MAX_ROMLAYOUT 128 struct romentry { chipoff_t start; -- To view, visit https://review.coreboot.org/c/flashrom/+/34025 To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: flashrom Gerrit-Branch: master Gerrit-Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Gerrit-Change-Number: 34025 Gerrit-PatchSet: 5 Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com> Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com> Gerrit-Reviewer: Nico Huber <nico.h@gmx.de> Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net> Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Gerrit-MessageType: merged
participants (4)
-
Christian Walter (Code Review) -
David Hendricks (Code Review) -
Nico Huber (Code Review) -
Patrick Rudolph (Code Review)