GoFlex Net back to factory settings

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

GoFlex Net back to factory settings

Postby anwek » Mon Feb 21, 2011 6:10 pm

I have GoFlex Net. I instaled Arch Linux ARM install Linux.
I want to back to factory settings.
I backed up mtd0 mtd1 and mtd2 before instaled Arch Linux ARM install Linux.

I used nanddump from http://Arch Linux ARM.com/os/pogoplug/uboot/nanddump:

nanddump -nf usb/mtd0.oob /dev/mtd0
nanddump -nf usb/mtd1.oob /dev/mtd1
nanddump -nf usb/mtd2.oob /dev/mtd2
nanddump -nof usb/mtd0 /dev/mtd0
nanddump -nof usb/mtd1 /dev/mtd1
nanddump -nof usb/mtd2 /dev/mtd2

I have all this files.

How can I restore them? How can I back to factory settings?
anwek
 
Posts: 1
Joined: Mon Feb 21, 2011 5:40 pm

Re: GoFlex Net back to factory settings

Postby peaslaker » Mon Feb 21, 2011 6:19 pm

[deleted]
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

Re: GoFlex Net back to factory settings

Postby peaslaker » Mon Feb 21, 2011 7:05 pm

Returning to Pogoplug functionality requires that all the Pogoplug components are installed correctly in their proper locations:

1. Pogoplug U-Boot in the first 512KB of /dev/mtd0
2. Pogoplug U-Boot envrionment at 0xa0000 on /dev/mtd0
3. Pogoplug kernel at addresses 0x000000 to 0x300000 on /dev/mtd1
4. Pogoplug jffs2 root filesystem on /dev/mtd2

For Pogoplug, /dev/mtd3 is not used at all so all changes to /dev/mtd3 are irrelevant.

The biggest problem is: 2. Pogoplug U-Boot environment. There is no apparent way to reflash this environment, without destroying its checksum so it needs to be intact. If it is not intact, you cannot revert without a serial cable.

For a UBIT install performed exactly in accordance with the documented install procedures, only the Pogoplug U-Boot will have been replaced. If you have any doubt as to the state of the machine you need to test the presence and validity of the other components before reinstalling the Pogoplug U-Boot.

This will start up a fresh UBIT session using chroot without having to reboot.
$this->bbcode_second_pass_code('', '
cd /tmp
wget http://jeff.doozan.com/debian/goflex/v0.6/uInitrd
wget http://jeff.doozan.com/debian/goflex/v0.6/ubit_start
chmod +x ubit_start

# this is needed by ubit_start
pacman -Sy cpio

./ubit_start
')

From here you can enter the commands:
$this->bbcode_second_pass_code('', '
# this mounts the Pogoplug root filesystem from /dev/mtd1
mount -t jffs2 -o ro /dev/mtdblock2 rw

# this will only work if the Pogoplug root filesystem mounted OK.
chroot rw /bin/bash # You are now chrooted into the Pogoplug root filesystem

#From within the Pogoplug root filesystem we can verify the Pogoplug environment.
/usr/local/cloudengines/bin/blparam

exit # this gets you out of the Pogoplug root filesystem and back to UBIT
')

The above should run without error and give a printout of your original Pogoplug U-Boot environment. IF IT HAS ERRORS YOU NEED A SERIAL CABLE!!! (and going any further with these instructions will leave you with a brick).

At this stage we haven't checked for the kernel in /dev/mtd1 but it doesn't get changed by UBIT and if you got this far successfully it is probably intact. IF IT ISN'T INTACT, YOU WILL NEED A SERIAL CABLE TO RECOVER

To restore the original Pogoplug U-Boot (this is the only "flashing" we are doing), while still within the chrooted UBIT environment:
$this->bbcode_second_pass_code('', '
chain_install goflexnet
chain_revert
exit # to leave the chrooted GoFlex environment.
')
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

Re: GoFlex Net back to factory settings

Postby etzbseder » Sat Jan 28, 2012 6:22 am

I can't get get this to work, can you please help?

$this->bbcode_second_pass_quote('', '#') this will only work if the Pogoplug root filesystem mounted OK.
chroot rw /bin/bash # You are now chrooted into the Pogoplug root filesystem
etzbseder
 
Posts: 12
Joined: Sun Jan 22, 2012 3:46 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 1 guest