u-boot: update to u-boot-imx6-408544d for imx6 project

hide dd output when updating bootloader
add patch for kernel 4.4
This commit is contained in:
Peter Vicman 2016-04-02 10:34:43 +02:00
parent f61a0eadf2
commit 793fb70fb1
3 changed files with 28 additions and 3 deletions

View File

@ -22,8 +22,9 @@ if [ "$UBOOT_VERSION" = "default" ]; then
PKG_SITE="http://www.denx.de/wiki/U-Boot/WebHome"
PKG_URL="ftp://ftp.denx.de/pub/u-boot/$PKG_NAME-$PKG_VERSION.tar.bz2"
elif [ "$UBOOT_VERSION" = "imx6-cuboxi" ]; then
PKG_VERSION="imx6-e817fa3"
PKG_VERSION="imx6-408544d"
PKG_SITE="http://imx.solid-run.com/wiki/index.php?title=Building_the_kernel_and_u-boot_for_the_CuBox-i_and_the_HummingBoard"
# https://github.com/SolidRun/u-boot-imx6.git
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
else
exit 0

View File

@ -58,7 +58,7 @@ fi
# access boot partition 1
echo 0 > /sys/block/mmcblk0boot0/force_ro
# write u-boot to eMMC
dd if=$SYSTEM_ROOT/usr/share/bootloader/u-boot-$SYSTEM_TYPE.imx of=/dev/mmcblk0boot0 bs=1k seek=1 conv=fsync
dd if=$SYSTEM_ROOT/usr/share/bootloader/u-boot-$SYSTEM_TYPE.imx of=/dev/mmcblk0boot0 bs=1k seek=1 conv=fsync &>/dev/null
# re-enable read-only access
echo 1 > /sys/block/mmcblk0boot0/force_ro
# enable boot partion 1 to boot
@ -80,7 +80,7 @@ fi
if [ -f $SYSTEM_ROOT/usr/share/bootloader/$SPL_SRC ]; then
echo "*** updating u-boot SPL Blob on: $BOOT_DISK ..."
dd if="$SYSTEM_ROOT/usr/share/bootloader/$SPL_SRC" of="$BOOT_DISK" bs=1k seek=1 conv=fsync
dd if="$SYSTEM_ROOT/usr/share/bootloader/$SPL_SRC" of="$BOOT_DISK" bs=1k seek=1 conv=fsync &>/dev/null
fi
fi

View File

@ -0,0 +1,24 @@
commit c3b3b538666cfa2a33f231e8ffb7424761f1a638
Author: Matus Kral <matuskral@me.com>
Date: Tue Dec 29 15:43:03 2015 +0100
fix for HB1
the SR's uboot tree after commit 144b1e90d15f3a94f0c8183827d4f1b93f6f2e68
is keeping IPU started - what is keeping gfx in 4.x+ kernels from starting
diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c
index 5c3c080..ca74901 100644
--- a/arch/arm/imx-common/cpu.c
+++ b/arch/arm/imx-common/cpu.c
@@ -176,5 +176,9 @@ void arch_preboot_os(void)
{
/* disable video before launching O/S */
ipuv3_fb_shutdown();
+
+ struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
+ setbits_le32(&ccm->analog_pll_video, BM_ANADIG_PLL_VIDEO_POWERDOWN);
+
}
#endif