Paul Menzel has posted comments on this change. ( https://review.coreboot.org/27443 )
Change subject: usbdev: Extract libusb1 device discovery into a seperate file
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit https://review.coreboot.org/27443
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Idfcc79371241c2c1dea97faf5e532aa971546a79
Gerrit-Change-Number: 27443
Gerrit-PatchSet: 2
Gerrit-Owner: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Thu, 12 Jul 2018 15:46:55 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes
Daniel Thompson has posted comments on this change. ( https://review.coreboot.org/26948 )
Change subject: programmer: Add Developerbox/CP2104 bit bang driver
......................................................................
Patch Set 3:
Sorry for the extra patch here. I didn't commit between acting on review comments and factoring out the device discovery code... meaning it ended up looking like I was ignoring review comments.
--
To view, visit https://review.coreboot.org/26948
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2547a96c1a2259ad0d52cd4b6ef42261b37cccf3
Gerrit-Change-Number: 26948
Gerrit-PatchSet: 3
Gerrit-Owner: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Idwer Vollering <vidwer(a)gmail.com>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Comment-Date: Thu, 12 Jul 2018 11:27:03 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/27444
to look at the new patch set (#2).
Change subject: usbdev: Refactor device discovery code
......................................................................
usbdev: Refactor device discovery code
Currently there is a lot of code shared between
usb_dev_get_by_vid_pid_serial() and usb_dev_get_by_vid_pid_number().
Fix this by pulling out the conditional filtering at the heart of each loop
and calling it via a function pointer.
I haven't got (two) dediprog programmers to test with but I have tested
both by...serial() and by...number() calls using a pair of Developerboxen
and a hacked driver.
Change-Id: I31ed572501e4314b9455e1b70a5e934ec96408b1
Signed-off-by: Daniel Thompson <daniel.thompson(a)linaro.org>
---
M usbdev.c
1 file changed, 57 insertions(+), 58 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/44/27444/2
--
To view, visit https://review.coreboot.org/27444
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I31ed572501e4314b9455e1b70a5e934ec96408b1
Gerrit-Change-Number: 27444
Gerrit-PatchSet: 2
Gerrit-Owner: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/27443
to look at the new patch set (#2).
Change subject: usbdev: Extract libusb1 device discovery into a seperate file
......................................................................
usbdev: Extract libusb1 device discovery into a seperate file
Currently there is a TODO-like comment in the dediprog driver: "Might be
useful for other USB devices as well". Act on this comment by collecting
all the device discovery code for libusb1 devices into a seperate file.
Change-Id: Idfcc79371241c2c1dea97faf5e532aa971546a79
Signed-off-by: Daniel Thompson <daniel.thompson(a)linaro.org>
---
M Makefile
M dediprog.c
M developerbox_spi.c
M programmer.h
A usbdev.c
5 files changed, 143 insertions(+), 108 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/43/27443/2
--
To view, visit https://review.coreboot.org/27443
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Idfcc79371241c2c1dea97faf5e532aa971546a79
Gerrit-Change-Number: 27443
Gerrit-PatchSet: 2
Gerrit-Owner: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Hello Paul Menzel, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/26948
to look at the new patch set (#5).
Change subject: programmer: Add Developerbox/CP2104 bit bang driver
......................................................................
programmer: Add Developerbox/CP2104 bit bang driver
The 96Boards Developerbox (a.k.a. Synquacer E-series) provides a CP2102
debug UART with its GPIO pins hooked up to the SPI NOR FLASH. The
circuit is intended to provide emergency recovery functions without
requiring any additional tools (such as a JTAG or SPI programmer). This
was expected to be very slow (and it is) but CP2102 is much cheaper than
a full dual channel USB comms chip.
Read performance is roughly on par with a 2400 baud modem (between 60
and 70 minutes per megabyte if you prefer) and write performance is 50%
slower still. The full recovery process, with backup and verification of
4MB data written takes between 14 and 15 hours. Thus it is only really
practical as an emergency recovery tool, firmware developers will need
to use an alternative programmer.
Change-Id: I2547a96c1a2259ad0d52cd4b6ef42261b37cccf3
Signed-off-by: Daniel Thompson <daniel.thompson(a)linaro.org>
---
M Makefile
A developerbox_spi.c
M flashrom.c
M programmer.h
4 files changed, 278 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/48/26948/5
--
To view, visit https://review.coreboot.org/26948
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I2547a96c1a2259ad0d52cd4b6ef42261b37cccf3
Gerrit-Change-Number: 26948
Gerrit-PatchSet: 5
Gerrit-Owner: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Idwer Vollering <vidwer(a)gmail.com>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Hello Paul Menzel, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/26948
to look at the new patch set (#4).
Change subject: programmer: Add Developerbox/CP2104 bit bang driver
......................................................................
programmer: Add Developerbox/CP2104 bit bang driver
The 96Boards Developerbox (a.k.a. Synquacer E-series) provides a CP2102
debug UART with its GPIO pins hooked up to the SPI NOR FLASH. The
circuit is intended to provide emergency recovery functions without
requiring any additional tools (such as a JTAG or SPI programmer). This
was expected to be very slow (and it is) but CP2102 is much cheaper than
a full dual channel USB comms chip.
Read performance is roughly on par with a 2400 baud modem (between 60
and 70 minutes per megabyte if you prefer) and write performance is 50%
slower still. The full recovery process, with backup and verification of
4MB data written takes between 14 and 15 hours. Thus it is only really
practical as an emergency recovery tool, firmware developers will need
to use an alternative programmer.
Change-Id: I2547a96c1a2259ad0d52cd4b6ef42261b37cccf3
Signed-off-by: Daniel Thompson <daniel.thompson(a)linaro.org>
---
M Makefile
A developerbox_spi.c
M flashrom.c
M programmer.h
4 files changed, 275 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/48/26948/4
--
To view, visit https://review.coreboot.org/26948
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I2547a96c1a2259ad0d52cd4b6ef42261b37cccf3
Gerrit-Change-Number: 26948
Gerrit-PatchSet: 4
Gerrit-Owner: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Idwer Vollering <vidwer(a)gmail.com>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Daniel Thompson has posted comments on this change. ( https://review.coreboot.org/26948 )
Change subject: programmer: Add Developerbox/CP2104 bit bang driver
......................................................................
Patch Set 3:
(4 comments)
You can assume for now that not replying to a specific bit of feedback means "will fix"...
https://review.coreboot.org/#/c/26948/3/developerbox_spi.c
File developerbox_spi.c:
https://review.coreboot.org/#/c/26948/3/developerbox_spi.c@8
PS3, Line 8: version 2 of the License
> is it intentional to restrict the license to v2?
This would have been copied from the existing code. I just got "unlucky". Across the code base it looks like there is currently an approximate 60/40 split in favour or "or later". I'm happy to change this.
https://review.coreboot.org/#/c/26948/3/developerbox_spi.c@28
PS3, Line 28: DSW4-1
> DSW4-1 is the most significant bit?
The presentation here is more geometric than numeric! DW4-1 is left most switch in the DIP panel (with "up" defined by the text on the silkscreen). I think this phrasing is unambiguous for someone who can see the board.
https://review.coreboot.org/#/c/26948/3/developerbox_spi.c@181
PS3, Line 181: strlen(serialno)
> strncmp() with `n == strlen()` of one of its arguments looks very odd. […]
I'll add a comment. The intent is to permit a partial prefix (developers influences how git handles partial SHA-1 hashes grow to expect this).
https://review.coreboot.org/#/c/26948/3/developerbox_spi.c@207
PS3, Line 207: commencing
> heh, should have read this first...
:-)
I'll add a comment anyway.
--
To view, visit https://review.coreboot.org/26948
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2547a96c1a2259ad0d52cd4b6ef42261b37cccf3
Gerrit-Change-Number: 26948
Gerrit-PatchSet: 3
Gerrit-Owner: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: Daniel Thompson <daniel.thompson(a)linaro.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Idwer Vollering <vidwer(a)gmail.com>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Comment-Date: Wed, 11 Jul 2018 16:32:39 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No