hi mfd,
I have as soon as acquired ARM-USB-TINY and use ubuntu, I have executed the following steps:
1) apt-get install libftdi-dev
2) apt-get install libc6
3) apt-get install libftdi0
4) apt-get install libusb-0.1-4
5) svn checkout svn://svn.berlios.de/openocd/trunk
6) ./bootstrap
7) ./configure --enable-ft2232_libftdi
8) make && make install
and used the following configuration wnr854t.cfg:
the connector hardware 20-pin TINY 10-pin WND854T is following:
# daemon config
telnet_port 4444
gdb_port 3333
daemon_startup attach
#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG TINY"
ft2232_layout jtagkey
ft2232_vid_pid 0x15ba 0x0004
jtag_speed 2
#use combined on interfaces or targets that can't set TRST/SRST separately
#reset_config trst_and_srst srst_pulls_trst
reset_config trst_only
# use combined on interfaces or targets that can't set TRST/SRST separately
#reset_config srst_only
#reset_config trst_and_srst
#reset_config trst_only
# jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
#jtag_nsrst_delay 500
#jtag_ntrst_delay 500
# target configuration
# target <type> <endianess> <reset_mode>
# if chain_pos is not zero it seg faults
#target arm926ejs little reset_init 0
target feroceon little reset_init 0
run_and_halt_time 0 30
#working_area 0 0xc8010000 0x400 nobackup
# flash configuration
# flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
flash bank cfi 0xff800000 0xA000 1 1 jedec_probe
the connector hardware 20-pin TINY <------> 10-pin WND854T is following:
20-pin TINY <------> 10-pin WND854T (Jtag)
1-VREF <-------> 1
2 <-------> 2
3-TRST_N <-------> 9
4-GND <-------> 3
5-TDI <-------> 4
6-GND <-------> 5
7-TMS <-------> 6
9-TCK <-------> 8
13-TDO <-------> 7
to premise that u-boot it is damaged, executing openocd I receive the following messages:
root@massimo-desktop:/opt/openocd/trunk/src# openocd -d3 -f wnr854t.cfg
Open On-Chip Debugger 1.0 (2008-04-26-22:37) svn:623
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
Debug: 5 0 command.c:386 command_run_line(): script wnr854t.cfg
Debug: 6 0 configuration.c:87 open_file_from_path(): opened wnr854t.cfg
Debug: 7 1 command.c:386 command_run_line(): telnet_port 4444
Debug: 8 1 command.c:386 command_run_line(): gdb_port 3333
Debug: 9 1 command.c:386 command_run_line(): daemon_startup attach
Info: 10 1 options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-04-26-22:37) svn:623
Debug: 11 1 command.c:386 command_run_line(): interface ft2232
Debug: 12 1 command.c:386 command_run_line(): ft2232_device_desc "Olimex OpenOCD JTAG TINY"
Debug: 13 1 command.c:386 command_run_line(): ft2232_layout jtagkey
Debug: 14 1 command.c:386 command_run_line(): ft2232_vid_pid 0x15ba 0x0004
Debug: 15 1 command.c:386 command_run_line(): jtag_speed 2
Debug: 16 1 jtag.c:1843 handle_jtag_speed_command(): handle jtag speed
Info: 17 1 options.c:50 configuration_output_handler(): jtag_speed: 2, 2
Debug: 18 1 command.c:386 command_run_line(): reset_config trst_only
Debug: 19 1 command.c:386 command_run_line(): jtag_device 4 0x1 0xf 0xe
Debug: 20 1 command.c:386 command_run_line(): target feroceon little reset_init 0
Debug: 21 1 feroceon.c:600 feroceon_target_command(): chain_pos: 0, variant: (null)
Debug: 22 1 command.c:386 command_run_line(): run_and_halt_time 0 30
Debug: 23 1 command.c:386 command_run_line(): flash bank cfi 0xff800000 0xA000 1 1 jedec_probe
Debug: 24 1 command.c:386 command_run_line(): init
Debug: 25 2 openocd.c:102 handle_init_command(): target init complete
Debug: 26 2 ft2232.c:1455 ft2232_init_libftdi(): 'ft2232' interface using libftdi with 'jtagkey' layout (15ba:0004)
Debug: 27 38 ft2232.c:1497 ft2232_init_libftdi(): current latency timer: 2
Debug: 28 40 ft2232.c:1683 jtagkey_init(): 80 08 1b
Debug: 29 42 ft2232.c:1741 jtagkey_init(): 82 09 0f
Debug: 30 44 ft2232.c:252 ft2232_speed(): 86 02 00
Debug: 31 48 openocd.c:109 handle_init_command(): jtag interface init complete
Debug: 32 48 jtag.c:1526 jtag_init_inner(): Init JTAG chain
Debug: 33 48 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 34 48 jtag.c:1282 jtag_reset_callback(): -
Debug: 35 50 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 36 50 jtag.c:1282 jtag_reset_callback(): -
Error: 37 54 jtag.c:1338 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: 38 54 jtag.c:1545 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Debug: 39 54 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 40 55 jtag.c:1282 jtag_reset_callback(): -
Error: 41 57 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 42 95 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 43 95 jtag.c:1282 jtag_reset_callback(): -
Error: 44 100 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 45 114 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 46 114 jtag.c:1282 jtag_reset_callback(): -
Error: 47 134 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 48 148 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 49 148 jtag.c:1282 jtag_reset_callback(): -
Error: 50 170 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 51 188 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 52 188 jtag.c:1282 jtag_reset_callback(): -
Error: 53 205 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 54 218 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 55 218 jtag.c:1282 jtag_reset_callback(): -
Error: 56 237 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: 57 237 jtag.c:1554 jtag_init_inner(): Could not validate JTAG chain, exit
Debug: 58 237 jtag.c:1570 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / tms
Debug: 59 237 jtag.c:989 jtag_add_reset(): SRST line released
Debug: 60 237 jtag.c:1008 jtag_add_reset(): TRST line asserted
Debug: 61 237 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 62 237 jtag.c:1282 jtag_reset_callback(): -
Debug: 63 237 jtag.c:989 jtag_add_reset(): SRST line released
Debug: 64 237 ft2232.c:958 jtagkey_reset(): trst: 1, srst: 0, high_output: 0x08, high_direction: 0x0f
Debug: 65 237 ft2232.c:958 jtagkey_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f
Debug: 66 238 jtag.c:1526 jtag_init_inner(): Init JTAG chain
Debug: 67 238 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 68 238 jtag.c:1282 jtag_reset_callback(): -
Debug: 69 240 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 70 240 jtag.c:1282 jtag_reset_callback(): -
Error: 71 244 jtag.c:1338 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: 72 244 jtag.c:1545 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Debug: 73 244 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 74 244 jtag.c:1282 jtag_reset_callback(): -
Error: 75 246 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 76 260 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 77 260 jtag.c:1282 jtag_reset_callback(): -
Error: 78 283 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 79 298 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 80 298 jtag.c:1282 jtag_reset_callback(): -
Error: 81 316 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 82 329 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 83 329 jtag.c:1282 jtag_reset_callback(): -
Error: 84 346 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 85 358 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 86 358 jtag.c:1282 jtag_reset_callback(): -
Error: 87 362 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 88 375 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 89 375 jtag.c:1282 jtag_reset_callback(): -
Error: 90 391 jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: 91 391 jtag.c:1554 jtag_init_inner(): Could not validate JTAG chain, exit
Debug: 92 391 openocd.c:126 handle_init_command(): flash init complete
Debug: 93 391 openocd.c:130 handle_init_command(): NAND init complete
Debug: 94 391 openocd.c:134 handle_init_command(): pld init complete
Debug: 95 391 gdb_server.c:2030 gdb_init(): gdb service for target feroceon at port 3333
Info: 96 4960 server.c:78 add_connection(): accepting 'telnet' connection from 0
Debug: 97 8029 command.c:386 command_run_line(): halt
Debug: 98 8030 target.c:1785 handle_halt_command(): -
Error: 99 8030 target.c:272 target_halt(): Target not examined yet
Debug: 100 8030 command.c:343 find_and_run_command(): Command failed with error code -4
Debug: 101 11251 command.c:386 command_run_line(): poll
User: 102 11251 target.c:936 target_arch_state(): target state: unknown
Debug: 103 18402 command.c:386 command_run_line(): soft_reset_halt
User: 104 18402 target.c:1800 handle_soft_reset_halt_command(): requesting target halt and executing a soft reset
Error: 105 18402 target.c:516 target_soft_reset_halt_imp(): Target not examined yet
mfd, you can help to find the solution me in way to restore u-boot in my device?
tanks you
the only information that I can give in reference to your problem are these, made when it worked u-boot:
0
### JFFS2 loading 'uImage' to 0x400000
Scanning JFFS2 FS: .. done.
### JFFS2 load complete: 900120 bytes loaded to 0x400000
## Booting image at 00400000 ...
Image Name: Linux-2.4.27-vrs1
Created: 2006-12-11 5:20:50 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 900056 Bytes = 879 kB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux.............................................................
. done, booting the kernel.
ZLinux version 2.4.27-vrs1 (joshua@localhost.localdomain) (gcc version 3.4.4 (re
lease) (CodeSourcery ARM 2005q3-1)) #20 Mon Dec 11 13:19:42 CST 2006
CPU: ARM926EJ-Sid(wb) revision 0
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 166000000, Tclk = 166000000
- Warning - This LSP release was tested only with U-Boot release 1.7.3
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,115200 root=/dev/
192.168.1.101:::DB88FXX81:eth0:none
gppMask = [0x130]
Calibrating delay loop... 331.77 BogoMIPS
Memory: 32MB 0MB 0MB 0MB = 32MB total
Memory: 30292KB available (1681K code, 326K data, 72K init)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
CPU: Testing write b
POSIX conformance testing by UNIFIX
init hw started.
CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 32MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size 1MB
PCI0_MEM ....base e8000000, size 128MB
PCI0_IO ....base f2100000, size 1MB
INTER_REGS ....base f1000000, size 1MB
DEVICE_CS0 ....no such
DEVICE_CS1 ....no such
DEVICE_CS2 ....no such
DEV_BOOCS ....base f4000000, size 16MB
PCI: bus0: Fast back to back
HW already initialized.
PCI: bus1: Fast back to back transfers enabled
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
bankwidth 2, base f4000000, size 1000000
Marvell Development Board (LSP Version 1.0.4)-- RD-88F5181L-VOIP-GE
Detected Tclk 166000000 and SysClk 166000000
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communicati
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0xf1012000 (irq = 3) is a 16550A
Marvell Gigabit Ethernet Driver 'egiga':
o Ethernet descriptors in DRAM
o DRAM SW cache-coherency
o Loading network interface
o Using switch header mode
qdInit
BoardID = eqdStart: CPU port 0x3
----set PPU En
Switch driver initialized
Can't get netConfig: Use default
UNM is not initialized yet
2 VLANs created: CpuPortMask = 0xa7
vid=0: DISABLED(0), portMask=0x750, portNum=5
vid=1: VLAN_1, portMask=0x04, portNum=1
vid=2: VLAN_2, portMask=0xa3, portNum=4
vid=12: ISOLATED(12), portMask=0x00, portNum=0
Port - Vlan
0 - VLAN_2
1 - VLAN_2
2 - VLAN_1
3 - VLAN_ALL
4 - DISABLED(0)
5 - VLAN_2
6 - DISABLED(0)
7 - VLAN_2
load virtual interface vid = 1
register if with name
Init the hal
: Ilegal MTU value 1500, rounding MTU to: 1506
if eth0 registered
load virtual interface vid = 2
register if with name
if eth1 registered
PPP generic driver version 2.4.2
physmap flash device: 1000000 at f4000000
cfi_cmdset_0001: Erase suspend on write enabled
Using buffer write method
Using physmap partition definition
Creating 6 MTD partitions on "phys_mapped_flash":
0x00000000-0x00600000 : "root"
0x00600000-0x00620000 : "nvram"
0x00620000-0x00640000 : "nvram default"
0x00640000-0x00660000 : "POT"
0x00660000-0x00680000 : "Traffic Meter"
0x00700000-0x00800000 : "uboot"
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (8192 buckets, 65536 max) - 348 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_time loading
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
Fast Floating Point Emulator V0.94M by Peter Teichmann.
cramfs: wrong magic
jffs2_scan_inode_node(): Data CRC failed on node at 0x0037bd70: Read 0x764044df,
calculated 0x00e21be9
VFS: Mounted root (jffs2 filesystem).
Mounted devfs on /dev
Freeing init memory: 72K
8Z
BusyBox v1.1.0 (2006.12.07-07:38+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
/bin/sh: can't access tty; job control turned off
/ #
Marvell>> tftpboot 00000000 file_image.img
Filename 'file_image.img'.
Load address: 0x0
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################################################
done
Bytes transferred = 6291476 (600014 hex)
Marvell>>
Marvell>> bootm 00000000
## Booting image at 00000000 ...
Bad Magic Number
Marvell>>
Marvell>> flinfo
Bank # 1: INTEL 28F640J3A (64 Mbit)
Size: 8 MB,Bus Width: 2, device Width: 2.
Flash base: 0xff800000,Number of Sectors: 64 Type: REGULAR.
Sector Start Addresses:
00000000 00020000 00040000 00060000 00080000
000a0000 000c0000 000e0000 00100000 00120000
00140000 00160000 00180000 001a0000 001c0000
001e0000 00200000 00220000 00240000 00260000
00280000 002a0000 002c0000 002e0000 00300000
00320000 00340000 00360000 00380000 003a0000
003c0000 003e0000 00400000 00420000 00440000
00460000 00480000 004a0000 004c0000 004e0000
00500000 00520000 00540000 00560000 00580000
005a0000 005c0000 005e0000 00600000 00620000
00640000 00660000 00680000 006a0000 006c0000
006e0000 00700000 00720000 00740000 00760000 (RO)
00780000 (RO) 007a0000 (RO) 007c0000 (RO) 007e0000 (RO)
Bank # 2: missing or unknown FLASH type
Marvell>>
(Last edited by omissam1972 on 27 Apr 2008, 11:06)