Re: [coreboot] Flashrom won't work with DediProg SF100 fw 6.5.03

2015-06-10 Thread Stefan Reinauer
* Steve Goodrich steve.goodr...@se-eng.com [150602 20:38]:
 I got the Chromium version of flashrom to work, but it takes 20 minutes to
 flash/verify the 8 MB device.  So, while working is far better than not
 working, it is a bit sluggish.  :-)

I seem to remember there are two ways flashrom can program through a
dediprog, the slow one that always works, and the fast one that we
didn't know which chips it's working with, so it defaults to the slow
path.

Stefan

-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot


Re: [coreboot] Flashrom won't work with DediProg SF100 fw 6.5.03

2015-06-02 Thread Duncan Laurie
It looks like the code tries 12MHz by default but can be set to 24MHz which
is worth a try.

I think the syntax would just be -p dediprog:speed=24

-duncan


On Tue, Jun 2, 2015 at 11:38 AM, Steve Goodrich steve.goodr...@se-eng.com
wrote:

 I got the Chromium version of flashrom to work, but it takes 20 minutes to
 flash/verify the 8 MB device.  So, while working is far better than not
 working, it is a bit sluggish.  :-)

 Any thoughts on speeding it up?

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:57 AM, Steve Goodrich steve.goodr...@se-eng.com
 wrote:

 Thanks, Duncan!  I'll have a look.

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:48 AM, Duncan Laurie dlau...@chromium.org
 wrote:

 On Tue, Jun 2, 2015 at 7:39 AM, Steve Goodrich 
 steve.goodr...@se-eng.com wrote:

 I have a DediProg SF100 programmer that I want to use with flashrom
 under Linux.  Unfortunately, the SF100 has firmware version 6.5.03 and I
 can't use flashrom with it.

 I'm looking for a solution.  Does anyone have (or know where/how I can
 get):
 1) A version of SF100 firmware that will work with flashrom?
 2) A version of flashrom that will work with SF100 6.5.3?
 3) A Linux tool -- other than flashrom -- that will work with the SF100
 with its current firmware?

 Thanks for any help you can provide!
  -- Steve G.


 Hi Steve,

 There is a patch in the chromium flashrom tree that add support for
 firmware 6.0+ (which may or may not include 6.5.3) that does not seem to be
 in the upstream flashrom:

 https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/543101a06832b4e3a0d89ec9bf81ec398ff5808e

 I suspect the chromium flashrom tree has diverged enough from upstream
 that it will not apply cleanly there but it is only a 130 line patch so it
 shouldn't be too bad to integrate if needed.

 -duncan




-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Flashrom won't work with DediProg SF100 fw 6.5.03

2015-06-02 Thread Steve Goodrich
I got the Chromium version of flashrom to work, but it takes 20 minutes to
flash/verify the 8 MB device.  So, while working is far better than not
working, it is a bit sluggish.  :-)

Any thoughts on speeding it up?

 -- Steve G.

On Tue, Jun 2, 2015 at 8:57 AM, Steve Goodrich steve.goodr...@se-eng.com
wrote:

 Thanks, Duncan!  I'll have a look.

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:48 AM, Duncan Laurie dlau...@chromium.org
 wrote:

 On Tue, Jun 2, 2015 at 7:39 AM, Steve Goodrich steve.goodr...@se-eng.com
  wrote:

 I have a DediProg SF100 programmer that I want to use with flashrom
 under Linux.  Unfortunately, the SF100 has firmware version 6.5.03 and I
 can't use flashrom with it.

 I'm looking for a solution.  Does anyone have (or know where/how I can
 get):
 1) A version of SF100 firmware that will work with flashrom?
 2) A version of flashrom that will work with SF100 6.5.3?
 3) A Linux tool -- other than flashrom -- that will work with the SF100
 with its current firmware?

 Thanks for any help you can provide!
  -- Steve G.


 Hi Steve,

 There is a patch in the chromium flashrom tree that add support for
 firmware 6.0+ (which may or may not include 6.5.3) that does not seem to be
 in the upstream flashrom:

 https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/543101a06832b4e3a0d89ec9bf81ec398ff5808e

 I suspect the chromium flashrom tree has diverged enough from upstream
 that it will not apply cleanly there but it is only a 130 line patch so it
 shouldn't be too bad to integrate if needed.

 -duncan



-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Flashrom won't work with DediProg SF100 fw 6.5.03

2015-06-02 Thread Steve Goodrich
I'll give that a shot (thank you).

I notice that the VERIFY is requesting 256 bytes at a time for all 8 MB...
wouldn't it be better to use a page size from the flash chip (like 4 KB)?

Thanks!

 -- Steve G.

