summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2013-02-19 10:22:43 +0100
committerJan Luebbe <jlu@pengutronix.de>2013-02-19 10:22:43 +0100
commit62cf289341c75d116efe1dfa60302dad0f856b59 (patch)
treeca451b45f63ba23dece320e5b33cef99f917a584
parenta6eb2b892c116c5b1895f909923f790e77b39866 (diff)
downloadplatform-pengutronix-beaglebone-62cf289341c75d116efe1dfa60302dad0f856b59.tar.gz
platform-pengutronix-beaglebone-62cf289341c75d116efe1dfa60302dad0f856b59.tar.xz
platformconfig: enable barebox-defaultenv overrides
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
-rw-r--r--barebox-defaultenv/boot/sd12
-rw-r--r--platformconfig3
2 files changed, 14 insertions, 1 deletions
diff --git a/barebox-defaultenv/boot/sd b/barebox-defaultenv/boot/sd
new file mode 100644
index 0000000..ecd8e49
--- /dev/null
+++ b/barebox-defaultenv/boot/sd
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ "$1" = menu ]; then
+ boot-menu-add-entry "$0" "kernel & rootfs on SD card"
+ exit
+fi
+
+global.bootm.image=/boot/uImage
+global.bootm.oftree=/boot/oftree
+#global.bootm.initrd=<path to initrd>
+global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw"
+
diff --git a/platformconfig b/platformconfig
index 54b3861..5243126 100644
--- a/platformconfig
+++ b/platformconfig
@@ -148,7 +148,8 @@ PTXCONF_BAREBOX=y
PTXCONF_BAREBOX_VERSION="2012.12.0"
PTXCONF_BAREBOX_MD5="f96014564209d270ce3d008cbb7515df"
PTXCONF_BAREBOX_CONFIG="barebox.config"
-# PTXCONF_BAREBOX_EXTRA_ENV is not set
+PTXCONF_BAREBOX_EXTRA_ENV=y
+PTXCONF_BAREBOX_EXTRA_ENV_PATH="${PTXDIST_PLATFORMCONFIGDIR}/barebox-defaultenv"
PTXCONF_BAREBOX_BAREBOXENV=y
PTXCONF_BAREBOX_MLO=y
PTXCONF_BAREBOX_MLO_VERSION="${PTXCONF_BAREBOX_VERSION}"