Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Apr 20, 2018 2:02 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 115 posts ]  Go to page Previous 14 5 6 7 8
Author Message
PostPosted: Sat May 23, 2009 8:30 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Post your .cfg file ... it mentions that it doesn't like something in line 29 of that file... maybe you can compare your config file to the one posted in our LSPro JTAG article...

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Sat May 23, 2009 9:44 am 
Offline
Newbie

Joined: Tue Apr 03, 2007 3:42 pm
Posts: 36
Location: Ireland
I am using the cfg from LS-Pro Jtag article that ye guys posted, as below. It actually fails also if I do not remove the 4th line daemon_startup_attach. so I tried it without that line and it fails on the target feroceon line.

# daemon config
telnet_port 4444
gdb_port 3333

# interface
jtag_speed 0
interface ft2232
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15ba 0x0004
# Or for the Amontec JTAGkey
#ft2232_layout "jtagkey"
#ft2232_vid_pid 0x0403 0xcff8

# use combined on interfaces or targets that can't set TRST/SRST separately
reset_config srst_only
#reset_config trst_and_srst

# 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 0xfffc0000 0x00040000 1 1 0 jedec_probe


Top
   
PostPosted: Sat May 23, 2009 5:26 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Have you looked at the latest documentation for OOCD? The format/details for the cfg may have changed...

That .cfg listed was current at the time I wrote/posted the article, but OOCD may have changed over time ... I'm still using the version I started w/.

You could look at the docs at the OOCD site, at their maillist, or at the Sparkfun forum.

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Sun Jun 07, 2009 10:30 am 
Offline
Newbie

Joined: Tue Apr 03, 2007 3:42 pm
Posts: 36
Location: Ireland
I have openocd running somewhat but I am getting the scan error posted below. I think my header is soldered ok but possibly is the problem? I can connect via telnet localhost but halt obviously will not work,I get target not examined yet error.

Open On-Chip Debugger 1.0 (2009-05-23-20:40) svn:639
$URL: http://svn.berlios.de/svnroot/repos/ope ... /openocd.c $
Info: options.c:50 configuration_output_handler(): jtag_speed: 0, 0
Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2009-05-23-20:40) svn:639
Error: jtag.c:1338 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: jtag.c:1543 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1552 jtag_init_inner(): Could not validate JTAG chain, exit
Error: jtag.c:1338 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: jtag.c:1543 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1552 jtag_init_inner(): Could not validate JTAG chain, exit
Error: jtag.c:1338 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: jtag.c:1543 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1552 jtag_init_inner(): Could not validate JTAG chain, exit

#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG TINY"
ft2232_layout olimex-jtag
ft2232_vid_pid 0x15BA 0x0004
jtag_speed 0

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst separate

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

#target configuration
daemon_startup reset

#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
#target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
target feroceon little reset_init 0
run_and_halt_time 0 30

#target_script 0 reset oocd_flash2138.script
working_area 0 0x40000000 0x40000 nobackup

#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 12000 calc_checksum

# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.ph ... p+Debugger


Top
   
PostPosted: Wed Mar 03, 2010 11:56 am 
Offline
Newbie
User avatar

Joined: Sun Dec 14, 2008 4:59 am
Posts: 10
Hi davy_gravy!

long time ago i updated my hs-dhgl with your help up to lenny.
now, after some playing with the device i have brick it.

:-(

i have tried to flash the boot loader with openocd and my jtagkey, but all the different descriptions confused me up.

is there a more actual one?

I have tried google and the forum search but cant find somthing that meets openocd > 0.5.0*

thx

Dieter


Top
   
PostPosted: Fri Mar 05, 2010 1:35 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
This is the one I use:

http://buffalo.nas-central.org/index.ph ... for_LS_Pro

and


http://buffalo.nas-central.org/wiki/JTA ... for_LS-Pro

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Mon Feb 20, 2012 10:34 am 
Offline
Newbie

Joined: Wed Feb 15, 2012 11:53 pm
Posts: 7
Hi there,
i have a partially bricked LSPro V2. It is in "TFTP-Boot mode" and it does 6 red flashes because die Harddisk does not spin up.
I can load the TFTP-Boot and then LSUpdater sees the Unit and tries to update. But because of the disk not spinned up, it fails.
The Hardware seems to be ok. i had to fix the PowerSupply and it works correct.

So reflashing with JTAG is the last chance for me cause i think that the BootSoftware seems to be a little faulty, thus not sending
a spinup signal to the disk.

I'd like to use a selfmade parallel port wiggler clone, cause buying a Olimex or other USB-JTAG only for this one time usage is not an option.
Can someone please send me a hint, which of those many Wiggler-Clone-Schematics works for the LSPro V2?

Thanks a lot!

Carsten

_________________
A programmer is a device that converts caffeine into code... ;-)


Top
   
PostPosted: Mon Feb 20, 2012 2:45 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
It is a long time ago, since I ran an old LS Pro, but if I remember correctly,
the disk spun up immediately when switching the box from off to on (read:
before the firmware gets called).
Did you test the disk at a PC? If not, you should do that. If yes, I fear the
power supply is still not working.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
PostPosted: Sun May 27, 2012 7:18 am 
Offline
Newbie

