barebox environment early loading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

is there a possibility  to read an environment variable as soon as in
ipufb.c?
To be more accurate, before the frame buffer is initalised I need set
the bus_format manually and the correct value is stored in a non
volatile environment variable.
I have tried the following

const char* value;

value = getenv("nv.dataval");

However the result is always NULL.

If I try the same somewhere in board.c then I get the correct value,
but that ist too late to configure the frame buffer.

Has anyone managed to read the environment early, and if yes how? Do I
have to somehow manually load the environment path?  I have tried this
default_environment_path_set(default_environment_path); but it doesn't
seem to work.

I am using barebox 2017.12.0

Help would be appreciated.
Best regards,
Dule

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux