• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Hardware and U-Boot firmware / Hardware / Re: Bricked my Sheevaplug, Unbricked & upgraded at once -- HOWTO on: November 18, 2010, 06:54:50 PM
It worked for me the first time around.  I had been pulling my hair out trying to get openocd to correctly connect to my plug.  I had tried everything you had in this post except step 15.  This was the first time anyone said anything different than "download and install the drivers".

After I did step 15, everything just seemed to fall into place.

Now I just have to do it two more times (re-screwed up the plug I had been working on (bad uboot.bin) and I have another bricked plug).

After the initial "resurrection" I'm still occasionally getting:

Code:
Info : clock speed 2000 kHz
Info : JTAG tap: feroceon.cpu tap/device found: 0xfc0000e3 (mfg: 0x071, part: 0xc000, ver: 0xf)
Warn : JTAG tap: feroceon.cpu       UNEXPECTED: 0xfc0000e3 (mfg: 0x071, part: 0xc000, ver: 0xf)
Error: JTAG tap: feroceon.cpu  expected 1 of 1: 0x20a023d3 (mfg: 0x1e9, part: 0x0a02, ver: 0x2)
Warn : Unexpected idcode after end of chain: 32 0x00000007
Warn : Unexpected idcode after end of chain: 64 0x0000007f
Warn : Unexpected idcode after end of chain: 96 0x0000007f
Warn : Unexpected idcode after end of chain: 128 0x0000007f
Warn : Unexpected idcode after end of chain: 160 0x0000007f
Warn : Unexpected idcode after end of chain: 192 0x0000007f
Warn : Unexpected idcode after end of chain: 224 0x0000007f
Warn : Unexpected idcode after end of chain: 256 0x0000007f
Warn : Unexpected idcode after end of chain: 288 0x0000007f
Warn : Unexpected idcode after end of chain: 320 0x0000007f
Warn : Unexpected idcode after end of chain: 352 0x0000007f
Warn : Unexpected idcode after end of chain: 384 0x0000007f
Warn : Unexpected idcode after end of chain: 416 0x0000007f
Warn : Unexpected idcode after end of chain: 448 0x0000007f
Warn : Unexpected idcode after end of chain: 480 0x0000007f
Warn : Unexpected idcode after end of chain: 512 0x0000007f
Warn : Unexpected idcode after end of chain: 544 0x0000007f
Warn : Unexpected idcode after end of chain: 576 0x0000007f
Warn : Unexpected idcode after end of chain: 608 0x0000007f
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Error: Trying to use configured scan chain anyway...
Warn : Bypassing JTAG setup events due to errors
Info : Embedded ICE version 0
Info : feroceon.cpu: hardware has 1 breakpoint/watchpoint unit
Error: unexpected Feroceon EICE version signature

but I'm going to keep at it.  I got it once (with help from your post) and I'll get it again!  Smiley

Thanks
2  Hardware and U-Boot firmware / U-Boot stuff / Re: Yet another "dead" guruplug on: November 08, 2010, 08:23:09 PM
Assuming that I can get my JTAG to be recognized and that I can get the NAND into the halted state, what commands/files be needed to reflash the plug?  I've found so many different ways on a lot of different web sites that I'm not 100% sure what exactly needs to be done.
3  Hardware and U-Boot firmware / U-Boot stuff / Re: Yet another "dead" guruplug on: November 08, 2010, 11:25:21 AM
I modified the proc dockstar_reset_cpu that I found here http://www.plugapps.com/forum/viewtopic.php?f=18&t=195&start=20
4  Hardware and U-Boot firmware / U-Boot stuff / Re: Yet another "dead" guruplug on: November 07, 2010, 08:34:25 PM
After my post a few minutes ago, I decided to give it one more try before bed.  This is what I got:

Code:
> halt
Halt timed out, wake up GDB.
timed out while waiting for target halted
Command handler execution failed
in procedure 'halt' called at file "command.c", line 650
called at file "command.c", line 361
invalid mode value encountered 3
cpsr contains invalid mode value - communication failure
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x3fffbff8
MMU: disabled, D-Cache: disabled, I-Cache: enabled
invalid mode value encountered 3
cpsr contains invalid mode value - communication failure
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x3fff80e0
MMU: disabled, D-Cache: disabled, I-Cache: disabled
invalid mode value encountered 3
cpsr contains invalid mode value - communication failure
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x7fff0358
MMU: disabled, D-Cache: disabled, I-Cache: enabled
invalid mode value encountered 3
cpsr contains invalid mode value - communication failure
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff004c
MMU: disabled, D-Cache: disabled, I-Cache: disabled
> halt
> sheevaplug_reset_cpu
r1 (/32): 0x00000000
r2 (/32): 0x00000000
r3 (/32): 0x00000000
r4 (/32): 0x00000000
r5 (/32): 0x00000000
r6 (/32): 0x00000000
r7 (/32): 0x00000000
r8 (/32): 0x00000000
r9 (/32): 0x00000000
r10 (/32): 0x00000000
r11 (/32): 0x00000000
r12 (/32): 0x00000000
sp_usr (/32): 0x00000000
lr_usr (/32): 0x00000000
pc (/32): 0x00000000
cpsr (/32): 0x00000013
r8_fiq (/32): 0x00000000
r9_fiq (/32): 0x00000000
r10_fiq (/32): 0x00000000
r11_fiq (/32): 0x00000000
r12_fiq (/32): 0x00000000
sp_fiq (/32): 0x00000000
lr_fiq (/32): 0x00000000
spsr_fiq (/32): 0x00000000
sp_svc (/32): 0x00000000
lr_svc (/32): 0x00000000
spsr_svc (/32): 0x00000000
sp_abt (/32): 0x00000000
lr_abt (/32): 0x00000000
spsr_abt (/32): 0x00000000
sp_irq (/32): 0x00000000
lr_irq (/32): 0x00000000
spsr_irq (/32): 0x00000000
sp_und (/32): 0x00000000
lr_und (/32): 0x00000000
spsr_und (/32): 0x00000000
> sheevaplug_reflash_uboot
NAND flash device 'NAND 512MiB 3,3V 8-bit' found
erased blocks 0 to 5 on NAND flash device #0 'NAND 512MiB 3,3V 8-bit'
DCC write failed, expected end address 0x10000814 got 0x10000014
Unable to write data to NAND device
failed writing file uboot.bin to NAND flash 0 at offset 0x00000000
> sheevaplug_reflash_uboot_env
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
NAND flash device 'NAND 512MiB 3,3V 8-bit' found
erased blocks 5 to 7 on NAND flash device #0 'NAND 512MiB 3,3V 8-bit'
DCC write failed, expected end address 0x10000054 got 0x1000004c
Unable to write OOB data to NAND device
failed writing file uboot-env.bin to NAND flash 0 at offset 0x000a0000
> load_image uboot.bin 0x800000
target not halted
Command handler execution failed
in procedure 'load_image' called at file "command.c", line 650
called at file "command.c", line 361
> halt
target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x400000f3 pc: 0xffff0a42
MMU: enabled, D-Cache: enabled, I-Cache: enabled
> load_image uboot.bin 0x800000
DCC write failed, expected end address 0x0082be4c got 0x800000
Command handler execution failed
in procedure 'load_image' called at file "command.c", line 650
called at file "command.c", line 361
> sheevaplug_init
ftdi_write_data: usb bulk write failed
couldn't write MPSSE commands to FT2232
TRST/SRST error -104
Halt timed out, wake up GDB.
timed out while waiting for target halted
Command handler execution failed
in procedure 'sheevaplug_init' called at file "command.c", line 650
in procedure 'wait_halt' called at file "board\sheevaplug.cfg", line 27
called at file "command.c", line 361
> halt
Halt timed out, wake up GDB.
timed out while waiting for target halted
Command handler execution failed
in procedure 'halt' called at file "command.c", line 650
called at file "command.c", line 361
>


This is the contents of sheevaplug_reset_cpu

Code:
proc sheevaplug_reset_cpu { } {

# System and User mode registers
#   r0: 00000000       r1: 00000000       r2: 00000000       r3: 00000000
#   r4: 00000000       r5: 00000000       r6: 00000000       r7: 00000000
#   r8: 00000000       r9: 00000000      r10: 00000000      r11: 00000000
# r12: 00000000   sp_usr: 7dddee86   lr_usr: dffebe46       pc: ffff0a42
# cpsr: 400000f3

reg r1 0
reg r2 0
reg r3 0
reg r4 0
reg r5 0
reg r6 0
reg r7 0
reg r8 0
reg r9 0
reg r10 0
reg r11 0
reg r12 0
reg sp_usr 0
reg lr_usr 0
reg pc 0
# Set the CPU in Supervisor mode
reg cpsr 0x13

# FIQ mode shadow registers
#   r8_fiq: fbcfff64   r9_fiq: d7dfafd6  r10_fiq: 1fff6d2e  r11_fiq: 1db65df4
# r12_fiq: ff5a6de4   sp_fiq: 745fe7d5   lr_fiq: 89f7ae3e spsr_fiq: 00000000

reg r8_fiq 0
reg r9_fiq 0
reg r10_fiq 0
reg r11_fiq 0
reg r12_fiq 0
reg sp_fiq 0
reg lr_fiq 0
reg spsr_fiq 0

# Supervisor mode shadow registers
#   sp_svc: fffeff84   lr_svc: ffff0a43 spsr_svc: 00000000

reg sp_svc 0
reg lr_svc 0
reg spsr_svc 0

# Abort mode shadow registers
#   sp_abt: 51fe66f7   lr_abt: d7abaef7 spsr_abt: 00000000

reg sp_abt 0
reg lr_abt 0
reg spsr_abt 0

# IRQ mode shadow registers
#   sp_irq: 7fdb4ed5   lr_irq: 6d41122e spsr_irq: 00000000

reg sp_irq 0
reg lr_irq 0
reg spsr_irq 0

# Undefined instruction mode shadow registers
#   sp_und: 75ffef7e   lr_und: d75b6cd1 spsr_und: 00000000

reg sp_und 0
reg lr_und 0
reg spsr_und 0

}
5  Hardware and U-Boot firmware / U-Boot stuff / Re: Yet another "dead" guruplug on: November 07, 2010, 08:18:35 PM
Nobody can help with this?

Since my last post I've tried even more ways to try and resurrect my Guruplugs.

* I've used guruplug-installer.
* I've tried downloading different versions of openocd.
* I've tried compiling different versions of openocd.
* I've tried openocd in Windows and Linux (Debian).
* I've used openocd to connect to the Guruplug and telnet into openocd on port 4444.

When I telnet in I can issue the init command with no problems, but when I try sheevaplug_init I get:

Code:
> sheevaplug_init
unexpected Feroceon EICE version signature
Halt timed out, wake up GDB.
timed out while waiting for target halted
Command handler execution failed
in procedure 'wait_halt' called at file "config\board\sheevaplug.cfg", line 21
in procedure 'sheevaplug_init'
>

I was able to get it to:
Code:
target halted in ARM state due to debug-request, current mode: Supervisor
at least a few times, but at the time I had no idea what to do then aside from:
Code:
load_image uboot.bin 0x800000
resume 0x800200
which did a whole lot of nothing.

I've read posts in this forum and in others of how so many people have been able to fix a plug with uboot issues.  Are mine too far gone?  Should I just accept the fact that I have 2 $130 paper weights?

It's so frustrating feeling that I'm so close and yet so far away.
6  Hardware and U-Boot firmware / U-Boot stuff / Yet another "dead" guruplug on: October 19, 2010, 06:04:46 PM
When I received my two Guruplug Server Plus devices a few weeks ago, I had grand plans for them.  Apache2, PHP, MySQL, PDC using Samba, Firewall, and possibly even setting up a small PBX server.  All these plans went up in smoke when my Guruplug stopped booting.

I wanted to install Debian vanilla to the SD card and have the Guruplug boot from that.  After many tries (and many failures) I decided to put everything back the way it was and try again from the beginning.  I was in the process of reverting everything back to the defaults, putting rootfs.ubi.img back on it as stated in the tutorial from http://www.myownhomeserver.ch/en/reset  After I issued the final commands:

tftp 0x6400000 uboot.bin
nand erase 0x0 0x100000
nand write.e 0x6400000 0x0 0x100000

The device stopped booting.  When I monitor the bootup process (or lack there of) through Putty, this is what I see:


I tried to reflash the bootloader through ESIA, but got this:



After ESIA failed to work I went on to the sheevaplug-installer-v1.0
At first I was getting this error:

Info : JTAG tap: feroceon.cpu tap/device found: 0xfc0000e3 (mfg: 0x071, part: 0xc000, ver: 0xf)
Error: JTAG tap: feroceon.cpu              got: 0xfc0000e3 (mfg: 0x071, part: 0xc000, ver: 0xf)
Error: JTAG tap: feroceon.cpu  expected 1 of 1: 0x20a023d3 (mfg: 0x1e9, part: 0x0a02, ver: 0x2)
Error: trying to validate configured JTAG chain anyway...
Error: unexpected Feroceon EICE version signature
Error: unexpected Feroceon EICE version signature
Error: timed out while waiting for target halted
Runtime error, file "openocd\config\board\sheevaplug.cfg", line 21:
     ****       openocd FAILED
 ****   Is the mini USB cable connected?
 ****   Try powering down, then replugging the Sheevaplug


I was able to fix this error by downloading cygwin, libftdi-0.16, and openocd-0.4.0 and compiling a new openocd.exe

Once the new openocd.exe was copied to the uboot\openocd directory I then receive this:

Info : clock speed 2000 kHz
Info : JTAG tap: feroceon.cpu tap/device found: 0xfc0000e3 (mfg: 0x071, part: 0xc000, ver: 0xf)
Warn : JTAG tap: feroceon.cpu       UNEXPECTED: 0xfc0000e3 (mfg: 0x071, part: 0xc000, ver: 0xf)
Error: JTAG tap: feroceon.cpu  expected 1 of 1: 0x20a023d3 (mfg: 0x1e9, part: 0x0a02, ver: 0x2)
Warn : Unexpected idcode after end of chain: 32 0x00000007
Warn : Unexpected idcode after end of chain: 64 0x0000007f
Warn : Unexpected idcode after end of chain: 96 0x0000007f
Warn : Unexpected idcode after end of chain: 128 0x0000007f
Warn : Unexpected idcode after end of chain: 160 0x0000007f
Warn : Unexpected idcode after end of chain: 192 0x0000007f
Warn : Unexpected idcode after end of chain: 224 0x0000007f
Warn : Unexpected idcode after end of chain: 256 0x0000007f
Warn : Unexpected idcode after end of chain: 288 0x0000007f
Warn : Unexpected idcode after end of chain: 320 0x0000007f
Warn : Unexpected idcode after end of chain: 352 0x0000007f
Warn : Unexpected idcode after end of chain: 384 0x0000007f
Warn : Unexpected idcode after end of chain: 416 0x0000007f
Warn : Unexpected idcode after end of chain: 448 0x0000007f
Warn : Unexpected idcode after end of chain: 480 0x0000007f
Warn : Unexpected idcode after end of chain: 512 0x0000007f
Warn : Unexpected idcode after end of chain: 544 0x0000007f
Warn : Unexpected idcode after end of chain: 576 0x0000007f
Warn : Unexpected idcode after end of chain: 608 0x0000007f
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Info : JTAG tap: feroceon.cpu tap/device found: 0xfc0000e3 (mfg: 0x071, part: 0xc000, ver: 0xf)
Warn : JTAG tap: feroceon.cpu       UNEXPECTED: 0xfc0000e3 (mfg: 0x071, part: 0xc000, ver: 0xf)
Error: JTAG tap: feroceon.cpu  expected 1 of 1: 0x20a023d3 (mfg: 0x1e9, part: 0x0a02, ver: 0x2)
Warn : Unexpected idcode after end of chain: 32 0x00000007
Warn : Unexpected idcode after end of chain: 64 0x0000007f
Warn : Unexpected idcode after end of chain: 96 0x0000007f
Warn : Unexpected idcode after end of chain: 128 0x0000007f
Warn : Unexpected idcode after end of chain: 160 0x0000007f
Warn : Unexpected idcode after end of chain: 192 0x0000007f
Warn : Unexpected idcode after end of chain: 224 0x0000007f
Warn : Unexpected idcode after end of chain: 256 0x0000007f
Warn : Unexpected idcode after end of chain: 288 0x0000007f
Warn : Unexpected idcode after end of chain: 320 0x0000007f
Warn : Unexpected idcode after end of chain: 352 0x0000007f
Warn : Unexpected idcode after end of chain: 384 0x0000007f
Warn : Unexpected idcode after end of chain: 416 0x0000007f
Warn : Unexpected idcode after end of chain: 448 0x0000007f
Warn : Unexpected idcode after end of chain: 480 0x0000007f
Warn : Unexpected idcode after end of chain: 512 0x0000007f
Warn : Unexpected idcode after end of chain: 544 0x0000007f
Warn : Unexpected idcode after end of chain: 576 0x0000007f
Warn : Unexpected idcode after end of chain: 608 0x0000007f
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Command handler execution failed
Warn : jtag initialization failed; try 'jtag init' again.
Info : Embedded ICE version 0
Info : feroceon.cpu: hardware has 1 breakpoint/watchpoint unit
Warn : target was in unknown state when halt was requested
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
Command handler execution failed
 ****   openocd FAILED
 ****   Is the mini USB cable connected?
 ****   Try powering down, then replugging the Sheevaplug

 
This is where I am currently stuck.  I've changed USB cables, switched USB ports, used Windows XP (main system) and a Linux VM (Debian), and tried the "unplug it, plug it back in, and then run runme.exe nand"

I've also edited my interface sheevaplug.cfg, uboot-dflt.txt, and uboot-nand-custom.txt to reflect my settings including the MAC address (MAC1) of the device.

While searching through the forum I found a lot of info on how to fix it, but nothing has helped yet.  Is there anything else I haven't tried?  Any help would be greatly appreciated.
Pages: [1]