All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] SAMA5D2 xplained SD/eMMC boot
@ 2016-04-18 15:30 Marek Vasut
  2016-04-18 16:54 ` Andreas Bießmann
  2016-04-19  3:22 ` Yang, Wenyou
  0 siblings, 2 replies; 17+ messages in thread
From: Marek Vasut @ 2016-04-18 15:30 UTC (permalink / raw)
  To: u-boot

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.

-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-04-26 12:42 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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.