From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Tue, 3 Feb 2015 23:27:19 +0100 Subject: [U-Boot] Loop Variable through to user space In-Reply-To: <54D0C5B8.60800@googlemail.com> References: <54D0C5B8.60800@googlemail.com> Message-ID: <20150203232719.1ac240a0@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Andr?, On Tue, 03 Feb 2015 13:57:28 +0100, Andr? Schaller wrote: > Hi all, > > during the execution of th MLO I create a variable, whose value I want > to make accessible to user space applications in Android. How can this > be achieved? > > One way would be to write the contents of the variable to external > memory and let it read by the user space process. However, I would need > to make sure that during boot no other process is overwriting the address. > > Do you know of any other ways? Kind of a hack, but maybe you could pass the value somehow through the kernel boot parameters? I assume that a meaningless parameter does not affect the kernel but can still be parsed from /proc/cmdline. > Best, > Andr? Amicalement, -- Albert.