u-boot-imx6dongle: Add u-boot fork of i.MX6 HDMI dongle

Signed-off-by: Matthias Benesch <twoof7@freenet.de>
This commit is contained in:
Matthias Benesch 2013-08-07 17:17:25 +00:00 committed by Otavio Salvador
parent dae9a3479d
commit e98629d926
2 changed files with 57 additions and 0 deletions

View File

@ -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

View File

@ -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}"