From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Date: Fri, 11 Nov 2016 22:28:37 +0100 Subject: [U-Boot] sunxi board: why MMC dev are swapped ? In-Reply-To: References: Message-ID: <20161111212837.lkrkojrd4n2zp6cp@lukather> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Adding hans to the recipient list Maxime On Fri, Nov 11, 2016 at 07:33:43PM +0100, Mylene Josserand wrote: > Hi everyone, > > > I am currently using FEL and Fastboot to flash a sunxi-device with SPL and > u-boot. > > > In my board, I have two MMC devices: a MMC slot and an eMMC. > > My use-case is to flash an empty device. I want to use FEL to boot a u-boot > and then, use fastboot to flash u-boot into eMMC. > > When I am using an u-boot via FEL, the eMMC is configured as MMC1. To be > able to flash u-boot on it, I need to set CONFIG_FASTBOOT_FLASH_MMC_DEV to > 1. Thanks to that, the flashboot command is working fine. > But when I am booting on my fresh u-boot from eMMC, it is now configured as > MMC0 and not MMC1 anymore. > > It produces some problems in my case as I configured the > CONFIG_FASTBOOT_FLASH_MMC_DEV to 1 so I can not use fastboot anymore to > flash the eMMC (as, now, fastboot is trying to flash u-boot on my MMC slot > and not my eMMC). This is clearly not what I wanted to. I would like to use > fastboot to flash the same MMC device: eMMC. > > This issue is located in this part of the code: > http://git.denx.de/?p=u-boot.git;a=blob;f=board/sunxi/board.c;h=53656383d512199338dcdc1d4fdc4f7f939c9b61;hb=HEAD#l377 > > Do you know why sunxi boards have this behavior ? Why this MMC device's swap > is implemented ? > > Thank you in advance for your help, > > Best regards, > > -- > Myl?ne Josserand, Free Electrons > Embedded Linux and Kernel engineering > http://free-electrons.com -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: