DockStar JTAG

Original Pogoplug, v2 Pink/Gray E02, Series 4, DockStar, and GoFlex installation and device help here.

Re: DockStar JTAG

Postby Kragorn » Fri Aug 13, 2010 6:22 pm

I've bought an Universal JTAG cable ( http://www.tiaowiki.com/w/Universal_JTA ... _(Parallel) ). I hope I can make it to work but since I've no experience on that if I connect the TDI, TMS, TCK, TDO on that and plug it to the computer's parallel port, will that be enough or do I have to connect another cable?

I haven't received the adaptator yet.
Kragorn
 
Posts: 11
Joined: Wed Aug 11, 2010 4:35 pm

Re: DockStar JTAG

Postby bzboi » Wed Aug 18, 2010 7:29 pm

Does anyone have the BSDL file for the 88F6281?
bzboi
 
Posts: 55
Joined: Sun Jul 11, 2010 5:39 pm

Re: DockStar JTAG

Postby ygator » Wed Aug 18, 2010 10:11 pm

I found this http://jtag-bsdl.org/download.php, but there are no files for Marvell yet.
ygator
 
Posts: 77
Joined: Tue Aug 10, 2010 9:37 pm

Re: DockStar JTAG

Postby Kragorn » Mon Aug 23, 2010 8:46 pm

I guess I won't be able to recover the dockstar,
I've received the adapter and plugged the cables. When the dockstar isn't powered, I got TDO seems to be stuck to 1 which seems to be normal. But when I power it up I got TDO seems to be stuck at 0.

Maybe I've done something wrong and I need to do something to put it into JTAG mode ?
Kragorn
 
Posts: 11
Joined: Wed Aug 11, 2010 4:35 pm

Re: DockStar JTAG

Postby bzboi » Mon Aug 23, 2010 8:57 pm

The link in your previous post doesn't look complete. Can you repost the link?
NEVERMIND, I figured out it was supposed to be http://www.tiaowiki.com/w/Universal_JTAG_User_Manual_(Parallel)

Based solely on the text of your previous post, I think your JTAG programmer does not have TRST#. I think you have to populate R166 with a 0402 4.7kohm pull-up resistor if you don't have a TRST# line.

In UrJTAG, I am able to get the following response using a Xilinx Parallel Cable III and R166/RP1 populated.
http://www.pastie.org/1110834
bzboi
 
Posts: 55
Joined: Sun Jul 11, 2010 5:39 pm

Re: DockStar JTAG

Postby Kragorn » Tue Aug 24, 2010 6:06 am

Thank you for you response, I think there is a TRST in unbuffered mode in pin D5 and in buffered mode in Y5. Is n_TRST the same ? But in the dockstar JTAG pinouts it seems to have only a SRST ?

Code: Select all
TCK TMS TDI RST ?
 9  7 5 3 1
10 8 6 4 2
TDO SRST RX TX GND
Kragorn
 
Posts: 11
Joined: Wed Aug 11, 2010 4:35 pm

Re: DockStar JTAG

Postby bzboi » Tue Aug 24, 2010 12:47 pm

DockStar_JTAG.png
DockStar_JTAG.png (31.34 KiB) Viewed 2046 times

Your pin numbering is a little different, so I'm going to stick with the pin numbering from the pinout that Admin posted. PIN 2 is TRST. The chip has a weak pull-down on that pin, so if you don't have that lead connected and no external pull-up resistor, the JTAG interface will be held in reset. This is actually a protection mechanism to prevent unintended JTAG writes during operation. You should connect the unbuffered TRST output from your JTAG programmer to PIN 2.
JTAGpins.JPG
JTAGpins.JPG (47.43 KiB) Viewed 2041 times
bzboi
 
Posts: 55
Joined: Sun Jul 11, 2010 5:39 pm

Re: DockStar JTAG

Postby Kragorn » Tue Aug 24, 2010 1:46 pm

Thank you for your response.

