PreenFM > PreenFM2

[Fixed] Bootloader Install not working

(1/3) > >>

Bairkan:
I have built my kit, but when it comes to flashing the bootloader I have connected the USB, installed dfu-util through macports, but when I try to run the command to install the boot loader, it tells me that no DFU-compatible USB device has been found, I have shorted the jumper 3, so that shouldn't be the problem.

Bairkan:
I have now connected the USB cable to the FEZ Cerb directly and it now shows up when executing the dfu-util -l command, yet when I try and flash the bootloader dfu-util brings up an error "No valid DFU suffix signature Warning: File has no DFU suffix", this is when using the command:

dfu-util -a0 -d 0×0483:0xdf11 -D /Users/me/Downloads/build/p2_boot_1.01.bin -R -s 0×8000000

Xavier:

--- Quote from: Bairkan on November 29, 2013, 08:59:14 PM ---I have now connected the USB cable to the FEZ Cerb directly and it now shows up when executing the dfu-util -l command,

--- End quote ---

Thanks for checking this.
So the USB cable you made does not work... you may have a shortcut or solder the wrong pins on the mini usb socket.


--- Quote from: Bairkan on November 29, 2013, 08:59:14 PM ---yet when I try and flash the bootloader dfu-util brings up an error "No valid DFU suffix signature Warning: File has no DFU suffix", this is when using the command:
dfu-util -a0 -d 0×0483:0xdf11 -D /Users/me/Downloads/build/p2_boot_1.01.bin -R -s 0×8000000

--- End quote ---

The -s options should tell dfu-util to consider the file as a raw file.. that's strange it check the DFU suffix.
Could you let me know the full output of "dfu-utils -l"  and "dfu-util -h" ?

Xavier

Bairkan:
dfu-util -l
dfu-util 0.7

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

Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg"
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=1, name="@Option Bytes  /0x1FFFC000/01*016 e"
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=2, name="@OTP Memory /0x1FFF7800/01*512 e,01*016 e"
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=3, name="@Device Feature/0xFFFF0000/01*004 e"


dfu-util -h
Usage: dfu-util [options] ...
  -h --help         Print this help message
  -V --version         Print the version number
  -v --verbose         Print verbose debug statements
  -l --list         List the currently attached DFU capable USB devices
  -e --detach         Detach the currently attached DFU capable USB devices
  -d --device vendor:product   Specify Vendor/Product ID of DFU device
  -p --path bus-port. ... .port   Specify path to DFU device
  -c --cfg config_nr      Specify the Configuration of DFU device
  -i --intf intf_nr      Specify the DFU Interface number
  -a --alt alt         Specify the Altsetting of the DFU Interface
            by name or by number
  -t --transfer-size      Specify the number of bytes per USB Transfer
  -U --upload file      Read firmware from device into <file>
  -D --download file      Write firmware from <file> into device
  -R --reset         Issue USB Reset signalling once we're finished
  -s --dfuse-address address   ST DfuSe mode, specify target address for
            raw file download or upload. Not applicable for
            DfuSe file (.dfu) downloads

And this is the message I get when trying to flash:

dfu-util -a0 -d 0×0483:0xdf11 -D /Users/me/Downloads/build/p2_boot_1.01.bin -R -s 0×8000000
dfu-util 0.7

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

Filter on vendor = 0x0000 product = 0xdf11
Opening DFU capable USB device... ID 0483:df11
Run-time device DFU version 011a
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
No valid DFU suffix signature
Warning: File has no DFU suffix
Error: Invalid dfuse address: 0×8000000

Bairkan:
Well, I have fixed the error with the address, had to replace the "x" in the command for the memory address with a character x, now I get this result:

dfu-util -a0 -d 0x0483:0xdf11 -D /Users/me/Downloads/build/p2_boot_1.01.bin -R -s 0x8000000
dfu-util 0.7

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

Filter on vendor = 0x0483 product = 0xdf11
Opening DFU capable USB device... ID 0483:df11
Run-time device DFU version 011a
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg"
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
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08000000, size = 84484
..........................................
File downloaded successfully
can't detach
Resetting USB to switch back to runtime mode

Navigation

[0] Message Index

[#] Next page

Go to full version