[cmd] "env import" command behaviour observation

Adarsh Babu Kalepalli learn2kab at gmail.com
Wed Feb 26 11:40:50 CET 2020


Hi ,

Exporting environment variables to a memory location and trying to import
them back.
On certain occasions,the import command is displaying errors.

Board: rpi1ModelB/sandbox
The console log (rpi1modelb) is :
-------------------------------------------------------------------------------------
U-Boot> env export 0x82000000
U-Boot> md.b 0x82000000
82000000: 61 72 63 68 3d 61 72 6d 0a 62 61 75 64 72 61 74
 arch=arm.baudrat
82000010: 65 3d 31 31 35 32 30 30 0a 62 6f 61 72 64 3d 72
 e=115200.board=r
82000020: 70 69 0a 62 6f 61 72 64 5f 6e 61 6d 65 3d 4d 6f
 pi.board_name=Mo
82000030: 64 65 6c 20 42 20 72 65 76 32 0a 62 6f 61 72 64    del B
rev2.board
U-Boot> printenv filesize
filesize=1004
U-Boot> env import 0x82000000
## Warning: defaulting to text format
## Info: input data size = 4100 = 0x1004
## 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.
Please advise.

Regards,
Adarsh


More information about the U-Boot mailing list