Provides the recipes and patches to use 2009.08 or 2013.04 U-boot versions.
Signed-off-by: Alex de Cabo <[email protected]> --- recipes-bsp/u-boot/u-boot-qmx6/boot.scr | 3 + .../u-boot/u-boot-qmx6/cgtqmx6/PN016100.patch | 13 ++++ .../u-boot/u-boot-qmx6/cgtqmx6/PN016101.patch | 13 ++++ .../u-boot/u-boot-qmx6/cgtqmx6/PN016102.patch | 13 ++++ .../u-boot/u-boot-qmx6/cgtqmx6/PN016103.patch | 13 ++++ .../u-boot/u-boot-qmx6/cgtqmx6/PN016104.patch | 13 ++++ .../u-boot/u-boot-qmx6/cgtqmx6/PN016105.patch | 13 ++++ .../u-boot/u-boot-qmx6/cgtqmx6/PN016106.patch | 13 ++++ .../u-boot/u-boot-qmx6/cgtqmx6/PN016110.patch | 13 ++++ .../u-boot/u-boot-qmx6/cgtqmx6/PN016111.patch | 13 ++++ .../u-boot/u-boot-qmx6/cgtqmx6/PN016112.patch | 13 ++++ .../u-boot/u-boot-qmx6/cgtqmx6/PN016113.patch | 13 ++++ recipes-bsp/u-boot/u-boot-qmx6_2009.08.bb | 70 ++++++++++++++++++++++ recipes-bsp/u-boot/u-boot-qmx6_2013.04.bb | 37 ++++++++++++ 14 files changed, 253 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/boot.scr create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016100.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016101.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016102.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016103.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016104.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016105.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016106.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016110.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016111.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016112.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016113.patch create mode 100644 recipes-bsp/u-boot/u-boot-qmx6_2009.08.bb create mode 100644 recipes-bsp/u-boot/u-boot-qmx6_2013.04.bb diff --git a/recipes-bsp/u-boot/u-boot-qmx6/boot.scr b/recipes-bsp/u-boot/u-boot-qmx6/boot.scr new file mode 100644 index 0000000..ee06444 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/boot.scr @@ -0,0 +1,3 @@ +set bootargs $bootargs root=/dev/mmcblk0p1 rootwait rw fixrtc ; + fsload mmc ${disk}:1 10800000 /boot/uImage && bootm 10800000 ; + echo "Error loading kernel image" diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016100.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016100.patch new file mode 100644 index 0000000..e9c10da --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016100.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..c7bd4af 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -37,7 +37,7 @@ + /* enabling CONFIG_QMX6_PN016104 builds a bootloader for conga-QMX6 module, part number 016104, equipped i.MX6 1GHz QuadCore, 2GByte onboard DDR3 memory */ + /* enabling CONFIG_QMX6_PN016105 builds a bootloader for conga-QMX6 module, part number 016105, equipped i.MX6 1GHz QuadCore, 2GByte onboard DDR3 memory */ + /* enabling CONFIG_QMX6_PN016106 builds a bootloader for conga-QMX6 module, part number 016106, equipped i.MX6 1GHz QuadCore, 1GByte onboard DDR3 memory */ +-//#define CONFIG_QMX6_PN016100 ++#define CONFIG_QMX6_PN016100 + //#define CONFIG_QMX6_PN016101 + //#define CONFIG_QMX6_PN016102 + //#define CONFIG_QMX6_PN016103 diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016101.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016101.patch new file mode 100644 index 0000000..e62e017 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016101.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..d378bf5 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -38,7 +38,7 @@ + /* enabling CONFIG_QMX6_PN016105 builds a bootloader for conga-QMX6 module, part number 016105, equipped i.MX6 1GHz QuadCore, 2GByte onboard DDR3 memory */ + /* enabling CONFIG_QMX6_PN016106 builds a bootloader for conga-QMX6 module, part number 016106, equipped i.MX6 1GHz QuadCore, 1GByte onboard DDR3 memory */ + //#define CONFIG_QMX6_PN016100 +-//#define CONFIG_QMX6_PN016101 ++#define CONFIG_QMX6_PN016101 + //#define CONFIG_QMX6_PN016102 + //#define CONFIG_QMX6_PN016103 + //#define CONFIG_QMX6_PN016104 diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016102.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016102.patch new file mode 100644 index 0000000..9677e19 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016102.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..6a17fc5 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -39,7 +39,7 @@ + /* enabling CONFIG_QMX6_PN016106 builds a bootloader for conga-QMX6 module, part number 016106, equipped i.MX6 1GHz QuadCore, 1GByte onboard DDR3 memory */ + //#define CONFIG_QMX6_PN016100 + //#define CONFIG_QMX6_PN016101 +-//#define CONFIG_QMX6_PN016102 ++#define CONFIG_QMX6_PN016102 + //#define CONFIG_QMX6_PN016103 + //#define CONFIG_QMX6_PN016104 + //#define CONFIG_QMX6_PN016105 diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016103.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016103.patch new file mode 100644 index 0000000..e2ccdd5 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016103.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..2e24b26 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -40,7 +40,7 @@ + //#define CONFIG_QMX6_PN016100 + //#define CONFIG_QMX6_PN016101 + //#define CONFIG_QMX6_PN016102 +-//#define CONFIG_QMX6_PN016103 ++#define CONFIG_QMX6_PN016103 + //#define CONFIG_QMX6_PN016104 + //#define CONFIG_QMX6_PN016105 + //#define CONFIG_QMX6_PN016106 diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016104.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016104.patch new file mode 100644 index 0000000..1bb5946 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016104.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..d66a742 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -41,7 +41,7 @@ + //#define CONFIG_QMX6_PN016101 + //#define CONFIG_QMX6_PN016102 + //#define CONFIG_QMX6_PN016103 +-//#define CONFIG_QMX6_PN016104 ++#define CONFIG_QMX6_PN016104 + //#define CONFIG_QMX6_PN016105 + //#define CONFIG_QMX6_PN016106 + //#define CONFIG_QMX6_PN016110 diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016105.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016105.patch new file mode 100644 index 0000000..86e0739 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016105.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..acdb2bd 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -42,7 +42,7 @@ + //#define CONFIG_QMX6_PN016102 + //#define CONFIG_QMX6_PN016103 + //#define CONFIG_QMX6_PN016104 +-//#define CONFIG_QMX6_PN016105 ++#define CONFIG_QMX6_PN016105 + //#define CONFIG_QMX6_PN016106 + //#define CONFIG_QMX6_PN016110 + //#define CONFIG_QMX6_PN016111 diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016106.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016106.patch new file mode 100644 index 0000000..fb6d602 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016106.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..48cafd6 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -43,7 +43,7 @@ + //#define CONFIG_QMX6_PN016103 + //#define CONFIG_QMX6_PN016104 + //#define CONFIG_QMX6_PN016105 +-//#define CONFIG_QMX6_PN016106 ++#define CONFIG_QMX6_PN016106 + //#define CONFIG_QMX6_PN016110 + //#define CONFIG_QMX6_PN016111 + //#define CONFIG_QMX6_PN016112 diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016110.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016110.patch new file mode 100644 index 0000000..ecab8a3 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016110.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..6aee5c2 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -44,7 +44,7 @@ + //#define CONFIG_QMX6_PN016104 + //#define CONFIG_QMX6_PN016105 + //#define CONFIG_QMX6_PN016106 +-//#define CONFIG_QMX6_PN016110 ++#define CONFIG_QMX6_PN016110 + //#define CONFIG_QMX6_PN016111 + //#define CONFIG_QMX6_PN016112 + //#define CONFIG_QMX6_PN016113 diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016111.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016111.patch new file mode 100644 index 0000000..8a14e41 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016111.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..dd8086f 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -45,7 +45,7 @@ + //#define CONFIG_QMX6_PN016105 + //#define CONFIG_QMX6_PN016106 + //#define CONFIG_QMX6_PN016110 +-//#define CONFIG_QMX6_PN016111 ++#define CONFIG_QMX6_PN016111 + //#define CONFIG_QMX6_PN016112 + //#define CONFIG_QMX6_PN016113 + diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016112.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016112.patch new file mode 100644 index 0000000..1982376 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016112.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..63aa869 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -46,7 +46,7 @@ + //#define CONFIG_QMX6_PN016106 + //#define CONFIG_QMX6_PN016110 + //#define CONFIG_QMX6_PN016111 +-//#define CONFIG_QMX6_PN016112 ++#define CONFIG_QMX6_PN016112 + //#define CONFIG_QMX6_PN016113 + + /* uncomment in order to build special trace version of bootloader */ diff --git a/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016113.patch b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016113.patch new file mode 100644 index 0000000..3b6bc48 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6/cgtqmx6/PN016113.patch @@ -0,0 +1,13 @@ +diff --git a/include/configs/cgt_qmx6.h b/include/configs/cgt_qmx6.h +index aff213b..f8fbfd4 100644 +--- a/include/configs/cgt_qmx6.h ++++ b/include/configs/cgt_qmx6.h +@@ -47,7 +47,7 @@ + //#define CONFIG_QMX6_PN016110 + //#define CONFIG_QMX6_PN016111 + //#define CONFIG_QMX6_PN016112 +-//#define CONFIG_QMX6_PN016113 ++#define CONFIG_QMX6_PN016113 + + /* uncomment in order to build special trace version of bootloader */ + // #define CONFIG_QMX6_TRACE diff --git a/recipes-bsp/u-boot/u-boot-qmx6_2009.08.bb b/recipes-bsp/u-boot/u-boot-qmx6_2009.08.bb new file mode 100644 index 0000000..3d7469e --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6_2009.08.bb @@ -0,0 +1,70 @@ +# Congatec QMX6 u-boot + +require recipes-bsp/u-boot/u-boot.inc + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=4c6cde5df68eff615d36789dc18edd3b" + + +PROVIDES += "u-boot" + +PV = "2009.08" + +SRCREV = "5e573f0076856f4166aeeaa6d1776bc96a0c8b16" +CGTBRANCH = "cgt_imx_3.0.35_1.1.0" + +SRC_URI = "git://git.congatec.com/arm/qmx6_uboot.git;protocol=http;branch=${CGTBRANCH} \ + file://${PARTNUMBER}.patch \ + file://boot.scr \ +" + +UBOOT_MACHINE = "cgt_qmx6_config" +UBOOT_MAKE_TARGET = "u-boot.bin" + +S = "${WORKDIR}/git" +EXTRA_OEMAKE += 'HOSTSTRIP=true' + + +do_compile_prepend() { + if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then + sed -i 's/$(CROSS_COMPILE)ld/$(CROSS_COMPILE)ld.bfd/g' config.mk + fi +} + +do_mkimage (){ + uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ + -n "boot script" -d ${S}/../boot.scr \ + 6q_bootscript +} + +addtask mkimage after do_compile before do_install + +do_install() { + install -d ${D}/boot + install -m 0644 ${S}/u-boot.bin ${D}/boot/u-boot.bin + install -m 0644 ${S}/u-boot.bin ${D}/boot/u-boot-cgtqmx6.bin + + install -d ${D}/ + install -m 0444 ${S}/6q_bootscript ${D}/ +} + +do_deploy () { + install -d ${DEPLOYDIR} + install ${S}/6q_bootscript \ + ${DEPLOYDIR}/ + + install ${S}/u-boot.bin \ + ${DEPLOYDIR}/ + + install ${S}/u-boot.bin \ + ${DEPLOYDIR}/u-boot-cgtqmx6.bin +} + +FILES_${PN} = "\ + /boot/u-boot.bin \ + /boot/u-boot-cgtqmx6.bin \ + /6q_bootscript \ + " + +PACKAGE_ARCH = "${MACHINE_ARCH}" +COMPATIBLE_MACHINE = "(cgtqmx6)" diff --git a/recipes-bsp/u-boot/u-boot-qmx6_2013.04.bb b/recipes-bsp/u-boot/u-boot-qmx6_2013.04.bb new file mode 100644 index 0000000..3eabf20 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qmx6_2013.04.bb @@ -0,0 +1,37 @@ +# Congatec QMX6 u-boot + +require recipes-bsp/u-boot/u-boot.inc + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" + + +PROVIDES += "u-boot" + +PV = "2013.04" + +SRCREV = "6388c474189b42c07bb865dd604c74483da099f3" +CGTBRANCH = "cgt_imx_v2013.04_3.10.17_1.0.0" + +SRC_URI = "git://git.congatec.com/arm/qmx6_uboot.git;protocol=http;branch=${CGTBRANCH} \ +" + +UBOOT_MACHINE = "cgt_qmx6_"`echo ${PARTNUMBER} | tr '[:upper:]' '[:lower:]' `"_config" +UBOOT_MAKE_TARGET = "u-boot."`echo ${PARTNUMBER} | tr '[:upper:]' '[:lower:]'`".imx" + +S = "${WORKDIR}/git" +EXTRA_OEMAKE += 'HOSTSTRIP=true' + +do_compile_prepend() { + if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then + sed -i 's/$(CROSS_COMPILE)ld/$(CROSS_COMPILE)ld.bfd/g' config.mk + fi +} + +do_deploy () { + install ${S}/${UBOOT_MAKE_TARGET} \ + ${DEPLOYDIR}/ +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" +COMPATIBLE_MACHINE = "(cgtqmx6)" -- 1.9.1 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
