From 58b16c6cc543b49b0a02785c6be30adea491e156 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 21 Jul 2016 18:40:17 -0700 Subject: u-boot-fw-utils: use negative offset for environment Rely on newly implemented configuration functionality to locate the environment at the end of the boot partition. Signed-off-by: Stefan Agner Acked-by: Max Krummenacher --- recipes-bsp/u-boot/u-boot-toradex-fsl-fw-utils_git.bb | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'recipes-bsp/u-boot/u-boot-toradex-fsl-fw-utils_git.bb') diff --git a/recipes-bsp/u-boot/u-boot-toradex-fsl-fw-utils_git.bb b/recipes-bsp/u-boot/u-boot-toradex-fsl-fw-utils_git.bb index 7055dbb..acc0903 100644 --- a/recipes-bsp/u-boot/u-boot-toradex-fsl-fw-utils_git.bb +++ b/recipes-bsp/u-boot/u-boot-toradex-fsl-fw-utils_git.bb @@ -13,8 +13,8 @@ DEFAULT_PREFERENCE_colibri-vf = "1" FILESPATHPKG =. "git:" S="${WORKDIR}/git" -SRCREV = "10bc451b6948e842e24799fe7fb037d335714b36" -SRCBRANCH = "2015.04-toradex" +SRCREV = "476fa4400d2cc32279c7ae7e73e7c4ab1bff4327" +SRCBRANCH = "2015.04-toradex-next" SRC_URI = "git://git.toradex.com/u-boot-toradex.git;protocol=git;branch=${SRCBRANCH} \ file://fw_env.config \ " @@ -49,17 +49,4 @@ do_install_append_mx6() { install -m 0644 ${WORKDIR}/fw_unlock_mmc.sh ${D}${sysconfdir}/profile.d/fw_unlock_mmc.sh } -pkg_postinst_${PN}_mx6 () { - # can't do this offline - if [ "x$D" != "x" ]; then - exit 1 - fi - # Environment in eMMC, before the configblock at the end of 1st "boot sector" - DISK="mmcblk0boot0" - DISK_SIZE=`cat /sys/block/$DISK/size` - CONFIG_ENV_SIZE=8192 # 0x2000 - CONFIG_ENV_OFFSET=`expr $DISK_SIZE \* 512 - $CONFIG_ENV_SIZE - 512` - printf "/dev/%s\t0x%X\t0x%X\n" $DISK $CONFIG_ENV_OFFSET $CONFIG_ENV_SIZE >> "/etc/fw_env.config" -} - PACKAGE_ARCH = "${MACHINE_ARCH}" -- cgit v1.2.3