All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] U-Boot DFU test and Ctrl+C
@ 2016-09-27 15:46 ` Tom Rini
  2016-09-27 16:42   ` Stephen Warren
  2016-09-28  9:32   ` Lukasz Majewski
  0 siblings, 2 replies; 5+ messages in thread
From: Tom Rini @ 2016-09-27 15:46 UTC (permalink / raw)
  To: u-boot

Hey guys,

As I use the DFU tests more and more, I keep hitting what I'm pretty
sure is a false failure in the tests.  Sometimes the tests fail at:
>       u_boot_console.wait_for('Ctrl+C to exit ...')

and the last bit of the console log is:
Starting download: [#################################################################] finished!
unable to read DFU status
#File System is consistent
file found, deleting
update journal finished
File System is consistent
update journal finished
65 bytes written in 12380 ms (0 Bytes/s)
=> 

So perhaps we should make the test look for the prompt itself rather
than 'Ctrl+C' ?  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160927/d8c3a238/attachment.sig>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] U-Boot DFU test and Ctrl+C
  2016-09-27 15:46 ` [U-Boot] U-Boot DFU test and Ctrl+C Tom Rini
@ 2016-09-27 16:42   ` Stephen Warren
  2016-09-28  9:32   ` Lukasz Majewski
  1 sibling, 0 replies; 5+ messages in thread
From: Stephen Warren @ 2016-09-27 16:42 UTC (permalink / raw)
  To: u-boot

On 09/27/2016 09:46 AM, Tom Rini wrote:
> Hey guys,
>
> As I use the DFU tests more and more, I keep hitting what I'm pretty
> sure is a false failure in the tests.  Sometimes the tests fail at:
>>       u_boot_console.wait_for('Ctrl+C to exit ...')
>
> and the last bit of the console log is:
> Starting download: [#################################################################] finished!
> unable to read DFU status
> #File System is consistent
> file found, deleting
> update journal finished
> File System is consistent
> update journal finished
> 65 bytes written in 12380 ms (0 Bytes/s)
> =>
>
> So perhaps we should make the test look for the prompt itself rather
> than 'Ctrl+C' ?  Thanks!

FWIW, I haven't seen this issue at all.

This looks like a bug in the DFU code to me; from the log you gave it 
seems like the dfu shell command is exiting back to the shell prompt all 
by itself. It shouldn't do that, but should rather wait for the user to 
press Ctrl-C. The only exception would be that the host tool has some 
options to trigger a "reset" on the target. The test/py code shouldn't 
be using that option though, and IIRC U-Boot attempts a CPU/board reset 
in response to that command rather than simply dropping back to the 
shell prompt.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] U-Boot DFU test and Ctrl+C
  2016-09-27 15:46 ` [U-Boot] U-Boot DFU test and Ctrl+C Tom Rini
  2016-09-27 16:42   ` Stephen Warren
@ 2016-09-28  9:32   ` Lukasz Majewski
  2016-09-28 17:49     ` Stephen Warren
  1 sibling, 1 reply; 5+ messages in thread
From: Lukasz Majewski @ 2016-09-28  9:32 UTC (permalink / raw)
  To: u-boot

Hi Tom,

> Hey guys,
> 
> As I use the DFU tests more and more, I keep hitting what I'm pretty
> sure is a false failure in the tests.  Sometimes the tests fail at:
> >       u_boot_console.wait_for('Ctrl+C to exit ...')
> 
> and the last bit of the console log is:
> Starting download:
> [#################################################################]
> finished! unable to read DFU status #File System is consistent
> file found, deleting
> update journal finished
> File System is consistent
> update journal finished
> 65 bytes written in 12380 ms (0 Bytes/s)
> => 
> 
> So perhaps we should make the test look for the prompt itself rather
> than 'Ctrl+C' ?  Thanks!

As fair as I remember, dfu-util provides and u-boot's dfu supports -e
switch behavior. This switch causes the dfu u-boot command to go
directly to u-boot prompt.

Tom, I suppose that this is what you would need. 
Just add -e to your host's dfu-util command.

> 



-- 
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] U-Boot DFU test and Ctrl+C
  2016-09-28  9:32   ` Lukasz Majewski
@ 2016-09-28 17:49     ` Stephen Warren
  2016-10-01  1:56       ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Warren @ 2016-09-28 17:49 UTC (permalink / raw)
  To: u-boot

On 09/28/2016 03:32 AM, Lukasz Majewski wrote:
> Hi Tom,
>
>> Hey guys,
>>
>> As I use the DFU tests more and more, I keep hitting what I'm pretty
>> sure is a false failure in the tests.  Sometimes the tests fail at:
>>>       u_boot_console.wait_for('Ctrl+C to exit ...')
>>
>> and the last bit of the console log is:
>> Starting download:
>> [#################################################################]
>> finished! unable to read DFU status #File System is consistent
>> file found, deleting
>> update journal finished
>> File System is consistent
>> update journal finished
>> 65 bytes written in 12380 ms (0 Bytes/s)
>> =>
>>
>> So perhaps we should make the test look for the prompt itself rather
>> than 'Ctrl+C' ?  Thanks!
>
> As fair as I remember, dfu-util provides and u-boot's dfu supports -e
> switch behavior. This switch causes the dfu u-boot command to go
> directly to u-boot prompt.
>
> Tom, I suppose that this is what you would need.
> Just add -e to your host's dfu-util command.

Using -e is the opposite of what Tom wants. The test/py script expects 
the dfu command to continue running after an upload/download, since 
that's the default behaviour.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] U-Boot DFU test and Ctrl+C
  2016-09-28 17:49     ` Stephen Warren
@ 2016-10-01  1:56       ` Tom Rini
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2016-10-01  1:56 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 28, 2016 at 11:49:52AM -0600, Stephen Warren wrote:
> On 09/28/2016 03:32 AM, Lukasz Majewski wrote:
> >Hi Tom,
> >
> >>Hey guys,
> >>
> >>As I use the DFU tests more and more, I keep hitting what I'm pretty
> >>sure is a false failure in the tests.  Sometimes the tests fail at:
> >>>      u_boot_console.wait_for('Ctrl+C to exit ...')
> >>
> >>and the last bit of the console log is:
> >>Starting download:
> >>[#################################################################]
> >>finished! unable to read DFU status #File System is consistent
> >>file found, deleting
> >>update journal finished
> >>File System is consistent
> >>update journal finished
> >>65 bytes written in 12380 ms (0 Bytes/s)
> >>=>
> >>
> >>So perhaps we should make the test look for the prompt itself rather
> >>than 'Ctrl+C' ?  Thanks!
> >
> >As fair as I remember, dfu-util provides and u-boot's dfu supports -e
> >switch behavior. This switch causes the dfu u-boot command to go
> >directly to u-boot prompt.
> >
> >Tom, I suppose that this is what you would need.
> >Just add -e to your host's dfu-util command.
> 
> Using -e is the opposite of what Tom wants. The test/py script
> expects the dfu command to continue running after an
> upload/download, since that's the default behaviour.

Right.  It sounds like DWC3 might have an intermittent issue I need to
find some time to try and debug, or talk someone else into debugging :)

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160930/1d97aa9d/attachment.sig>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-01  1:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20160927154639eucas1p2a18ee8e6dbf39188e63d87ff5fd41072@eucas1p2.samsung.com>
2016-09-27 15:46 ` [U-Boot] U-Boot DFU test and Ctrl+C Tom Rini
2016-09-27 16:42   ` Stephen Warren
2016-09-28  9:32   ` Lukasz Majewski
2016-09-28 17:49     ` Stephen Warren
2016-10-01  1:56       ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.