This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
university:tools:pluto:users:firmware [08 Jun 2020 16:04] – [Update using DFU mode] Robin Getz | university:tools:pluto:users:firmware [24 Jun 2020 01:32] – [Debugging DFU] Robin Getz | ||
---|---|---|---|
Line 235: | Line 235: | ||
</ | </ | ||
'' | '' | ||
+ | |||
+ | ==== Debugging DFU ==== | ||
+ | |||
+ | If those instructions didn't help - you might get here. Hopefully this will help describe things. | ||
+ | |||
+ | The first thing to try is to make sure the device (Pluto or M2k) is actually in DFU mode. This is accomplished by asking the dfu utilities to list any devices that it finds, their configuration, | ||
+ | |||
+ | <WRAP info> | ||
+ | Although these examples are on a Linux machine, on Windows, it is similar. When you installed the Pluto or M2k Windows Drivers, it put the '' | ||
+ | |||
+ | < | ||
+ | C:\>**cd " | ||
+ | C:\Program Files\Analog Devices\PlutoSDR-M2K> | ||
+ | dfu-util 0.9 | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2016 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to %%http:// | ||
+ | |||
+ | Found DFU: [0456:b674] ver=0221, devnum=7, cfg=1, intf=0, path=" | ||
+ | Found DFU: [0456:b674] ver=0221, devnum=7, cfg=1, intf=0, path=" | ||
+ | Found DFU: [0456:b674] ver=0221, devnum=7, cfg=1, intf=0, path=" | ||
+ | Found DFU: [0456:b674] ver=0221, devnum=7, cfg=1, intf=0, path=" | ||
+ | Found DFU: [0456:b674] ver=0221, devnum=7, cfg=1, intf=0, path=" | ||
+ | </ | ||
+ | |||
+ | Just don't type in the '' | ||
+ | </ | ||
+ | |||
+ | Here it found one device, with 5 " | ||
+ | |||
+ | < | ||
+ | rgetz@brain: | ||
+ | [sudo] password for rgetz: | ||
+ | dfu-util 0.9 | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2016 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to %%http:// | ||
+ | |||
+ | Found DFU: [0456:b674] ver=0221, devnum=104, cfg=1, intf=0, path=" | ||
+ | Found DFU: [0456:b674] ver=0221, devnum=104, cfg=1, intf=0, path=" | ||
+ | Found DFU: [0456:b674] ver=0221, devnum=104, cfg=1, intf=0, path=" | ||
+ | Found DFU: [0456:b674] ver=0221, devnum=104, cfg=1, intf=0, path=" | ||
+ | Found DFU: [0456:b674] ver=0221, devnum=104, cfg=1, intf=0, path=" | ||
+ | rgetz@brain: | ||
+ | </ | ||
+ | |||
+ | If this doesn' | ||
+ | |||
+ | When the system boots, it follows this basic process: | ||
+ | - the U-Boot ('' | ||
+ | - U-Boot will load it's environment (both the '' | ||
+ | - U-Boot will then use that to load the kernel and ramfs (the '' | ||
+ | |||
+ | <WRAP info> | ||
+ | // | ||
+ | |||
+ | [[http:// | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | The file releases always include: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | </ | ||
+ | |||
+ | And corruption of those sections can cause problems in the booting process. In order, try writing the: | ||
+ | - firmware section:< | ||
+ | dfu-util 0.9 | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2016 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to %%http:// | ||
+ | |||
+ | Match vendor ID from file: 0456 | ||
+ | Match product ID from file: b673 | ||
+ | Opening DFU capable USB device... | ||
+ | ID 0456:b674 | ||
+ | Run-time device DFU version 0110 | ||
+ | Claiming USB DFU Interface... | ||
+ | Setting Alternate Setting #1 ... | ||
+ | Determining device status: state = dfuIDLE, status = 0 | ||
+ | dfuIDLE, continuing | ||
+ | DFU mode device DFU version 0110 | ||
+ | Device returned transfer size 4096 | ||
+ | Copying data from PC to DFU device | ||
+ | Download [=========================] 100% | ||
+ | Download done. | ||
+ | state(7) = dfuMANIFEST, | ||
+ | state(2) = dfuIDLE, status(0) = No error condition is present | ||
+ | Done! | ||
+ | rgetz@brain: | ||
+ | </ | ||
+ | - The U-Boot section: < | ||
+ | dfu-util 0.9 | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2016 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to %%http:// | ||
+ | |||
+ | Match vendor ID from file: 0456 | ||
+ | Match product ID from file: b673 | ||
+ | Opening DFU capable USB device... | ||
+ | ID 0456:b674 | ||
+ | Run-time device DFU version 0110 | ||
+ | Claiming USB DFU Interface... | ||
+ | Setting Alternate Setting #0 ... | ||
+ | Determining device status: state = dfuIDLE, status = 0 | ||
+ | dfuIDLE, continuing | ||
+ | DFU mode device DFU version 0110 | ||
+ | Device returned transfer size 4096 | ||
+ | Copying data from PC to DFU device | ||
+ | Download [=========================] 100% | ||
+ | Download done. | ||
+ | state(7) = dfuMANIFEST, | ||
+ | state(2) = dfuIDLE, status(0) = No error condition is present | ||
+ | Done! | ||
+ | rgetz@brain: | ||
+ | </ | ||
+ | - the U-Boot environment : < | ||
+ | dfu-util 0.9 | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2016 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to %%http:// | ||
+ | |||
+ | Match vendor ID from file: 0456 | ||
+ | Match product ID from file: b673 | ||
+ | Opening DFU capable USB device... | ||
+ | ID 0456:b674 | ||
+ | Run-time device DFU version 0110 | ||
+ | Claiming USB DFU Interface... | ||
+ | Setting Alternate Setting #3 ... | ||
+ | Determining device status: state = dfuIDLE, status = 0 | ||
+ | dfuIDLE, continuing | ||
+ | DFU mode device DFU version 0110 | ||
+ | Device returned transfer size 4096 | ||
+ | Copying data from PC to DFU device | ||
+ | Download [=========================] 100% | ||
+ | Download done. | ||
+ | state(7) = dfuMANIFEST, | ||
+ | state(2) = dfuIDLE, status(0) = No error condition is present | ||
+ | Done! | ||
+ | </ | ||
+ | - the '' | ||
+ | dfu-util 0.9 | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2016 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to %%http:// | ||
+ | |||
+ | Opening DFU capable USB device... | ||
+ | ID 0456:b674 | ||
+ | Run-time device DFU version 0110 | ||
+ | Claiming USB DFU Interface... | ||
+ | Setting Alternate Setting #2 ... | ||
+ | Determining device status: state = dfuIDLE, status = 0 | ||
+ | dfuIDLE, continuing | ||
+ | DFU mode device DFU version 0110 | ||
+ | Device returned transfer size 4096 | ||
+ | Copying data from DFU device to PC | ||
+ | Upload [=========================] 100% 4096 bytes | ||
+ | Upload done. | ||
+ | </ | ||
+ | 00000000 | ||
+ | * | ||
+ | 00001000 | ||
+ | </ | ||
+ | - The last time your access things, you can tell the device to reset with the '' | ||
+ | dfu-util 0.9 | ||
+ | |||
+ | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2016 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to %%http:// | ||
+ | |||
+ | Opening DFU capable USB device... | ||
+ | ID 0456:b674 | ||
+ | Run-time device DFU version 0110 | ||
+ | Claiming USB DFU Interface... | ||
+ | Setting Alternate Setting #2 ... | ||
+ | Determining device status: state = dfuIDLE, status = 0 | ||
+ | dfuIDLE, continuing | ||
+ | DFU mode device DFU version 0110 | ||
+ | Device returned transfer size 4096 | ||
+ | Copying data from DFU device to PC | ||
+ | Upload [=========================] 100% 4096 bytes | ||
+ | Upload done. | ||
+ | Resetting USB to switch back to runtime mode | ||
+ | </ |