Patchwork [meta-fsl-arm-extra,1/3] gk802: Add u-boot fork of i.MX6 HDMI dongle

login
register
mail settings
Submitter Matthias Benesch
Date Aug. 5, 2013, 5:01 a.m.
Message ID <1375678909-20011-1-git-send-email-twoof7@freenet.de>
Download mbox | patch
Permalink /patch/55101/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Matthias Benesch - Aug. 5, 2013, 5:01 a.m.
Signed-off-by: Matthias Benesch <twoof7@freenet.de>
---
 ...hange-default-environment-to-work-with-OE.patch | 41 ++++++++++++++++++++++
 recipes-bsp/u-boot/u-boot-imx6dongle_git.bb        | 16 +++++++++
 2 files changed, 57 insertions(+)
 create mode 100644 recipes-bsp/u-boot/u-boot-imx6dongle/0001-gk802-Change-default-environment-to-work-with-OE.patch
 create mode 100644 recipes-bsp/u-boot/u-boot-imx6dongle_git.bb
Otavio Salvador - Aug. 5, 2013, 11:28 a.m.
On Mon, Aug 5, 2013 at 2:01 AM, Matthias Benesch <twoof7@freenet.de> wrote:
> Signed-off-by: Matthias Benesch <twoof7@freenet.de>

Please use:

u-boot-imx6dongle: ...

for shortlog.

Patch

diff --git a/recipes-bsp/u-boot/u-boot-imx6dongle/0001-gk802-Change-default-environment-to-work-with-OE.patch b/recipes-bsp/u-boot/u-boot-imx6dongle/0001-gk802-Change-default-environment-to-work-with-OE.patch
new file mode 100644
index 0000000..6e1779d
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-imx6dongle/0001-gk802-Change-default-environment-to-work-with-OE.patch
@@ -0,0 +1,41 @@ 
+From 2983c330eaf49a9d6f8cba9379c4c9ba4b92e4df Mon Sep 17 00:00:00 2001
+From: Matthias Benesch <twoof7@freenet.de>
+Date: Sat, 3 Aug 2013 15:28:32 -0700
+Subject: [PATCH] gk802: Change default environment to work with OE
+
+Signed-off-by: Matthias Benesch <twoof7@freenet.de>
+---
+ include/configs/gk802.h | 12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/include/configs/gk802.h b/include/configs/gk802.h
+index a84f16b..b7bc8ee 100644
+--- a/include/configs/gk802.h
++++ b/include/configs/gk802.h
+@@ -109,14 +109,20 @@
+ 
+ #define CONFIG_EXTRA_ENV_SETTINGS \
+ 	"script=boot.scr\0" \
+-	"uimage=/boot/uImage\0" \
++	"uimage=uImage\0" \
+ 	"console=" CONFIG_CONSOLE_DEV "\0" \
++	"mmcpart=1\0" \
++	"mmcroot=/dev/mmcblk0p2 rw\0" \
++	"mmcrootfstype=ext3 rootwait\0" \
++	"mmcargs=setenv bootargs ${bootargs} console=${console},${baudrate} " \
++		"root=${mmcroot} " \
++		"rootfstype=${mmcrootfstype}\0" \
+ 	"fdt_high=0xffffffff\0"	  \
+ 	"initrd_high=0xffffffff\0" \
+     "boot_recovery=setenv bootsuffix _recovery; setenv mmcdev 1; run try_boot; setenv mmcdev 0; run try_boot; run boot_normal\0" \
+     "boot_normal=  setenv bootsuffix ''; setenv mmcdev 1; run try_boot; setenv mmcdev 0; run try_boot\0" \
+-    "try_boot=if ext2load mmc ${mmcdev} ${loadaddr} /boot/ubootcmd${bootsuffix}; then source; fi;" \
+-    "         if ext2load mmc ${mmcdev} ${loadaddr} /boot/uImage${bootsuffix}; then bootm; fi;\0"
++    "try_boot=if fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script}${bootsuffix}; then source; fi;" \
++    "         if fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}${bootsuffix}; then run mmcargs; bootm; fi;\0"
+ 
+ 
+ 
+-- 
+1.8.3.4
+
diff --git a/recipes-bsp/u-boot/u-boot-imx6dongle_git.bb b/recipes-bsp/u-boot/u-boot-imx6dongle_git.bb
new file mode 100644
index 0000000..f4780fc
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-imx6dongle_git.bb
@@ -0,0 +1,16 @@ 
+require recipes-bsp/u-boot/u-boot.inc
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+COMPATIBLE_MACHINE = "(gk802)"
+
+PROVIDES = "u-boot"
+
+SRCREV = "7a2d0586f5c3bc07dae8cc87f12c95118a02a7a5"
+SRC_URI = "git://github.com/imx6-dongle/uboot-imx6dongle.git \
+           file://0001-gk802-Change-default-environment-to-work-with-OE.patch \
+"
+
+S = "${WORKDIR}/git"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"