Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 10, 2025 08:17PM |
Registered: 8 weeks ago Posts: 40 |
# Pogoplug v4 edited from a base of the Pogoplug E02 # modification shermbug 09.06.2025 based on the below and this file from @bodhi: https://forum.doozan.com/file.php?3,file=7310,filename=kwbimage.cfg,download=1 # Pogoplug E02 # modification joerg_999 14.03.2016 # use this pogo.cfg taken from sheevaplug to use with Raspi direct or Buspirate jtag adapter # use raspberrypi-native mode # we use the Pins from SPI Interface (violett) 19,21,23,26 and 22, + 20 for GND # see GPIO schematic Raspi Raspi GPIO # source [find interface/buspirate.cfg] # source [find interface/sysfsgpio-raspberrypi.cfg] source [find interface/raspberrypi123-native.cfg] source [find target/feroceon.cfg] $_TARGETNAME configure \ -work-area-phys 0x100000 \ -work-area-size 65536 \ -work-area-backup 0 #arm7_9 dcc_downloads enable # this assumes the hardware default peripherals location before u-Boot moves it set _FLASHNAME $_CHIPNAME.flash nand device $_FLASHNAME orion 0 0xd8000000 proc pogo_init { } { # We need to assert DBGRQ while holding nSRST down. # However DBGACK will be set only when nSRST is released. # Furthermore, the JTAG interface doesn't respond at all when # the CPU is in the WFI (wait for interrupts) state, so it is # possible that initial tap examination failed. So let's # re-examine the target again here when nSRST is asserted which # should then succeed. jtag_reset 0 1 feroceon.cpu arp_examine halt 0 jtag_reset 0 0 wait_halt arm mcr 15 0 0 1 0 0x00052078 mww 0xD0001400 0x43000618 ;# Updated DDR SDRAM Configuration Register mww 0xD0001404 0x34143000 ;# Updated Dunit Control Low Register mww 0xD0001408 0x11012227 ;# Updated DDR SDRAM Timing (Low) Register mww 0xD000140C 0x00000819 ;# Updated DDR SDRAM Timing (High) Register mww 0xD0001410 0x00000001 ;# Updated DDR SDRAM Address Control Register mww 0xD0001414 0x00000000 ;# Updated DDR SDRAM Open Pages Control Register mww 0xD0001418 0x00000000 ;# Updated DDR SDRAM Operation Register mww 0xD000141C 0x00000632 ;# Updated DDR SDRAM Mode Register mww 0xD0001420 0x00000040 ;# Updated DDR SDRAM Extended Mode Register mww 0xD0001424 0x0000F07F ;# Updated Dunit Control High Register mww 0xD0001428 0x00085520 ;# Updated (DDR2 ODT Read Timing (default values)) Dunit Control High Register mww 0xD000147c 0x00008552 ;# Updated (DDR2 ODT Write Timing (default values)) Dunit Control High Register mww 0xD0001500 0x00000000 ;# Added (CS[0]n Base address to 0x0) mww 0xD0001504 0x07FFFFF1 ;# Updated CS0n Size Register mww 0xD0001508 0x10000000 ;# CS1n Base Register mww 0xD000150C 0x00000000 ;# Updated CS1n Size Register mww 0xD0001514 0x00000000 ;# Updated CS2n Size Register mww 0xD000151C 0x00000000 ;# Updated CS3n Size Register mww 0xD0001494 0x00030000 ;# Updated DDR2 SDRAM ODT Control (Low) Register mww 0xD0001498 0x00000000 ;# Updated DDR2 SDRAM ODT Control (High) REgister mww 0xD000149C 0x0000e803 ;# Updated DDR2 Dunit ODT Control Register mww 0xD0001480 0x00000001 ;# Updated DDR SDRAM Initialization Control Register mww 0xD0020204 0x00000000 ;# Main IRQ Interrupt Mask Register mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0020204 0x00000000 ;# " mww 0xD0010000 0x01111111 ;# Updated MPP 0 to 7 mww 0xD0010004 0x11113311 ;# Updated MPP 8 to 15 mww 0xD0010008 0x00551111 ;# Updated MPP 16 to 23 mww 0xD0010418 0x003E07CF ;# NAND Read Parameters REgister mww 0xD001041C 0x000F0F0F ;# NAND Write Parameters Register mww 0xD0010470 0x01C7D943 ;# NAND Flash Control Register } proc pogo_reflash_uboot { } { # reflash the u-Boot binary and reboot into it pogo_init nand probe 0 nand erase 0 0x0 0xa0000 nand write 0 uboot.kwb 0 oob_softecc_kw resume } proc pogo_reflash_uboot_env { } { # reflash the u-Boot environment variables area pogo_init nand probe 0 nand erase 0 0xc0000 0x20000 nand write 0 uboot-env.bin 0xc0000 oob_softecc_kw resume } proc pogo_load_uboot { } { # load u-Boot into RAM and execute it pogo_init load_image uboot.kwb verify_image uboot.kwb resume 0x800200 }
Open On-Chip Debugger > pogo_init DEPRECATED! use 'adapter [de]assert' not 'jtag_reset' DEPRECATED! use 'adapter [de]assert' not 'jtag_reset' target halted in Thumb state due to debug-request, current mode: Supervisor cpsr: 0x400000f3 pc: 0xffff0ba6 MMU: enabled, D-Cache: enabled, I-Cache: enabled > soft_reset_halt [feroceon.cpu] requesting target halt and executing a soft reset target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x400000d3 pc: 0x00000000 MMU: disabled, D-Cache: disabled, I-Cache: disabled > nand probe 0 NAND flash device 'NAND 128MiB 3.3V 8-bit (Hynix)' found > nand erase 0 0x0 0xa0000 erased blocks 0 to 4 on NAND flash device #0 'NAND 128MiB 3.3V 8-bit' > nand write 0 uboot.kwb 0 oob_softecc_kw timed out while waiting for target halted error executing hosted NAND write Unable to write data to NAND device failed writing file uboot.kwb to NAND flash 0 at offset 0x00000000
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 10, 2025 10:52PM |
Admin Registered: 14 years ago Posts: 19,713 |
nand write 0 uboot.kwb 0 oob_softecc_kwDo
nand write 0 uboot.kwb 0We don't really care to write oob or ecc. The u-boot image has no oob or ecc info on it. It does not seem relevant to the time out, but try it anyway.
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 11, 2025 12:04AM |
Admin Registered: 14 years ago Posts: 19,713 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 11, 2025 12:51AM |
Registered: 8 weeks ago Posts: 40 |
> nand write 0 uboot.kwb 0 >> We don't really care to write oob or ecc. The
> nand write 0 uboot.kwb 0 timed out while waiting for target halted error executing hosted NAND write Unable to write data to NAND device failed writing file uboot.kwb to NAND flash 0 at offset 0x00000000
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 12, 2025 10:21PM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 12, 2025 10:53PM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 12, 2025 11:42PM |
Admin Registered: 14 years ago Posts: 19,713 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 13, 2025 01:11AM |
Registered: 8 weeks ago Posts: 40 |
pogo_load_uboot
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 13, 2025 02:41PM |
Admin Registered: 14 years ago Posts: 19,713 |
> pogo_load_uboot >>
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 14, 2025 12:27PM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 14, 2025 03:53PM |
Admin Registered: 14 years ago Posts: 19,713 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 14, 2025 08:49PM |
Registered: 8 weeks ago Posts: 40 |
Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Open On-Chip Debugger > pogo_init target halted in Thumb state due to debug-request, current mode: Supervisor cpsr: 0x400000f3 pc: 0xffff0ba6 MMU: enabled, D-Cache: enabled, I-Cache: enabled > load_image uboot.kwb 524288 bytes written at address 0x00000000 downloaded 524288 bytes in 56.624947s (9.042 KiB/s) > verify_image uboot.kwb verified 524288 bytes in 2.988857s (171.303 KiB/s) > > resume 0x800200
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 14, 2025 08:57PM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 02:59PM |
Admin Registered: 14 years ago Posts: 19,713 |
> load_image uboot.kwb
524288 bytes written at address 0x00000000
downloaded 524288 bytes in 56.624947s (9.042 KiB/s)
> verify_image uboot.kwb
verified 524288 bytes in 2.988857s (171.303 KiB/s)
>
> resume 0x800200
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 03:16PM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 03:28PM |
Registered: 8 weeks ago Posts: 40 |
load_image uboot.kwb 524288 bytes written at address 0x00000000 downloaded 524288 bytes in 56.629524s (9.041 KiB/s) > resume 0x200
> load_image uboot.kwb 0x800000 524288 bytes written at address 0x00800000 downloaded 524288 bytes in 56.611168s (9.044 KiB/s) > resume 0x800200
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 04:05PM |
Admin Registered: 14 years ago Posts: 19,713 |
go 0x800200
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 04:28PM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 05:15PM |
Admin Registered: 14 years ago Posts: 19,713 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 05:29PM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 05:49PM |
Admin Registered: 14 years ago Posts: 19,713 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 05:51PM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 08:28PM |
Registered: 10 years ago Posts: 478 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 08:51PM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 08:54PM |
Admin Registered: 14 years ago Posts: 19,713 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 15, 2025 09:26PM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 16, 2025 01:28AM |
Registered: 8 weeks ago Posts: 40 |
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 16, 2025 09:29PM |
Registered: 10 years ago Posts: 478 |
Quote
Easily connect to serial TTY devices
Sensible defaults (115200 8n1)
Automatic connection management
Automatic detection of serial ports
Automatic reconnect
Automatically connect to first new appearing serial device
Automatically connect to latest registered serial device
Re: HOW2: Repair Pogo E02 with Raspberry PI (1,2 or 3) JTAG and OpenOCD June 18, 2025 08:23AM |
Registered: 5 years ago Posts: 62 |