Author Topic: dfu mode linux error  (Read 7008 times)

lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
dfu mode linux error
« on: May 29, 2018, 10:19:56 AM »
hi xavier,

on one of my preenfm2 (i have 2) i can no longer upgrade the firmware via dfu mode, i get this error:

Code: [Select]
lokki@linuxmint ~/preenfm2-8monocurrent $ make installdfuo
dfu-util -a0 -d 0x0483:0xdf11 -D build/p2t8_208bo.bin -s 0x8040000
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Deducing device DFU version from functional descriptor length
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08040000, size = 412860
Download [                         ]   0%            0 bytesdfu-util: Error during special command "ERASE_PAGE" get_status
Makefile:209: recipe for target 'installdfuo' failed
make: *** [installdfuo] Error 74


and sometimes:

Code: [Select]
lokki@linuxmint ~/preenfm2-8monocurrent $ make installdfuo
dfu-util -a0 -d 0x0483:0xdf11 -D build/p2t8_208bo.bin -s 0x8040000
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Deducing device DFU version from functional descriptor length
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: dfu-util: error get_status
Makefile:209: recipe for target 'installdfuo' failed
make: *** [installdfuo] Error 74

or even:

Code: [Select]
make installdfuo
dfu-util -a0 -d 0x0483:0xdf11 -D build/p2t8_208bo.bin -s 0x8040000
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Deducing device DFU version from functional descriptor length
dfu-util: Cannot open DFU device 0483:df11
dfu-util: No DFU capable USB device available
Makefile:209: recipe for target 'installdfuo' failed
make: *** [installdfuo] Error 74

however lsusb shows:

Code: [Select]
Bus 001 Device 013: ID 0483:df11 STMicroelectronics STM Device in DFU Mode

which seems to indicate dfu mode is working on the preenfm side. the other preenfm updates the firmware without a problem on the exact same linux installation, same usb port and cable...

any hints on this?


lokki

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: dfu mode linux error
« Reply #1 on: May 29, 2018, 01:00:13 PM »
i solved it by removing the usb-stick (pain in the a**) because you have to open the case. i then uploaded the new firmware directly to the stick (usb-stick mode in bootloader was also not working)

after reinserting the stick i got a "bootloader ok, but no firmware installed" screen and i was able to boot to bootloader and flash the new firmware. now i am again able to flash via dfu mode...

this seems odd and weird.