U-boot env variables

188 views
Skip to first unread message

Anupama K Pillai

unread,
Mar 30, 2021, 1:19:28 AM3/30/21
to SysPlay's Inside Linux
Hi Anil Sir and team, 
 Can anyone help me with finding location of U-boot environment variables?
In my case, printenv, setenv and saveenv are successful but the set value is not used in next booting.
My board successfully boots from sd-card and flash memory. 
If I give setenv and printenv,  it shows the value that was set.
Saveenv gives the following in both booting from sd-card and flash.
-----------------------------
saveenv
Saving Environment to MMC...
Writing to MMC(1)... done
------------------------
It seems that the env values are written to flash memory.But the set value is not used in next booting.
Say for eg, I set quiet in boot args as given below.
-----------------------------------------------
bootargs=console=ttyS2,115200 androidboot.console=ttyS2  quiet
---------------------------------------
Upon next booting, console logs are not suppressed and kernel cmd line from cat /proc/cmdline shows the following:
# cat /proc/cmdline
console=ttyO2,115200n8 root=PARTUUID=2afbd824-02 rw rootfstype=ext4 rootwait
(quiet is not shown here and not applied)
Please help.
regards,
Anupama

Anil Kumar Pugalia

unread,
Mar 31, 2021, 2:35:41 AM3/31/21
to inside...@googlegroups.com

It really depends on the Uboot code, if it is considering the saved environment, or reverting it back to some default set in the code.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
Anupama K Pillai wrote on 30/03/21 10:49 am:
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/d1bf09d2-bd8b-407d-bb58-6a371adcb3b9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages