Skip to contentSkip to conversation

Load environment variables earlier

DISCUSSION zjh 3 participants 3 messages Sep 15, 2017 – Sep 18, 2017

lore
Share & tools
lore
#1 lore raw

Am 15.09.2017 um 04:33 schrieb zjh:

Quoted 2 lines

think the environment variables should be loaded before the device is registered, so when the device is registered, it can be initialized according to the environment variable.

Please take look at drivers/usb/gadget/f_fastboot.c. it is already using env variables.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw
In reply to zjh
Quoted 2 lines · zjh

think the environment variables should be loaded before the device is registered, so when the device is registered, it can be initialized according to the environment variable.

When devices are influenced by environment variables they must be prepared that these variables are changed *after* registration. Note that environment variables are loaded from storage media that are devices themselves, so that's a catch 22.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox