Attention is currently required from: Nico Huber, Angel Pons.
Simon Buhrow has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/58467 )
Change subject: flashchips.c: big erase blocksize first
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> Have you tried with random data? You can create a file with random data like this: […]
You are right. With your setup writing random_data_2.bin takes much longer with this commit than with origin. So the solution must be much smarter.
Furthermore I saw that the erase function is set in walk_by_layout while the per block function is called somewhat deeper. This looks like a good solution will need reorder of steps.
I´ll keep trying/thinking of how the steps you mentioned could be implemented. Any suggestions are welcome.
@Angel: Thanks a lot for your detailed setup description. That helped me a lot!
--
To view, visit https://review.coreboot.org/c/flashrom/+/58467
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I862ce0b5f8912565e43c340578d8126aa2e6aa3b
Gerrit-Change-Number: 58467
Gerrit-PatchSet: 1
Gerrit-Owner: Simon Buhrow
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Thu, 28 Oct 2021 11:43:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Simon Buhrow
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/58527 )
Change subject: flashrom_tester: Use elogtool to list firmware eventlog
......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS2:
> Can we land it?
Sure thing, thanks for the reminder
--
To view, visit https://review.coreboot.org/c/flashrom/+/58527
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I8c4be82fed28b6a19746e6b93fafce23bd8ede5d
Gerrit-Change-Number: 58527
Gerrit-PatchSet: 3
Gerrit-Owner: Jack Rosenthal <jrosenth(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Ricardo Quesada <ricardoq(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Comment-Date: Wed, 27 Oct 2021 09:13:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Jack Rosenthal <jrosenth(a)chromium.org>
Gerrit-MessageType: comment
Angel Pons has submitted this change. ( https://review.coreboot.org/c/flashrom/+/58527 )
Change subject: flashrom_tester: Use elogtool to list firmware eventlog
......................................................................
flashrom_tester: Use elogtool to list firmware eventlog
Mosys is dropping the eventlog command, in favor of the elogtool
command provided in coreboot. The output is compatible with what
mosys used to output.
Signed-off-by: Jack Rosenthal <jrosenth(a)chromium.org>
Change-Id: I8c4be82fed28b6a19746e6b93fafce23bd8ede5d
Reviewed-on: https://review.coreboot.org/c/flashrom/+/58527
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Ricardo Quesada <ricardoq(a)google.com>
Reviewed-by: Angel Pons <th3fanbus(a)gmail.com>
Reviewed-by: Edward O'Callaghan <quasisec(a)chromium.org>
---
M util/flashrom_tester/src/cros_sysinfo.rs
M util/flashrom_tester/src/tests.rs
2 files changed, 7 insertions(+), 7 deletions(-)
Approvals:
build bot (Jenkins): Verified
Angel Pons: Looks good to me, approved
Edward O'Callaghan: Looks good to me, approved
Ricardo Quesada: Looks good to me, but someone else must approve
diff --git a/util/flashrom_tester/src/cros_sysinfo.rs b/util/flashrom_tester/src/cros_sysinfo.rs
index ddb0802..4d1b347 100644
--- a/util/flashrom_tester/src/cros_sysinfo.rs
+++ b/util/flashrom_tester/src/cros_sysinfo.rs
@@ -61,13 +61,13 @@
}
pub fn eventlog_list() -> Result<String, std::io::Error> {
- mosys_dispatch(&["eventlog", "list"])
+ elogtool_dispatch(&["list"])
}
-fn mosys_dispatch<S: AsRef<OsStr> + Debug>(args: &[S]) -> IoResult<String> {
- info!("mosys_dispatch() running: /usr/sbin/mosys {:?}", args);
+fn elogtool_dispatch<S: AsRef<OsStr> + Debug>(args: &[S]) -> IoResult<String> {
+ info!("elogtool_dispatch() running: /usr/bin/elogtool {:?}", args);
- let output = Command::new("/usr/sbin/mosys")
+ let output = Command::new("/usr/bin/elogtool")
.args(args)
.stdin(Stdio::null())
.output()?;
diff --git a/util/flashrom_tester/src/tests.rs b/util/flashrom_tester/src/tests.rs
index 9ef98e5..86c0da5 100644
--- a/util/flashrom_tester/src/tests.rs
+++ b/util/flashrom_tester/src/tests.rs
@@ -234,13 +234,13 @@
fn elog_sanity_test(env: &mut TestEnv) -> TestResult {
// Check that the elog contains *something*, as an indication that Coreboot
- // is actually able to write to the Flash. Because this invokes mosys on the
- // host, it doesn't make sense to run for other chips.
+ // is actually able to write to the Flash. Because this invokes elogtool on
+ // the host, it doesn't make sense to run for other chips.
if env.chip_type() != FlashChip::HOST {
info!("Skipping ELOG sanity check for non-host chip");
return Ok(());
}
- // mosys reads the flash, it should be back in the golden state
+ // elogtool reads the flash, it should be back in the golden state
env.ensure_golden()?;
// Output is one event per line, drop empty lines in the interest of being defensive.
let event_count = cros_sysinfo::eventlog_list()?
--
To view, visit https://review.coreboot.org/c/flashrom/+/58527
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I8c4be82fed28b6a19746e6b93fafce23bd8ede5d
Gerrit-Change-Number: 58527
Gerrit-PatchSet: 3
Gerrit-Owner: Jack Rosenthal <jrosenth(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Ricardo Quesada <ricardoq(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: merged
Attention is currently required from: Furquan Shaikh.
Jack Rosenthal has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/58527 )
Change subject: flashrom_tester: Use elogtool to list firmware eventlog
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
Can we land it?
--
To view, visit https://review.coreboot.org/c/flashrom/+/58527
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I8c4be82fed28b6a19746e6b93fafce23bd8ede5d
Gerrit-Change-Number: 58527
Gerrit-PatchSet: 2
Gerrit-Owner: Jack Rosenthal <jrosenth(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Ricardo Quesada <ricardoq(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Comment-Date: Wed, 27 Oct 2021 01:24:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Angel Pons.
Hello build bot (Jenkins), Nico Huber, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/58627
to look at the new patch set (#5).
Change subject: Makefile: Revise build options for Linux specific headers
......................................................................
Makefile: Revise build options for Linux specific headers
Clean up the feature target by outsourcing the test to an own variable.
Change the print output and don't write to the build-details file.
This is in preparation for further changes.
Change-Id: I18fc27252afb49fa7d1f2787faee2b5b669275aa
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
M Makefile
A Makefile.d/linux_i2c_test.c
A Makefile.d/linux_mtd_test.c
A Makefile.d/linux_spi_test.c
M Makefile.include
5 files changed, 48 insertions(+), 82 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/27/58627/5
--
To view, visit https://review.coreboot.org/c/flashrom/+/58627
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I18fc27252afb49fa7d1f2787faee2b5b669275aa
Gerrit-Change-Number: 58627
Gerrit-PatchSet: 5
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Nico Huber, Angel Pons.
Thomas Heijligen has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/58627 )
Change subject: Makefile: Revise build options for Linux specific headers
......................................................................
Patch Set 4:
(2 comments)
File Makefile:
https://review.coreboot.org/c/flashrom/+/58627/comment/bb6f19cd_325c0cc5
PS2, Line 260: $(call mark_unsupported,CONFIG_MSTARDDC_SPI)
> What about realtek_mst_i2c_spi and lspcon_i2c_spi?
Done
File Makefile.include:
https://review.coreboot.org/c/flashrom/+/58627/comment/60728f7d_fcf92b27
PS2, Line 146: #include <linux/types.h>
> Please keep this, unless we want to investigate why it was added.
Done
--
To view, visit https://review.coreboot.org/c/flashrom/+/58627
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I18fc27252afb49fa7d1f2787faee2b5b669275aa
Gerrit-Change-Number: 58627
Gerrit-PatchSet: 4
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Tue, 26 Oct 2021 16:50:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Gerrit-MessageType: comment
Attention is currently required from: Thomas Heijligen, Angel Pons.
Hello build bot (Jenkins), Nico Huber, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/58627
to look at the new patch set (#4).
Change subject: Makefile: Revise build options for Linux specific headers
......................................................................
Makefile: Revise build options for Linux specific headers
Clean up the feature target by outsourcing the test to an own variable.
Change the print output and don't write to the build-details file.
This is in preparation for further changes.
Change-Id: I18fc27252afb49fa7d1f2787faee2b5b669275aa
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
M Makefile
A Makefile.d/linux_i2c_test.c
A Makefile.d/linux_mtd_test.c
A Makefile.d/linux_spi_test.c
M Makefile.include
5 files changed, 47 insertions(+), 80 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/27/58627/4
--
To view, visit https://review.coreboot.org/c/flashrom/+/58627
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I18fc27252afb49fa7d1f2787faee2b5b669275aa
Gerrit-Change-Number: 58627
Gerrit-PatchSet: 4
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Thomas Heijligen, Angel Pons.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/58627 )
Change subject: Makefile: Revise build options for Linux specific headers
......................................................................
Patch Set 2:
(2 comments)
File Makefile:
https://review.coreboot.org/c/flashrom/+/58627/comment/bdb397c5_943871bb
PS2, Line 260: $(call mark_unsupported,CONFIG_MSTARDDC_SPI)
What about realtek_mst_i2c_spi and lspcon_i2c_spi?
File Makefile.include:
https://review.coreboot.org/c/flashrom/+/58627/comment/1db5dcdb_2fe14780
PS2, Line 146: #include <linux/types.h>
Please keep this, unless we want to investigate why it was added.
--
To view, visit https://review.coreboot.org/c/flashrom/+/58627
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I18fc27252afb49fa7d1f2787faee2b5b669275aa
Gerrit-Change-Number: 58627
Gerrit-PatchSet: 2
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Tue, 26 Oct 2021 16:32:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Angel Pons.
Hello build bot (Jenkins), Nico Huber, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/58627
to look at the new patch set (#3).
Change subject: Makefile: Revise build options for Linux specific headers
......................................................................
Makefile: Revise build options for Linux specific headers
Clean up the feature target by outsourcing the test to an own variable.
Change the print output and don't write to the build-details file.
This is in preparation for further changes.
Change-Id: I18fc27252afb49fa7d1f2787faee2b5b669275aa
Signed-off-by: Thomas Heijligen <thomas.heijligen(a)secunet.com>
---
M Makefile
A Makefile.d/linux_i2c_test.c
A Makefile.d/linux_mtd_test.c
A Makefile.d/linux_spi_test.c
M Makefile.include
5 files changed, 50 insertions(+), 79 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/27/58627/3
--
To view, visit https://review.coreboot.org/c/flashrom/+/58627
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I18fc27252afb49fa7d1f2787faee2b5b669275aa
Gerrit-Change-Number: 58627
Gerrit-PatchSet: 3
Gerrit-Owner: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newpatchset