I've connected all the cables, including SRST and TRST to my JTAG adapter. It's configured in buffered mode (wiggler clone). I've successfully identified the CPU using urJTAG and OpenOCD. I used OpenOCD as it contains some scripts for the Sheevaplug. But I can't write to the flash, same error as previously reported : target not halted. However after some trials it says it sucessfully write to the flash, but it doesn't work (I took the uboot.original.mtd0 from Jeff).

I tried to load various uboot.bin images to the memory using load_image and then resume (or resume 0x600000) but again nothings.

Does anyone have successfully recovered a bricked dockstar ?

EDIT : No !!! It booted after several trials. I built the uboot using Jeff's newer uboot instruction on mtd0 and typed load_image u-boot.bin and the resume 0x0. And I got the folling in the console
Code: Select all
U-Boot 2010.06-02130-g86cf2ae-dirty (Aug 24 2010 - 13:16:07)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB
NAND:  256 MiB
*** Warning - bad CRC or NAND, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1432436 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
4702627 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.32-5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1432372 Bytes = 1.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4702563 Bytes = 4.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...
[    0.907362] console [ttyS0] enabled
[    0.911438] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 25
6MiB 3,3V 8-bit)
[    0.920047] Scanning device for bad blocks
[    0.955009] Bad eraseblock 831 at 0x0000067e0000
[    0.962357] Bad eraseblock 904 at 0x000007100000
[    0.977898] Bad eraseblock 1198 at 0x0000095c0000
[    1.014087] Creating 3 MTD partitions on "orion_nand":
[    1.019261] 0x000000000000-0x000000100000 : "u-boot"
[    1.024816] 0x000000100000-0x000000500000 : "uImage"
[    1.030301] 0x000000500000-0x000010000000 : "root"
...
Checking root file system...fsck from util-linux-ng 2.17.2
/dev/sda1 was not cleanly unmounted, check forced.
[   17.9<0>[   17.965364] InWarning... fsck.ext2 for device /dev/sda1 exited wit
h signal 11.
fsck died with exit status 8
failed (code 8).
An automatic file system check (fsck) of the root filesystem failed. A manual fs
ck must be performed, then the system restarted. The fsck should be performed in
 maintenance mode with the root filesystem mounted in read-only mode. ...


But as you can see, I got a little problem with the filesystem... and now I try to do the same things again but it doesn't work anymore ! I had hope when I saw all the lines in the console.. Now I'm wondering why it doesn't work anymore...
Last edited by Kragorn on Tue Aug 24, 2010 3:45 pm, edited 1 time in total.
Kragorn
 
Posts: 11
Joined: Wed Aug 11, 2010 4:35 pm

Re: DockStar JTAG

Postby ygator » Tue Aug 24, 2010 3:43 pm

Kragorn wrote:However after some trials it says it sucessfully write to the flash, but it doesn't work (I took the uboot.original.mtd0 from Jeff).


If there is a command to read the flash maybe you can use it just to see if it really did write to the flash.
ygator
 
Posts: 77
Joined: Tue Aug 10, 2010 9:37 pm

Re: DockStar JTAG

Postby Kragorn » Wed Aug 25, 2010 7:53 am

I've still some troubles to unbrick my dockstar.

What I've done is build a new uboot using http://jeff.doozan.com/debian/uboot/build_uboot.htm (build replacement uboot). Then I got several u-boot* files.

Once I got those u-boot* files, I loaded them using the OpenOCD command "load_image u-boot" which loaded that elf file at 0x00600000. I then used resume 0x00600000. But nothings happenned.

Another try was to use "load_image u-boot.bin" which loaded it at 0x0 and then resume 0x0 but again it doesn't work. Maybe it's just the resume command which should take another value.

I've no ideas on what I can do. Plus now I've a little problem is that I can't probe the nand anymore it always says :
Code: Select all
 nand probe 0
unknown NAND flash device found, manufacturer id: 0x00 device id: 0x00
probing failed for NAND flash device
Kragorn
 
Posts: 11
Joined: Wed Aug 11, 2010 4:35 pm

PreviousNext

Return to Pogoplug v1/v2/v4, DockStar, GoFlex

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest