From: w.sang@pengutronix.de (Wolfram Sang)
To: linux-arm-kernel@lists.infradead.org
Subject: MX28 & finding out boot mode
Date: Thu, 30 Aug 2012 11:13:18 +0200 [thread overview]
Message-ID: <20120830091318.GC27306@pengutronix.de> (raw)
In-Reply-To: <F281D0F91ED19E4D8E63A7504E8A649803C63005@039-SN2MPN1-023.039d.mgd.msft.net>
On Thu, Aug 30, 2012 at 08:47:21AM +0000, Chen Peter-B29397 wrote:
>
> > > is there a way to find out how the MX28 was booted? I could read out
> > the
> > > bootmode-pins for indication. Still, either by button or by empty NAND,
> > > the CPU could have been booted via USB recovery mode. And going through
> > > the docs and the bootlets code, I can't find a way to determine if USB
> > > recovery was used.
> > >
> > > So, can USB recovery mode be detected somehow? Then, this and reading
> > > pins should be sufficent, no?
> > >
> > Add Frank&Peter who may know it.
Thanks.
> As far as I know, the romcode decides which mode is used, I haven't read
> romcode, so don't know priority of below booting selection.
For me, this is not about priorities, I just want to know which mode was
really used in the end :)
> Why do you need to know USB recovery mode at your code?
Some customers want this to handle the recovery case differently than
the standard case.
Thanks for the help!
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120830/43724dbe/attachment.sig>
next prev parent reply other threads:[~2012-08-30 9:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-30 8:25 MX28 & finding out boot mode Wolfram Sang
2012-08-30 8:12 ` Dong Aisheng
2012-08-30 8:47 ` Chen Peter-B29397
2012-08-30 9:13 ` Wolfram Sang [this message]
2012-08-30 9:40 ` Chen Peter-B29397
2012-08-30 9:55 ` Wolfram Sang
2012-09-01 21:00 ` Marek Vasut
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=20120830091318.GC27306@pengutronix.de \
--to=w.sang@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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 NNTP newsgroup(s).