Debian Bug report logs -
#591604
uboot-envtools: fw_setenv refuses to set ethaddr, even though it can be set via uboot directly
Reported by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Wed, 4 Aug 2010 05:15:01 UTC
Severity: normal
Tags: moreinfo, upstream
Fixed in version 2012.04.01-1
Done: Vagrant Cascadian <vagrant@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, pkg-fso-maint@lists.alioth.debian.org (Debian freesmartphone.org Team):
Bug#591604; Package uboot-envtools.
(Wed, 04 Aug 2010 05:15:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Daniel Kahn Gillmor <dkg@fifthhorseman.net>:
New Bug report received and forwarded. Copy sent to pkg-fso-maint@lists.alioth.debian.org (Debian freesmartphone.org Team).
(Wed, 04 Aug 2010 05:15:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: uboot-envtools
Version: 20081215-2
Severity: normal
when i try to use fw_setenv for the ethaddr variable on a Marvell
guruplug, i get this error (mac address is anonymized):
0 root@moo:~# fw_setenv ethaddr 00:f0:43:XX:XX:XX
Can't overwrite "ethaddr"
1 root@moo:~#
however, i'm able to reset the variable from the uboot bootloader directly:
Marvell>> setenv ethaddr 00:f0:43:XX:XX:XX
Marvell>> save
after which, the mac address does actually change (though i needed an
extra reboot).
So the source for fw_setenv seems to be unnecessarily restrictive.
Thanks for maintaining uboot-envtools!
--dkg
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: armel (armel)
Information forwarded
to debian-bugs-dist@lists.debian.org, pkg-fso-maint@lists.alioth.debian.org (Debian freesmartphone.org Team):
Bug#591604; Package uboot-envtools.
(Tue, 22 Feb 2011 22:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Loïc Minier <lool@dooz.org>:
Extra info received and forwarded to list. Copy sent to pkg-fso-maint@lists.alioth.debian.org (Debian freesmartphone.org Team).
(Tue, 22 Feb 2011 22:57:03 GMT) (full text, mbox, link).
Message #10 received at submit@bugs.debian.org (full text, mbox, reply):
On Wed, Aug 04, 2010, Daniel Kahn Gillmor wrote:
> when i try to use fw_setenv for the ethaddr variable on a Marvell
> guruplug, i get this error (mac address is anonymized):
> 0 root@moo:~# fw_setenv ethaddr 00:f0:43:XX:XX:XX
> Can't overwrite "ethaddr"
> 1 root@moo:~#
I'm not sure why that's the case, but the latest version of the code in
u-boot seems to be enforcing that you can't change this, nor serial#.
This might be to protect users from shooting themselves in the foot by
destroying potentially valuable data?
/*
* Delete any existing definition
*/
if (oldval) {
/*
* Ethernet Address and serial# can be set only once
*/
if ((strcmp (name, "ethaddr") == 0) ||
(strcmp (name, "serial#") == 0)) {
fprintf (stderr, "Can't overwrite \"%s\"\n", name);
errno = EROFS;
return -1;
}
in which case, maybe we need a force flag
--
Loïc Minier
Information forwarded
to debian-bugs-dist@lists.debian.org, pkg-fso-maint@lists.alioth.debian.org (Debian freesmartphone.org Team):
Bug#591604; Package uboot-envtools.
(Tue, 22 Feb 2011 22:57:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Loïc Minier <lool@dooz.org>:
Extra info received and forwarded to list. Copy sent to pkg-fso-maint@lists.alioth.debian.org (Debian freesmartphone.org Team).
(Tue, 22 Feb 2011 22:57:05 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian freesmartphone.org Team <pkg-fso-maint@lists.alioth.debian.org>:
Bug#591604; Package uboot-envtools.
(Thu, 02 Oct 2014 18:21:10 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian freesmartphone.org Team <pkg-fso-maint@lists.alioth.debian.org>.
(Thu, 02 Oct 2014 18:21:10 GMT) (full text, mbox, link).
Message #20 received at 591604@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: tags -1 upstream moreinfo
On 2010-08-03, Daniel Kahn Gillmor wrote:
> when i try to use fw_setenv for the ethaddr variable on a Marvell
> guruplug, i get this error (mac address is anonymized):
>
> 0 root@moo:~# fw_setenv ethaddr 00:f0:43:XX:XX:XX
> Can't overwrite "ethaddr"
> 1 root@moo:~#
>
> however, i'm able to reset the variable from the uboot bootloader directly:
...
> So the source for fw_setenv seems to be unnecessarily restrictive.
It may be because you were using a fw_setenv without any
platform-specific build options.
I'm wondering if using fw_setenv explicitly built for guruplug will work
any better. Version 2014.07+dfsg1-2 in jessie and
2014.10~rc2+dfsg1-2~exp1 in experimental ships a fw_printenv/fw_setenv
that is built specifically for each platform in
/usr/lib/u-boot/PLATFORM/fw_*. It seems some platforms may set values
for allowing this to be changed (ENV_FLAGS_VARACCESS_PREVENT_OVERWR and
ENV_FLAGS_VARACCESS_PREVENT_NONDEF_OVERWR in tools/env/fw_env.c), and a
build specifically for the guruplug may work for you.
I was planning on reverting back to a generic env tools build, though
I'd be curious if it works with a platform-specific build.
live well,
vagrant
[Message part 2 (application/pgp-signature, inline)]
Added tag(s) upstream and moreinfo.
Request was from Vagrant Cascadian <vagrant@debian.org>
to 591604-submit@bugs.debian.org.
(Thu, 02 Oct 2014 18:21:10 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian freesmartphone.org Team <pkg-fso-maint@lists.alioth.debian.org>:
Bug#591604; Package uboot-envtools.
(Sat, 04 Apr 2015 16:36:05 GMT) (full text, mbox, link).
Acknowledgement sent
to drEagle <dreagle@doukki.net>:
Extra info received and forwarded to list. Copy sent to Debian freesmartphone.org Team <pkg-fso-maint@lists.alioth.debian.org>.
(Sat, 04 Apr 2015 16:36:05 GMT) (full text, mbox, link).
Message #27 received at 591604@bugs.debian.org (full text, mbox, reply):
This may be fixed since : http://git.denx.de/?p=u-boot.git;a=commit;h=aa701b94336b358798d676eef12a7b90bdac23f5
No longer marked as found in versions uboot-envtools/20081215-2.
Request was from Clint Adams <clint@debian.org>
to control@bugs.debian.org.
(Sun, 26 Jun 2016 22:27:06 GMT) (full text, mbox, link).
Reply sent
to Vagrant Cascadian <vagrant@debian.org>:
You have taken responsibility.
(Sat, 11 Jan 2020 05:27:08 GMT) (full text, mbox, link).
Notification sent
to Daniel Kahn Gillmor <dkg@fifthhorseman.net>:
Bug acknowledged by developer.
(Sat, 11 Jan 2020 05:27:08 GMT) (full text, mbox, link).
Message #36 received at 591604-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Version: 2012.04.01-1
On 2015-04-04, drEagle wrote:
> This may be fixed since : http://git.denx.de/?p=u-boot.git;a=commit;h=aa701b94336b358798d676eef12a7b90bdac23f5
Ok, marking as done with the version in Debian that contained that commit.
live well,
vagrant
[signature.asc (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 08 Feb 2020 07:24:38 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Apr 25 09:34:59 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.