Seagate GoFlex Home not booting after reset

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Seagate GoFlex Home not booting after reset

Postby balanga » Tue Mar 28, 2017 10:16 pm

I first came across the possibility of installing Arch Linux on my GoFlex Home NAS a couple of years ago, but didn't want to risk breaking it. Now, I've managed to get a seperate dock so thought I'd give it a try, which I did and had it working, but after a couple of days, after messing about with it, I thought I'd start again since I may have messed things up... I did a factory reflash following the instructions here http://support.goflexhome.hipserv.com/en/reflash/, but that doesn't seem to have worked. I get a flashing green light which I believe means its booting...It's been booting for almost a day, so I guess I need some help getting access to it. Given that some of these threads go back five years or more, I'm not sure where to look.

Am I to understand that following the instructions here:- https://archlinuxarm.org/platforms/armv ... oflex-home means that the unit is not flashable? How do I get it to boot up properly?
balanga
 
Posts: 26
Joined: Thu Mar 16, 2017 1:04 pm

Re: Seagate GoFlex Home not booting after reset

Postby moonman » Tue Mar 28, 2017 11:53 pm

The unit is flashable. To reinstall ALARM one does not need to go back to stock.

If you flashed our UBoot then you did nothin with the reset button and your device still has our custom bootloader on it. All you need to do is extract the ALARM rootfs tarball onto a flash drive/hard drive, put it into goflex and boot up into arch. There are many topics on how to do that.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Seagate GoFlex Home not booting after reset

Postby balanga » Wed Mar 29, 2017 6:39 am

Thanks for the reply, I wasn't sure if anyone still read this particular forum.

I'm sure there are many threads, but as a newbie it's difficult to access which ones are the most relevant.

Would this tarball be any use?

https://github.com/greguu/alarm-zaurus- ... 016.tar.xz
balanga
 
Posts: 26
Joined: Thu Mar 16, 2017 1:04 pm

Re: Seagate GoFlex Home not booting after reset

Postby pm4888 » Wed Mar 29, 2017 2:33 pm

pm4888
 
Posts: 17
Joined: Thu Aug 22, 2013 2:20 pm
Location: Albany, NY

Re: Seagate GoFlex Home not booting after reset

Postby balanga » Fri Mar 31, 2017 8:19 am

I have now made some progress.... When switching on the unit, it first switches on the red light, very briefly and then goes to a steady green, not blinking, which I assume means it has booted up, but my DHCP server has not assigned any new IP addresses so am unable to communicate with the unit. Do I need to add some instructions on the USB so that the system obtains an IP address?
balanga
 
Posts: 26
Joined: Thu Mar 16, 2017 1:04 pm

Re: Seagate GoFlex Home not booting after reset

Postby balanga » Fri Apr 28, 2017 8:25 pm

The unit doesn't seem to acquire an IP address. I run a DHCP server but request is made for an IP address. How can I tell what's going on? Does the unit write a log file such as dmesg to the USB card whilst booting which I can examine on another computer?
balanga
 
Posts: 26
Joined: Thu Mar 16, 2017 1:04 pm

Re: Seagate GoFlex Home not booting after reset

Postby moonman » Fri Apr 28, 2017 11:37 pm

There is no way of knowing whatsup without serial console.
If you didn't mess around with uboot everything should work. Get the usb to TTL adapter to see what's really going on. They are pretty cheap.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Seagate GoFlex Home not booting after reset

Postby davidnl » Thu May 11, 2017 8:37 pm

First off, I will state how I understand the system operation after doing this yesterday and today:
The goflex home base unit has internal firmware (referred to as uboot) that is, for all intents, the bootloader and hardware manager portion of the environment. This system first starts (the blinking green light says that this is "currently" what is running the hardware), and then will, by default, attempt to scan for operating systems on the USB port (first) and the connected hard drive on the SATA interface (second). When it finds a bootable machine (with the proper OS bootable image), it loads that in to memory (the orange light appears to be this step) and then the new OS runs and operates the machine (the solid green).

Most likely, there is a problem here with either:
1) no OS found on the devices (should stay flashing green)
2) the OS loading has crashed/stuck (solid green)
3) the OS is running fine but no IP network available (also solid green)

I had an issue with #3... I was not aware this was the case until I used a USB serial connection (one I used for my raspberry pi) and connected to the serial console to see what was happening. This meant I had to take the unit apart carefully and connect the cable to the pin holes for the serial port... but that was not hard... just take your time if doing. Google for details - I wont go in to it from here.

My issue was that during the process to load Arch Linux the UBOOT system lost the MAC address of the network card, so it was showing up in the OS as all 0's. Again, google to see how to easily set the MAC at UBOOT console to fix this. Again, you will need the serial connection as this error prevents an IP stack on the card.
Once on the UBOOT console, I just did this:
setenv ethaddr XX:XX:XX:XX:XX:XX (the address is on the sticker on the device!)
saveenv

