From ed1e4395ca1c3428eef22dde838d3a62888b4ab8 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 4 May 2017 19:37:40 -0700 Subject: colibri-imx7: add toradex easy installer support Add Toradex Easy Installer support by enabling the tezi image format. Also specify the Product IDs this machine is compatible with and the device tree associated with them. This is used on devices where we have variants using different device trees but were built using a single OpenEmbedded machine. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- conf/machine/colibri-imx7.conf | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 conf/machine/colibri-imx7.conf diff --git a/conf/machine/colibri-imx7.conf b/conf/machine/colibri-imx7.conf new file mode 100644 index 0000000..34263de --- /dev/null +++ b/conf/machine/colibri-imx7.conf @@ -0,0 +1,43 @@ +#@TYPE: Machine +#@NAME: Toradex Colibri iMX7D/S +#@SOC: i.MX 7Dual / i.MX 7Solo +#@DESCRIPTION: Machine configuration for Toradex Colibri iMX7 SOM +#@MAINTAINER: Max Krummenacher + +MACHINEOVERRIDES =. "mx7:mx7d:" + +include conf/machine/include/imx-base.inc +include conf/machine/include/tune-cortexa7.inc + +PREFERRED_PROVIDER_virtual/kernel ?= "linux-toradex" +KERNEL_IMAGETYPE = "zImage" +KERNEL_DEVICETREE += "imx7d-colibri-eval-v3.dtb imx7s-colibri-eval-v3.dtb" + +# U-Boot of our newer release read the Kernel and device tree from static UBI +# volumes, hence no need to deploy the kernel binary in the image itself +RDEPENDS_kernel-base = "" + +PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" +PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" + +# U-Boot NAND binary includes 0x400 padding required for NAND boot +UBOOT_BINARY = "u-boot-nand.imx" +UBOOT_MAKE_TARGET = "u-boot-nand.imx" +UBOOT_MACHINE ?= "colibri_imx7_defconfig" + +IMAGE_CLASSES += "image_type_tezi" +IMAGE_FSTYPES = "sdcard.gz tar.xz ubifs teziimg" + +# Enable free --space-fixup (-F) by default, this allows DFU updates +MKUBIFS_ARGS = " -c 8112 -e 124KiB -m 2KiB -F" +UBINIZE_ARGS = " -p 128KiB -m 2048 -s 2048" +UBI_VOLNAME = "rootfs" + +SERIAL_CONSOLE = "115200 ttymxc0" + +TORADEX_PRODUCT_IDS = "0032 0033" +TORADEX_PRODUCT_IDS[0032] = "imx7s-colibri-eval-v3.dtb" +TORADEX_PRODUCT_IDS[0033] = "imx7d-colibri-eval-v3.dtb" +TORADEX_FLASH_TYPE = "rawnand" + +MACHINE_FEATURES += "screen usbgadget usbhost vfat ext2 alsa touchscreen wifi bluetooth 3g" -- cgit v1.2.3