On 07/01/2011 10:32 AM, Xiangfu Liu wrote:
> you can compare the max_power with the 'lsusb', the 'lsusb' shows that the 
> max_power is '90', I trust the 'lsusb', so I guess there is something 
> wrong with './ftdi_eeprom --read-eeprom'
> 
> 
>> > 
>> > but yes indeed that if using "lsusb -d 20b7:0713 -v", the "iSerial"
>> > it shows:
>> > 
>> > iSerial                 0

Hi Adam

just found the problem and fix it. Please use the new main.c[1]
compile ftdi_eeprom again. then the flash_jtag.sh should works fine.

[1]http://www.milkymist.org/wiki/index.php?title=Build_the_libftdi-1.0_and_new_ftdi_eeprom#2._Build_the_ftdi_eeprom_tool



More info, 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;
    } 
~~~~
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode
Twitter: www.twitter.com/milkymistvj
Ideas? http://milkymist.uservoice.com

Reply via email to