Skip to contentSkip to conversation

Assigning u-boot environment variables from memory

U-Boot brendan 3 participants 3 messages Feb 14, 2017 – Feb 15, 2017

lore
Share & tools
lore

brendan

author
#0 lore raw

I am storing some information regarding my board within EEPROM (in memory after I use the >eeprom read command) and I was wondering if it was possible for me to somehow read from memory and store the values into an environment variable.

I have done a search but could not find anything of relevance.

Thanks

--
View this message in context: http://u-boot.10912.n7.nabble.com/Assigning-u-boot-environment-variables-from-memory-tp281788.html
Sent from the U-Boot mailing list archive at Nabble.com.

#1 lore raw

Dear brendan,

Quoted 6 lines · In message <[email protected]> you wrote:

I am storing some information regarding my board within EEPROM (in memory after I use the >eeprom read command) and I was wondering if it was possible for me to somehow read from memory and store the values into an environment variable.

I have done a search but could not find anything of relevance.

That's what the "env import" command was made for (supporting different import formats, like plain text, binary with or without checksum).

#2 lore raw
In reply to brendan
Quoted 4 lines · On Tue, 14 Feb 2017 14:27:30 -0700 (MST) brendan <[email protected]>…

I am storing some information regarding my board within EEPROM (in memory after I use the >eeprom read command) and I was wondering if it was possible for me to somehow read from memory and store the values into an environment variable.

You might look at "env import ..." command.

It should do what you need. Please also pay attention to its switches -r| -t ... etc.

Quoted 7 lines

I have done a search but could not find anything of relevance.

Thanks

Quoted 7 lines

--
View this message in context:
http://u-boot.10912.n7.nabble.com/Assigning-u-boot-environment-variables-from-memory-tp281788.html
Sent from the U-Boot mailing list archive at Nabble.com. _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Best regards,

Lukasz Majewski

--

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