On Tue, Jun 2, 2015 at 1:14 PM, Duncan Laurie dlau...@chromium.org wrote:

 It looks like the code tries 12MHz by default but can be set to 24MHz
 which is worth a try.

 I think the syntax would just be -p dediprog:speed=24

 -duncan


 On Tue, Jun 2, 2015 at 11:38 AM, Steve Goodrich steve.goodr...@se-eng.com
  wrote:

 I got the Chromium version of flashrom to work, but it takes 20 minutes
 to flash/verify the 8 MB device.  So, while working is far better than
 not working, it is a bit sluggish.  :-)

 Any thoughts on speeding it up?

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:57 AM, Steve Goodrich steve.goodr...@se-eng.com
  wrote:

 Thanks, Duncan!  I'll have a look.

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:48 AM, Duncan Laurie dlau...@chromium.org
 wrote:

 On Tue, Jun 2, 2015 at 7:39 AM, Steve Goodrich 
 steve.goodr...@se-eng.com wrote:

 I have a DediProg SF100 programmer that I want to use with flashrom
 under Linux.  Unfortunately, the SF100 has firmware version 6.5.03 and I
 can't use flashrom with it.

 I'm looking for a solution.  Does anyone have (or know where/how I can
 get):
 1) A version of SF100 firmware that will work with flashrom?
 2) A version of flashrom that will work with SF100 6.5.3?
 3) A Linux tool -- other than flashrom -- that will work with the
 SF100 with its current firmware?

 Thanks for any help you can provide!
  -- Steve G.


 Hi Steve,

 There is a patch in the chromium flashrom tree that add support for
 firmware 6.0+ (which may or may not include 6.5.3) that does not seem to be
 in the upstream flashrom:

 https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/543101a06832b4e3a0d89ec9bf81ec398ff5808e

 I suspect the chromium flashrom tree has diverged enough from upstream
 that it will not apply cleanly there but it is only a 130 line patch so it
 shouldn't be too bad to integrate if needed.

 -duncan





-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Flashrom won't work with DediProg SF100 fw 6.5.03

2015-06-02 Thread Vadim Bendebury
On Tue, Jun 2, 2015 at 11:38 AM, Steve Goodrich
steve.goodr...@se-eng.com wrote:
 I got the Chromium version of flashrom to work, but it takes 20 minutes to
 flash/verify the 8 MB device.  So, while working is far better than not
 working, it is a bit sluggish.  :-)

 Any thoughts on speeding it up?


usually only part of the image needs to be programmed. If you need to
do this often, you might want to create a flash layout file and
program only areas which need to be programmed.

--vb

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:57 AM, Steve Goodrich steve.goodr...@se-eng.com
 wrote:

 Thanks, Duncan!  I'll have a look.

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:48 AM, Duncan Laurie dlau...@chromium.org
 wrote:

 On Tue, Jun 2, 2015 at 7:39 AM, Steve Goodrich
 steve.goodr...@se-eng.com wrote:

 I have a DediProg SF100 programmer that I want to use with flashrom
 under Linux.  Unfortunately, the SF100 has firmware version 6.5.03 and I
 can't use flashrom with it.

 I'm looking for a solution.  Does anyone have (or know where/how I can
 get):
 1) A version of SF100 firmware that will work with flashrom?
 2) A version of flashrom that will work with SF100 6.5.3?
 3) A Linux tool -- other than flashrom -- that will work with the SF100
 with its current firmware?

 Thanks for any help you can provide!
  -- Steve G.


 Hi Steve,

 There is a patch in the chromium flashrom tree that add support for
 firmware 6.0+ (which may or may not include 6.5.3) that does not seem to be
 in the upstream flashrom:

 https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/543101a06832b4e3a0d89ec9bf81ec398ff5808e

 I suspect the chromium flashrom tree has diverged enough from upstream
 that it will not apply cleanly there but it is only a 130 line patch so it
 shouldn't be too bad to integrate if needed.

 -duncan




 --
 coreboot mailing list: coreboot@coreboot.org
 http://www.coreboot.org/mailman/listinfo/coreboot

-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot


Re: [coreboot] Flashrom won't work with DediProg SF100 fw 6.5.03

2015-06-02 Thread David Hendricks
On Tue, Jun 2, 2015 at 12:26 PM, Steve Goodrich steve.goodr...@se-eng.com
wrote:

 I'll give that a shot (thank you).

 I notice that the VERIFY is requesting 256 bytes at a time for all 8 MB...
 wouldn't it be better to use a page size from the flash chip (like 4 KB)?


Yes. There is actually a patch to read the whole flash which speeds things
up a lot on Dediprog:  https://chromium-review.googlesource.com/#/c/240543/

