Skip to content

Instantly share code, notes, and snippets.

@rzrbld
Last active May 30, 2023 20:35
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rzrbld/b2e8814ec1fbb47fb6c38a551eae8ae1 to your computer and use it in GitHub Desktop.
Save rzrbld/b2e8814ec1fbb47fb6c38a551eae8ae1 to your computer and use it in GitHub Desktop.
Seagate Central Replace HDD

let's suppose you don't have any drive in Seagate Central first of all you need to check if board is ok (you can pass this step an go to Phase 4. if you already know it)

Phase 1 (serial tty)

pre requests

  1. usb-to-tty or Arduino
  2. Screwdriver and card

steps

  1. find J2 connector on board. If sata connector look at the left, and ethernet port look at you - j2 connector is on right of the board and look like this:
  |  |              |tx|rx 
       j2   --- >      
  |  |              |  |gnd 
  1. Connect USB-to-tty RX to j2 TX, USB-to-tty TX to j2 RX, USB-to-tty GND to j2 GND
  2. Plug in USB-to-tty to your computer
  3. Run Terminal or Putty (you name it) for example:
sudo screen /dev/ttyUSB0 38400,cs8
  1. Plug in power to "Seagate Central" board
  2. Look at the output in console

If you see the loader - it may be ok, type help in bootloader command prompt to get more info

Phase 2 (download Seagate Central firmware)

  1. Go to seagate site and download latest Firmware
  2. Unpack zip file
  3. Unpack img file
tar -zxpvf Seagate-HS-update-201509160008F.img
ll .
total 126M
-rwxrwxrwx 1 root root  191 июн 21 21:13 config.ser
-rwxrwxrwx 1 root root 123M июн 21 21:14 rfs.squashfs
-rwxrwxrwx 1 root root 2,9M июн 21 21:14 uImage

  1. Unpack squashfs file
sudo unsquashfs rfs.squashfs
ll squashfs-root 
total 88K
drwxrwxr-x  3 root root 4,0K сен 17  2015 apps
drwxrwxr-x  2 root root 4,0K сен 17  2015 bin
drwxrwxr-x  5 root root 4,0K сен 17  2015 blackarmor
drwxr-xr-x  2 root root 4,0K сен 17  2015 boot
drwxrwxr-x  6 root root 4,0K сен 17  2015 cirrus
-rw-rw-rw-  1 root root 1,3K сен 17  2015 cornerstone
drwxr-xr-x  2 root root 4,0K сен 17  2015 dev
drwxrwxr-x 43 root root 4,0K сен 17  2015 etc
drwxrwxr-x  3 root root 4,0K сен 17  2015 home
drwxrwxr-x  5 root root 4,0K сен 17  2015 lib
lrwxrwxrwx  1 root root   12 сен 17  2015 linuxrc -> /bin/busybox
drwxrwxr-x 10 root root 4,0K сен 17  2015 media
drwxrwxr-x  8 root root 4,0K сен 17  2015 media_server
drwxrwxr-x  6 root root 4,0K сен 17  2015 mindsource
drwxrwxr-x 20 root root 4,0K сен 17  2015 mnt
drwxr-xr-x  2 root root 4,0K сен 17  2015 proc
drwxrwxr-x  2 root root 4,0K сен 17  2015 sbin
drwxr-xr-x  2 root root 4,0K сен 17  2015 sys
drwxrwxrwt  2 root root 4,0K сен 17  2015 tmp
drwxrwxr-x 11 root root 4,0K сен 17  2015 usr
drwxrwxr-x  9 root root 4,0K сен 17  2015 var
drwxrwxr-x  5 root root 4,0K сен 17  2015 www
drwxrwxr-x  2 root root 4,0K сен 17  2015 www_services

Phase 3 (load from tftp)

  1. run tftp server on your PC with root folder in /tftpboot
  2. place uImage file from previous phase to /tftpboot folder
ll /tftpboot
-rwxrwxrwx 1 root root 2,9M июн 21 21:14 uImage
  1. Plug in PC and Seagate Central on the same switch or if you don't have it - wifi router also can be good.
  2. configure static Ehernet address on your PC
ip: 192.168.1.100
mask: 255.255.255.0
gw: 192.168.1.1
  1. go to TTY-termial and run tftpboot (static IP) command or bootp (autodiscovery tftp server)
  2. if everythig is ok uImage will be loaded in memory
  3. boot it - by typing go 0x800000
  4. Seagate Central will start booting, and drop to kernel panic - cause ther is no partition with rootfs

Phase 4 (creating the disk)

  1. Pick any drive SSD or HDD drive with at least 30GB of space and connect it to your PC
  2. Make gpt Partition table on it
  3. Make this partitions:
Disk /dev/sdb: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                Flags
 1      1049kB  23,1MB  22,0MB  ext2            Kernel_1            msftdata
 2      23,1MB  45,1MB  22,0MB  ext2            Kernel_2            msftdata
 3      45,1MB  1171MB  1126MB  ext4            Root_File_System_1  msftdata
 4      1171MB  2297MB  1126MB  ext4            Root_File_System_2  msftdata
 5      2297MB  3424MB  1126MB  ext4            Config              msftdata
 6      3424MB  4550MB  1126MB  linux-swap(v1)  Swap                swap
 7      4550MB  5676MB  1126MB  ext4            Update              msftdata
 8      5676MB  240GB   234GB   ext4            Data                lvm

Warning! all ext4 partitons must be whitout optional fatures 400 and 240, if you don't know what is it - just format this ext4 partitons to ext2

  1. Copy uImage file form Phase 2 to the root of partitions Kernel_1 and Kernel_2
  2. Copy content of squashfs-root folder from Phase 2 to the root of Root_File_System_1 and Root_File_System_2
  3. run sync
  4. Unplug "The New Drive" form your PC and plug in to SATA connector of the "Seagate Central" board
  5. Plug-in to the network and power on "Seagate Central" board. Wait 3-5 minutes to loading (or look at TTY-console)
  6. Go to Seagate Central WEB-UI - and do the registration step, skip tutorial
  7. Go to "Firmware Update" - and make a proper update from official img file
  8. After update - make "Clear All Reset"
  9. Thats it.
@tab-it
Copy link

tab-it commented Nov 3, 2020

You will share the finished system image.
Despite doing everything according like in your guidelines, Segate Central only flashes green and this is end.

@rzrbld
Copy link
Author

rzrbld commented Nov 24, 2020

@tab-it sorry but i don't have seagate central anymore( you can look at serial output maybe this will help.

@bertofurth
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment