Welcome! Log In Create A New Profile

Advanced

GoFlexNet not getting IP

Posted by Neptune 
GoFlexNet not getting IP
July 05, 2014 11:41PM
I had installed archlinux on my goflexnet around 2 years back. Being a noob, had somehow managed to do it reading over articles on net.

Current situation: While I was doing some cleanup, I feel I had removed/deleted some critical files which has made the unit unusable as its not getting IP.
What I have tried:
1. I have tried reinstalling archlinux on different pen drive mentioned here. http://archlinuxarm.org/support/reinstallation
2. Have tried installing debian also using the guide here http://forum.doozan.com/read.php?2,12096

Both the steps didnt helped although and the light blinks for few seconds and then it remains solid green.

I have been searching for the solution but didnt found something very helpful. Looking forward to your suggestions and hope it starts working :)
Re: GoFlexNet not getting IP
July 06, 2014 01:49PM
Neptune,

IIRC, Arch used to install U-Bit on your GoFlex Net, not the latest U-boot. So to revive your box don't reinstall, follow the instruction at
http://archlinuxarm.org/platforms/armv5/seagate-goflex-net.
step 11 to the last step to download the latest ALARM rootfs, prepare the rootfs and, install new u-boot.

After getting Arch running, if you choose to, you can run Debian rootfs following this:
http://forum.doozan.com/read.php?2,12096

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: GoFlexNet not getting IP
July 06, 2014 01:58PM
Thanks Bodhi.
Just to make it clear:
Step 11 and 12: To be done on a separate USB Drive and then the USB has to be plugged into Goflex?
Re: GoFlexNet not getting IP
July 06, 2014 02:05PM
Neptune,