Since that patch touches common code, though, the ME gremlin rears its ugly
head and we need to be careful not to read into a read-protected region. So
there's still a bit of work to be done (I started on that here:
https://chromium-review.googlesource.com/#/c/257191/).

If either/both of those patches help, feel free to hijack them and so we
can make progress on this.


 Thanks!

  -- Steve G.

 On Tue, Jun 2, 2015 at 1:14 PM, Duncan Laurie dlau...@chromium.org
 wrote:

 It looks like the code tries 12MHz by default but can be set to 24MHz
 which is worth a try.

 I think the syntax would just be -p dediprog:speed=24

 -duncan


 On Tue, Jun 2, 2015 at 11:38 AM, Steve Goodrich 
 steve.goodr...@se-eng.com wrote:

 I got the Chromium version of flashrom to work, but it takes 20 minutes
 to flash/verify the 8 MB device.  So, while working is far better than
 not working, it is a bit sluggish.  :-)

 Any thoughts on speeding it up?

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:57 AM, Steve Goodrich 
 steve.goodr...@se-eng.com wrote:

 Thanks, Duncan!  I'll have a look.

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:48 AM, Duncan Laurie dlau...@chromium.org
 wrote:

 On Tue, Jun 2, 2015 at 7:39 AM, Steve Goodrich 
 steve.goodr...@se-eng.com wrote:

 I have a DediProg SF100 programmer that I want to use with flashrom
 under Linux.  Unfortunately, the SF100 has firmware version 6.5.03 and I
 can't use flashrom with it.

 I'm looking for a solution.  Does anyone have (or know where/how I
 can get):
 1) A version of SF100 firmware that will work with flashrom?
 2) A version of flashrom that will work with SF100 6.5.3?
 3) A Linux tool -- other than flashrom -- that will work with the
 SF100 with its current firmware?

 Thanks for any help you can provide!
  -- Steve G.


 Hi Steve,

 There is a patch in the chromium flashrom tree that add support for
 firmware 6.0+ (which may or may not include 6.5.3) that does not seem to 
 be
 in the upstream flashrom:

 https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/543101a06832b4e3a0d89ec9bf81ec398ff5808e

 I suspect the chromium flashrom tree has diverged enough from upstream
 that it will not apply cleanly there but it is only a 130 line patch so it
 shouldn't be too bad to integrate if needed.

 -duncan






 --
 coreboot mailing list: coreboot@coreboot.org
 http://www.coreboot.org/mailman/listinfo/coreboot




-- 
David Hendricks (dhendrix)
Systems Software Engineer, Google Inc.
-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Flashrom won't work with DediProg SF100 fw 6.5.03

2015-06-02 Thread Steve Goodrich
Thank you all (David, Duncan, Vadim, and others in private messages) for
your help.  Just to speed things up, I'm going to avoid the VERIFY pass (-n
parameter).  This takes it from 18-20 minutes to under a minute.

This is workable for my short-term need, and I'll have time to look at in
when I'm on the plane.

 -- Steve G.

On Tue, Jun 2, 2015 at 1:51 PM, David Hendricks dhend...@google.com wrote:



 On Tue, Jun 2, 2015 at 12:26 PM, Steve Goodrich steve.goodr...@se-eng.com
  wrote:

 I'll give that a shot (thank you).

 I notice that the VERIFY is requesting 256 bytes at a time for all 8
 MB... wouldn't it be better to use a page size from the flash chip (like 4
 KB)?


 Yes. There is actually a patch to read the whole flash which speeds things
 up a lot on Dediprog:
 https://chromium-review.googlesource.com/#/c/240543/

 Since that patch touches common code, though, the ME gremlin rears its
 ugly head and we need to be careful not to read into a read-protected
 region. So there's still a bit of work to be done (I started on that here:
 https://chromium-review.googlesource.com/#/c/257191/).

 If either/both of those patches help, feel free to hijack them and so we
 can make progress on this.


 Thanks!

  -- Steve G.

 On Tue, Jun 2, 2015 at 1:14 PM, Duncan Laurie dlau...@chromium.org
 wrote:

 It looks like the code tries 12MHz by default but can be set to 24MHz
 which is worth a try.

 I think the syntax would just be -p dediprog:speed=24

 -duncan


 On Tue, Jun 2, 2015 at 11:38 AM, Steve Goodrich 
 steve.goodr...@se-eng.com wrote:

 I got the Chromium version of flashrom to work, but it takes 20 minutes
 to flash/verify the 8 MB device.  So, while working is far better than
 not working, it is a bit sluggish.  :-)

 Any thoughts on speeding it up?

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:57 AM, Steve Goodrich 
 steve.goodr...@se-eng.com wrote:

 Thanks, Duncan!  I'll have a look.

  -- Steve G.

 On Tue, Jun 2, 2015 at 8:48 AM, Duncan Laurie dlau...@chromium.org
 wrote:

 On Tue, Jun 2, 2015 at 7:39 AM, Steve Goodrich 
 steve.goodr...@se-eng.com wrote:

 I have a DediProg SF100 programmer that I want to use with flashrom
 under Linux.  Unfortunately, the SF100 has firmware version 6.5.03 and I
 can't use flashrom with it.

 I'm looking for a solution.  Does anyone have (or know where/how I
 can get):
 1) A version of SF100 firmware that will work with flashrom?
 2) A version of flashrom that will work with SF100 6.5.3?
 3) A Linux tool -- other than flashrom -- that will work with the
 SF100 with its current firmware?

 Thanks for any help you can provide!
  -- Steve G.


 Hi Steve,

 There is a patch in the chromium flashrom tree that add support for
 firmware 6.0+ (which may or may not include 6.5.3) that does not seem to 
 be
 in the upstream flashrom:

 https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/543101a06832b4e3a0d89ec9bf81ec398ff5808e

 I suspect the chromium flashrom tree has diverged enough from
 upstream that it will not apply cleanly there but it is only a 130 line
 patch so it shouldn't be too bad to integrate if needed.

 -duncan






 --
 coreboot mailing list: coreboot@coreboot.org
 http://www.coreboot.org/mailman/listinfo/coreboot




 --
 David Hendricks (dhendrix)
 Systems Software Engineer, Google Inc.

