User Tools

Site Tools


toh:seagate:dockstar

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
toh:seagate:dockstar [2013/05/02 12:19]
toh:seagate:dockstar [2014/12/23 16:29] (current)
lynxis [Install ubi / ubifs over serial]
Line 1: Line 1:
 ====== Seagate Dockstar ====== ====== Seagate Dockstar ======
 +
 +|{{:​meta:​icons:​tango:​48px-dialog-warning.svg.png?​nolink}}| Most of this wiki page handle squashfs/​jffs2 installations. However ubi/ubifs is a more advanced blocklayer and filesystem. **This page is in transition from squashfs/​jffs to ubi/​ubifs**|
  
 ===== Supported Versions ===== ===== Supported Versions =====
Line 10: Line 12:
  
 ===== Before the Installation ===== ===== Before the Installation =====
-  - Before you install OpenWrt on your Dockstar, you could read this page: [[toh:​seagate:​dockstar:​alternatives| Alternative ​OS for the Dockstar]]. +  - Before you install OpenWrt on your Dockstar, you could read this page: [[toh:​seagate:​dockstar:​alternatives|Alternative ​operating systems ​for the Seagate ​Dockstar]].
-  - Read about the pros and cons of the different [[toh:​seagate:​dockstar:​install.location|installation targets]].+
  
 ===== Installation ===== ===== Installation =====
Line 17: Line 18:
   * ->​[[doc:​howto:​generic.flashing]]   * ->​[[doc:​howto:​generic.flashing]]
   * Prebuilt 12.09-beta ***IT-IS-BETA*** Images are available here:​[[http://​downloads.openwrt.org/​attitude_adjustment/​12.09-beta/​kirkwood/​generic/​]].   * Prebuilt 12.09-beta ***IT-IS-BETA*** Images are available here:​[[http://​downloads.openwrt.org/​attitude_adjustment/​12.09-beta/​kirkwood/​generic/​]].
-either by generating it yourself or searching +  * Prebuilt 14.07 Images [[http://​downloads.openwrt.org/​barrier_breaker/​14.07/​kirkwood/​generic/​]]
 [note: include how to do this and where it can be found already precompiled] [note: include how to do this and where it can be found already precompiled]
  
 Note that using this guide will replace the original firmware found on the Dockstar. If you ever plan to restore the original firmware please take a [[#​Backup|backup]]. One OpenWrt install procedure will place a 2nd stage bootloader. The original U-Boot in mtd0 will be retained and will chainload the 2nd one. The Ethernet address of your device is set by the original U-Boot. The 2nd stage bootloader shows a bogus ethaddr. OpenWrt will use a different [[#​FlashLayout|flash layout]] than the original one. Note that using this guide will replace the original firmware found on the Dockstar. If you ever plan to restore the original firmware please take a [[#​Backup|backup]]. One OpenWrt install procedure will place a 2nd stage bootloader. The original U-Boot in mtd0 will be retained and will chainload the 2nd one. The Ethernet address of your device is set by the original U-Boot. The 2nd stage bootloader shows a bogus ethaddr. OpenWrt will use a different [[#​FlashLayout|flash layout]] than the original one.
- 
 ==== Flash Layout ==== ==== Flash Layout ====
 ->​[[doc:​techref:​flash.layout]] for explanations! ->​[[doc:​techref:​flash.layout]] for explanations!
Line 46: Line 46:
 ^ name    | u-boot ​   | kernel ​             | rootfs ​   | data      | ^ name    | u-boot ​   | kernel ​             | rootfs ​   | data      |
 ^ file system ​ |  //none// | //​none// ​      | JFFS2     | JFFS2     | ^ file system ​ |  //none// | //​none// ​      | JFFS2     | JFFS2     |
 +^           ​OpenWrt FlashLayout 3         ​^^^^^^
 +^ mtd#    | mtd0      | mtd1                | mtd2      |
 +^ start   | 0x000000 ​ | 0x100000 ​           | 0x500000 ​ |
 +^ size    | 0x100000 ​ | 0x100000 ​           | 0x2000000 |
 +^ in MiB  | 1         | 1                   | 254       |
 +^ name    | u-boot ​   | second stage uboot  | root      |
 +^ file system ​ |  //none// | //​none// ​      | UBI       |
 +
 +==== Install ubi / ubifs over serial ====
 +To install ubi/ubifs image you need a tftp server and "​openwrt-kirkwood-dockstar-rootfs.ubifs"​ image.
 +
 +| <​code>​
 +TO BE TESTED
 +nand erase 0x100000 0x100000
 +tftpboot 0x800000 openwrt-kirkwood-dockstar-u-boot.img ; nand write 0x800000 ${filesize}
 +nand erase 0x200000 0xfe00000
 +ubi part root ; ubi remove rootfs ; ubi create rootfs
 +tftpboot 0x800000 openwrt-kirkwood-dockstar-rootfs.ubifs ; ubi write 0x800000 rootfs ${filesize}
 +</​code>​ |
 +
  
 ==== Installing with console access via serial connection ==== ==== Installing with console access via serial connection ====
Line 75: Line 95:
 tftpboot 0x800000 openwrt-kirkwood-dockstar-u-boot.bin tftpboot 0x800000 openwrt-kirkwood-dockstar-u-boot.bin
 nand erase 0x100000 0x80000 nand erase 0x100000 0x80000
-nand write.e 0x800000 0x100000 ​0x40000 +nand write.e 0x800000 0x100000 ​0x80000 
-setenv bootcmd nand read.e 0x800000 0x100000 ​0x40000\; go 0x800000+setenv bootcmd nand read.e 0x800000 0x100000 ​0x80000\; go 0x800000
 saveenv saveenv
 </​code>​ | </​code>​ |
Line 82: Line 102:
 == single stage bootloader == == single stage bootloader ==
 | <​code>​ | <​code>​
-mw 0x800000 0xffff ​0x40000 +mw 0x800000 0xffff ​0x80000 
-tftpboot 0x800000 openwrt-kirkwood-dockstar-u-boot.bin+tftpboot 0x800000 openwrt-kirkwood-dockstar-u-boot.kwb
 nand erase 0x000000 0x80000 nand erase 0x000000 0x80000
-nand write.e 0x800000 0x000000 ​0x40000+nand write.e 0x800000 0x000000 ​0x80000
 setenv bootcmd nand read.e 0x2000000 0x100000 0x400000\; go 0x2000000 setenv bootcmd nand read.e 0x2000000 0x100000 0x400000\; go 0x2000000
 saveenv saveenv
Line 174: Line 194:
 Press the reset button or power cycle your Dockstar. Your Dockstar should now boot into OpenWrt. Press the reset button or power cycle your Dockstar. Your Dockstar should now boot into OpenWrt.
 If it does not something went wrong and you'll need to gain serial access to recover it. If it does not something went wrong and you'll need to gain serial access to recover it.
 +
  
 ==== Reinstall ==== ==== Reinstall ====
Line 194: Line 215:
 </​code>​ | </​code>​ |
 Your Dockstar should now boot into OpenWrt. If anything went wrong and you'll need to gain [[#​Serial|serial access]] to recover it. Your Dockstar should now boot into OpenWrt. If anything went wrong and you'll need to gain [[#​Serial|serial access]] to recover it.
- 
 ==== Overlay with SquashFS ==== ==== Overlay with SquashFS ====
 It is also possible to use the SquashFS image (ro filesystem). OpenWRT will create a jffs2 overlay on the mtd partition named rootfs_data. Eventually, you have to configure the 2nd stage bootloader to try SquashFS as rootfstype and rename the mtdpart 4 from "​data"​ to "​rootfs_data"​. It is also possible to use the SquashFS image (ro filesystem). OpenWRT will create a jffs2 overlay on the mtd partition named rootfs_data. Eventually, you have to configure the 2nd stage bootloader to try SquashFS as rootfstype and rename the mtdpart 4 from "​data"​ to "​rootfs_data"​.
Line 308: Line 328:
 umount /dev/sda1 umount /dev/sda1
 </​code>​ </​code>​
 +
 +==== Recovery ====
 +
 +There are many recovery images out in the wild. Some have requirements on the version of U-Boot that your boot-strapping from. Information regarding recovery on older version of U-Boot can be obtained in this [[http://​forum.doozan.com/​read.php?​4,​1871,​1871#​msg-1871|thread]]. To bypass a bug in U-Boot, it might be required to specify the Machine ID to 0x831 in the U-Boots enviroment.
 +<​code>​
 +setenv machid 831
 +</​code>​
 +
 +Here is details of the post from Johannes and the required [[http://​www.sendspace.com/​file/​d6ffyd|RAM based rescue system here:]] (The md5 hash of the zip file is 7f225435709cd0ffbb3619f86af42986)
 +
 +"​Booting the rescue system is accomplished by using uBoot to load the kernel and the root filesystem into RAM and calling bootm with the two addresses. For example, the following sequence will load the [[http://​forum.doozan.com/​read.php?​4,​1871,​1871#​msg-1871|rescue system]] from the root directory of an ext2 (or ext3) formatted USB stick (in position 1):
 +<​code>​
 +setenv machid 831
 +usb start
 +ext2load usb 0:1 0x800000 uImage-rescue
 +ext2load usb 0:1 0xe00000 uInitrd-rescue
 +setenv bootargs console=$console netconsole=6666@10.0.0.3/​eth0,​6666@10.0.0.2/​12:​23:​34:​45:​56:​67 $mtdparts
 +bootm 0x800000 0xe00000
 +</​code>​
 +
 +These files can also be loaded from a TFTP server (tftp-hpa). ​
 +<​code>​
 +setenv ipaddr 10.0.0.2
 +setenv serverip 10.0.0.1
 +setenv machid 831
 +tftpboot 0x800000 uImage-rescue
 +tftpboot 0xe00000 uInitrd-rescue
 +setenv bootargs console=$console netconsole=6666@10.0.0.3/​eth0,​6666@10.0.0.2/​12:​23:​34:​45:​56:​67 $mtdparts
 +bootm 0x800000 0xe00000
 +</​code>​
 +or to set it as a script:
 +<​code>​
 +setenv recovery '​setenv serverip 10.0.1 ; setenv ipaddr 10.0.0.2 ; machid 831 ;tftpboot 0x800000 uImage-rescue ; tftpboot 0xe00000 uInitrd-rescue ; setenv bootargs console=$console $mtdparts ; bootm 0x800000 0xe00000
 +run recovery
 +</​code>​
 +
 +The L/P are: root/root
 +
 +
 +===== Newer uBoot as workaround to 3.2 kernel problem =====
 +
 +Please see this [[http://​forum.doozan.com/​read.php?​3,​6965,​6965#​msg-6965|post by davygravy]] as it will give you the steps and files required to upgrade U-Boot to boot newer kernels ( 3.2.x >= ).
 +
 +===== JTAG Recovery =====
 +Here are a few links for JTAG recovery:
 +[[http://​plume.redox.ws/​article13/​dockstar-debricking-jtag-with-buspirate|Debricking w/ BusPirate]]
 +[[http://​www.yourwarrantyisvoid.com/​2010/​09/​08/​dead-dockstar-resurrected-with-jtag/​| Debricking w/ Parallel JTAG]]
  
 ===== U-Boot Mods ===== ===== U-Boot Mods =====
Line 324: Line 391:
  
 According to [[http://​gsg-elektronik.de/?​id=96|this page]] (German), the Dockstar has jumpers to set the multipliers for the CPU, RAM and AHB, and there are three selectable CPU speed: 1.0 GHz, 1.2 GHz and 1.5 GHz. To switch from 1.2 to 1.5 GHz, three surface-mounted resistors have to be resoldered. Please note that according to the author of the page, the Dockstar is not 100% reliable at full speed, and may require further modifications to achieve stability. Underclocking to 1.0 Ghz is also possible, but the decrease in power consumption is likely not worth the hassle According to [[http://​gsg-elektronik.de/?​id=96|this page]] (German), the Dockstar has jumpers to set the multipliers for the CPU, RAM and AHB, and there are three selectable CPU speed: 1.0 GHz, 1.2 GHz and 1.5 GHz. To switch from 1.2 to 1.5 GHz, three surface-mounted resistors have to be resoldered. Please note that according to the author of the page, the Dockstar is not 100% reliable at full speed, and may require further modifications to achieve stability. Underclocking to 1.0 Ghz is also possible, but the decrease in power consumption is likely not worth the hassle
 +
 +===== External Installation Guides ======
 +[[https://​wiki.xkyle.com/​Install_Openwrt_on_a_Pogoplug|Install OpenWrt 10.03 on a Seagate Dockstar]]
  
 ===== 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 ​marvell kirkwood}}
toh/seagate/dockstar.1367489990.txt.bz2 · Last modified: 2013/05/02 12:19 (external edit)