u-boot: add 2011.09+git for beaglebone 1st and 2nd stage
authorKoen Kooi <koen@dominion.thruhere.net>
Tue, 27 Sep 2011 11:03:06 +0000 (13:03 +0200)
committerKoen Kooi <koen@dominion.thruhere.net>
Sat, 8 Oct 2011 19:09:00 +0000 (21:09 +0200)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
recipes-bsp/u-boot/u-boot.inc
recipes-bsp/u-boot/u-boot/0001-am335x-evm-hack-in-ethernet-rmii-clock.patch [new file with mode: 0644]
recipes-bsp/u-boot/u-boot_2011.10rc.bb [new file with mode: 0644]

index f9dab47e2e3c0ac2a68e16731063ecb6ed975c73..310d80cac294128d3ac73cbdb8678862601effcd 100644 (file)
@@ -64,4 +64,5 @@ do_deploy () {
 
        cd ${DEPLOY_DIR_IMAGE}
        rm -f ${UBOOT_SYMLINK}
+       ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
 }
diff --git a/recipes-bsp/u-boot/u-boot/0001-am335x-evm-hack-in-ethernet-rmii-clock.patch b/recipes-bsp/u-boot/u-boot/0001-am335x-evm-hack-in-ethernet-rmii-clock.patch
new file mode 100644 (file)
index 0000000..af7fae7
--- /dev/null
@@ -0,0 +1,26 @@
+From 5db18d5efdbdcd52ab33e28929a30f743a202bf8 Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen@dominion.thruhere.net>
+Date: Fri, 7 Oct 2011 18:17:50 +0200
+Subject: [PATCH] am335x-evm: hack in ethernet rmii clock
+
+Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
+---
+ include/configs/am335x_evm.h |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
+index 543c604..0f806aa 100755
+--- a/include/configs/am335x_evm.h
++++ b/include/configs/am335x_evm.h
+@@ -163,7 +163,7 @@
+               "bootm ${loadaddr}\0" \
+ #define CONFIG_BOOTCOMMAND \
+-      "if mmc rescan; then " \
++      "mw.l 0x44e10650 0x05 ; if mmc rescan; then " \
+               "if run loadbootscript; then " \
+                       "run bootscript; " \
+               "else " \
+-- 
+1.6.6.1
+
diff --git a/recipes-bsp/u-boot/u-boot_2011.10rc.bb b/recipes-bsp/u-boot/u-boot_2011.10rc.bb
new file mode 100644 (file)
index 0000000..9aebb1b
--- /dev/null
@@ -0,0 +1,25 @@
+require u-boot.inc
+
+# No patches for other machines yet
+COMPATIBLE_MACHINE = "beaglebone"
+DEFAULT_PREFERENCE_beaglebone = "99"
+PV = "2011.09+git"
+PR = "r2"
+
+# SPL build
+UBOOT_BINARY = "u-boot.img"
+UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"
+UBOOT_SYMLINK = "u-boot-${MACHINE}.img"
+
+SRC_URI = "git://github.com/joelagnel/u-boot.git;protocol=git;branch=bone-bringup \
+           file://0001-am335x-evm-hack-in-ethernet-rmii-clock.patch \
+          "
+SRCREV = "d643e691ab2055ef64f73dd70300a73e0443d1ef"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+
+S = "${WORKDIR}/git"
+
+do_deploy_append () {
+    install ${S}/MLO ${DEPLOY_DIR_IMAGE}/MLO
+}