-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

[coreboot] Flashrom won't work with DediProg SF100 fw 6.5.03

2015-06-02 Thread Steve Goodrich
I have a DediProg SF100 programmer that I want to use with flashrom under
Linux.  Unfortunately, the SF100 has firmware version 6.5.03 and I can't
use flashrom with it.

I'm looking for a solution.  Does anyone have (or know where/how I can get):
1) A version of SF100 firmware that will work with flashrom?
2) A version of flashrom that will work with SF100 6.5.3?
3) A Linux tool -- other than flashrom -- that will work with the SF100
with its current firmware?

Thanks for any help you can provide!
 -- Steve G.
-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Flashrom won't work with DediProg SF100 fw 6.5.03

2015-06-02 Thread Duncan Laurie
On Tue, Jun 2, 2015 at 7:39 AM, Steve Goodrich steve.goodr...@se-eng.com
wrote:

 I have a DediProg SF100 programmer that I want to use with flashrom under
 Linux.  Unfortunately, the SF100 has firmware version 6.5.03 and I can't
 use flashrom with it.

 I'm looking for a solution.  Does anyone have (or know where/how I can
 get):
 1) A version of SF100 firmware that will work with flashrom?
 2) A version of flashrom that will work with SF100 6.5.3?
 3) A Linux tool -- other than flashrom -- that will work with the SF100
 with its current firmware?

 Thanks for any help you can provide!
  -- Steve G.


Hi Steve,

There is a patch in the chromium flashrom tree that add support for
firmware 6.0+ (which may or may not include 6.5.3) that does not seem to be
in the upstream flashrom:
https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/543101a06832b4e3a0d89ec9bf81ec398ff5808e

I suspect the chromium flashrom tree has diverged enough from upstream that
it will not apply cleanly there but it is only a 130 line patch so it
shouldn't be too bad to integrate if needed.

-duncan
-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Flashrom won't work with DediProg SF100 fw 6.5.03

2015-06-02 Thread Steve Goodrich
Thanks, Duncan!  I'll have a look.

 -- Steve G.

On Tue, Jun 2, 2015 at 8:48 AM, Duncan Laurie dlau...@chromium.org wrote:

 On Tue, Jun 2, 2015 at 7:39 AM, Steve Goodrich steve.goodr...@se-eng.com
 wrote:

 I have a DediProg SF100 programmer that I want to use with flashrom under
 Linux.  Unfortunately, the SF100 has firmware version 6.5.03 and I can't
 use flashrom with it.

 I'm looking for a solution.  Does anyone have (or know where/how I can
 get):
 1) A version of SF100 firmware that will work with flashrom?
 2) A version of flashrom that will work with SF100 6.5.3?
 3) A Linux tool -- other than flashrom -- that will work with the SF100
 with its current firmware?

 Thanks for any help you can provide!
  -- Steve G.


 Hi Steve,

 There is a patch in the chromium flashrom tree that add support for
 firmware 6.0+ (which may or may not include 6.5.3) that does not seem to be
 in the upstream flashrom:

 https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/543101a06832b4e3a0d89ec9bf81ec398ff5808e

 I suspect the chromium flashrom tree has diverged enough from upstream
 that it will not apply cleanly there but it is only a 130 line patch so it
 shouldn't be too bad to integrate if needed.

 -duncan


-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot