[U-Boot] How to take value of an environmental variable of uboot in linux

7 Dec
2016
7 Dec
'16
7:59 p.m.
Hi,
I type fw_printenv variable_name to take the name of a uboot variable from linux.
I get variable_name=10 for example
How can I use the value 10 in the continuation of my script?
I have tried
string = fw_printenv flag_boot_error IFS="=" read name value <<< $string
but it does not work
Thank you
--
Haris Papadopoulos| AmberBox | Software Engineer
haris@amberbox.com tomas@amberbox.com | + 1 650-686-0230

7 Dec
7 Dec
11:35 p.m.
New subject: [U-Boot] How to take value of an environmental variable of uboot in linux
Haris Papadopoulos haris@amberbox.com writes:
Hi,
I type fw_printenv variable_name to take the name of a uboot variable from linux.
I get variable_name=10 for example
How can I use the value 10 in the continuation of my script?
I have tried
string = fw_printenv flag_boot_error IFS="=" read name value <<< $string
but it does not work
"fw_printenv -n VAR" prints the value of variable VAR without the name and equals sign.
--
Måns Rullgård
3076
Age (days ago)
3076
Last active (days ago)
1 comments
2 participants
participants (2)
-
Haris Papadopoulos
-
Måns Rullgård