Welcome! Log In Create A New Profile

Advanced

U-Boot flashing utilities

Posted by bodhi 
U-Boot flashing utilities
April 02, 2016 06:36PM
While in stock OS, you can download the following binpack so that the normal tools for use in nand installation will be available in the system. Since Dropbox use https, you can download it to an USB stick on another Linux box and copy this tarball to the stock OS (I'll upload this to my available storage here so stock wget can be used, when I can).

Dowload at Dropbox
linux-tools-installation-bodhi.tar.gz
md5:
e58f442411eb35e641d40ea0577e00ff linux-tools-installation-bodhi.tar.gz
sha256:
88dfa8eadb319e2e286320643a654bf89bff0b0d450562fce09938e7f3b0007d linux-tools-installation-bodhi.tar.gz
Date: May 18 00:31 PST

This binpack contains these files:
tools/
tools/busybox
tools/e2fsck
tools/nanddump
tools/fw_printenv
tools/flash_erase
tools/nandwrite
tools/fw_env.config

Note that fw_printenv is the same binary as fw_setenv. And the fw_env.config should be in /etc so it can be used to set envs after you have installed new u-boot.
cd tools
ln -s fw_printenv fw_setenv
cp -a fw_env.config /etc/

You can execute these binaries directly, or copy them to /usr/loclal/bin or /usr/sbin in stock OS for later emergency use.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 11 time(s). Last edit at 05/18/2016 03:53AM by bodhi.
bob
Re: U-Boot flashing utilities
April 25, 2016 12:08AM
I tried running mke2fs on my Pogoplug Pro (oxnas) with the stock os, and it doesn't seem to work. I did run "chmod 755 mke2fs", but the following error came up.

/tmp #  ./mke2fs -L rootfs -j /dev/sda1
./mke2fs: error while loading shared libraries: libext2fs.so.2: cannot open shared object file: No such file or directory
/tmp # ls

I haven't tried running any of the other tools yet.
Re: U-Boot flashing utilities
April 25, 2016 01:07AM
bob Wrote:
-------------------------------------------------------
> I tried running mke2fs on my Pogoplug Pro (oxnas)
> with the stock os, and it doesn't seem to work. I
> did run "chmod 755 mke2fs", but the following
> error came up.
>
>
> /tmp #  ./mke2fs -L rootfs -j /dev/sda1
> ./mke2fs: error while loading shared libraries:
> libext2fs.so.2: cannot open shared object file: No
> such file or directory
> /tmp # ls
> 
>
>
> I haven't tried running any of the other tools
> yet.

Thanks for reporting. Please let me know when you try other tools whether they work. For mke2fs, if you can, use another Linux box for it. I'll take a look in stock OS to see if this is already available.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 04/25/2016 05:05AM by bodhi.
bob
Re: U-Boot flashing utilities
April 28, 2016 05:42PM
I finished the Debian install with Qui's tutorial and his version of mke2fs worked well for me. I no longer am able to boot into the stock OS so I cannot test the other tools. However your tools work perfectly in Debian 7 and Debian 8. As a side note, wget in the stock OS doesn't support ssl, so if you can find a non secured webhost, that would make like easier for others in the future.

Thanks for providing them as well as all the other kernel and uboot work :)
jay
Re: U-Boot flashing utilities
May 10, 2016 11:44PM
hi,
i tried it on a fresh pogoplug pro with stock firmware.
/usr/bin # bzip2
bzip2: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
/usr/bin # e2fsck
e2fsck: error while loading shared libraries: libext2fs.so.2: cannot open shared object file: No such file or directory
/usr/bin # mke2fs
mke2fs: error while loading shared libraries: libext2fs.so.2: cannot open shared object file: No such file or directory

others work fine.
jay

ps:
bzip2 was already present as link to dropbear...
Re: U-Boot flashing utilities
May 11, 2016 01:05AM
Re: U-Boot flashing utilities
May 14, 2016 07:18PM
jay
Re: U-Boot flashing utilities
May 14, 2016 10:47PM
hi,

for strange reasons i dont receive notifications from the forum anymore...
i will test the tools on a goflex net and the oxnas pogo pro tomorrow...

jay
Re: U-Boot flashing utilities
May 15, 2016 06:02PM
Re: U-Boot flashing utilities
May 15, 2016 11:48PM
Hi bob,

I know it's a little bit more works to download it from a secure site such as Dropbox, but that's was my intention. At this day and age, I would only go to https site to download something. And to make it a little more secure, I've also intentionally kept the hash checksum for the download files on this site (but not providing it at Dropbox).

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
jay
Re: U-Boot flashing utilities
May 16, 2016 03:01AM
hi bodhi,

> I've updated the tools binpack just now.

i saw, first you replaced the defective files with a busybox,
now you replaced the busynox and added an fsck.
a little script to build the symlinks of the incuded applets would be fine...

jay
jay
Re: U-Boot flashing utilities
May 16, 2016 03:31AM
re,
now i tested on a goflex net:
e2fsck works.
the busyboxes works both.
but the actual one lacks support of mke2fs while the former (smaller) did...

jay.
Re: U-Boot flashing utilities
May 16, 2016 03:38AM
> but the actual one lacks support of mke2fs while
> the former (smaller) did...

Right! it did not work on all boxes (kirkwood and oxnas plugs), so I removed it.

To do that I'll need to compile e2fsprog as static bin. I think the binpack is good enough for installation now. When I have some free time I will recompile e2fsprog.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
jay
Re: U-Boot flashing utilities
May 16, 2016 04:04AM
re,
i also found that at the goflexnet there is the already elsewhere reported:
./fw_printenv: /lib/libc.so.6: version `GLIBC_2.7' not found (required by ./fw_printenv)

jay

p.s. for me thats ok, i just wanted to report as asked...
Re: U-Boot flashing utilities
May 16, 2016 01:08PM
jay Wrote:
-------------------------------------------------------
> re,
> i also found that at the goflexnet there is the
> already elsewhere reported:
> ./fw_printenv: /lib/libc.so.6: version `GLIBC_2.7'
> not found (required by ./fw_printenv)
>
> jay
>
> p.s. for me thats ok, i just wanted to report as
> asked...

Argh :) that fw_printenv is too new. I'll find another one.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: U-Boot flashing utilities
May 18, 2016 03:54AM
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: