From 58d86c0986ab50d5d193ab9a965cb88d528269dd Mon Sep 17 00:00:00 2001 From: Drew Moseley Date: Sun, 7 Jan 2018 11:57:04 -0500 Subject: u-boot: Update RPi Zero W defconfig to support DTB. This makes the defconfig more consistent with the RPi 3 and CONFIG_OF_EMBED is needed to get the RPi firmware provided DTB to function. Signed-off-by: Drew Moseley Added patch status information in patch header, and re-word of commit message Signed-off-by: Mirza Krak --- ...-rpi_0_w-Add-configs-consistent-with-RpI3.patch | 42 ++++++++++++++++++++++ recipes-bsp/u-boot/u-boot_%.bbappend | 1 + 2 files changed, 43 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot/0002-rpi_0_w-Add-configs-consistent-with-RpI3.patch diff --git a/recipes-bsp/u-boot/u-boot/0002-rpi_0_w-Add-configs-consistent-with-RpI3.patch b/recipes-bsp/u-boot/u-boot/0002-rpi_0_w-Add-configs-consistent-with-RpI3.patch new file mode 100644 index 0000000..9af9c4e --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/0002-rpi_0_w-Add-configs-consistent-with-RpI3.patch @@ -0,0 +1,42 @@ +From ee4328553b1a10d2686d60c7b184223b09d76cdc Mon Sep 17 00:00:00 2001 +From: Drew Moseley +Date: Sun, 7 Jan 2018 10:00:10 -0500 +Subject: [PATCH] rpi_0_w: Add configs consistent with RpI3 + +Upstream-Status: Submitted [https://patchwork.ozlabs.org/patch/856572/] + +Signed-off-by: Drew Moseley +--- + configs/rpi_0_w_defconfig | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/configs/rpi_0_w_defconfig b/configs/rpi_0_w_defconfig +index 092f378..623aad3 100644 +--- a/configs/rpi_0_w_defconfig ++++ b/configs/rpi_0_w_defconfig +@@ -11,6 +11,10 @@ CONFIG_SYS_PROMPT="U-Boot> " + # CONFIG_CMD_FLASH is not set + CONFIG_CMD_MMC=y + CONFIG_CMD_USB=y ++CONFIG_OF_EMBED=y ++CONFIG_ENV_FAT_INTERFACE="mmc" ++CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" ++CONFIG_DM_KEYBOARD=y + # CONFIG_CMD_FPGA is not set + CONFIG_CMD_GPIO=y + CONFIG_DM_MMC=y +@@ -19,8 +23,11 @@ CONFIG_MMC_SDHCI_BCM2835=y + CONFIG_DM_ETH=y + CONFIG_USB=y + CONFIG_DM_USB=y ++CONFIG_USB_DWC2=y + CONFIG_USB_STORAGE=y + CONFIG_USB_KEYBOARD=y ++CONFIG_USB_HOST_ETHER=y ++CONFIG_USB_ETHER_SMSC95XX=y + CONFIG_DM_VIDEO=y + CONFIG_SYS_WHITE_ON_BLACK=y + CONFIG_CONSOLE_SCROLL_LINES=10 +-- +2.7.4 + diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend index 9fd7304..f91ad95 100644 --- a/recipes-bsp/u-boot/u-boot_%.bbappend +++ b/recipes-bsp/u-boot/u-boot_%.bbappend @@ -2,6 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot:" SRC_URI_append_rpi = " \ file://0001-add-support-for-Raspberry-Pi-Zero-W.patch \ + file://0002-rpi_0_w-Add-configs-consistent-with-RpI3.patch \ " RDEPENDS_${PN}_append_rpi = " rpi-u-boot-scr" -- cgit v1.2.3-54-g00ecf