summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>2019-10-13 00:03:45 +0200
committerChristoph Muellner <christoph.muellner@theobroma-systems.com>2019-10-13 00:29:14 +0200
commita8899411e781b74e28f30991faef63f1be1ce3da (patch)
tree925e2840ed785ef2108a0ae6cfd75875a171ce68
parent5d7b8417731195384fce3a773a5b9543e4e23890 (diff)
puma: Enable support for accessing bootloader environment.
This patch enables the package UBOOT tools, which brings the Linux tools fw_printenv and fw_setenv, which can be used to access the bootloader environment from a Linux system. The board-specific location information is written in post-build.sh. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
-rwxr-xr-xboard/theobroma-systems/puma/post-build.sh3
-rw-r--r--configs/puma-rk3399_defconfig1
2 files changed, 4 insertions, 0 deletions
diff --git a/board/theobroma-systems/puma/post-build.sh b/board/theobroma-systems/puma/post-build.sh
index 237ab977a5..72c54994c6 100755
--- a/board/theobroma-systems/puma/post-build.sh
+++ b/board/theobroma-systems/puma/post-build.sh
@@ -12,5 +12,8 @@ BOARD_DIR="$(dirname $0)"
# Call generic post-build script
$BOARD_DIR/../generic/post-build.sh $BOARD_DIR $BINARIES_DIR $TARGET_DIR
+# Add environment location information
+echo "/dev/mmcblk1 0x4000 0x4000" > $TARGET_DIR/etc/fw_env.config
+
# Generate bootloader image
$MKIMAGE -n rk3399 -T rksd -d $BINARIES_DIR/u-boot-spl.bin ${BINARIES_DIR}/spl_sd.img
diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
index fab594277c..8a373255d7 100644
--- a/configs/puma-rk3399_defconfig
+++ b/configs/puma-rk3399_defconfig
@@ -74,6 +74,7 @@ BR2_PACKAGE_PICOCOM=y
BR2_PACKAGE_RTC_TOOLS=y
BR2_PACKAGE_SETSERIAL=y
BR2_PACKAGE_SMARTMONTOOLS=y
+BR2_PACKAGE_UBOOT_TOOLS=y
BR2_PACKAGE_BC=y
BR2_PACKAGE_HAVEGED=y
BR2_PACKAGE_DHCP=y