[U-Boot] [PATCH] rpi: Enable USB keyboard support
Paul Barker
pbarker at toganlabs.com
Fri Aug 25 09:51:24 UTC 2017
On Fri, Aug 25, 2017 at 6:34 AM, Bin Meng <bmeng.cn at gmail.com> wrote:
> Hi Simon,
>
> On Fri, Aug 25, 2017 at 9:45 AM, Simon Glass <sjg at chromium.org> wrote:
>> This is currently disabled, so USB keyboards are not detected in U_Boot.
>
> U-Boot
>
>> Enable this option to fix that.
>>
>> Signed-off-by: Simon Glass <sjg at chromium.org>
>> ---
>>
>> configs/rpi_2_defconfig | 1 +
>> configs/rpi_3_32b_defconfig | 1 +
>> configs/rpi_3_defconfig | 1 +
>> configs/rpi_defconfig | 1 +
>> 4 files changed, 4 insertions(+)
>>
>> diff --git a/configs/rpi_2_defconfig b/configs/rpi_2_defconfig
>> index 63d1e4042d..5150eed79c 100644
>> --- a/configs/rpi_2_defconfig
>> +++ b/configs/rpi_2_defconfig
>> @@ -15,6 +15,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
>> CONFIG_CMD_GPIO=y
>> CONFIG_CMD_MMC=y
>> CONFIG_CMD_USB=y
>> +CONFIG_DM_KEYBOARD=y
>> CONFIG_DM_MMC=y
>> CONFIG_MMC_SDHCI=y
>> CONFIG_MMC_SDHCI_BCM2835=y
>> diff --git a/configs/rpi_3_32b_defconfig b/configs/rpi_3_32b_defconfig
>> index 343cb197a1..caceb85b07 100644
>> --- a/configs/rpi_3_32b_defconfig
>> +++ b/configs/rpi_3_32b_defconfig
>> @@ -16,6 +16,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
>> CONFIG_CMD_GPIO=y
>> CONFIG_CMD_MMC=y
>> CONFIG_CMD_USB=y
>> +CONFIG_DM_KEYBOARD=y
>> CONFIG_DM_MMC=y
>> CONFIG_MMC_SDHCI=y
>> CONFIG_MMC_SDHCI_BCM2835=y
>> diff --git a/configs/rpi_3_defconfig b/configs/rpi_3_defconfig
>> index 6c9f2e32b5..e3dd1b9124 100644
>> --- a/configs/rpi_3_defconfig
>> +++ b/configs/rpi_3_defconfig
>> @@ -16,6 +16,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
>> CONFIG_CMD_GPIO=y
>> CONFIG_CMD_MMC=y
>> CONFIG_CMD_USB=y
>> +CONFIG_DM_KEYBOARD=y
>> CONFIG_DM_MMC=y
>> CONFIG_MMC_SDHCI=y
>> CONFIG_MMC_SDHCI_BCM2835=y
>> diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig
>> index 6b3cec5ce0..eaf9bb9189 100644
>> --- a/configs/rpi_defconfig
>> +++ b/configs/rpi_defconfig
>> @@ -15,6 +15,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
>> CONFIG_CMD_GPIO=y
>> CONFIG_CMD_MMC=y
>> CONFIG_CMD_USB=y
>> +CONFIG_DM_KEYBOARD=y
>> CONFIG_DM_MMC=y
>> CONFIG_MMC_SDHCI=y
>> CONFIG_MMC_SDHCI_BCM2835=y
>> --
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
>
Tested-by: Paul Barker <pbarker at toganlabs.com>
I now have working keyboard & network in u-boot master on an rpi 3 32-bit.
It still hangs at "Starting kernel ..." when I try to boot Linux as
discussed elsewhere but the keyboard issue is now fixed.
--
Paul Barker
Togán Labs Ltd
More information about the U-Boot
mailing list