Welcome! Log In Create A New Profile

Advanced

Install Debian on old GoFlex Home

Posted by valery 
Re: Install Debian on old GoFlex Home
March 03, 2019 01:16AM
--------------------------------
pigbone Wrote:
-------------------------------------------------------
> Hi Navi ! Thanks your support me !
> At step 8: I still steal the usb to my laptop or
> plug in the goflex. Can you tell me more about
> this step ?
-------------------------------------------

Hi Pigbone,

You can remove the new debian rootfs USB Stick from your laptop and continue on to step 8. In step 8 you will flash the GoFlex_Home Box and install latest U-boot. After you are done with installing latest uboot, you will take the USB stick you created in step 7and insert it into GoFlex_home box, remove the SATA drive from GoFlex_home box and turn the device on. If everything went well then the device will take less than a minute to boot and will show a steady green light.

for step 8 make sure that, you write down the MAC address that your GoFlex Home box is reporting on the Network and that you have already downloaded and placed the needed files in your GoFlex_home box:
you will need following files:

i) uboot.2017.07-tld-1.goflexhome.bodhi.tar
ii) uboot.2016.05-tld-1.environment.bodhi.tar

copy above files to /tmp directory of stock OS and then untar them.

in addition to above files you should have already placed following files on your GoFlex_home box:

iii) busybox
iv) e2fsck
v) nanddump
vi) fw_printenv
vii) flash_erase
viii) nandwrite

Copy above files to /usr/loclal/bin or /usr/sbin of stock OS.

ix) fw_env.config

Copy above file to /etc directory of stock OS.


Now From your laptop you will ssh into GoFlex_Box and execute Step 8 Procedure.

Here is a printout of the commands I gave in step 8.

-----------------------------------------------------------------------------
bash-3.2# flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 60000 -- 100 % complete
bash-3.2# nandwrite /dev/mtd0 uboot.2017.07-tld-1.goflexhome.mtd0.kwb
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
bash-3.2# ln -s fw_printenv fw_setenv
bash-3.2# fw_setenv arcNumber 3338
bash-3.2# fw_setenv machid
bash-3.2# fw_setenv ethaddr 'X00:00:00:00:00:00X'
bash-3.2# fw_setenv preboot_nc 'setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi'
bash-3.2# fw_setenv preboot 'run preboot_nc'
bash-3.2# fw_setenv ipaddr '192.168.x.xxx'
bash-3.2# fw_setenv serverip '192.168.x.xxx'
bash-3.2# fw_printenv
bootcmd_exec=run load_uimage; if run load..............

PS: Please note that above printout does not show commands I executed when implementing procedure in Step 8 a, b, c and d of https://forum.doozan.com/read.php?3,12381 "Flashing default u-boot envs image" But you will need to do that .(I executed those commands from separate terminal box and failed to save the output.)
-----------------------------------------------------------------

Regards,

Navi



Edited 10 time(s). Last edit at 03/06/2019 10:13AM by Navi.
Re: Install Debian on old GoFlex Home
March 04, 2019 10:39PM
Navi Wrote:
-------------------------------------------------------
> --------------------------------
> pigbone Wrote:
> -------------------------------------------------------
> > Hi Navi ! Thanks your support me !
> > At step 8: I still steal the usb to my laptop
> or
> > plug in the goflex. Can you tell me more about
> > this step ?
> -------------------------------------------
>
> Hi Pigbone,
>
> You can remove the new debian rootfs USB Stick
> from your laptop and continue on to step 8. In
> step 8 you will flash the GoFlex_Home Box and
> install latest U-boot. After you are done with
> installing latest uboot, you will take the USB
> stick you created in step 7and insert it into
> GoFlex_home box, remove the SATA drive from
> GoFlex_home box and turn the device on. If
> everything went well then the device will take
> less than a minute to boot and will show a steady
> green light.
>
> for step 8 make sure that, you write down the
> MAC address that your GoFlex Home box is reporting
> on the Network
and that you have already
> downloaded and placed the needed files in your
> GoFlex_home box:
> you will need following files:
>
> uboot.2017.07-tld-1.goflexhome.bodhi.tar
> uboot.2016.05-tld-1.environment.bodhi.tar
>
> From your laptop you will ssh into GoFlex_Box and
> execute Step 8 Procedure.
>
> Here is a printout of the commands I gave in step
> 8.
>
> -----------------------------------------------------------------------------
> bash-3.2# flash_erase /dev/mtd0 0 4
> Erasing 128 Kibyte @ 60000 -- 100 % complete
> bash-3.2# nandwrite /dev/mtd0
> uboot.2017.07-tld-1.goflexhome.mtd0.kwb
> Writing data to block 0 at offset 0x0
> Writing data to block 1 at offset 0x20000
> Writing data to block 2 at offset 0x40000
> Writing data to block 3 at offset 0x60000
> bash-3.2# ln -s fw_printenv
> fw_setenv

> bash-3.2# fw_setenv arcNumber 3338
> bash-3.2# fw_setenv machid
> bash-3.2# fw_setenv ethaddr
> 'X00:00:00:00:00:00X'
> bash-3.2# fw_setenv preboot_nc 'setenv nc_ready 0;
> for pingstat in 1 2 3 4 5; do; sleep 1; if run
> if_netconsole; then setenv nc_ready 1; fi; done;
> if test $nc_ready -eq 1; then run
> start_netconsole; fi'
> bash-3.2# fw_setenv preboot 'run preboot_nc'
> bash-3.2# fw_setenv ipaddr
> '192.168.x.xxx'
> bash-3.2# fw_setenv serverip
> '192.168.x.xxx'
> bash-3.2# fw_printenv
> bootcmd_exec=run load_uimage; if run
> load..............
>
> PS: Please note that above
> printout does not show commands I executed when
> implementing procedure in Step 8 a, b, c and d of
> https://forum.doozan.com/read.php?3,12381
> "Flashing default u-boot envs image" But you will
> need to do that .(I executed those commands from
> separate terminal box and failed to save the
> output.)

> -----------------------------------------------------------------
>
> Regards,
>
> Navi

Thanks NAVI! I will try it, success will tell you.
Re: Install Debian on old GoFlex Home
March 04, 2019 10:53PM
First things first, do you have ssh access to your box? If not, we need to use serial port or feed the goflex home something to get ssh access. As far as I know, updated goflexhome won't give you root shell on serial port, nor the leaked password will work.
Re: Install Debian on old GoFlex Home
March 04, 2019 11:31PM
daviddyer Wrote:
-------------------------------------------------------
> First things first, do you have ssh access to your
> box? If not, we need to use serial port or feed
> the goflex home something to get ssh access. As
> far as I know, updated goflexhome won't give you
> root shell on serial port, nor the leaked password
> will work.


I can access the device's root permissions. Thank you for your support !
Re: Install Debian on old GoFlex Home
March 06, 2019 10:59AM
Hi Pigbone,

I have edited my post and added details of files that you should copy to GoFlex_Home box before executing the U-Boot flash. Please make a note of it as follows:


-----------------------------------------------------
for step 8 make sure that, you write down the MAC address that your GoFlex Home box is reporting on the Network and that you have already downloaded and placed the needed files in your GoFlex_home box:
you will need following files:

i) uboot.2017.07-tld-1.goflexhome.bodhi.tar
ii) uboot.2016.05-tld-1.environment.bodhi.tar

copy above files to /tmp directory of stock OS and then untar them.

in addition to above files you should have already placed following files on your GoFlex_home box:

iii) busybox
iv) e2fsck
v) nanddump
vi) fw_printenv
vii) flash_erase
viii) nandwrite

Copy above files to /usr/loclal/bin or /usr/sbin of stock OS.

ix) fw_env.config

Copy above file to /etc directory of stock OS.

Now From your laptop you will ssh into GoFlex_Box and execute Step 8 Procedure.
--------------------------------

Regards,

Navi
Re: Install Debian on old GoFlex Home
March 07, 2019 12:28AM
Hi Bodhi,

Just installed webmin on my GoFlexHome box by giving following commands as root:

sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list'
wget -qO - http://www.webmin.com/jcameron-key.asc | apt-key add -
apt-get update
apt-get install webmin

Installation took about 25 minutes. Webmin is working but is a bit sluggish. Webmin Dashboard shows that there are 45 updates available. Should I even care to apply these updates? Do you recommend any alternative to webmin that is not so resource intensive?

Screenshot of webmin Dashboard is attached.

Regards,

Navi
Attachments:
open | download - Screenshot (49).png (139.2 KB)
open | download - Screenshot updates.png (327.9 KB)
Re: Install Debian on old GoFlex Home
March 07, 2019 03:06AM
Navi,

> I even care to apply these updates? Do you
> recommend any alternative to webmin that is not so
> resource intensive?

I don't have any recommendation.

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


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: