Hi Marek, > -----Original Message----- > From: Marek Vasut [mailto:marek.va...@gmail.com] > Sent: 2016年4月18日 23:30 > To: Yang, Wenyou <wenyou.y...@atmel.com> > Cc: u-boot@lists.denx.de > Subject: SAMA5D2 xplained SD/eMMC 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.
Yes, there is some issue to load u-boot.img. I found there is something to do on sdhci.c. You can try this branch, it should works. https://github.com/linux4sam/u-boot-at91/commits/u-boot-2016.03-at91 > 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 Best Regards, Wenyou Yang _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot