Bricked or not, that is the question :/ November 08, 2018 10:18AM |
Registered: 5 years ago Posts: 13 |
Re: Bricked or not, that is the question :/ November 08, 2018 04:47PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: Bricked or not, that is the question :/ November 08, 2018 05:01PM |
Admin Registered: 13 years ago Posts: 18,994 |
su - cp -a uboot.2016.05-tld-1.environment /media/sdb1/boot/uEnv.txt
devices=usb ide dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
sync umount /media/sdb1
Re: Bricked or not, that is the question :/ November 11, 2018 12:24PM |
Registered: 5 years ago Posts: 13 |
Re: Bricked or not, that is the question :/ November 11, 2018 05:06PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: Bricked or not, that is the question :/ November 12, 2018 07:11AM |
Registered: 5 years ago Posts: 13 |
Re: Bricked or not, that is the question :/ November 12, 2018 04:16PM |
Admin Registered: 13 years ago Posts: 18,994 |
ls -lart /media/sdb1/boot ls -lart /media/sdb1/boot.dts/kirkwood-netgear_stora_ms2000.dtb e2label /dev/sdb1
devices=ide dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
cat /media/sdb1/boot/uEnv.txt
sync unmount /dev/sdb1
Re: Bricked or not, that is the question :/ November 21, 2018 08:27AM |
Registered: 5 years ago Posts: 13 |
root@AlonUX:/mnt# ls -lart diskstora/boot total 36264 drwxr-xr-x 21 root root 4096 févr. 17 2015 .. drwxr-xr-x 2 root root 4096 juil. 16 2017 dts -rw-r--r-- 1 root root 153501 juil. 16 2017 config-4.12.1-kirkwood-tld-1 -rwxr-xr-x 1 root root 3821528 juil. 16 2017 zImage-4.12.1-kirkwood-tld-1 -rw------- 1 root root 3821528 juil. 16 2017 vmlinuz-4.12.1-kirkwood-tld-1 -rw------- 1 root root 2504031 juil. 16 2017 System.map-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 8435004 juil. 16 2017 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 3821592 juil. 20 2017 uImage -rw-r--r-- 1 root root 7245632 juil. 24 2017 initrd.img-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 7245696 juil. 24 2017 uInitrd -rw-r--r-- 1 root root 2777 nov. 21 15:20 uEnv.txt drwxr-xr-x 3 root root 4096 nov. 21 15:20 . root@AlonUX:/mnt# ls -lart diskstora/boot/dts/kirkwood-netgear_stora_ms2000.dtb -rw-r--r-- 1 root root 11869 juil. 16 2017 diskstora/boot/dts/kirkwood-netgear_stora_ms2000.dtb root@AlonUX:/mnt# e2label /dev/sdd1 rootfs root@AlonUX:/mnt# cat diskstora/boot/uEnv.txt arcNumber=2097 bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=ide disks=0 1 2 3 ethact=egiga0 ethaddr=52:3b:20:9c:11:51 if_netconsole=ping $serverip ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage machid=0x831 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15
Re: Bricked or not, that is the question :/ November 21, 2018 08:37PM |
Admin Registered: 13 years ago Posts: 18,994 |
ping 192.168.0.231And then power up the Stora.
Re: Bricked or not, that is the question :/ November 21, 2018 08:44PM |
Admin Registered: 13 years ago Posts: 18,994 |
Quote
i have done a "env default -a"
saveenv
Re: Bricked or not, that is the question :/ November 22, 2018 08:33AM |
Registered: 5 years ago Posts: 13 |
Re: Bricked or not, that is the question :/ November 22, 2018 05:26PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: Bricked or not, that is the question :/ November 22, 2018 05:28PM |
Registered: 5 years ago Posts: 13 |
Re: Bricked or not, that is the question :/ November 22, 2018 05:34PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: Bricked or not, that is the question :/ November 22, 2018 05:37PM |
Registered: 5 years ago Posts: 13 |
Re: Bricked or not, that is the question :/ November 22, 2018 05:38PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: Bricked or not, that is the question :/ November 22, 2018 05:40PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: Bricked or not, that is the question :/ November 22, 2018 05:47PM |
Registered: 5 years ago Posts: 13 |
Re: Bricked or not, that is the question :/ November 22, 2018 06:12PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: Bricked or not, that is the question :/ November 22, 2018 06:13PM |
Registered: 5 years ago Posts: 13 |
Re: Bricked or not, that is the question :/ November 23, 2018 09:26PM |
Registered: 5 years ago Posts: 13 |
root@raspberrypi:~# openocd -f pogo.cfg Open On-Chip Debugger 0.10.0+dev-00581-g1b864d6e (2018-11-24-00:25) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html BCM2835 GPIO config: tck = 11, tms = 25, tdi = 10, tdo = 9 BCM2835 GPIO nums: swclk = 25, swdio = 24 BCM2835 GPIO config: trst = 7 trst_only separate trst_push_pull adapter speed: 200 kHz adapter_nsrst_delay: 500 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 dcc downloads are enabled Warn : use 'feroceon.cpu' as target identifier, not '0' pogo_load_uboot Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : BCM2835 GPIO JTAG/SWD bitbang driver Info : JTAG and SWD modes enabled Info : clock speed 200 kHz Info : JTAG tap: feroceon.cpu tap/device found: 0x20a023d3 (mfg: 0x1e9 (Marvell Semiconductors), part: 0x0a02, ver: 0x2) Info : Embedded ICE version 0 Info : feroceon.cpu: hardware has 1 breakpoint/watchpoint unit Info : Listening on port 3333 for gdb connections Info : accepting 'telnet' connection on tcp/4444 Info : Halt timed out, wake up GDB. Error: timed out while waiting for target halted
# 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 0x10000000 \ -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 0x43000C30 ;# DDR SDRAM Configuration Register mww 0xD0001404 0x39543000 ;# Dunit Control Low Register mww 0xD0001408 0x22125451 ;# DDR SDRAM Timing (Low) Register mww 0xD000140C 0x00000833 ;# DDR SDRAM Timing (High) Register mww 0xD0001410 0x000000CC ;# DDR SDRAM Address Control Register mww 0xD0001414 0x00000000 ;# DDR SDRAM Open Pages Control Register mww 0xD0001418 0x00000000 ;# DDR SDRAM Operation Register mww 0xD000141C 0x00000C52 ;# DDR SDRAM Mode Register mww 0xD0001420 0x00000042 ;# DDR SDRAM Extended Mode Register mww 0xD0001424 0x0000F17F ;# Dunit Control High Register mww 0xD0001428 0x00085520 ;# Dunit Control High Register mww 0xD000147c 0x00008552 ;# Dunit Control High Register mww 0xD0001504 0x0FFFFFF1 ;# CS0n Size Register mww 0xD0001508 0x10000000 ;# CS1n Base Register mww 0xD000150C 0x0FFFFFF5 ;# CS1n Size Register mww 0xD0001514 0x00000000 ;# CS2n Size Register mww 0xD000151C 0x00000000 ;# CS3n Size Register mww 0xD0001494 0x003C0000 ;# DDR2 SDRAM ODT Control (Low) Register mww 0xD0001498 0x00000000 ;# DDR2 SDRAM ODT Control (High) REgister mww 0xD000149C 0x0000F80F ;# DDR2 Dunit ODT Control Register mww 0xD0001480 0x00000001 ;# 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 ;# MPP 0 to 7 mww 0xD0010004 0x11113322 ;# MPP 8 to 15 mww 0xD0010008 0x00001111 ;# 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 }
Re: Bricked or not, that is the question :/ November 24, 2018 12:09AM |
Admin Registered: 13 years ago Posts: 18,994 |
> root@raspberrypi:~# openocd -f pogo.cfg > > Open On-Chip Debugger 0.10.0+dev-00581-g1b864d6e > (2018-11-24-00:25) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.org/doc/doxygen/bugs.html > BCM2835 GPIO config: tck = 11, tms = 25, tdi = 10, > tdo = 9 > BCM2835 GPIO nums: swclk = 25, swdio = 24 > BCM2835 GPIO config: trst = 7 > trst_only separate trst_push_pull > adapter speed: 200 kHz > adapter_nsrst_delay: 500 > 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 > dcc downloads are enabled > Warn : use 'feroceon.cpu' as target identifier, > not '0' > pogo_load_uboot > Info : Listening on port 6666 for tcl connections > Info : Listening on port 4444 for telnet > connections > Info : BCM2835 GPIO JTAG/SWD bitbang driver > Info : JTAG and SWD modes enabled > Info : clock speed 200 kHz > Info : JTAG tap: feroceon.cpu tap/device found: > 0x20a023d3 (mfg: 0x1e9 (Marvell Semiconductors), > part: 0x0a02, ver: 0x2) > Info : Embedded ICE version 0 > Info : feroceon.cpu: hardware has 1 > breakpoint/watchpoint unit > Info : Listening on port 3333 for gdb connections > Info : accepting 'telnet' connection on tcp/4444 > Info : Halt timed out, wake up GDB. > Error: timed out while waiting for target halted >>
> # 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 0x10000000 \ > > > -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 0x43000C30 ;# DDR SDRAM > Configuration Register > mww 0xD0001404 0x39543000 ;# Dunit Control Low > Register > mww 0xD0001408 0x22125451 ;# DDR SDRAM Timing > (Low) Register > mww 0xD000140C 0x00000833 ;# DDR SDRAM Timing > (High) Register > mww 0xD0001410 0x000000CC ;# DDR SDRAM Address > Control Register > mww 0xD0001414 0x00000000 ;# DDR SDRAM Open Pages > Control Register > mww 0xD0001418 0x00000000 ;# DDR SDRAM Operation > Register > mww 0xD000141C 0x00000C52 ;# DDR SDRAM Mode > Register > mww 0xD0001420 0x00000042 ;# DDR SDRAM Extended > Mode Register > mww 0xD0001424 0x0000F17F ;# Dunit Control High > Register > mww 0xD0001428 0x00085520 ;# Dunit Control High > Register > mww 0xD000147c 0x00008552 ;# Dunit Control High > Register > mww 0xD0001504 0x0FFFFFF1 ;# CS0n Size Register > mww 0xD0001508 0x10000000 ;# CS1n Base Register > mww 0xD000150C 0x0FFFFFF5 ;# CS1n Size Register > mww 0xD0001514 0x00000000 ;# CS2n Size Register > mww 0xD000151C 0x00000000 ;# CS3n Size Register > mww 0xD0001494 0x003C0000 ;# DDR2 SDRAM ODT > Control (Low) Register > mww 0xD0001498 0x00000000 ;# DDR2 SDRAM ODT > Control (High) REgister > mww 0xD000149C 0x0000F80F ;# DDR2 Dunit ODT > Control Register > mww 0xD0001480 0x00000001 ;# 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 ;# MPP 0 to 7 > mww 0xD0010004 0x11113322 ;# MPP 8 to 15 > mww 0xD0010008 0x00001111 ;# 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 > } > >
Re: Bricked or not, that is the question :/ November 24, 2018 04:09AM |
Registered: 5 years ago Posts: 13 |