Hi Everyone.
OK I know that this list should be for those that have purchased JTAGs from SparkFun (which I have done in the past) but I am stuck with a issue I have spent several days on and I can’t see the tree’s from the forest any more so; I need some outside guidance please.
Host Setup:
64bit AMD system + Ubuntu 10.10 + latest upgrades. Running Open On-Chip Debugger 0.4.0 (2010-10-08-15:44) and
GNU gdb (GDB) 7.2-ubuntu on Linux 2.6.35-25-generic #44-Ubuntu SMP.
Target Setup:
Mini2440 with 64MB ram. I have been able to install U-Boot by using supervivi so that I can test and download Kernel & Qt4 applications under development.
JTAG Tool:
OpenJTAG v3.1 from http://www.100ask.net. JTAG connectivity plus a secondary serial line that normally connects to the Target primary SIO. In this case it is connected to the Target DB9 serial terminal line.
Running OpenOCD with the following command string:
**openocd -f $TLOC/board/mini2440.cfg -f $TLOC/interface/neodb.cfg -f $TLOC/target/samsung.S3C2440.cfg --command init**where exported $TLOC=/usr/share/openocd/scripts/.
On running the above command I get the following screen output.
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
jtag_nsrst_delay: 100
jtag_ntrst_delay: 100
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
12000 kHz
force hard breakpoints
TargetName Type Endian TapName State
0* s3c2440.cpu arm920t little s3c2440.cpu unknown
Error: No valid NAND flash driver found (0)
Available NAND flash controller drivers:
nonce
davinci
lpc3180
orion
s3c2410
s3c2412
s3c2440
s3c2443
s3c6400
imx31
at91sam9
jtag_nsrst_delay: 100
jtag_ntrst_delay: 100
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
Error: JTAG interface has to be specified, see “interface” command
Command handler execution failed
So indications are that I have Two Problems. A> The NAND Flash Controller Type and B> The JTAG Interface undefined
============
A> The NAND Flash Controller Type Problem: Firstly, I don’t know how to address the NAND Flash Controller Type, and I would be most apprciative if anyone can give assistance here. It doesn’t appear that there is any NAND controller onboard, rather the NAND is handled by the S3c2440 itself. This could be incorrect though.
B> The JTAG Interface undefined: Now the JTAG interface was supposedly set accordingly to the script $TLOC/neodb.cfg containing the following:
Openmoko USB JTAG/RS232 adapter
http://wiki.openmoko.org/wiki/Debug_Board_v3
interface ft2232
ft2232_device_desc “Debug Board for Neo1973”
ft2232_layout jtagkey
ft2232_vid_pid 0x1457 0x5118
If you look at the list of USB devices on the system (below) you see that the applicable device is indeed available and ready, awaiting usage.
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 008: ID 1457:5118 First International Computer, Inc. OpenMoko Neo1973 Debug board (V2+)
Bus 002 Device 007: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
And according to the host syslog, the fti serial port is configured as /dev/ttyUSB0
Jan 31 12:33:06 brushtail kernel: [ 9485.022476] hub 2-2:1.0: USB hub found
Jan 31 12:33:06 brushtail kernel: [ 9485.022772] hub 2-2:1.0: 4 ports detected
Jan 31 12:33:07 brushtail kernel: [ 9485.300628] usb 2-2.4: new full speed USB device using ehci_hcd and address 8
Jan 31 12:33:07 brushtail kernel: [ 9485.429729] usb 2-2.4: Ignoring serial port reserved for JTAG
Jan 31 12:33:07 brushtail kernel: [ 9485.432229] ftdi_sio 2-2.4:1.1: FTDI USB Serial Device converter detected
Jan 31 12:33:07 brushtail kernel: [ 9485.432293] usb 2-2.4: Detected FT2232C
Jan 31 12:33:07 brushtail kernel: [ 9485.432298] usb 2-2.4: Number of endpoints 2
Jan 31 12:33:07 brushtail kernel: [ 9485.432304] usb 2-2.4: Endpoint 1 MaxPacketSize 64
Jan 31 12:33:07 brushtail kernel: [ 9485.432308] usb 2-2.4: Endpoint 2 MaxPacketSize 64
Jan 31 12:33:07 brushtail kernel: [ 9485.432313] usb 2-2.4: Setting MaxPacketSize 64
Jan 31 12:33:07 brushtail kernel: [ 9485.432566] usb 2-2.4: FTDI USB Serial Device converter now attached to ttyUSB0
Jan 31 13:00:27 brushtail kernel: [11125.596552] 3w-9xxx: scsi0: AEN: INFO (0x04:0x0029): Verify started:unit=0.
The /dev/ttyUSB0 is connecting to the serial device as I can see if I download a mass of text the applicable LED flashes.
i.e.: dmesg >/dev/ttyUSB0
If anyone with OpenOCD with Mini2440 ARM system experience could kindly assist please.
Thanks.