| 1 |
.\" Hey, EMACS: -*- nroff -*- |
| 2 |
.\" First parameter, NAME, should be all caps |
| 3 |
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection |
| 4 |
.\" other parameters are allowed: see man(7), man(1) |
| 5 |
.TH FTDI-EEPROM "1" "July 12, 2020" |
| 6 |
.\" Please adjust this date whenever revising the manpage. |
| 7 |
.\" |
| 8 |
.\" Some roff macros, for reference: |
| 9 |
.\" .nh disable hyphenation |
| 10 |
.\" .hy enable hyphenation |
| 11 |
.\" .ad l left justify |
| 12 |
.\" .ad b justify to both left and right margins |
| 13 |
.\" .nf disable filling |
| 14 |
.\" .fi enable filling |
| 15 |
.\" .br insert line break |
| 16 |
.\" .sp <n> insert n+1 empty lines |
| 17 |
.\" for manpage-specific macros, see man(7) |
| 18 |
.SH NAME |
| 19 |
ftdi_eeprom \- Tool for reading/erasing/flashing FTDI USB chip eeproms |
| 20 |
|
| 21 |
.SH SYNOPSIS |
| 22 |
.B ftdi_eeprom |
| 23 |
.I [commands] config-file |
| 24 |
.SH DESCRIPTION |
| 25 |
.B ftdi_eeprom |
| 26 |
is a small tool for reading/erasing/flashing FTDI USB chip eeproms. It uses |
| 27 |
libftdi to access the chip, so you will need to have the required permissions |
| 28 |
on the device. |
| 29 |
|
| 30 |
The ftdi_sio module should not be loaded. You can prevent it to be automatically |
| 31 |
loaded by adding it to /etc/modprobe.d/blacklist. |
| 32 |
|
| 33 |
You have to unplug and replug your device to get the new values to be read. |
| 34 |
Otherwise, you will still get the old values. |
| 35 |
|
| 36 |
.SH COMMANDS |
| 37 |
.TP |
| 38 |
.B "\-\-device \fIdescription\fP" |
| 39 |
Specify device to open by \fIdescription\fP string. One of: |
| 40 |
.sp |
| 41 |
.nf |
| 42 |
d:<device node> |
| 43 |
i:<vendor>:<product> |
| 44 |
i:<vendor>:<product>:<index> |
| 45 |
s:<vendor>:<product>:<serial> |
| 46 |
.fi |
| 47 |
.sp |
| 48 |
.TP |
| 49 |
.B "\-\-read-eeprom" |
| 50 |
Read eeprom and write to \(hyfilename\(hy from config-file. |
| 51 |
.TP |
| 52 |
.B "\-\-build-eeprom" |
| 53 |
Build eeprom image. |
| 54 |
.TP |
| 55 |
.B "\-\-erase-eeprom" |
| 56 |
Erase eeprom. |
| 57 |
.TP |
| 58 |
.B "\-\-flash-eeprom" |
| 59 |
Flash eeprom. |
| 60 |
.TP |
| 61 |
.B "\-\-verbose" |
| 62 |
Print more information. |
| 63 |
|
| 64 |
.SH CONFIGURATION FILE |
| 65 |
.PP |
| 66 |
The configuration file contains a list of key-value |
| 67 |
pairs which will be used to flash an FTDI USB chip eeprom. |
| 68 |
Comments start with \fB#\fR. The beginning of such a |
| 69 |
file might look like the following: |
| 70 |
.PP |
| 71 |
.sp |
| 72 |
.RS |
| 73 |
.sp |
| 74 |
.nf |
| 75 |
vendor_id=0x0403 # Vendor ID |
| 76 |
product_id=0x6001 # Product ID |
| 77 |
|
| 78 |
max_power=0 # Max. power consumption: value * 2 mA. Use 0 if self_powered = true. |
| 79 |
|
| 80 |
########### |
| 81 |
# Strings # |
| 82 |
########### |
| 83 |
manufacturer="ACME Inc" # Manufacturer |
| 84 |
product="USB Serial Converter" # Product |
| 85 |
serial="08-15" # Serial |
| 86 |
.sp |
| 87 |
.fi |
| 88 |
.RE |
| 89 |
.sp |
| 90 |
.PP |
| 91 |
The example configuration file that could be found in |
| 92 |
\fI/usr/share/doc/ftdi-eeprom/\fR is quite well |
| 93 |
commented so you should be able to use it as a basis. |
| 94 |
The following keys are supported: |
| 95 |
.TP |
| 96 |
.B "vendor_id" |
| 97 |
Set the vendor ID of the device. This value could be entered in decimal or hexadecimal form, |
| 98 |
and should be in the range 0-65535 or 0x0000-0xffff, respectively. |
| 99 |
.TP |
| 100 |
.B "product_id" |
| 101 |
Set the product ID of the device. This value could be entered in decimal or hexadecimal form, |
| 102 |
and should be in the range 0-65535 or 0x0000-0xffff, respectively. |
| 103 |
.TP |
| 104 |
.B "max_power" |
| 105 |
Set the maximum current the device will use, in 2 mA unit. Use 0 if \fBself_powered\fR = true. |
| 106 |
.TP |
| 107 |
.B "manufacturer" |
| 108 |
Set the manufacturer string which normally holds the name of the manufacturer. |
| 109 |
.TP |
| 110 |
.B "product" |
| 111 |
Set the product string which normally holds the name of the product. |
| 112 |
.TP |
| 113 |
.B "serial" |
| 114 |
Set the serial string which normally holds the serial number of the product. |
| 115 |
.TP |
| 116 |
.B "self_powered" |
| 117 |
Specify if the device is self-powered or not. The value should be true or false. |
| 118 |
.TP |
| 119 |
.B "remote_wakeup" |
| 120 |
Specify if the device supports remote wake-ups. The value should be true or false. |
| 121 |
.TP |
| 122 |
.B "use_serial" |
| 123 |
If this value is set to true, the \fBserial\fR string will be used. Otherwise the |
| 124 |
default serial string will be used. |
| 125 |
.TP |
| 126 |
.B "BM_type_chip" |
| 127 |
This value have to be set to true if you are using a BM chip. |
| 128 |
.TP |
| 129 |
.B "in_is_isochronous" |
| 130 |
If set to true this option specify that the input endpoint is in isochronous mode. |
| 131 |
.TP |
| 132 |
.B "out_is_isochronous" |
| 133 |
If set to true this option specify that the output endpoint is in isochronous mode. |
| 134 |
.TP |
| 135 |
.B "suspend_pull_downs" |
| 136 |
If this value is set to true the pull downs are enabled during suspend for lower |
| 137 |
power consumption. |
| 138 |
.TP |
| 139 |
.B "change_usb_version" |
| 140 |
This value has to be set to true if you want to force the USB version |
| 141 |
using the \fBusb_version\fR key. Otherwise the default USB version will be used. |
| 142 |
.TP |
| 143 |
.B "usb_version" |
| 144 |
Set the USB version of the device. The \fBchange_usb_version\fR value has to be set to true. |
| 145 |
.TP |
| 146 |
.B "filename" |
| 147 |
Specify a filename if you want to dump the content of the eeprom into it. |
| 148 |
.SH AUTHOR |
| 149 |
ftdi_eeprom was written by Intra2net AG <[email protected]>. |
| 150 |
.br |
| 151 |
This manual page was written by Aurelien Jarno <[email protected]> for the Debian |
| 152 |
GNU/Linux system (but may be used by others). |
| 153 |
|