Attention is currently required from: Felix Singer, Anastasia Klimchuk.
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71908 )
Change subject: MAINTAINERS: Add Arthur Heymans as SB600SPI maintainer
......................................................................
Patch Set 2:
(1 comment)
File MAINTAINERS:
https://review.coreboot.org/c/flashrom/+/71908/comment/21eaea38_2d305f1c
PS1, Line 131: AMD SB600SPI
> We are keeping it in alphabetical order, so you actually should be first in this category!
Done. It looks like this would a problem in other categories.
--
To view, visit https://review.coreboot.org/c/flashrom/+/71908
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Id2a51ae61f51111bede7d590d92622ee8144515e
Gerrit-Change-Number: 71908
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Fri, 13 Jan 2023 09:51:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Felix Singer, Arthur Heymans.
Hello Felix Singer, build bot (Jenkins), Anastasia Klimchuk,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/71908
to look at the new patch set (#2).
Change subject: MAINTAINERS: Add Arthur Heymans as SB600SPI maintainer
......................................................................
MAINTAINERS: Add Arthur Heymans as SB600SPI maintainer
Change-Id: Id2a51ae61f51111bede7d590d92622ee8144515e
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M MAINTAINERS
1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/08/71908/2
--
To view, visit https://review.coreboot.org/c/flashrom/+/71908
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Id2a51ae61f51111bede7d590d92622ee8144515e
Gerrit-Change-Number: 71908
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newpatchset
Attention is currently required from: Felix Singer, Arthur Heymans.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71908 )
Change subject: MAINTAINERS: Add Arthur Heymans as SB600SPI maintainer
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
File MAINTAINERS:
https://review.coreboot.org/c/flashrom/+/71908/comment/2091c7d1_c4eff031
PS1, Line 131: AMD SB600SPI
We are keeping it in alphabetical order, so you actually should be first in this category!
--
To view, visit https://review.coreboot.org/c/flashrom/+/71908
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Id2a51ae61f51111bede7d590d92622ee8144515e
Gerrit-Change-Number: 71908
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Fri, 13 Jan 2023 09:42:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Simon Buhrow, Nico Huber, Edward O'Callaghan, Anastasia Klimchuk.
Aarya has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/66104 )
Change subject: flashrom.c: Add wrapper function to use the erase algorithm
......................................................................
Patch Set 95:
(2 comments)
Commit Message:
https://review.coreboot.org/c/flashrom/+/66104/comment/d53ecd98_5e19cabc
PS78, Line 6:
: flashrom.c: Add wrapper function to use the erase algorithm
:
: Add a function to call the erase algorithm.
> Doxygen and squash.
Done
File erasure_layout.c:
https://review.coreboot.org/c/flashrom/+/66104/comment/5e53684d_a4e002e8
PS91, Line 1: /*
> you can use clang-format to help with formatting like line wraps or do it manually but whatever you […]
Done
--
To view, visit https://review.coreboot.org/c/flashrom/+/66104
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I29e3f2bd796759794184b125741a5abaac6f3ce8
Gerrit-Change-Number: 66104
Gerrit-PatchSet: 95
Gerrit-Owner: Aarya <aarya.chaumal(a)gmail.com>
Gerrit-Reviewer: Simon Buhrow
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-CC: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Simon Buhrow
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Fri, 13 Jan 2023 08:57:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Simon Buhrow, Edward O'Callaghan.
Aarya has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/65844 )
Change subject: flashrom.c:Add function to get a flattened view of the chip erase blocks
......................................................................
Patch Set 76:
(1 comment)
Commit Message:
https://review.coreboot.org/c/flashrom/+/65844/comment/866324ed_9659a693
PS73, Line 7: flashrom.c:Add a function to get list of sectors that need erasing
:
: Add a function that returns a list of sectors (as seen by the first
: erase function) that need erasing.
> Doxygen documentation and squash.
Done
--
To view, visit https://review.coreboot.org/c/flashrom/+/65844
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ic57ca1cca3d1646543f6b5939ba9c35db8d08256
Gerrit-Change-Number: 65844
Gerrit-PatchSet: 76
Gerrit-Owner: Aarya <aarya.chaumal(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Simon Buhrow
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Simon Buhrow
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Comment-Date: Fri, 13 Jan 2023 08:56:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Felix Singer, Thomas Heijligen, Angel Pons, Anastasia Klimchuk.
Steve Markgraf has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71801 )
Change subject: programmer: Add bitbanging programmer driver for Linux libgpiod
......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS3:
What I had missed so far is that there is a second build system. I added the programmer and libgpiod to meson, however, I assume that it also needs to be added to test_build.sh. But for this libgpiod also needs to be added to all Dockerfiles in util/manibuilder? Sorry, I'm not too familiar with the CI/packaging setup of flashrom yet.
--
To view, visit https://review.coreboot.org/c/flashrom/+/71801
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Icad3eb7764f28feaea51bda3a7893da724c86d06
Gerrit-Change-Number: 71801
Gerrit-PatchSet: 3
Gerrit-Owner: Steve Markgraf <steve(a)steve-m.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Fri, 13 Jan 2023 00:55:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Felix Singer, Thomas Heijligen, Angel Pons, Anastasia Klimchuk.
Hello Felix Singer, build bot (Jenkins), Thomas Heijligen, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/71801
to look at the new patch set (#3).
Change subject: programmer: Add bitbanging programmer driver for Linux libgpiod
......................................................................
programmer: Add bitbanging programmer driver for Linux libgpiod
With this driver, any single board computer, old smartphone, etc. with
a few spare GPIOs can be used for flashrom.
An example invocation looks like this:
flashrom -p linux_gpiod:gpiochip=0,cs=18,sck=19,mosi=13,miso=56
This uses /dev/gpiochip0 with the specified GPIO numbers for the SPI
lines. All arguments are required.
Reading of a 2048 kB flash chip on a Qualcomm MSM8916 SoC @800 MHz:
Found GigaDevice flash chip "GD25LQ16" (2048 kB, SPI) on linux_gpiod.
real 1m 33.96s
Change-Id: Icad3eb7764f28feaea51bda3a7893da724c86d06
Signed-off-by: Steve Markgraf <steve(a)steve-m.de>
---
M MAINTAINERS
M Makefile
M README
M flashrom.8.tmpl
M include/programmer.h
A linux_gpiod.c
M meson.build
M meson_options.txt
M programmer_table.c
9 files changed, 266 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/01/71801/3
--
To view, visit https://review.coreboot.org/c/flashrom/+/71801
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Icad3eb7764f28feaea51bda3a7893da724c86d06
Gerrit-Change-Number: 71801
Gerrit-PatchSet: 3
Gerrit-Owner: Steve Markgraf <steve(a)steve-m.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Felix Singer, Thomas Heijligen, Angel Pons, Anastasia Klimchuk.
Steve Markgraf has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71801 )
Change subject: programmer: Add bitbanging programmer driver for Linux libgpiod
......................................................................
Patch Set 2:
(6 comments)
Patchset:
PS1:
> forgot to mark unresolved :\
I've added a man page entry for the new programmer and added myself to MAINTAINERS.
Patchset:
PS2:
I've added a new version of the patch where I addressed the feedback from the code review.
File include/programmer.h:
https://review.coreboot.org/c/flashrom/+/71801/comment/faed55da_07300219
PS1, Line 75: extern const struct programmer_entry programmer_linux_gpiod;
> Looks like the list is sorted alphabetically
Done
File linux_gpiod.c:
https://review.coreboot.org/c/flashrom/+/71801/comment/e5083920_3a046e5b
PS1, Line 97: atoi
> Other places use `strtol()` because it's safer
Done, now also characters that are not numbers are detected and result in an error.
https://review.coreboot.org/c/flashrom/+/71801/comment/a1465380_85a6b761
PS1, Line 142: if (register_spi_bitbang_master(&bitbang_spi_master_gpiod, data))
: return 1; /* shutdown function does the cleanup */
:
: return 0;
> How about: […]
Done
https://review.coreboot.org/c/flashrom/+/71801/comment/9559c895_1fef8f27
PS1, Line 148: if (data) {
: if (gpiod_line_bulk_num_lines(&data->bulk) > 0)
: gpiod_line_release_bulk(&data->bulk);
:
: free(data);
: }
:
: if (chip)
: gpiod_chip_close(chip);
> Registering shutdown function early was in the old times :) During 2020, shutdown functions were mov […]
Yes, good point, I'm now re-using the shutdown function and I've changed the first two callsites to return 1.
--
To view, visit https://review.coreboot.org/c/flashrom/+/71801
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Icad3eb7764f28feaea51bda3a7893da724c86d06
Gerrit-Change-Number: 71801
Gerrit-PatchSet: 2
Gerrit-Owner: Steve Markgraf <steve(a)steve-m.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Fri, 13 Jan 2023 00:16:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Comment-In-Reply-To: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-MessageType: comment