Differences

This shows you the differences between two versions of the page.

toh:seagate:goflexnet [2013/02/25 18:01]
doz.me
toh:seagate:goflexnet [2013/06/17 11:51] (current)
lorema
Line 3: Line 3:
===== Supported Versions ===== ===== Supported Versions =====
^ Model ^ OpenWrt Version Supported ^ Model Specific Notes ^ ^ Model ^ OpenWrt Version Supported ^ Model Specific Notes ^
-| Seagate GoFlexNet | WIP | |+| Seagate GoFlexNet | WIP, trunk | |
===== Highlights ===== ===== Highlights =====
-^ CPU ^ Ram ^ Flash ^ Network ^ USB ^ Serial ^ JTag ^ +^ CPU ^ Ram ^ Flash ^ Network ^ USB ^ Serial ^ JTag ^ SATA
-| Marvell Kirkwood@1200MHz | 128 MiB | 256 MiB | 1 gigE | 1x 2.0 | Yes | Yes |+| Marvell Kirkwood@1200MHz | 128 MiB | 256 MiB | 1 gigE | 1x 2.0 | Yes | Yes | 2x data+power |
===== Hardware ===== ===== Hardware =====
Line 22: Line 22:
| **USB:** 1x USB 2.0 port | | **USB:** 1x USB 2.0 port |
| **Serial:** [[#Serial|Yes]] | | **Serial:** [[#Serial|Yes]] |
 +| **SATA:** 2x (data & power) |
==== Flash Layout ==== ==== Flash Layout ====
Line 54: Line 55:
==== Photos ==== ==== Photos ====
-for serial cable (nokia's DKU-5, CA-42 and etc ttl...):+for serial cable (nokia's DKU-5, CA-42 and etc ttl...), 115200 8n1: 
 + 
 +**NOTE:** The pins to use are the ones "covered up" by the tips of the arrows, i.e. the pins in the row toward the outer edge of the PCB. 
 +(for comparison, see [[http://www.varkey.in/wp-content/uploads/2011/06/IMG_0771.jpg|here]])
{{:media:seagate_goflex_net_1.jpg|}} {{:media:seagate_goflex_net_1.jpg|}}
-for enable 3.5" disks (3 pins sata power to +12V DC)+for enable 3.5" disks (3 pins sata power to +12V DC): 
 + 
 +**NOTE:** The ellipse in the picture indicates **three** pins for Serial ATA +12 V. (Multiple pins are used for current (Ampere) considerations, compare https://en.wikipedia.org/wiki/Serial_ATA#Power_connectors.)
{{:media:seagate_goflex_net_2.jpg|}} {{:media:seagate_goflex_net_2.jpg|}}
Line 65: Line 71:
{{:media:seagate_goflex_net_3.jpg|}} {{:media:seagate_goflex_net_3.jpg|}}
-examle:+example:
{{:media:seagate_goflex_net_4.jpg|}} {{:media:seagate_goflex_net_4.jpg|}}
Line 84: Line 90:
Connect to IP address via ssh (root / stxadmin) to see if it works. Connect to IP address via ssh (root / stxadmin) to see if it works.
-==== Backup ==== +==== Backup original firmware ==== 
-If you want to restore the original firmware at a later point use [[http://ahsoftware.de/dockstar/#backup|this guide]] to make a backup. You need to login to the original firmware via [[#SSH|ssh]] first. +Login to the original firmware via SSH (enable it first in popoplug site) or Serial cable (nokia's CA-52, DKU-5 and etc ttl...)
-Another method beside using "dd" is nanddump. To be on the safe side, you should take a 2nd backup with the nanddump method+Plug the flash drive (FAT32) to USB port in Seagate GoFlex Net, then:
-Assuming you have a USB Stick or other USB drive mapped via sda - you can try this:+
<code> <code>
-cd /tmp +mkdir /tmp/backup
-mkdir backup+
mount /dev/sda1 /tmp/backup mount /dev/sda1 /tmp/backup
-wget http://plugapps.com/os/pogoplug/uboot/nanddump+cd /tmp/backup 
 +wget http://download.doozan.com/uboot/nanddump
chmod +x nanddump chmod +x nanddump
-./nanddump -nf backup/mtd0 /dev/mtd0 +./nanddump -nof uboot-mtd0-dump /dev/mtd0 
-./nanddump -nf backup/mtd1 /dev/mtd1 +./nanddump -nof uboot-original -s 0 -l 0x80000 /dev/mtd0 
-./nanddump -nf backup/mtd2 /dev/mtd2+./nanddump -nof uImage-mtd1-dump /dev/mtd1 
 +./nanddump -nof rootfs-mtd2-dump /dev/mtd2
umount /dev/sda1 umount /dev/sda1
</code> </code>
 +To create an image of mtd0, you need to dump the nand without ecc. using "dd if=/dev/mtd0 of=mtd0.DOESNOTWORK" will automatically do ecc for you and will result in a corrupt image.
 +
 +==== Restore original firmware via serial cable and tftp-server ====
 +<code>
 +#set goflex net ip
 +setenv ipaddr '192.168.1.1'
 +#set tftp-server ip
 +setenv serverip '192.168.1.2'
 +
 +#original uImage (backuped before)
 +tftpboot 0x800000 uImage-mtd1-dump
 +nand erase 0x100000 0x400000
 +nand write.e 0x800000 0x100000 0x400000
 +
 +#original rootfs (backuped before)
 +tftpboot 0x800000 rootfs-mtd2-dump
 +nand erase 0x500000 0x2000000
 +nand write.e 0x800000 0x500000 0x2000000
 +
 +resetenv
 +
 +setenv bootcmd 'nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000'
 +
 +#change value to your device
 +setenv ethaddr '00:10:75:26:3D:9F'
 +setenv cesvcid '5RFAJDGYNLPLDUHN4BWUWC3EKJ'
 +setenv ceserialno 'NA1Y0EG1'
 +setenv ceboardver 'DISCOVERY:0.1'
 +saveenv
 +
 +reset
 +</code>
 +
 +==== Testing your new uBoot, Writing new uBoot ====
 +
 +download via tftp and run-test
 +<code>
 +#set goflex net ip
 +setenv ipaddr '192.168.1.1'
 +#set tftp-server ip
 +setenv serverip '192.168.1.2'
 +tftp 0x800000 uboot.mtd0.kwb
 +go 0x800200
 +</code>
 +Notice that we load the image at 0x800000 but start running it from 0x800200. This is because the first 0x200 bytes of are the kirkwood image header, and the real executable starts after the header.
 +
 +Write new uBoot
 +<code>
 +# Erase the first 512k of /dev/mtd0
 +flash_erase /dev/mtd0 0 4
 +# Write the new bootloader
 +nandwrite /dev/mtd0 uboot.mtd0.kwb
 +# Cross your fingers and reboot..
 +</code>
 +
==== Install OpenWrt in to NAND (mtd2) via serial cable and tftp-server ==== ==== Install OpenWrt in to NAND (mtd2) via serial cable and tftp-server ====
Line 104: Line 165:
<code> <code>
#set goflex net ip #set goflex net ip
-setenv ipaddr 192.168.1.1+setenv ipaddr '192.168.1.1'
#set tftp-server ip #set tftp-server ip
-setenv serverip 192.168.1.2 +setenv serverip '192.168.1.2' 
-setenv arcNumber 3089 +setenv arcNumber '3089' 
-setenv mainlineLinux yes +setenv mainlineLinux 'yes' 
-setenv bootcmd nand read 0x6400000 0x100000 0x400000\; bootm 0x6400000\+setenv bootcmd 'nand read.e 0x6400000 0x100000 0x400000; bootm 0x6400000;' 
-setenv bootargs console=ttyS0,115200 root=/dev/mtdblock2 rw rootfstype=jffs2+setenv bootargs 'console=ttyS0,115200 root=/dev/mtdblock2 rw rootfstype=jffs2'
saveenv saveenv
mw 0x6400000 0xffff 0x400000 mw 0x6400000 0xffff 0x400000
Line 122: Line 183:
nand erase 0x500000 0xfb00000 nand erase 0x500000 0xfb00000
nand write.e 0x6400000 0x500000 0x400000 nand write.e 0x6400000 0x500000 0x400000
-boot +reset 
-#after 2~3 min - unplug power, then plug power+</code> 
 + 
 +==== Install OpenWrt in to NAND (mtd2) via ssh (not tested)==== 
 +to enable SSH access for this Pogoplug device - register in https://goflexnet.pogoplug.com 
 +then, in settings - Activate a Pogoplug device, after that, in settings - Enable SSH access for this Pogoplug device 
 +and enter new password for root. 
 + 
 +in ssh: 
 +<code> 
 +/usr/local/cloudengines/bin/blparam arcNumber='3089' 
 +/usr/local/cloudengines/bin/blparam mainlineLinux='yes' 
 +/usr/local/cloudengines/bin/blparam bootcmd='nand read.e 0x6400000 0x100000 0x400000; bootm 0x6400000;' 
 +/usr/local/cloudengines/bin/blparam bootargs='console=ttyS0,115200 root=/dev/mtdblock2 rw rootfstype=jffs2' 
 +killall -9 hbwd 
 +killall -9 hbplug 
 +cd /tmp 
 +wget http://downloads.openwrt.org/snapshots/trunk/kirkwood/openwrt-kirkwood-uImage 
 +wget http://downloads.openwrt.org/snapshots/trunk/kirkwood/openwrt-kirkwood--jffs2-128k.img 
 +flash_eraseall /dev/mtd1 
 +nandwrite -p /dev/mtd1 openwrt-kirkwood-uImage 
 +flash_eraseall /dev/mtd2 
 +nandwrite -p /dev/mtd2 openwrt-kirkwood--jffs2-128k.img 
 +flash_eraseall /dev/mtd3 
 +#unplug power
</code> </code>
===== Tags ===== ===== Tags =====
-{{tag>GigabitEthernet 1Port 1PHY USB 4USB JTAG NoRadio 128RAM gt32Flash ARM ARMv5 ARM926EJ-S crypto}}+{{tag>GigabitEthernet 1NIC 0WNIC no_switch USB 4USB JTAG 128RAM gt32Flash ARM ARMv5 ARM926EJ-S crypto SATA marvell kirkwood}}

Back to top

toh/seagate/goflexnet.1361811697.txt.bz2 · Last modified: 2013/02/25 18:01 by doz.me