Skip to content

Instantly share code, notes, and snippets.

@triffid
Created December 15, 2012 10:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triffid/4292519 to your computer and use it in GitHub Desktop.
Save triffid/4292519 to your computer and use it in GitHub Desktop.
Smoothie DFU Bootloader descriptors
$ lsusb
Bus 001 Device 023: ID 1679:2001 Total Phase Beagle USB 12 Protocol Analyzer
Bus 002 Device 004: ID 0930:0508 Toshiba Corp. Integrated Bluetooth HCI
Bus 002 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 003 Device 046: ID 1d50:6015 OpenMoko, Inc.
Bus 003 Device 122: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 004 Device 030: ID 046d:c404 Logitech, Inc. TrackMan Wheel
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
$ lsusb -v -d 1d50:6015
Bus 003 Device 046: ID 1d50:6015 OpenMoko, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1d50 OpenMoko, Inc.
idProduct 0x6015
bcdDevice 1.00
iManufacturer 1 SmoothieWare
iProduct 2 Smoothie
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 27
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 254 Application Specific Interface
bInterfaceSubClass 1 Device Firmware Update
bInterfaceProtocol 2
iInterface 3 Smoothie DFU
Device Firmware Upgrade Interface Descriptor:
bLength 9
bDescriptorType 33
bmAttributes 11
Will Detach
Manifestation Intolerant
Upload Supported
Download Supported
wDetachTimeout 500 milliseconds
wTransferSize 512 bytes
bcdDFUVersion 1.01
Device Status: 0x0000
(Bus Powered)
Bootloader Start
ISP button pressed, entering DFU mode
user flash: 0x4000
USB:Bus Reset
USB:Bus Reset
S[0x80 0x6 0x100 0x0 0x40]: :w18 Recv ACK, Complete
USB:Bus Reset
S[0x0 0x5 0x2E 0x0 0x0]: USB: Got USB Address 46
Sent ACK, Complete
S[0x80 0x6 0x100 0x0 0x12]: :w18 Recv ACK, Complete
S[0x80 0x6 0x600 0x0 0xA]: sent ZLP,S[0x80 0x6 0x600 0x0 0xA]: sent ZLP,S[0x80 0x6 0x600 0x0 0xA]: sent ZLP,S[0x80 0x6 0x200 0x0 0x9]: :w9 Recv ACK, Complete
S[0x80 0x6 0x200 0x0 0x1B]: :w27 Recv ACK, Complete
S[0x80 0x6 0x300 0x0 0xFF]: :w4 Recv ACK, Complete
S[0x80 0x6 0x302 0x409 0xFF]: :w18 Recv ACK, Complete
S[0x80 0x6 0x301 0x409 0xFF]: :w26 Recv ACK, Complete
S[0x0 0x9 0x1 0x0 0x0]: Sent ACK, Complete
S[0x80 0x6 0x303 0x409 0xFF]: :w26 Recv ACK, Complete
S[0x80 0x6 0x300 0x0 0xFF]: :w4 Recv ACK, Complete
S[0x80 0x6 0x301 0x409 0xFF]: :w26 Recv ACK, Complete
S[0x80 0x6 0x300 0x0 0xFF]: :w4 Recv ACK, Complete
S[0x80 0x6 0x302 0x409 0xFF]: :w18 Recv ACK, Complete
S[0x80 0x6 0x300 0x0 0xFF]: :w4 Recv ACK, Complete
S[0x80 0x6 0x303 0x409 0xFF]: :w26 Recv ACK, Complete
S[0x80 0x6 0x600 0x0 0xA]: sent ZLP,S[0x80 0x6 0xA00 0x0 0x4]: sent ZLP,S[0x80 0x0 0x0 0x0 0x2]: :w2 Recv ACK, Complete
S[0x21 0x1 0x0 0x0 0x200]: DFU:DNLOAD
WRITE: 0x4000
:r64:r64:r64:r64:r64:r64:r64:r64 Sent ACK, Complete
WRITE 0x4000
S[0xA1 0x3 0x0 0x0 0x6]: DFU:GETSTATUS
:w6 Recv ACK, Complete
new state is 5
...
S[0x21 0x1 0x114 0x0 0x200]: DFU:DNLOAD
WRITE: 0x26800
:r64:r64:r64:r64:r64:r64:r64:r64 Sent ACK, Complete
WRITE 0x26800
S[0xA1 0x3 0x0 0x0 0x6]: DFU:GETSTATUS
:w6 Recv ACK, Complete
new state is 5
S[0x21 0x1 0x115 0x0 0x8]: DFU:DNLOAD
WRITE: 0x26A00
:r8 Sent ACK, Complete
WRITE 0x26A00
S[0xA1 0x3 0x0 0x0 0x6]: DFU:GETSTATUS
:w6 Recv ACK, Complete
new state is 5
S[0x21 0x1 0x116 0x0 0x0]: DFU:DNLOAD
Sent ACK, Complete
S[0xA1 0x3 0x0 0x0 0x6]: DFU:GETSTATUS
:w6 Recv ACK, Complete
new state is 8
MANIFEST COMPLETE, usb disconnected
Jumping to 0x14B39
Jump!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment