Welcome! Log In Create A New Profile

Advanced

Beta Testers (and feedback) needed!

Posted by bobafetthotmail 
Beta Testers (and feedback) needed!
July 30, 2016 04:57AM
I'm developing a installer script to install uboot and rootfs in kirkwood devices (and anywhere else we get uboots for, anyway). here http://forum.doozan.com/read.php?3,28966

The most annoying part (getting it to download a bundle of tools I can trust and use them instead of whatever garbage tools it has in its own firmware) is done.
It tests that everything is working as intended by making a working Debian rootfs in the device selected by the user.

I need someone to test this on as much devices with stock firmware as possible, especially the ones that lack ext4 drivers.

I already tested this on Zyxel nsa310 and on my openwrt router (it's an ARM device), and it works fine.

Once I'm reasonably sure that everything works in most devices I'll add uboot/envs flashing functionality and all the more dangerous parts.
Re: Beta Testers (and feedback) needed!
July 30, 2016 07:57AM
bobafetthotmail Wrote:
-------------------------------------------------------
> I'm developing a installer script to install uboot and rootfs in kirkwood devices (and anywhere else we get uboots for, anyway). here http://forum.doozan.com/read.php?3,28966
>
Does this installer script include a Seagate DockStar with a stock firmware and a 3rd-party uboot without overwriting the stock firmware so that it will support a boot off of any firmware (i.e. LEDE, OpenWRT, etc.) in the following order:
  1. a NAS (i.e. NFS, etc.) within the same LAN
  2. an external storage
  3. the stock firmware in that?
The 1st option above is particularly interesting for those who compiles own LEDE and/or OpenWRT firmware (from scratch) where it provides a rootfs on <LEDE or OpenWRT root directory>/build_dir/<target platform>/root-<platform> and Linux kernel in bin/targets/<platform>. This will allow the device to load the Linux kernel + rootfs directly off a NAS without copying them to any external devices, i.e. a USB memory stick, etc.
Re: Beta Testers (and feedback) needed!
July 30, 2016 12:10PM
Hello!

I just tried it on my stock GoFlex Net.

First the "00"-Option:
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 vi -> /tmp/tools/busybox
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 vlock -> /tmp/tools/busybox
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 watch -> /tmp/tools/busybox
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 watchdog -> /tmp/tools/busybox
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 wc -> /tmp/tools/busybox
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 which -> /tmp/tools/busybox
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 who -> /tmp/tools/busybox
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 whoami -> /tmp/tools/busybox
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 xargs -> /tmp/tools/busybox
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 yes -> /tmp/tools/busybox
lrwxrwxrwx    1 root     root           18 Jan  1 00:09 zcat -> /tmp/tools/busybox
# checking for /tmp/tools/mkswap...

# Installing /tmp/tools/mkswap...
/tmp/tools/mkswap
https://dl.dropboxusercontent.com/u/47541136/linux/tools_for_Kirkwood_installer/mkswap
https://dl.dropboxusercontent.com/u/47541136/linux/tools_for_Kirkwood_installer/mkswap.md5
/tmp/tools/mkswap.md5
wget: unrecognized option `--no-check-certificate'
BusyBox v1.7.0 (2008-02-26 19:25:17 IST) multi-call binary

Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]
                [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
                [-U|--user-agent agent] url

Retrieve files via HTTP or FTP

Options:
        -s      Spider mode - only check file existence
        -c      Continue retrieval of aborted transfer
        -q      Quiet
        -P      Set directory prefix to DIR
        -O      Save to filename ('-' for stdout)
        -U      Adjust 'User-Agent' field
        -Y      Use proxy ('on' or 'off')

wget: unrecognized option `--no-check-certificate'
BusyBox v1.7.0 (2008-02-26 19:25:17 IST) multi-call binary

Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]
                [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
                [-U|--user-agent agent] url

Retrieve files via HTTP or FTP

Options:
        -s      Spider mode - only check file existence
        -c      Continue retrieval of aborted transfer
        -q      Quiet
        -P      Set directory prefix to DIR
        -O      Save to filename ('-' for stdout)
        -U      Adjust 'User-Agent' field
        -Y      Use proxy ('on' or 'off')

## Could not install /tmp/tools/mkswap from https://dl.dropboxusercontent.com/u/47541136/linux/tools_for_Kirkwood_installer/mkswap, exiting.
-sh-3.2#
Seems like it breaks because of stock 'wget' not supporting the '--no-check-certificate' option.

Then the "01"-Option:
wget: unrecognized option `--no-check-certificate'
BusyBox v1.7.0 (2008-02-26 19:25:17 IST) multi-call binary

Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]
                [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
                [-U|--user-agent agent] url

Retrieve files via HTTP or FTP

Options:
        -s      Spider mode - only check file existence
        -c      Continue retrieval of aborted transfer
        -q      Quiet
        -P      Set directory prefix to DIR
        -O      Save to filename ('-' for stdout)
        -U      Adjust 'User-Agent' field
        -Y      Use proxy ('on' or 'off')

## Could not install /tmp/tools/mkswap from https://dl.dropboxusercontent.com/u/47541136/linux/tools_for_Kirkwood_installer/mkswap, exitin
Broken for the same reason.

Nice idea, making an universal super script, hope it will work some time :)
Re: Beta Testers (and feedback) needed!
July 30, 2016 12:33PM
habibie Wrote:
-------------------------------------------------------
> Does this installer script support a Seagate DockStar <cut for brevity>

What about reading the linked thread lol?

My script downloads its own toolbox (bodhi's) in /tmp ramdisk so it should be able to work wherever there is a linux kernel 2.6 and later, regardless of what tools are present in the system it is being started in.

With this system set up, doing what you ask is easy (just adding custom envs) and should work everywhere.

If you can test it in its current form in your devices and report back, I'd be grateful, as I said I'm not going to let it touch uboot and its envs if I'm not sure that the crucial parts of the script+toolbox work.
Re: Beta Testers (and feedback) needed!
July 30, 2016 12:57PM
habibie Wrote:
-------------------------------------------------------
> bobafetthotmail Wrote:
> --------------------------------------------------
> -----
> > I'm developing a installer script to install
> uboot and rootfs in kirkwood devices (and anywhere
> else we get uboots for, anyway). here
> http://forum.doozan.com/read.php?3,28966
> >
> Does this installer script include a Seagate
> DockStar with a stock firmware and a 3rd-party
> uboot without overwriting the stock firmware so
> that it will support a boot off of any firmware
> (i.e. LEDE, OpenWRT, etc.) in the following
> order:
>
    >
  1. a NAS (i.e. NFS, etc.) within the same LAN
    >
  2. an external storage
    >
  3. the stock firmware in that?
> The 1st option above is particularly interesting
> for those who compiles own LEDE and/or OpenWRT
> firmware (from scratch) where it provides a rootfs
> on <LEDE or OpenWRT root
> directory>/build_dir/<target
> platform>/root-<platform> and Linux kernel in
> bin/targets/<platform>. This will allow the device
> to load the Linux kernel + rootfs directly off a
> NAS without copying them to any external devices,
> i.e. a USB memory stick, etc.

No. This script installs u-boot and Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Beta Testers (and feedback) needed!
July 30, 2016 02:28PM
bodhi Wrote:
-------------------------------------------------------
> No. This script installs u-boot and Debian.
>
I gathered this scripts will overwrite the stock firmware with Debian Linux. If so, then I can't use it to upgrade my Seagate DockStar. It looks like I will just have to manually upgrade the old 3rd-party uboot with your latest uboot for a Seagate DockStar (Kirkwood).
Re: Beta Testers (and feedback) needed!
July 30, 2016 02:35PM
habibie,

> I gathered this scripts will overwrite the stock
> firmware with Debian Linux.

No, it does not.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Beta Testers (and feedback) needed!
July 30, 2016 11:26PM
habibie Wrote:
-------------------------------------------------------
> I gathered this scripts will overwrite the stock
> firmware with Debian Linux.

There is not enough space in flash to write Debian, I cannot do so even if I wanted to.
Re: Beta Testers (and feedback) needed!
July 30, 2016 11:36PM
ElMariachi Wrote:
-------------------------------------------------------
> Broken for the same reason.

reason found and fixed (stock wget cannot work with https links so it cannot understand https wget options either, so the first invocation to stock wget to download a better wget from http needs to be special)

Can you test again and post feedback in the other thread?
Re: Beta Testers (and feedback) needed!
July 31, 2016 02:22AM
Ok.
Re: Beta Testers (and feedback) needed!
August 02, 2016 04:40AM
This sounds very useful! Looking forward to it as I have two Pogoplug (non-stock firmware) which I would like to upgrade.

One suggestion: could this script be extended to also install the Rescue system upon request? I think this would be a nice addition.

Rainer

===========================
Blog: https://rmkrug.wordpress.com/

1 x Pogoplug E02 (pink): Logitech media server

1 x Pogoplug E02 (pink): FTP server only (throw away configuration - quick to rebuild)

1 x GoFlex Net: running OpenMediaVault
Re: Beta Testers (and feedback) needed!
August 02, 2016 02:49PM
Rainer,

> One suggestion: could this script be extended to
> also install the Rescue system upon request? I
> think this would be a nice addition.

Negative. This script only installs u-boot and Debian. Rescue system should not be part of this installation.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: