Welcome! Log In Create A New Profile

Advanced

-bash: fw_setenv: command not found

Posted by funtoy1001 
-bash: fw_setenv: command not found
November 02, 2010 10:37PM
Because my dockstar don't consistenly up debian on a USB HDD, I want to setup netconsole with fw_setenv command. However, it complains that it can't find fw_setenv as follow:
-bash: fw_setenv: command not found

It can't be found under /usr/bin either.

Did I miss something?
Re: -bash: fw_setenv: command not found
November 03, 2010 05:50AM
From which OS are you trying to run fw_setenv? In Debian and (I think) the rescue system, it should be in /usr/sbin . In the default Pogoplug firmware, it wouldn't be there.

For Debian, it's in the package "uboot-envtools", which is installed automatically by Jeff's install script. But you also need the file /etc/fw_env.config for fw_setenv and fw_printenv to write/read the right area on the firmware. That's also created by Jeff's install script.
Re: -bash: fw_setenv: command not found
November 03, 2010 07:20AM
shouldn't fw_setenv and fw_printenv be available if I installed uboot using the guide at http://jeff.doozan.com/debian/uboot/?
Re: -bash: fw_setenv: command not found
November 03, 2010 09:02AM
According to the instructions, it looks like it should have. But, I suspect those are written if you're running install_uboot_mtd0.sh from within the original Pogoplug firmware, not if you're running it from within Debian (since within Debian, the package should already be installed). If it didn't install the binaries, though, then you can manually do the appropriate steps from the install file (run as root):

cd /tmp
wget http://jeff.doozan.com/debian/uboot/fw_printenv
wget http://jeff.doozan.com/debian/uboot/fw_env.config
chmod 755 fw_printenv
chmod 644 fw_env.config
mv fw_printenv /usr/sbin
ln -s /usr/sbin/fw_printenv /usr/sbin/fw_setenv
mv fw_env.config /etc

Then run /usr/sbin/fw_printenv to confirm you see environment variables. Keep in mind that the install script also sets a bunch of other variables using fw_setenv, so if you ran the install script and it didn't install fw_setenv for you, you should have seen a bunch of errors about the command not being found.
Re: -bash: fw_setenv: command not found
November 03, 2010 09:59AM
ayrlander Wrote:
-------------------------------------------------------
> According to the instructions, it looks like it
> should have. But, I suspect those are written if
> you're running install_uboot_mtd0.sh from within
> the original Pogoplug firmware, not if you're
> running it from within Debian (since within
> Debian, the package should already be installed).
> If it didn't install the binaries, though, then
> you can manually do the appropriate steps from the
> install file (run as root):
>
>
> cd /tmp
> wget
> http://jeff.doozan.com/debian/uboot/fw_printenv
> wget
> http://jeff.doozan.com/debian/uboot/fw_env.config
> chmod 755 fw_printenv
> chmod 644 fw_env.config
> mv fw_printenv /usr/sbin
> ln -s /usr/sbin/fw_printenv /usr/sbin/fw_setenv
> mv fw_env.config /etc
>
>
> Then run /usr/sbin/fw_printenv to confirm you see
> environment variables. Keep in mind that the
> install script also sets a bunch of other
> variables using fw_setenv, so if you ran the
> install script and it didn't install fw_setenv for
> you, you should have seen a bunch of errors about
> the command not being found.
The issue of not having fw_setenv available is when I don't plug in any USB device.
When I installed uboot, there was no error message of any kind. If uboot was not installed correctly, I don't think I will be able to boot debian from a USB flash drive.
Author:

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: