All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] sunxi board: why MMC dev are swapped ?
@ 2016-11-11 18:33 Mylene Josserand
  2016-11-11 21:28 ` Maxime Ripard
  2016-11-12 10:22 ` Hans de Goede
  0 siblings, 2 replies; 4+ messages in thread
From: Mylene Josserand @ 2016-11-11 18:33 UTC (permalink / raw)
  To: u-boot

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

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

end of thread, other threads:[~2016-11-16  7:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-11 18:33 [U-Boot] sunxi board: why MMC dev are swapped ? Mylene Josserand
2016-11-11 21:28 ` Maxime Ripard
2016-11-12 10:22 ` Hans de Goede
2016-11-16  7:55   ` Mylene Josserand

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.