Welcome! Log In Create A New Profile

Advanced

U-Boot flashing utilities and kwboot binary

Posted by bodhi 
U-Boot flashing utilities and kwboot binary
April 02, 2016 05:36PM
Update Mar 02, 2024

1 . If you are installing u-boot and Debian rootfs on Kirkwood boxes for the first time, you can use the latest flashing utilities on the rootfs itself. No need to download the binpack. But if you'd prefer to have a tool box just in case, then the binaries in the binpack will be handy to have. For kwboot, please download the latest kwboot binary attached to this post.

2. I've attached the 2024.04 kwboot static binary (ARM) to this post:
kwboot_static_2024.04-rc3
(kwboot version 2024.04-rc3-00001-g0861eab8ec-dirty)
md5:
a746d7346df1876933fe686894f2cf38 
sha256:
0d20e803462a4c4c82e1579251a4e6e26ae488dbf4f444b785c38de58f0143f3

After downloaded, you can rename kwboot_static_2024.04-rc3 to just kwboot.

Update Feb 29, 2024

1 . If you are installing u-boot and Debian rootfs on Kirkwood boxes for the first time, you can use the latest flashing utilities on the rootfs itself. No need to download the binpack. But if you'd prefer to have a tool box just in case, then the binaries in the binpack will be handy to have. For kwboot, please download the latest kwboot binary attached to this post.

2. I've attached the 2024.04 kwboot binary (ARM) here:
kwboot_2024.04-rc3 
(kwboot version 2024.04-rc3-00001-g0861eab8ec)
md5:
a86a783a5b7860397ef3fa6a98d031bf  kwboot_2024.04-rc3
sha256:
8ec524a1f5d7475b7df059e40366f3cbc7a94babf91db3c84e0faaae4cc1ab90  kwboot_2024.04-rc3

After downloaded, you can rename kwboot_2024.04-rc3 to just kwboot.

Update July 16, 2022

1 . If you are installing u-boot and Debian rootfs on Kirkwood boxes for the first time, you can use the latest flashing utilities on the rootfs itself. No need to download the binpack. But if you'd prefer to have a tool box just in case, then the binaries in the binpack will be handy to have.

2. I've attached the 2022-07 kwboot binary (ARM) here in this post

kwboot
kwboot version 2022.07-00607-g36b661dc91
md5:
95d373393626ac01ab4c530d2df6129c  kwboot
sha256:
5129aebb81868003f63f4052104448624ff3d01234c8faa8b9e7093d562cfc01  kwboot

=======

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



Edited 17 time(s). Last edit at 06/19/2024 02:47PM by bodhi.
Attachments:
open | download - kwboot (27.4 KB)
open | download - kwboot_2024.04-rc3 (31.1 KB)
open | download - kwboot_static_2024.04-rc3 (769.9 KB)
bob
Re: U-Boot flashing utilities
April 24, 2016 11:08PM
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 12: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
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/25/2016 04:05AM by bodhi.
bob
Re: U-Boot flashing utilities
April 28, 2016 04: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 10: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 12:05AM
Thanks jay!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: U-Boot flashing utilities
May 14, 2016 06:18PM
jay,

I've updated the tools, please download, try and report.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
jay
Re: U-Boot flashing utilities
May 14, 2016 09: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 05:02PM
Jay,

I've updated the tools binpack just now.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 05/15/2016 05:49PM by bodhi.
Re: U-Boot flashing utilities
May 15, 2016 10: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
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
jay
Re: U-Boot flashing utilities
May 16, 2016 02: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 02: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 02: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
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
jay
Re: U-Boot flashing utilities
May 16, 2016 03: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 12: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
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: U-Boot flashing utilities
May 18, 2016 02:54AM
Binpack was updated.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: U-Boot flashing utilities and kwboot binary
July 16, 2022 03:42PM
I've updated the first post to include the latest kwboot binary (ARM version).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: U-Boot flashing utilities and kwboot binary
March 03, 2024 05:42AM
Wrong thread sorry



Edited 1 time(s). Last edit at 03/03/2024 05:43AM by spiderdijon.
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: