[cmd] "env import" command behaviour observation
Wolfgang Denk
wd at denx.de
Fri Feb 28 15:37:14 CET 2020
Dear Adarsh Babu Kalepalli,
In message <CAJgxa7cGG6JG_xfzzyh3zit7Gg43mSma0E-hcXVM=7+eM8Uu+w at mail.gmail.com> you wrote:
>
> Exporting environment variables to a memory location and trying to import
> them back.
> On certain occasions,the import command is displaying errors.
...
> ## Error: Can't overwrite "ethaddr"
> himport_r: can't insert "ethaddr=b8:27:eb:bb:2d:e6" into hash table
> ## Error: Can't overwrite "serial#"
> himport_r: can't insert "serial#=00000000ebbb2de6" into hash table
> U-Boot>
> ----------------------------------------------------------------------------------------
> Is this expected?? or should it be raised as a BUG.
Yes, this is expected behaviour. These variables are read-only
(resp.write-once), so you cannot modify them if they are already
set. [At least not without additional measures.]
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Mandrell: "You know what I think?"
Doctor: "Ah, ah that's a catch question. With a brain your size you
don't think, right?"
- Dr. Who
More information about the U-Boot
mailing list