public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "André Schaller" <an.schall@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Loop Variable through to user space
Date: Wed, 04 Feb 2015 20:10:50 +0100	[thread overview]
Message-ID: <54D26EBA.2010406@googlemail.com> (raw)
In-Reply-To: <20150203232719.1ac240a0@lilith>

Hello Albert,

thanks for the information. Do you mean to pass the value using an
environment variable to the boot parameter? How would I approach to set
up an environment variable in the SPL? Wouldn't it increase the memory
footprint such that the SPL wouldn't fit into SRAM anymore?

Best,
Andr?

Am 03.02.15 um 23:27 schrieb Albert ARIBAUD:
> Hello Andr?,
> 
> On Tue, 03 Feb 2015 13:57:28 +0100, Andr? Schaller
> <an.schall@googlemail.com> 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,
> 

  reply	other threads:[~2015-02-04 19:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03 12:57 [U-Boot] Loop Variable through to user space André Schaller
2015-02-03 22:27 ` Albert ARIBAUD
2015-02-04 19:10   ` André Schaller [this message]
2015-02-05  4:04 ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54D26EBA.2010406@googlemail.com \
    --to=an.schall@googlemail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox