diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2016-06-23 00:30:56 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-06-30 13:28:28 +0200 |
commit | 4cb0e3f6c8e7e079dc143de4c55e40975bf7546a (patch) | |
tree | 9ce2324f99ba365478a726030613b0751d0c2a65 /recipes-bsp/u-boot/u-boot-toradex-fw-utils_git.bb | |
parent | b0cc8f27a09bc513fb42d308fff95d9b6cb35bfb (diff) |
u-boot: integrate apalis-tk1
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-toradex-fw-utils_git.bb')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-toradex-fw-utils_git.bb | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/recipes-bsp/u-boot/u-boot-toradex-fw-utils_git.bb b/recipes-bsp/u-boot/u-boot-toradex-fw-utils_git.bb index 548a674..f9b9f3d 100644 --- a/recipes-bsp/u-boot/u-boot-toradex-fw-utils_git.bb +++ b/recipes-bsp/u-boot/u-boot-toradex-fw-utils_git.bb @@ -1,13 +1,14 @@ SUMMARY = "U-boot bootloader fw_printenv/setenv utils" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM_tegra = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" SECTION = "bootloader" PROVIDES = "u-boot-fw-utils" DEPENDS = "mtd-utils" -COMPATIBLE_MACHINE = "(apalis-t30|colibri-t20|colibri-t30)" +COMPATIBLE_MACHINE = "(apalis-t30|apalis-tk1|colibri-t20|colibri-t30)" DEFAULT_PREFERENCE_apalis-t30 = "1" +DEFAULT_PREFERENCE_apalis-tk1 = "1" DEFAULT_PREFERENCE_colibri-t20 = "1" DEFAULT_PREFERENCE_colibri-t30 = "1" @@ -21,8 +22,11 @@ SRC_URI = "git://git.toradex.com/u-boot-toradex.git;protocol=git;branch=${SRCBRA " SRC_URI_append_tegra3 = " file://fw_unlock_mmc.sh \ " +SRC_URI_append_tegra124 = " file://fw_unlock_mmc.sh \ +" PV_apalis-t30 = "${PR}+gitr${SRCREV}" +PV_apalis-tk1 = "${PR}+gitr${SRCREV}" PV_colibri-t20 = "${PR}+gitr${SRCREV}" PV_colibri-t30 = "${PR}+gitr${SRCREV}" @@ -53,6 +57,11 @@ do_install_append_tegra3() { install -m 0644 ${WORKDIR}/fw_unlock_mmc.sh ${D}${sysconfdir}/profile.d/fw_unlock_mmc.sh } +do_install_append_tegra124() { + install -d ${D}${sysconfdir}/profile.d/ + install -m 0644 ${WORKDIR}/fw_unlock_mmc.sh ${D}${sysconfdir}/profile.d/fw_unlock_mmc.sh +} + pkg_postinst_${PN}_colibri-t20 () { # can't do this offline if [ "x$D" != "x" ]; then @@ -74,4 +83,17 @@ pkg_postinst_${PN}_tegra3 () { printf "/dev/%s\t0x%X\t0x%X\n" $DISK $CONFIG_ENV_OFFSET $CONFIG_ENV_SIZE >> "/etc/fw_env.config" } +pkg_postinst_${PN}_tegra124 () { + # 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}" |