[U-Boot] [PATCH] rockchip: rk3288: update the mmc number for fastboot

Kever Yang kever.yang at rock-chips.com
Thu Jul 27 13:04:49 UTC 2017


Philipp,


On 07/27/2017 08:16 PM, Dr. Philipp Tomsich wrote:
> Kever,
>
>> On 27 Jul 2017, at 13:47, Kever Yang <kever.yang at rock-chips.com> wrote:
>>
>> The emmc number is 0, correct it for fastboot parameter.
> I provided some code in rk3399-board-spl.c (commit d02d11f8; see
> spl_node_to_boot_device(…) and how 'desc->devnum’ is accessed there)
> to map from a of_node back to a device-number.
>
> Could you do something similar for the fastboot case, so we can have a DTS
> property (e.g. under /config or /chosen) to map back to the devnum on a
> per-board basis?

I'm not sure if there two are similar the same case, for boot device, we
want to support more then one devices in an order, but for fastboot,
we usually do not support device other than eMMC.

Thanks,
- Kever
>
>> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
>> ---
>>
>> include/configs/rk3288_common.h | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
>> index 488d679..4489323 100644
>> --- a/include/configs/rk3288_common.h
>> +++ b/include/configs/rk3288_common.h
>> @@ -66,7 +66,7 @@
>> #define CONFIG_CMD_FASTBOOT
>> #define CONFIG_USB_FUNCTION_FASTBOOT
>> #define CONFIG_FASTBOOT_FLASH
>> -#define CONFIG_FASTBOOT_FLASH_MMC_DEV	1	/* eMMC */
>> +#define CONFIG_FASTBOOT_FLASH_MMC_DEV	0	/* eMMC */
>> #define CONFIG_FASTBOOT_BUF_ADDR	CONFIG_SYS_LOAD_ADDR
>> #define CONFIG_FASTBOOT_BUF_SIZE	0x08000000
>>
>> -- 
>> 1.9.1
>>
>




More information about the U-Boot mailing list