Yes. Do these steps on a different Linux box (If you don't have one then download Linux Live CD and boot your PC or Mac with it).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: GoFlexNet not getting IP
July 06, 2014 02:27PM
Getting this error:

root@ubuntu:/tmp# ./mke2fs -j /dev/sdb1
bash: ./mke2fs: cannot execute binary file: Exec format error

(BTW I am running Ubuntu 14.04 LTS - 64 bit)



Edited 1 time(s). Last edit at 07/06/2014 02:30PM by Neptune.
Re: GoFlexNet not getting IP
July 06, 2014 02:52PM
The command should be (this is the standard mke2fs on your Ubuntu, don't use the downloaded temporary binaries).
mke2fs -j /dev/sdb1

Aso, probably you should to use fdisk to delete and create partition to make sure the USB is clean.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 07/06/2014 02:54PM by bodhi.
Re: GoFlexNet not getting IP
July 06, 2014 10:27PM
Here is what I did:
Took a new USB drive, formatted it with EXT3 using gparted.
Then:
wget http://archlinuxarm.org/os/ArchLinuxARM-kirkwood-latest.tar.gz
tar -zxvf ArchLinuxARM-kirkwood-latest.tar.gz -C alarm
umount alarm

The above all went successful and I can see various folders in the USB drive.

Umounted it and cold booted Goflex with it. The lights keeps on flashing and it didnt got any IP.


I am clueless as where I am getting it wrong. I believe Uboot has to be installed once the goflex boots with the above and I can get SSH access to it.

On a side note: When I plugged my old USB drive, the lights flashes for about 40 sec and then it turns on green solid. But still its not getting IP.

I am ready to reflash from scratch as I dont have any important data in the old drive and whatever was there I have already backed up.
Re: GoFlexNet not getting IP
July 07, 2014 01:39AM
Neptune,

Quote

tar -zxvf ArchLinuxARM-kirkwood-latest.tar.gz -C
This must be done as root user. Did you log into your Ubuntu as root?

Quote

I believe Uboot has to be installed once the goflex boots with the above and I can get SSH access to it.
If you've installed Arch a couple years ago, then it was U-Bit, not a standard installation of U-Boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: GoFlexNet not getting IP
July 07, 2014 10:30AM
Ok, here is what I have done.
Took new usb drive, formated it with ext3. Downloaded the latest tar from archlinux.
Tar it.
Replaced the boot as below


wget http://jeff.doozan.com/debian/goflex/v0.6/uInitrd
wget http://jeff.doozan.com/debian/goflex/v0.6/v2.6.37/boot.tar.gz

mv boot oldboot
tar -xvzf boot.tar.gz


Now after this, go flex os getting the ip and I am able to ssh.
I am getting prompt with ubit. Will share the screen shot from laptop.
Now while it is at ubit prompt, can I remove the new uab drive and plug old drive, format it and install archlinux?
How to update to uboot?
Re: GoFlexNet not getting IP
July 07, 2014 02:18PM
Neptune,

If you plan to run Arch then it is best to install the Arch's build of latest U-boot, and use the same Arch rootfs you've already have. Follow steps 13 and 14 here:
http://archlinuxarm.org/platforms/armv5/seagate-goflex-net

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: GoFlexNet not getting IP
July 07, 2014 11:30PM
Now getting this error :(

goflexnet.sh 100% |*******************************| 2250 --:--:-- ETA
ubit0-6:~# chmod +x goflexnet.sh
ubit0-6:~# ./goflexnet.sh
./goflexnet.sh: line 8: function: not found
./goflexnet.sh: line 9: function: not found
Re: GoFlexNet not getting IP
July 08, 2014 04:20AM
Try to boot with Arch rootfs first. And install u-boot form inside Arch.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: GoFlexNet not getting IP
July 08, 2014 04:26AM
Sadly, I am not able to boot in to archlinux. Whenever I boot it, it goes to the ubit prompt only.
Re: GoFlexNet not getting IP
July 08, 2014 08:26AM
A quick clarification,
1. when I am booting the goflex with usb drive plugged in, its getting IP and I can ssh and it gives me ubit prompt.
2. If I reboot without usb drive, it doesn't get IP and obviously I cannot ssh.
Re: GoFlexNet not getting IP
July 08, 2014 12:55PM
Neptune,

OK. It sounds like you should update U-Boot anyway. Here is a post where vlad successfully installed U-boot using Jeff's script (this is an older version of U-boot, but should work and revive your box). After you've done this, boot with Arch rootfs.
http://forum.doozan.com/read.php?3,6965,9111#msg-9111

Warning: updating U-boot always has some risk of bricking. Using Jeff's script, the risk is very small (eg. things like power outage). If you see anything strange going on during the script is running, don't reboot and post the entire log of what's going on here so we can help. The GoFlex Net can be unbricked with serial console if needed.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: GoFlexNet not getting IP
July 08, 2014 01:50PM
Your device could not be auto-detected.

You must be using a device listed below to run this installer.

What device are you using? Type the number of your device and press ENTER.
1 - Seagate Dockstar
2 - Seagate GoFlex Net
3 - Seagate GoFlex Home
4 - Pogoplug v1
5 - Pogoplug v2 - Pink
6 - Other
2
Selected Seagate GoFlex Net
./install_uboot_mtd0.sh: line 342: head: not found


./install_uboot_mtd0.sh: line 342: sed: not found

# Installing uBoot
## Installing goflexnet 
Connecting to download.doozan.com (50.116.34.13:80)
wget: server returned error: HTTP/1.1 404 Not Found
Connecting to download.doozan.com (50.116.34.13:80)
wget: server returned error: HTTP/1.1 404 Not Found
## uBoot could not be downloaded, or the MD5 does not match.
## Exiting. No changes were made to mtd0.



Edited 2 time(s). Last edit at 07/08/2014 02:39PM by Neptune.
Re: GoFlexNet not getting IP
July 08, 2014 04:15PM
For various reasons, with U-Bit, I am hesitated to recommend you to go straight to install my latest U-boot build . However, let's look at your U-Bit environment to see if it is safe to install it. At U-Bit prompt, pls get output of these commands and post them here:

uname -a
cat /proc/mtd
cat /etc/fw_env.config
fw_printenv
which flash_erase
which nandwrite
dmesg

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: GoFlexNet not getting IP
July 08, 2014 09:59PM
Ok, here are the output:
ubit0-6:~# uname -a
Linux ubit0-6 2.6.37-ubit-01715-g1e5cda0 #1 Mon Feb 7 01:35:47 GMT 2011 armv5tel GNU/Linux

ubit0-6:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "pogoplug"
mtd3: 0db00000 00020000 "root"

ubit0-6:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "pogoplug"
mtd3: 0db00000 00020000 "root"
ubit0-6:~# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0		0x60000		0x20000		0x20000


ubit0-6:~# fw_printenv
Too few good blocks within range

ubit0-6:~# which flash_erase
-sh: which: not found

ubit0-6:~# which nandwrite
-sh: which: not found

ubit0-6:~# dmesg
-sh: dmesg: not found


I have executed all these commands with rescue USB plugged in. As mentioned earlier, I have created the rescue disk using these:
wget http://jeff.doozan.com/debian/goflex/v0.6/uInitrd
wget http://jeff.doozan.com/debian/goflex/v0.6/v2.6.37/boot.tar.gz

mv boot oldboot
tar -xvzf boot.tar.gz


On a side note, I have tried to install Archlinux using the method mentioned below also but after reboot, the goflex is not getting IP and solid green light is on.

#IMPORTANT
# Once you have logged in to the UBIT prompt, unplug the USB stick to protect
# the rescue system from being altered.  The rescue system includes the OE firmware
# to allow reverting to normal GoFlex Home configuration (not recommended).

# WARNING DESTROYS CONTENT OF HARDDRIVE
# If you think it best to start from scratch on the GoFlex disk:
mke2fs -j /dev/sda1


on /dev/sda1 sh
wget http://www.Arch Linux ARM.com/os/2010.12/Plugbox-Linux-2010.12-rootfs.tar.gz
tar -xvzf Plugbox-Linux-2010.12-rootfs.tar.gz
mv boot/uImage boot/olduImage
wget http://jeff.doozan.com/debian/goflex/v0.6/v2.6.37/boot.tar.gz
wget http://jeff.doozan.com/debian/goflex/v0.6/v2.6.37/modules.tar.gz
tar -xvzf boot.tar.gz
tar -xvzf modules.tar.gz

# by the time you get here, you should just have a disk containing the Arch Linux ARM install
# root filesystem and the UBIT kernel.  This is a bootable combination with 
# the U-Boot you have installed.

exit  # exits from /dev/sda1
reboot; exit # hopefully reboots into Arch Linux ARM install

( I downloaded this one wget http://archlinuxarm.org/os/ArchLinuxARM-kirkwood-latest.tar.gz)


Thread link where the above method is mentioned http://archlinuxarm.org/forum/viewtopic.php?p=4447#p4445

Also, when I am trying to set the netconsole, I am getting the error:

ubit0-6:~# fw_setenv serverip 192.168.1.38
Too few good blocks within range
Error: environment not initialized



Edited 2 time(s). Last edit at 07/08/2014 10:15PM by Neptune.
Re: GoFlexNet not getting IP
July 09, 2014 03:00PM
Neptune,

I think it is best that you connect serial console before flashing the latest U-Boot. See varkey's instruction:
http://varkey.in/seagate-goflex-net-serial-connection/

Also this discussion about where to get the parts:
http://forum.doozan.com/read.php?8,13263

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 07/10/2014 03:05AM by bodhi.
Re: GoFlexNet not getting IP
July 10, 2014 02:49AM
Ok, I am arranging the parts and will update here. Thanks.
Re: GoFlexNet not getting IP
July 14, 2014 01:46PM
Finally managed to setup the serial console and I am getting lot of errors while its booting.
Let me know how to get the output so that it can be looked into.
Re: GoFlexNet not getting IP
July 14, 2014 02:00PM
This is output of printenv which I ran without attaching any USB:

http://pastebin.com/cCLc0RYh
Re: GoFlexNet not getting IP
July 14, 2014 02:48PM
Neptune,

The general idea is that you should try booting with Arch or Debian stick, and capture the entire boot log as it shown in serial console. And while in serial console prompt, printenv to get the settings of all u-boot envs. Perhaps the error is something easy to fix.

Only if you can't boot back into either Arch or Debian, then perhaps think about installing new U-boot from the rescue system.

Btw, the pastebin log file seems to be incompleted.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: GoFlexNet not getting IP
July 15, 2014 08:18PM
Is there a way to capture all the logs shows in the screen window as I am unable to copy all and I am also not able to scroll it.
I am using ubuntu.
Re: GoFlexNet not getting IP
July 15, 2014 08:47PM
This is the output when I attached the HDD which I was using earlier( I have formatted it with Ext3 and labelled it as rootfs)

Looks like, its unable to boot.

http://pastebin.com/2ZN1kJ4v
Re: GoFlexNet not getting IP
July 15, 2014 09:44PM
Neptune Wrote:
-------------------------------------------------------
> This is the output when I attached the HDD which I
> was using earlier( I have formatted it with Ext3
> and labelled it as rootfs)
>
> Looks like, its unable to boot.
>
> http://pastebin.com/2ZN1kJ4v

The log is incompleted so there is simply no way to know what happened before the HDD failed to initialized. On Ubuntu, you can use Terminal to capture the whole log.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: GoFlexNet not getting IP
July 18, 2014 12:41PM
Hi,
Been out from home for few days. Will update once I return back. Hope to solve the issue at the earliest.
Thanks.
Re: GoFlexNet not getting IP
July 29, 2014 04:07AM
Ok, I am back at my place and this is what I get when I boot from the disk formatted with ext3 and has archlinux installed.

http://pastebin.com/2esxKGTv

Here is the screen shot of the disk.

http://postimg.org/image/s3vfjy3sp/da843308/

http://postimg.org/image/o3yjo3o7d/c6ba5dee/
Re: GoFlexNet not getting IP
July 29, 2014 03:24PM
@Neptune,

I think the reason it did not boot was because you running an older version of U-Boot:
U-Boot 2010.09 (Feb 16 2011 - 18:42:02)
UBIT v0.6 by Jeff Doozan and Peter Carmichael

And your Arch rootfs has kernel 3.14:
Image Name:   Linux-3.14.4-1-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3965072 Bytes = 3.8 MiB

This U-Boot is too old for your 3.14 kernel to work ( L2 cache issue).

You need to go back to kernel 3.1.x or earlier to be able to boot with this UBIT/U-Boot. After you have booted successfully into Arch, you can update to the latest U-Boot (either using ALARM installation procedure for GoFlex Net at Arch site, or use U-Boot image in my U-boot thread)

Since I don't have a basic Debian rootfs that old, you can get a 3.1.x (or earlier) Arch rootfs at ALARM site. I'm sure someone can provide you to a link to old Arch rootfs. Download that and put it on an USB thumb drive and boot with it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: GoFlexNet not getting IP
July 29, 2014 09:00PM
@bodhi, I guess I had achieved the success :) (sounds silly but for me, its a great success).

I installed the earlier version of ARM and I am able to boot into it.

Log: http://pastebin.com/bkJanP9H
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: