linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brad Arnold <brad@check-it.ca>
To: Nicolas Pitre <nico@fluxnic.net>
Cc: linux-embedded@vger.kernel.org
Subject: Re: Expose system Serial Number to userspace.
Date: Wed, 29 Aug 2012 14:47:02 -0600	[thread overview]
Message-ID: <CADoavCcgYy_PrGkiO3rGZNvg6C1uKFQtqHffR=BviPKiWjdgvQ@mail.gmail.com> (raw)
In-Reply-To: <alpine.LFD.2.02.1208291143101.1784@xanadu.home>

On Wed, Aug 29, 2012 at 9:50 AM, Nicolas Pitre <nico@fluxnic.net> wrote:
>
> On Wed, 29 Aug 2012, Brad Arnold wrote:
>
> > Hi,
> >
> > I'm working on an embedded board which uses u-boot + linux. At
> > manufacturing time, the device serial number will be programmed into OTP
> > memory on NAND (probably from within u-boot). We'd like the linux kernel
> > to make this serial number available to be read from userspace. Is there
> > an accepted method to do this sort of thing?
>
> A serial number field is available from /proc/cpuinfo already.  you just
> have to initialize it through the system_serial_high and
> system_serial_low global variables.
>
>
> Nicolas

Actually, I guess even better than initializing through the two
variables is to pass the serial directly from u-boot using the tag.

Brad

  parent reply	other threads:[~2012-08-29 20:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-29 15:18 Expose system Serial Number to userspace Brad Arnold
2012-08-29 15:50 ` Nicolas Pitre
2012-08-29 16:53   ` Brad Arnold
2012-08-29 20:47   ` Brad Arnold [this message]
2012-08-29 20:52     ` Nicolas Pitre
2012-08-29 16:05 ` Marco Stornelli
2012-08-29 16:57   ` Brad Arnold
2012-08-29 17:07     ` Marco Stornelli

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='CADoavCcgYy_PrGkiO3rGZNvg6C1uKFQtqHffR=BviPKiWjdgvQ@mail.gmail.com' \
    --to=brad@check-it.ca \
    --cc=linux-embedded@vger.kernel.org \
    --cc=nico@fluxnic.net \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).