Return-Path: Received: from mout3.freenet.de (mout3.freenet.de [195.4.92.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6B8ABE01586 for ; Mon, 5 Aug 2013 22:33:39 -0700 (PDT) Received: from [195.4.92.141] (helo=mjail1.freenet.de) by mout3.freenet.de with esmtpa (ID twoofseven@freenet.de) (port 25) (Exim 4.80.1 #4) id 1V6Ztq-0003gN-Qt for meta-freescale@yoctoproject.org; Tue, 06 Aug 2013 07:33:38 +0200 Received: from localhost ([::1]:49442 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID twoofseven@freenet.de) (Exim 4.80.1 #4) id 1V6Ztq-0003xy-Mx for meta-freescale@yoctoproject.org; Tue, 06 Aug 2013 07:33:38 +0200 Received: from mx18.freenet.de ([195.4.92.28]:33307) by mjail1.freenet.de with esmtpa (ID twoofseven@freenet.de) (Exim 4.80.1 #4) id 1V6Zqn-0000hO-Sw for meta-freescale@yoctoproject.org; Tue, 06 Aug 2013 07:30:29 +0200 Received: from 75-101-100-31.dsl.static.sonic.net ([75.101.100.31]:36916 helo=bDesk.lan) by mx18.freenet.de with esmtpsa (ID twoofseven@freenet.de) (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (port 587) (Exim 4.80.1 #4) id 1V6Zqn-0006N9-Cd; Tue, 06 Aug 2013 07:30:29 +0200 From: Matthias Benesch To: meta-freescale@yoctoproject.org Date: Mon, 5 Aug 2013 22:30:13 -0700 Message-Id: <1375767013-2862-1-git-send-email-twoof7@freenet.de> X-Mailer: git-send-email 1.8.3.4 Subject: [meta-fsl-arm-extra][PATCH 1/3] u-boot-imx6dongle: Add u-boot fork of i.MX6 HDMI dongle X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Aug 2013 05:33:39 -0000 Signed-off-by: Matthias Benesch --- ...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 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 +Date: Sat, 3 Aug 2013 15:28:32 -0700 +Subject: [PATCH] gk802: Change default environment to work with OE + +Signed-off-by: Matthias Benesch +--- + 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}" -- 1.8.3.4