Ticket #653 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

[PATCH] dfu-util - Some devices boot up in a DFU state instead of app state

Reported by: nick@… Owned by: werner@…
Priority: high Milestone:
Component: OE bitbake recipes / build system Version: current svn head
Severity: normal Keywords: VERIFIED
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

The TAS1020B chip starts up in the DFU state idleDFU which can easily be
handled by applying the patch below

Index: src/main.c
===================================================================
--- src/main.c (revision 2384)
+++ src/main.c (working copy)
@@ -507,9 +507,7 @@

}
break;

default:

  • fprintf(stderr, "IMPOSSIBLE: Runtime device already in

DFU state ?!?\n");

  • exit(1);
  • break;

+ goto dfustate;

}


/* now we need to re-scan the bus and locate our device */

Change History

comment:1 Changed 12 years ago by nick@…

Eh, the complete patch being:

Index: src/main.c
===================================================================
--- src/main.c (revision 2384)
+++ src/main.c (working copy)
@@ -507,9 +507,7 @@

}
break;

default:

  • fprintf(stderr, "IMPOSSIBLE: Runtime device already in

DFU state ?!?\n");

  • exit(1);
  • break;

+ goto dfustate;

}


/* now we need to re-scan the bus and locate our device */

@@ -540,6 +538,7 @@

  • procedure */

}


+dfustate:

if (alt_name) {

int n;


comment:2 Changed 12 years ago by mickey@…

  • Owner changed from mickey@… to werner@…

comment:3 Changed 12 years ago by laforge@…

  • Status changed from new to assigned

comment:4 Changed 12 years ago by laforge@…

  • Status changed from assigned to closed
  • Resolution set to fixed

thanks, applied in slightly different version (still prints a warning) in svn
rev. 2765

comment:5 Changed 12 years ago by nick@…

  • Keywords VERIFIED added
Note: See TracTickets for help on using tickets.