GoFLEX Home to boot from mtd0

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

GoFLEX Home to boot from mtd0

Postby habibie » Mon Feb 23, 2015 8:40 pm

Recently, I received a used and bricked Seagate GoFLEX Home unit and managed to recovered it. The previous owner had hacked it to run ALARM using steps of instruction outlined here. As such, it is no longer able to boot from its mtd0 partition. To me, not being able to use the 256 MB MTD partition is a waste. So, I read this [HowTo] Boot to Pogo OS on GoFlex Home using Mainline U-Boot several times before decided to go ahead. So far, I have the u-boot updated to the mainline u-boot without a problem. Also, I have proceeded through step #5 of [HowTo] Boot to Pogo OS on GoFlex Home using Mainline U-Boot and now am able to see what is on mtd0. ATM, I am reluctant to proceed to step #6 and #7 which requires to download/install a uboot-mtd0-orig-goflexhome.kwb file into the root directory of the mtd0 partition. Aside from this, I also have another Seagate GoFLEX Home up running with its original firmware whose bootcmd environment is shown below. What I would like to know is if my GoFLEX Home (already updated with the mainline u-boot) will be able to boot from mtd0 using the original bootcmd as shown below. Can anyone confirm this before I proceed?
$this->bbcode_second_pass_code('', '-bash-3.2# fw_printenv bootcmd
bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000
-bash-3.2#')
habibie
 
Posts: 28
Joined: Sun Nov 04, 2012 11:55 am

Re: GoFLEX Home to boot from mtd0

Postby grayman4hire » Tue Feb 24, 2015 4:01 am

Sorry, don't really understand your question.

Why would the bootcmd from your unmodified GoFlex Home work on your GoFlex Home running the latest mainline uboot? Of course it wouldn't work. :)

Your bootcmd should be what is documented in hydro's tutorial.

Also, shouldn't you need to use blparam to list the stock uboot env? Or is blparam only used on the Pogoplugs?
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: GoFLEX Home to boot from mtd0

Postby moonman » Tue Feb 24, 2015 4:25 am

IIRC blparam is jist for ppv4 because there was a thread a long time ago about fw_setenv messing up the uboot environment, which might not be the case anymore.
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: GoFLEX Home to boot from mtd0

Postby hydro » Tue Feb 24, 2015 9:25 am

habibie, as explained in step 6, the uboot-mtd0-orig-goflexhome.kwb did not work for me, I applied uboot.mtd0.dockstar.original.kwb instead. Just follow the commands in the code blocks. Unfortunately some line breaks might make it difficult to differentiate between user input and console output, step 7, for example, has only three long input commands, no console output.

The modifications to the U-Boot environment performed in step 7 will cause mainline U-Boot to chainload the stock bootloader that has become accessible through the uboot.mtd0.dockstar.original.kwb file (which being present in the ubi filesystem alone has no effect). This stock bootloader uses a different environment, as grayman4hire already indicated. Be careful with the blparam command, there is no need to use it at all.

Btw. netconsole mentioned in step 9 will not work with mainline U-Boot. To make it work I had patched and recompiled the uboot-goflexhome package, you can find the binary package and also the source package on my site.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: GoFLEX Home to boot from mtd0

Postby habibie » Tue Feb 24, 2015 6:51 pm

Hydro,

Thank you.
habibie
 
Posts: 28
Joined: Sun Nov 04, 2012 11:55 am

Re: GoFLEX Home to boot from mtd0

Postby grayman4hire » Tue Feb 24, 2015 8:22 pm

$this->bbcode_second_pass_quote('hydro', '
')Btw. netconsole mentioned in step 9 will not work with mainline U-Boot.


I was going to recommend making sure netconsole was working properly before proceeding...

Is this a general problem with all the mainline U-Boot provided from archlinuxarm.org? I noticed the issue this weekend when I finally decided to setup my goflex net. I ended up using Bodhi's uboot instead.
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: GoFLEX Home to boot from mtd0

Postby hydro » Wed Feb 25, 2015 8:25 am

I wasn't very precise when I stated that netconsole doesn't work with mainline U-Boot. In fact mainline U-Boot is compiled with support for netconsole, but the preboot command, commonly used to start it, is missing. The fsload command is missing, too, but not required for the GoFlex Home.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: GoFLEX Home to boot from mtd0

Postby grayman4hire » Wed Feb 25, 2015 5:31 pm

$this->bbcode_second_pass_quote('hydro', 'I') wasn't very precise when I stated that netconsole doesn't work with mainline U-Boot. In fact mainline U-Boot is compiled with support for netconsole, but the preboot command, commonly used to start it, is missing. The fsload command is missing, too, but not required for the GoFlex Home.


@hydro,

I'm familiar with the missing fsload command (I reported that issue). :)

I think I understand the issue with netconsole, but wanted to confirm. So basically netconsole isn't working in the typical sense because the "preboot command" is missing (we're not talking about the preboot env). So the solution is to add the content of the "preboot env" (run if_netconsole start_netconsole') into (the front) of the bootcmd env?

Basically, the typically setting below will not work, because the preboot command isn't included in the uboot and 'run if_netconsole start_netconsole' is never executed, correct?
$this->bbcode_second_pass_code('', '
fw_setenv serverip 192.168.1.100
fw_setenv ipaddr 192.168.1.10
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'
')

Seems like a easy fix. Any idea why it hasn't been fixed yet?
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: GoFLEX Home to boot from mtd0

Postby hydro » Wed Feb 25, 2015 5:54 pm

All correct. I think someone has to submit a pull request.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 31 guests