After fixing that, I also found another issue: the 3TB drive was reporting only 2TB available. It was originally formatted using "fdisk" but not one that could deal with large drives over 2TB in size... so I attempted to fix it and fouled it up, and stopped it from working. I ended up corrupting the MBR and GPT of the drive so it was not able to be read by UBOOT anymore.

While attempting to fix, I had used a USB to SATA adapter to connect the 3TB drive to my Laptop. I was going insane on this as the drive appeared corrupted and was reporting only 746GB available, lots of errors when using fdisk, gdisk, parted, etc to repartition. I even tried getting windows to re-partition it unsuccessfully. Using Seagate's own SEATOOLS in Windows said the drive was okay, and should be 3TB, but nope. I found the problem eventualy.... it was the USB to SATA adapter! The drive was reporting 512byte PHYSICAL blocks, when it was supposed to be 4096bytes... and nothing would fix that. It was the darned USB interface.

To fix, I created a USB stick with the "kirkwood" distribution using my laptop (running ubuntu)... for a tip, dont worry about using bsdtar, just use native tar and ignore the thousands of errors...
so instead of: bsdtar -xpf ArchLinuxARM-kirkwood-latest.tar.gz
use: tar -zxvf ArchLinuxARM-kirkwood-latest.tar.gz
ignore the "SHILLY" errors... :)

TIP: also copy the ArchLinuxARM-kirkwood-latest.tar.gz to that USB as well... will use again!

It took me 3 USB sticks to get one that worked... I was using cheapo/free ones I had and they would not boot... I used a 16G Lexar and it worked perfectly... so quality does matter!

Anyway - after doing that, I rebooted with the USB and with the drive connected to the SATA port, used the USB image Linux environment to partition the drive with parted... easy enough to do. Used GPT, created a 20G Linux partition, a 2G swap partition, and the rest (2.7TB) as an NTFS partition. (not formatting yet).

Did the normal filesystem creation on the new 20GB partition (I think it was sda1 for the drive): mkefs -j /dev/sda1
Then did the same "tar -xzvf Arch....." to place the OS image on the HDD.

I then rebooted... and..... NOTHIN!

Using the console cable again, I was able to see that the UBOOT environment was saying that there was a corrupt GPT... and I also found out on google that this is because the version of UBOOT used on the machine did not support the larger drives. I followed this simple process:
1) booted from the USB stick again
2) pacman -U http://archlinuxarm.org/builder/testing ... pkg.tar.xz
3) rebooted without the USB stick

The system then ran perfectly.

Most of my headaches ended up being related to the USB to SATA cable I was using... but the other issues were troubling.

So, in the end, I had the following items to do, and I am working perfectly now:

1) get serial cable connected to access to uboot
2) update the MAC address in firmware
3) boot from a good USB stick image and update UBOOT firmware to support large disks
4) use parted (not fdisk) to configure a proper GPT partition table structure while the hard drive is connected via SATA (dont connect to another machine to work on the drive using a USB to SATA connection!)

Kudos to the kirkwood distro for having most items configured. I did have to use pacman to install wget and (parted I believe), but that was minor stuff.

The Seagate GoFlex Home is now working perfectly as a SAMBA server and running other software (btsync/rslsync) and using the entire drive's storage perfectly!

--------------
some errors seen to help index this for people to find:
Warning: failed to set MAC address
print_part_efi: *** ERROR: Invalid GPT ***
tar: Ignoring unknown extended header keyword 'SCHILY.fflags'
ignoring malformed pax extended attribute
seagate goflex home bricked
davidnl
 
Posts: 1
Joined: Thu May 11, 2017 7:56 pm

Re: Seagate GoFlex Home not booting after reset

Postby moonman » Sat May 13, 2017 2:12 am

A couple of corrections:
Uboot is not firmware. Uboot is the bootloader.

Blinking green - No kernel loaded
Orange indicates fault, so uboot failed to load kernel from first boot device - at this point it will stay orange untill the kernel is loaded from another device.
Solid green - kernel has been loaded and is now in control

One can install uboot from the repository with pacman instead of using that outdated testing version
(pacman -Sy uboot-goflexhome for this device)

You can now use fdisk to create GPT partition table now, you need a newer version though.

You can use ext4 for the rootfs filesystem instead of ext3 and there is no more 20GB limitation for the rootfs partition.

Otherwise kudos persistence, doing your own research and finally solving it!
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Seagate GoFlex Home not booting after reset

Postby tomeq » Sat Jun 10, 2017 9:13 am

Hi,

One small thing to note about installation of Arch on the GoFlex. Going step-by-step with the installation manual works perfectly fine :) BUT.... if you reboot you'll end up with blinking green led. I was thinking to go to the electronic store for ttl->usb converter but simply took a breath, stopped and ..... turn off and turn on the device.

It worked :) So, if you end up with blinking green after first reboot from command line, don't panic. Just turn off and turn on the box. It will fix the problem.

Thanks!
Tomek
tomeq
 
Posts: 1
Joined: Sat Jun 10, 2017 9:09 am

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: Google [Bot] and 9 guests