summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanine Hagemann <j.hagemann@phytec.de>2019-10-14 08:59:20 (GMT)
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2019-10-17 12:15:28 (GMT)
commit9dc167a267035199e238af7693dee72064dfc971 (patch)
tree5bdf0479625edcec141fbe6163222cbd153c1f16
parenta28e6f3a9a09830c4bc0ce8f26d202ec21054ecd (diff)
downloadmeta-phytec-9dc167a267035199e238af7693dee72064dfc971.zip
meta-phytec-9dc167a267035199e238af7693dee72064dfc971.tar.bz2
conf: machine: phyboard-polaris-imx8m-3: Add new machine file
Add new machine file for the new hardware revision 2 from phyboard-polaris-imx8mq. Signed-off-by: Janine Hagemann <j.hagemann@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--conf/machine/phyboard-polaris-imx8m-3.conf53
-rw-r--r--recipes-bsp/u-boot/u-boot-imx_2018.03-phy1.bb1
-rw-r--r--recipes-kernel/linux/linux-imx_4.14.98-phy2.bb1
3 files changed, 55 insertions, 0 deletions
diff --git a/conf/machine/phyboard-polaris-imx8m-3.conf b/conf/machine/phyboard-polaris-imx8m-3.conf
new file mode 100644
index 0000000..9984293
--- /dev/null
+++ b/conf/machine/phyboard-polaris-imx8m-3.conf
@@ -0,0 +1,53 @@
+#@TYPE: Machine
+#@NAME: phyboard-polaris-imx8m-3
+#@DESCRIPTION: PHYTEC phyBOARD-POLARIS i.MX8M Quad 2GB RAM, 8GB eMMC
+#@ARTICLENUMBERS: PB-02419-100I.A0
+
+MACHINEOVERRIDES =. "mx8:mx8m:mx8mq:"
+
+include conf/machine/include/imx-base.inc
+require conf/machine/include/arm/arch-arm64.inc
+
+MACHINE_FEATURES += " emmc pci wifi bluetooth"
+
+PREFERRED_PROVIDER_virtual/bootloader_mx8m = "u-boot-imx"
+
+KERNEL_DEVICETREE = "freescale/phytec-imx8mq-phyboard-polaris-rdk-emmc.dtb freescale/phytec-imx8mq-phyboard-polaris-rdk-emmc-sterling.dtb"
+
+# Set DDR FIRMWARE
+DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin"
+
+UBOOT_CONFIG ??= "sd"
+UBOOT_CONFIG[sd] = "pcl066_defconfig,sdcard"
+UBOOT_CONFIG[mfgtool] = "pcl066_defconfig"
+SPL_BINARY = "spl/u-boot-spl.bin"
+
+# Set u-boot DTB
+UBOOT_DTB_NAME = "phytec-phycore-imx8mq.dtb"
+
+# Set imx-mkimage boot target
+IMXBOOT_TARGETS = "flash_evk"
+
+# Set Serial console
+SERIAL_CONSOLE = "115200 ttymxc0"
+
+IMAGE_BOOTLOADER = "imx-boot"
+
+DEFAULTTUNE_mx8 = "aarch64"
+
+IMX_DEFAULT_KERNEL = "linux-imx"
+
+KERNEL_IMAGETYPE = "Image"
+
+LOADADDR = ""
+UBOOT_SUFFIX = "bin"
+UBOOT_MAKE_TARGET = ""
+
+#WIC
+IMAGE_CLASSES += "wic-helper"
+IMAGE_CLASSES += "wic-imx8-helper"
+IMAGE_BOOT_FILES = "Image ${@parse_dtbs(d)}"
+WKS_FILES_mx8 ?= "imx8m-sdimage.wks.in"
+
+# default images to build
+IMAGE_FSTYPES_mx8 = "tar.gz wic"
diff --git a/recipes-bsp/u-boot/u-boot-imx_2018.03-phy1.bb b/recipes-bsp/u-boot/u-boot-imx_2018.03-phy1.bb
index 7f1aa9e..bf1d5a1 100644
--- a/recipes-bsp/u-boot/u-boot-imx_2018.03-phy1.bb
+++ b/recipes-bsp/u-boot/u-boot-imx_2018.03-phy1.bb
@@ -47,6 +47,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "^("
COMPATIBLE_MACHINE .= "phycore-imx8-2"
COMPATIBLE_MACHINE .= "|phyboard-polaris-imx8m-2"
+COMPATIBLE_MACHINE .= "|phyboard-polaris-imx8m-3"
COMPATIBLE_MACHINE .= ")$"
UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
diff --git a/recipes-kernel/linux/linux-imx_4.14.98-phy2.bb b/recipes-kernel/linux/linux-imx_4.14.98-phy2.bb
index 3af346e..12a9763 100644
--- a/recipes-kernel/linux/linux-imx_4.14.98-phy2.bb
+++ b/recipes-kernel/linux/linux-imx_4.14.98-phy2.bb
@@ -20,4 +20,5 @@ INTREE_DEFCONFIG = "defconfig"
COMPATIBLE_MACHINE = "^("
COMPATIBLE_MACHINE .= "phycore-imx8-2"
COMPATIBLE_MACHINE .= "|phyboard-polaris-imx8m-2"
+COMPATIBLE_MACHINE .= "|phyboard-polaris-imx8m-3"
COMPATIBLE_MACHINE .= ")$"