GoFlex Home Flashing Amber

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

GoFlex Home Flashing Amber

Postby danw » Sat Jan 26, 2013 1:46 am

I have a Goflex Home, that I installed uBoot on and and was able to bot into arch and debian on USB sticks. I was trying to get it to boot from SATA and also from Rescue V2.8.2 (NAND).

I used the following shell script, that I peiced together from various forum posts here and at forums.doozen.com, to set the environment variables:

$this->bbcode_second_pass_code('', 'fw_printenv | awk -F "=" '{ print $1 }' | xargs -n1 fw_setenv # clear out old values
fw_setenv arcNumber '3338'
fw_setenv baudrate '115200'
fw_setenv bootcmd_usb 'run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot;'
fw_setenv bootdelay '3'
fw_setenv console 'ttyS0,115200'
fw_setenv ethact 'egiga0'
fw_setenv ethaddr '02:50:43:26:87:63'
fw_setenv led_error 'orange 'blinking'
fw_setenv led_exit 'green off'
fw_setenv led_init 'green blinking'
fw_setenv mainlineLinux 'yes'
fw_setenv mtdids 'nand0 'orion_nand'
fw_setenv mtdparts 'mtdparts orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)'
fw_setenv partition 'nand0,2'
fw_setenv set_bootargs_usb 'setenv bootargs console $console root $usb_root rootdelay $usb_rootdelay rootfstype $usb_rootfstype $mtdparts'
fw_setenv serverip '10.0.1.27'' # my iMac
fw_setenv ipaddr '10.0.1.3' # the GoFlex
fw_setenv if_netconsole 'ping $serverip'
fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
fw_setenv preboot 'run if_netconsole start_netconsole'
fw_setenv usb_boot 'if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;'
fw_setenv usb_device '0:1'
fw_setenv usb_load_uimage 'mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage'
fw_setenv usb_root '/dev/sda1'
fw_setenv usb_rootdelay '10'
fw_setenv usb_rootfstype 'ext2'
fw_setenv set_bootargs_rescue 'setenv bootargs console $console ubi.mtd 2 root ubi0:rootfs ro rootfstype ubifs $mtdparts'
fw_setenv bootcmd_rescue 'run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
fw_setenv bootcmd_pogo 'run bootcmd_rescue'
fw_setenv rescue_installed '1'
fw_setenv serverip '192.168.1.119' #### this is a duplicate line I failed to edit/delete ######
fw_setenv usb_init 'usb start; setenv usb_root LABEL rootfs'
fw_setenv sata_init 'ide reset'
fw_setenv sata_root '/dev/sda1'
fw_setenv sata_rootfstype 'ext2'
fw_setenv bootcmd_sata 'run sata_init; run sata_load_uimage; run set_bootargs_sata; run sata_boot;'
fw_setenv set_bootargs_sata 'setenv bootargs console $console root $sata_root rootdelay $sata_rootdelay rootfstype $sata_rootfstype $mtdparts'
fw_setenv sata_rootdelay '8'
fw_setenv sata_device '0:1'
fw_setenv sata_boot 'if ext2load ide $sata_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;'
fw_setenv bootcmd 'run bootcmd_usb; usb stop; run bootcmd_sata; run bootcmd_pogo; reset'
fw_setenv sata_load_uimage 'mw 0x800000 0 1; ext2load ide $sata_device 0x800000 /boot/uImage'')

When I rebooted I got a continuous flashing amber light.
Apparently I made some errors in the above script (including a duplicate line I failed to edit/delete).

I can't get a response on nc
$this->bbcode_second_pass_code('', 'nc -u -l 6666 #on osx ')

Is there any usb images that will boot in the current state, or any other way to recover?
danw
 
Posts: 3
Joined: Sat Jan 26, 2013 12:33 am

Re: GoFlex Home Flashing Amber

Postby moonman » Sat Jan 26, 2013 7:30 am

set bootargs usb is missing. I would try to boot sata, if not - get serial. Messing with uboot without serial = bad idea

Edit: Nope, its there.
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: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: GoFlex Home Flashing Amber

Postby danw » Sat Jan 26, 2013 8:06 am

$this->bbcode_second_pass_quote('moonman', 's')et bootargs usb is missing. I would try to boot sata, if not - get serial. Messing with uboot without serial = bad idea

Edit: Nope, its there.

it won't boot from SATA either ( at least not my current installed system).

The GoFlex doesn't have an external serial port, can you tell me how to open it up and how to attach a serial connector? I haven't been able to find instructions.

I'm really surprised that there is no failsafe built into uBoot, that resets the env to the defaults settings. The device does have a reset bitton after all.
danw
 
Posts: 3
Joined: Sat Jan 26, 2013 12:33 am

Re: GoFlex Home Flashing Amber

Postby moonman » Sat Jan 26, 2013 8:54 am

Your drives are ext2, right? Just remove 2 screws at the bottom and use an old creditcard to insert it in the gap at the bottom and force it open. I broke a couple of hooks inside, but it doesnt matter.
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: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: GoFlex Home Flashing Amber

Postby danw » Sat Jan 26, 2013 3:24 pm

$this->bbcode_second_pass_quote('moonman', 'Y')our drives are ext2, right? Just remove 2 screws at the bottom and use an old creditcard to insert it in the gap at the bottom and force it open. I broke a couple of hooks inside, but it doesnt matter.


I have no idea what you are talking about. there are no scres on the bottom that I can see where are they? And what gap are you talking about?

Are you talking about the right device? this is the one I have:
Image
danw
 
Posts: 3
Joined: Sat Jan 26, 2013 12:33 am

Re: GoFlex Home Flashing Amber

Postby moonman » Sat Jan 26, 2013 7:34 pm

Yes, I am talking about GF Home.

Screws are under the rubber feet at the front of the device. Get rid of the rubber feet, and you will see the screws. Maybe these pictures will help you understand how to open it AFTER you remove the screws:

http://www.openstora.com/phpBB3/viewtopic.php?t=1700
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: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: GoFlex Home Flashing Amber

Postby pepedog » Sat Jan 26, 2013 9:10 pm

I don't think scripting or bulk pasting of fw_setenv lines into uBoot, if and when you get in with serial.
UBoot just doesn't have the cli buffer of Linux
It's paste line by line
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 152 guests