From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 3 May 2018 13:01:56 -0600 Subject: [U-Boot] [RFC] Exporting defaul environment In-Reply-To: <1b69a9e1-3b2d-51f2-75a7-7db985ac6836@northern.tech> References: <00b7ce28-832a-029e-77e8-802ce892274e@denx.de> <1b69a9e1-3b2d-51f2-75a7-7db985ac6836@northern.tech> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Kristian, On 3 May 2018 at 06:57, Kristian Amlie wrote: > On 02/05/18 21:32, Simon Glass wrote: >> Hi Stefano, >> >> On 2 May 2018 at 02:48, Stefano Babic wrote: >>> >>> Hi, >>> >>> I am thinking about how it is possible to export in a clean way the >>> default environment from u-boot. The general use case happens when the >>> environment must be changed from user space (via fw_setenv or whatever) >>> and no environment was still stored - board boots with default environment. Is a magic number not enough to find it? Alternatively could we put the default environment in /chosen in the device tree before jumping to Linux? Regards, Simon