Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun Aug 19, 2018 3:10 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 115 posts ]  Go to page 1 2 3 4 58 Next
Author Message
PostPosted: Tue May 08, 2007 8:41 pm 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
Took a torch to a kuro pro and a ls pro. Once the SOC was removed tracing the pins was a piece of cake.

CN3 is the JTAG connector. pins are as follows:
1 Vcc
2 nTRST
3 Ground
4 TDI
5 Ground
6 TMS
7 TDO
8 TCK
9 sRST
10 RTCK

_________________
My completely scratch built 832 push-pull tube amplifier with Padauk frame. It matches my custom mini-ITX machine.


Top
   
PostPosted: Tue May 08, 2007 8:43 pm 
Offline
Site Admin

Joined: Fri Aug 04, 2006 2:37 am
Posts: 1652
Location: United States of America
kuroguy wrote:
Took a torch to a kuro pro and a ls pro. Once the SOC was removed tracing the pins was a piece of cake.


Thanks so much kuroguy for doing this. :D

_________________
http://www.opifer.net


Top
   
PostPosted: Wed May 09, 2007 2:28 pm 
Offline
Developer

Joined: Wed Mar 21, 2007 7:03 am
Posts: 42
jtag> detect
IR length: 4
Chain length: 1
Device Id: 00000111100100100110000001000001
Unknown manufacturer!
chain.c(110) Part 0 without active instruction
chain.c(133) Part 0 without active instruction
chain.c(110) Part 0 without active instruction
jtag>

YAY!!!!


Top
   
PostPosted: Wed May 09, 2007 2:33 pm 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
Use the jtag10 or any wiggler compatible cable and connect TDI, TDO, TCK, TMS, Power, ground, and nTRST.

_________________
My completely scratch built 832 push-pull tube amplifier with Padauk frame. It matches my custom mini-ITX machine.


Top
   
PostPosted: Thu May 10, 2007 3:28 am 
Offline
Regular Member

Joined: Sat Nov 11, 2006 10:56 am
Posts: 714
I have a jtag cable that i have for umm cable boxes

its wiggler compatible i made it myself ages ago

it has tdi tdo tck tms vcc and ground

but no nTRST

will this not work?


Top
   
PostPosted: Thu May 10, 2007 3:46 am 
Offline
Developer

Joined: Wed Mar 21, 2007 7:03 am
Posts: 42
Mine is called Reset not Trst. Are you saying that you don't have any other wires then the ones you listed? If so then it will not work. Reset was required to get jtag tools to read.

But this is all just POC for the time being, we have not found a program to read or write yet.


Top
   
PostPosted: Thu May 10, 2007 4:28 am 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
nTRST = Test Reset

You might be able to get by without the reset wire if you pull nTRST high by connecting it to Vcc through a 1K resistor like I did on the LS2

_________________
My completely scratch built 832 push-pull tube amplifier with Padauk frame. It matches my custom mini-ITX machine.


Top
   
PostPosted: Thu May 10, 2007 2:34 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
cool!!

so my plan worked out ;)

good that i got that bricked Kuropro cheap via ebay in UK....

UBoot source for the LS Pro/LS Live/TeraLive(/TeraProv2??) can be downloaded here:
http://download.nas-central.org/arm ... 109.tar.gz

jonli447..you already compiled and flashed one to your LS Pro.
was compiling straight forward or were there any problems?

if you still have the binary, upload it for kuroguy please.


Top
   
PostPosted: Thu May 10, 2007 2:52 pm 
Offline
Site Admin

Joined: Fri Aug 04, 2006 2:37 am
Posts: 1652
Location: United States of America
mindbender wrote:
jonli447..you already compiled and flashed one to your LS Pro.
was compiling straight forward or were there any problems?


Compiling for the most part is straight forward. There is some paths that need adjusting in the u-boot source in order for it to successfully compile. I'll look for this more specifically, along with the binary.

_________________
http://www.opifer.net


Top
   
PostPosted: Thu May 10, 2007 2:59 pm 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
no need yet. The kuro pro from ebay is oficially dead. Still need to get some jtag software working, but I cannot test jtag software with the ls pro/kuro pro until I have a working box.

_________________
My completely scratch built 832 push-pull tube amplifier with Padauk frame. It matches my custom mini-ITX machine.


Top
   
PostPosted: Mon May 14, 2007 10:59 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
yeah, we know.

but it was worth to kill it + the bricked LS Pro you had ;)

now we need to verify which JTAG programming software works with the board...

a google search found me this possible candidates:

OpenSource:
http://openocd.berlios.de/web/

Commercial (and too expensive):
http://rowley.co.uk/
http://microcontrollershop.com/product_ ... cts_id=673

some more links:
http://hri.sourceforge.net/tools/jtag_f ... oc63218738

openocd looks very promising, here is the download-page:
http://www.yagarto.de/#download

the requirements say that a cable like this is needed:
http://www.olimex.com/dev/arm-jtag.html
so we just need one that it wiggler compatible. JTAG10 with the right pinout should be sufficient.


Top
   
PostPosted: Tue May 15, 2007 1:24 pm 
Offline
Total Newbie

Joined: Tue May 15, 2007 12:54 am
Posts: 4
Using a Jtag unit with only 6 pins available, -Vcc/TDI/TMS/TCK/TDO/Gnd-, I used Kuroguy's advice and installed a 1k resistor to the nTRST pin as described above.

Installed the Win version of OpenOCD.

Using http://wiki.dns323.info/hardware:jtag as a guide and a base for the config file, I can get some sort of info. using the dump_image command but continue getting warnings:
Code:
Warning: arm7_9_common.c:1727 arm7_9_read_memory(): target not halted


I have tried using some of the halt commands but cannot get the target 'halted'.

Has anyone managed to halt the target while using OpenOCD?
...or do I require another Jtag?


Top
   
PostPosted: Tue May 15, 2007 8:23 pm 
Offline
Developer

Joined: Wed Mar 21, 2007 7:03 am
Posts: 42
After a fashion and with a lot of help from a guy named Drath on the IRC. OpenOCD has produced this:

> dump_image lsptest.bin 0x00000000 0x00040000
dumped 262144 byte in 82s 715000us

8)


Top
   
PostPosted: Sat May 19, 2007 2:06 pm 
Offline
Total Newbie

Joined: Tue May 15, 2007 12:54 am
Posts: 4
Unbricked my LSP at last.

I had a unit that would not boot-up.

Used openocd to dump memory from 0xfffc0000 for 0x40000 bytes -that being the 256k Flash-
Code:
>dump_image flash.bin 0xfffc0000 0x40000

An hex 'compare' with 'u-boot.buffalo.updated' showed a 'FF' 'hole' in sector (27dec) starting at 0xfffdb000.
Actual 'hole' was 0x1bbba=0xfffdbbba for 0x446 bytes all were were 'ff's, which I assumed to be my boot-up problem.
It would be very interesting to establish how this came about.

Having messed about with drath's modified version of openocd -and, many thanks for his input on IRC-, I managed to repair my 'hole' by re-writing that part of the flash.

1> erased the sector number 27 (that's starting at 0xfffdb000 for 0x1000 bytes)
Code:
> flash probe 0
flash 'cfi' found at 0xfffc0000
> flash erase 0 27 27
erased sectors 27 through 27 on flash bank 0 in 0s 391000us

2> Copied the 0x1000 chunk of binary from 'u-boot.buffalo.updated' in 'LS-GL_FW_103-jtymod5-fixed' from offset 0x1b000 - 0x1bfff (that covered my strange block of 'ff's). Obviously you need to be using the same version of u-boot that you have installed on the unit.

3> Tranlated the binary into a series of 'write byte' commands that could be used with openocd's script command
Code:
where Var = DB000 to Var = DBFFF and Byte would be the byte for that location
mwb 0xFFFC5555 0xAA
mwb 0xFFFC2AAA 0x55
mwb 0xFFFC5555 0xA0
mwb 0xFFF<var> <byte>
for 4096 repetitions

ending with:
mwb 0xFFFC0000 0xF0

4> Ran the script with the script command from openocd and after about 15 min it had flashed that sector with the good binary (flashing the full 64 sectors won't be very fast!).

Now my new 'dump_image' and 'u-boot.buffalo.updated' compared exactly, with the exception of size obviously.

At first the unit didn't seem to have changed, but once I unplugged the Jtag and started the LSP all was fine and I've again got a working unit :)

Thanks to everyone here who contibuted to this Jtag project.


Top
   
PostPosted: Mon May 21, 2007 4:23 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
this sounds good :)

so reviving the LS Pro/LS Live actually works :)

please upload the modified version from openOCD somewhere so others can use it as well. ask an admin/mod for access to the uploadsection.

@mdfirefighter: have you revived your LSP as well?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 115 posts ]  Go to page 1 2 3 4 58 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 17 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:
cron
Powered by phpBB® Forum Software © phpBB Limited