BeagleBone Black: let the default FW "boot from the SD card"

I just don't want to hold that button at each power-up, and I have not
added support for flashing to eMMC yet. The default, preinstalled
bootlaoder tries to read uEnv.txt from the SDD card's boot partition and
execute `uenvcmd` from there, so let's make it happy and adapt
ourselves.

The default U-Boot installed on-device (2015.01-00001-gb2412df) doesn't
define ${scriptaddr}, so we have to provide it if we want our launchers
to succeed.

Change-Id: I50dc5177f4dd16435d4f5d17908db938e4cc5c3c
diff --git a/board/czechlight/beaglebone/create-uEnv.sh b/board/czechlight/beaglebone/create-uEnv.sh
index 9808fdd..3e0c513 100755
--- a/board/czechlight/beaglebone/create-uEnv.sh
+++ b/board/czechlight/beaglebone/create-uEnv.sh
@@ -2,6 +2,8 @@
 
 install -m 0644 -D $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
 
+cp ${BR2_EXTERNAL_CZECHLIGHT_PATH}/board/czechlight/beaglebone/sd-uEnv.txt ${BINARIES_DIR}/
+
 # prepare the static script with RAUC logic
 ${HOST_DIR}/bin/mkimage -C none -A arm -T script \
         -d ${BR2_EXTERNAL_CZECHLIGHT_PATH}/board/czechlight/beaglebone/rauc.scr.txt ${BINARIES_DIR}/rauc.scr
diff --git a/board/czechlight/beaglebone/genimage.cfg b/board/czechlight/beaglebone/genimage.cfg
index dc9f7c1..8f92ca1 100644
--- a/board/czechlight/beaglebone/genimage.cfg
+++ b/board/czechlight/beaglebone/genimage.cfg
@@ -7,6 +7,9 @@
 		file boot.scr {
 			image = "sd.scr"
 		}
+		file uEnv.txt {
+			image = "sd-uEnv.txt"
+		}
 	}
 	size = 8M
 }
diff --git a/board/czechlight/beaglebone/sd-uEnv.txt b/board/czechlight/beaglebone/sd-uEnv.txt
new file mode 100644
index 0000000..8496b70
--- /dev/null
+++ b/board/czechlight/beaglebone/sd-uEnv.txt
@@ -0,0 +1 @@
+uenvcmd=setenv scriptaddr 0x80000000; load mmc 0:1 ${scriptaddr} boot.scr && source ${scriptaddr}