Hi
just found the problem: the code should be like:
eeprom->use_serial = cfg_getbool(cfg, "use_serial") == 0 ? 0 : USE_SERIAL_NUM;
from ftdi.c
~~~~
if (ftdi->type > TYPE_AM) /* use_serial not used in AM devices */
{
if (eeprom->use_serial == USE_SERIAL_NUM )
output[0x0A] |= USE_SERIAL_NUM;
else
output[0x0A] &= ~USE_SERIAL_NUM;
}
~~~~
On 06/25/2011 08:35 PM, Xiangfu Liu wrote:
> Hi
>
> I follow the [1] and [2] reflash my jtag/serial board[3],
>
> I am using a script[4], I set:
> use_serial=true
> serial=0624001
>
> after reflash, the 'lsusb' 'iSerial' always give '0'?
>
> how can I debug into this issue?
>
> thanks advance
>
>
> [1]http://www.milkymist.org/wiki/index.php?title=Build_the_libftdi-1.0_and_new_ftdi_eeprom
> [2]http://www.milkymist.org/wiki/index.php?title=Working_ftdi_eeprom
> [3]http://en.qi-hardware.com/wiki/Milkymist_JTAG-serial_daughterboard
> [4]
>
> FLASH_CONF_FILE=`mktemp`
> cat > ${FLASH_CONF_FILE}<<EOF
> vendor_id=0x20b7
> product_id=0x0713
> chip_type=2232H
> self_powered=false
> max_power=90
> remote_wakeup=false
> in_is_isochronous=false
> out_is_isochronous=false
> suspend_pull_downs=false
> change_usb_version=false
> usb_version=0
> manufacturer="Qi Hardware"
> product="Milkymist One JTAG/Serial"
> use_serial=true
> serial="$2"
> EOF
>
> more ${FLASH_CONF_FILE}
>
> ftdi_eeprom --erase-eeprom $1
> ftdi_eeprom --flash-eeprom $1 ${FLASH_CONF_FILE}
--
Best Regards
Xiangfu
-- Qi RSS feed, http://en.qi-hardware.com/feed/rss20.xml --
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|