Joined: Mon Sep 13, 2010 2:13 pm
Posts: 5
why do you guys use jtag for debricking? I think serial cable is much easier to make (from cell phone data cable e.g. ca-42) and use. I have restored my LSGL pro a lot of times using serial cable. :)


Top
   
PostPosted: Thu Sep 14, 2017 12:13 am 
Offline
Newbie

Joined: Tue Apr 03, 2007 3:42 pm
Posts: 36
Location: Ireland
Just noticed my bricked LS-PRO V1 on the shelf lately, so decided to give it a go again to revive. I got it working again which was great. I used an Olimex USB-TINY with OpenOCD 0.10.0-rc2 . There are a few differences betwwen the lastest OpenOCD and the wiki, well to me anyway lol. There are a few different commands use you will see the my outputs below. I found a recent .cfg for feroceon here tks khelben https://forum.openwrt.org/viewtopic.php?id=13244 , which I edited for the LS-Pro V1worked for me anyway. Alot of the .cfg could be deleted as its for the netgear modem, but worked for me anyway here.Try carefully briefly shorting RTCK and nSRST as per the wiki, then the soft_reset_halt then reset, halt and reset init.

LS-Pro V1 cfg
source /usr/local/share/openocd/scripts/interface/ftdi/olimex-jtag-tiny.cfg

set CPUTAPID 0x07926041
source [find ../scripts/target/feroceon.cfg]

$_TARGETNAME configure -work-area-phys 0xc8010000 -work-area-size 0x400 -work-area-backup 0

adapter_khz 500

arm7_9 dcc_downloads enable
arm7_9 fast_memory_access enable

set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0xfffc0000 0x00040000 1 1 $_TARGETNAME jedec_probe

$_TARGETNAME configure -event reset-init {
# MPP
mww 0xF1010000 0x55000003
mww 0xF1010004 0x11110010
mww 0xF1010050 0x00001111
mww 0xF1010008 0x00000000

# GPP
mww 0xF1010104 0xFFFF0330

# SDRAM
mww 0xF1001480 0x00000001

# PCI ARBITER
mww 0xF1031d00 0x80000030

flash probe 0
}

#working_area 0 0xc8010000 0x400 nobackup




OpenOCD output
Open On-Chip Debugger 0.10.0-rc2 (2017-09-11-20:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
adapter_nsrst_delay: 200
jtag_ntrst_delay: 200
adapter speed: 500 kHz
dcc downloads are enabled
fast memory access is enabled
Info : clock speed 500 kHz
Info : JTAG tap: feroceon.cpu tap/device found: 0x07926041 (mfg: 0x020 (STMicroelectronics), part: 0x7926, ver: 0x0)
Info : Embedded ICE version 0
Info : feroceon.cpu: hardware has 1 breakpoint/watchpoint unit
Info : accepting 'telnet' connection on tcp/4444
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted

requesting target halt and executing a soft reset
Error: Failed to halt CPU after 1 sec
Info : Halt timed out, wake up GDB.
Info : JTAG tap: feroceon.cpu tap/device found: 0x07926041 (mfg: 0x020 (STMicroelectronics), part: 0x7926, ver: 0x0)
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted

Info : JTAG tap: feroceon.cpu tap/device found: 0x07926041 (mfg: 0x020 (STMicroelectronics), part: 0x7926, ver: 0x0)
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
Info : Flash Manufacturer/Device: 0x00bf 0x00d6
flash 'cfi' found at 0xfffc0000
Warn : protect: cfi primary command set 2 unsupported
cleared protection for sectors 0 through 63 on flash bank 0
erased sectors 0 through 63 on flash bank 0 in 4.069688s
auto erase enabled
auto unlock enabled
Warn : protect: cfi primary command set 2 unsupported
wrote 262144 bytes from file u-boot_LSProV1-stock.bin in 59.515163s (4.301 KiB/s)
dumped 262144 bytes in 18.528305s (13.817 KiB/s)



Telnet Output
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> halt
Halt timed out, wake up GDB.
timed out while waiting for target halted

> soft_reset_halt
requesting target halt and executing a soft reset
Failed to halt CPU after 1 sec
Halt timed out, wake up GDB.
> reset
JTAG tap: feroceon.cpu tap/device found: 0x07926041 (mfg: 0x020 (STMicroelectronics), part: 0x7926, ver: 0x0)
> halt
Halt timed out, wake up GDB.
timed out while waiting for target halted

> reset init
JTAG tap: feroceon.cpu tap/device found: 0x07926041 (mfg: 0x020 (STMicroelectronics), part: 0x7926, ver: 0x0)
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
Flash Manufacturer/Device: 0x00bf 0x00d6
flash 'cfi' found at 0xfffc0000
> flash protect 0 0 63 off
protect: cfi primary command set 2 unsupported
cleared protection for sectors 0 through 63 on flash bank 0
> flash erase_sector 0 0 63
erased sectors 0 through 63 on flash bank 0 in 4.069688s
> flash write_image erase unlock u-boot_LSProV1-stock.bin 0xfffc0000
auto erase enabled
auto unlock enabled
protect: cfi primary command set 2 unsupported
wrote 262144 bytes from file u-boot_LSProV1-stock.bin in 59.515163s (4.301 KiB/s)
> dump_image currentcontents.bin 0xfffc0000 0x40000


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 115 posts ]  Go to page Previous 14 5 6 7 8

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited