From: James Chargin <jimccrown@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] SAMA5D2 xplained SD/eMMC boot
Date: Mon, 18 Apr 2016 15:48:50 -0700 [thread overview]
Message-ID: <57156452.6030101@gmail.com> (raw)
In-Reply-To: <560fa7952c02c787b56c1b15b531df26@biessmann.de>
On 04/18/2016 09:54 AM, Andreas Bie?mann wrote:
> Hi Marek,
>
> On 2016-04-18 17:30, Marek Vasut wrote:
>> Hi!
>>
>> I've been playing around with latest mainline u-boot on sama5d2 xplained
>> ultra. I noticed that if I want to boot the board from
>> SD card (SDHCI1), the board will indeed load the SPL from it, but
>> SPL will try to load u-boot.img from eMMC (SDHCI0) and fail, as
>> my eMMC is blank. This is a result of hard-coding boot device to
>> BOOT_DEVICE_MMC1 in arch/arm/mach-at91/spl.c spl_boot_device() I
>> think.
>>
>> Is there any way to discern from which SDHCI the board booted to
>> continue loading u-boot.img from the correct one ? This would let
>> us implement board_boot_order() and boot from correct SDHCI.
>
> AFIAK it is not possible to detect the boot medium in a running device.
> At least was this the case when I checked it the last time (for sama5d3).
For the TI am5728 (ARM V7), there is a register, CTRL_CORE_BOOTSTRAP
(0x4A0026C4) which contains the boot device selection at last power
cycle. I'm new to ARM so I don't know how likely it is that the Atmel
part has a similar register. Good luck.
--
Jim Chargin
AJA Video Systems jimc at aja.com
(530) 271-3334 http://www.aja.com
next prev parent reply other threads:[~2016-04-18 22:48 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-18 15:30 [U-Boot] SAMA5D2 xplained SD/eMMC boot Marek Vasut
2016-04-18 16:54 ` Andreas Bießmann
2016-04-18 22:48 ` James Chargin [this message]
2016-04-19 3:22 ` Yang, Wenyou
2016-04-19 16:34 ` Marek Vasut
2016-04-20 1:17 ` Yang, Wenyou
2016-04-20 9:36 ` Marek Vasut
2016-04-21 2:30 ` Yang, Wenyou
2016-04-21 2:41 ` Marek Vasut
2016-04-21 2:46 ` Yang, Wenyou
2016-04-21 2:58 ` Marek Vasut
2016-04-22 0:54 ` Yang, Wenyou
2016-04-22 12:17 ` Marek Vasut
2016-04-25 0:55 ` Yang, Wenyou
2016-04-25 10:30 ` Marek Vasut
2016-04-26 1:47 ` Yang, Wenyou
2016-04-26 12:42 ` 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=57156452.6030101@gmail.com \
--to=jimccrown@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.