Using openocd

xiangfu xiangfu at openmoko.org
Mon Sep 1 03:55:06 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Lynn Nguyen wrote:
> Sorry for such a late reply. but I tried using your way (also using ubuntu
> 8.04), but this is what I get:
> 
> Info:    openocd.c:82 main(): Open On-Chip Debugger (2006-08-01 12:00 CEST)
> Info:    configuration.c:50 configuration_output_handler(): Command
> ft2232_device_desc not found
> Info:    configuration.c:50 configuration_output_handler(): Command
> ft2232_layout not found
> Info:    configuration.c:50 configuration_output_handler(): Command
> ft2232_vid_pid not found
> Error:   jtag.c:1219 jtag_init(): No valid jtag interface found (ft2232)
> 
> (using your openocd.cfg.). I'm using the openmoko debug board v3, with
> gta01bv4. I'm connectin the dbug board to the laptop using the usb cord, and
> connecting the debug board to the openmoko with the flex cable. Except also
> I added the line ft2232_device_desc "Debug Board  for Neo1973" like it says
> on the wiki. http://wiki.openmoko.org/wiki/OpenOCD#openocd.cfg .
> 
you also need another usb cable connect NEo1973 with debug board(or PC)
for the power supply.
and make sure you battery is powerful.

see this:
http://www.openmobilefree.net/images/26082008(002).jpg
hope this help.
> the lsusb output for the debug board:
> Bus 001 Device 016: ID 1457:5118
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.00
>   bDeviceClass            0 (Defined at Interface level)
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0         8
>   idVendor           0x1457
>   idProduct          0x5118
>   bcdDevice            5.00
>   iManufacturer           1 OpenMoko
>   iProduct                2 Debug Board for Neo1973
>   iSerial                 0
>   bNumConfigurations      1
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength           55
>     bNumInterfaces          2
>     bConfigurationValue     1
>     iConfiguration          0
>     bmAttributes         0x80
>       (Bus Powered)
>     MaxPower              100mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass       255 Vendor Specific Class
>       bInterfaceSubClass    255 Vendor Specific Subclass
>       bInterfaceProtocol    255 Vendor Specific Protocol
>       iInterface              2 Debug Board for Neo1973
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x02  EP 2 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass       255 Vendor Specific Class
>       bInterfaceSubClass    255 Vendor Specific Subclass
>       bInterfaceProtocol    255 Vendor Specific Protocol
>       iInterface              2 Debug Board for Neo1973
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x83  EP 3 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x04  EP 4 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
> Device Status:     0x0000
>   (Bus Powered)
> 
> 
> On Wed, Aug 13, 2008 at 7:32 PM, xiangfu <xiangfu at openmoko.org> wrote:
> 
>> Lynn Nguyen wrote:
>>
>>> Hi, use I did use "sudo modprobe ftdi_sio vendor=0x1457 product=0x5118"
>>> but
>>> that doesn't work either.
>>>
>>> Tony-- what did you mean by puting the lib binary in the same folder? same
>>> folder as what? and which one is the lib binary?
>>>
>>> xiangfu, do you think you could tell me the steps you use to make
>>> everything
>>> work? Like where you got the binaries and everything? Thanks!
>>>
>> i use UBUNTU 8.04
>>
>> 1. sudo apt-get install openocd
>> 2. sudo apt-get install libftdi0
>> 3. download the openocd.cfg (attachment)
>>   i put it in ~/ (home directory) so every time i run "sudo openocd"  cd
>> this directory or you will get
>>   Info:    openocd.c:93 main(): Open On-Chip Debugger (2007-09-05 09:00
>> CEST)
>>   Error:   configuration.c:121 parse_config_file(): couldn't open config
>> file
>>
>> 4. if the openocd normal run then display something like:
>>  Info:    openocd.c:93 main(): Open On-Chip Debugger (2007-09-05 09:00
>> CEST)
>>  Warning: telnet_server.c:545 telnet_init(): no telnet port specified,
>> using default port 4444
>>
>> 5. open another terminal " telnet localhost 4444"  then we get a shell .
>>
>>
>>
>>
>> telnet port 4444
>> gdb_port 3333
>> interface ft2232
>> jtag_speed 8
>> ft2232_vid_pid 0x1457 0x5118
>> ft2232_layout "jtagkey"
>> reset_config trst_and_srst
>> jtag_device 4 0x1 0xf 0xe
>> daemon_startup attach
>> target arm920t little reset_run 0 arm920t
>> working_area 0 0x200000 0x4000 backup
>> run_and_halt_time 0 5000
>>
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBSLtLeRFuNemPXNFjAQIyyAf/QJWXSe44UzexQeog3Vjel/vj4WnfeIhK
D/9PqJPVUUABRxgcjCKsOC+yiOVec64qCcHAgvobGz1Nug9lTbtVABKT8uTrl4fl
hJgEG9jvgtVgO0r6sgoDSIm4o45pKkaBCVHTA+Y5atlU9NpbSn6lVd6g8GEYzpVI
glcUefcAE3jcNN14AmwuMV4Of6O4jGxwUDgtqfDk8DjzrKbzCTVJDozdH5WOh1JZ
4DWQBBLoGkqZCHhjbfc9QgyR0fl+PqdcMSsrVtydKsRZsRdkXEK15YkJAnU7miII
INTjPGjHrmbj82V0ZviOl9z9a2SfuzMRmMWPFWYiL6oReziHmU1otQ==
=Lbeg
-----END PGP SIGNATURE-----



More information about the openmoko-kernel mailing list