mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00

This patch updates U-Boot and the boot script to the latest production version as described in this post: http://boundarydevices.com/u-boot-2013-07-release/ For Yocto users, it also adds support for processor and memory configurations other than the standard Quad-core/1GB option. To build U-Boot for other CPU or memory combinations, you can set the UBOOT_MACHINE variable in your local.conf according to the following table: Processor Memory Configuration -------------- ------ -------------------- i.MX6Quad/Dual 1GB nitrogen6q_config i.MX6Quad/Dual 2GB nitrogen6q2g_config i.MX6Dual-Lite 1GB nitrogen6dl_config i.MX6Dual-Lite 2GB nitrogen6dl2g_config i.MX6Solo 512MB nitrogen6s_config i.MX6Solo 1GB nitrogen6s1g_config This patch also updates the boot script to allow support for device-tree-enabled kernels in preparation for a 3.5.7 alpha release. If a device-tree binary (imx6q_sabrelite.dtb or imx6q_nitrogen6x.dtb) is found in the root directory of the boot (p1) partition, it will be passed to the kernel. Change-Id: Ieeeb4b094ddfbcf3982bfe4a682015b5cbe25797 Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
51 lines
1.6 KiB
BlitzBasic
51 lines
1.6 KiB
BlitzBasic
LICENSE = "GPLv2+"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
|
|
COMPATIBLE_MACHINE = "(imx6qsabrelite|nitrogen6x)"
|
|
DEPENDS = "u-boot-mkimage-native"
|
|
|
|
PV = "v2013.01+git${SRCPV}"
|
|
|
|
SRCREV = "f89bc066db0569008418fac1a0408a9a57f2232f"
|
|
SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit deploy
|
|
|
|
do_mkimage () {
|
|
# workaround the case where MACHINE=imx6qsabrelite
|
|
if [ ! -d board/boundary/${MACHINE} ]; then
|
|
mkdir board/boundary/${MACHINE}
|
|
fi
|
|
uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
|
-n "boot script" -d board/boundary/nitrogen6x/6x_bootscript-yocto.txt \
|
|
board/boundary/${MACHINE}/6x_bootscript
|
|
|
|
uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
|
-n "upgrade script" -d board/boundary/nitrogen6x/6x_upgrade.txt \
|
|
board/boundary/${MACHINE}/6x_upgrade
|
|
}
|
|
|
|
addtask mkimage after do_compile before do_install
|
|
|
|
do_deploy () {
|
|
install -d ${DEPLOYDIR}
|
|
install ${S}/board/boundary/${MACHINE}/6x_bootscript \
|
|
${DEPLOYDIR}/6x_bootscript-${MACHINE}-${PV}-${PR}
|
|
install ${S}/board/boundary/${MACHINE}/6x_upgrade \
|
|
${DEPLOYDIR}/6x_upgrade-${MACHINE}-${PV}-${PR}
|
|
|
|
cd ${DEPLOYDIR}
|
|
rm -f 6x_bootscript-${MACHINE} 6x_upgrade-${MACHINE}
|
|
ln -sf 6x_bootscript-${MACHINE}-${PV}-${PR} 6x_bootscript-${MACHINE}
|
|
ln -sf 6x_upgrade-${MACHINE}-${PV}-${PR} 6x_upgrade-${MACHINE}
|
|
}
|
|
|
|
addtask deploy after do_install before do_build
|
|
|
|
do_compile[noexec] = "1"
|
|
do_install[noexec] = "1"
|
|
do_populate_sysroot[noexec] = "1"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|