pcl052: pcm052: quartz: add base SOC_FAMILY vf
PATCH 1/2 pcl052: pcm052: quartz: add base SOC_FAMILY vf
From: Stefan Agner <[email protected]>
Add new base SOC_FAMILY vf.
--- conf/machine/pcl052.conf | 2 +- conf/machine/pcm052.conf | 2 +- conf/machine/quartz.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
conf/machine/pcl052.conf +1 -1
@@ -7,7 +7,7 @@ include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa5.inc -SOC_FAMILY = "vf60" +SOC_FAMILY = "vf:vf60" PREFERRED_PROVIDER_virtual/kernel = "linux-timesys" PREFERRED_PROVIDER_u-boot = "u-boot-timesys"
conf/machine/pcm052.conf +1 -1
@@ -7,7 +7,7 @@ include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa5.inc -SOC_FAMILY = "vf60" +SOC_FAMILY = "vf:vf60" PREFERRED_PROVIDER_virtual/kernel = "linux-timesys" PREFERRED_PROVIDER_u-boot = "u-boot-timesys"
conf/machine/quartz.conf +1 -1
@@ -7,7 +7,7 @@ include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa5.inc -SOC_FAMILY = "vf60" +SOC_FAMILY = "vf:vf60" PREFERRED_PROVIDER_virtual/kernel = "linux-timesys" PREFERRED_PROVIDER_u-boot = "u-boot-timesys"
Signature · 1 line
1.9.3
PATCH 2/2 kernel-module-mcc: provide recipe adapted to a 3.18 based Toradex kernel
From: Stefan Agner <[email protected]>
This adds a recipe for the forked version of the MCC kernel module. The fork includes changes to compile and run the module with the 3.18 based kernel provided by linux-toradex_3.18.bb.
The forked version requires the functionality of the SEMA4 and MSCM CPU2CPU interrupts exported by the kernel through some Vybrid specific symbols:
- mscm_request_cpu2cpu_irq
- mscm_free_cpu2cpu_irq
- mscm_trigger_cpu2cpu_irq
- mvf_sema4_assign
- mvf_sema4_deassign
Currently, those symbols are provided by the Toradex Linux kernel only (linux-toradex_3.18.bb).
---
Not sure this is the right approach to support this fork properly in meta-fsl-arm/-extra. We could probably also just solve the issue through versions, and create dependencies on version (e.g. the Toradex kernel would require a kernel-module-mcc > 1.07....?) However, this would require Timesys to apply our changes in their tree again and then create a new release first.
Note that this is likely not the last change to the kernel module, for instance the SEMA4 driver could be modelled as a proper hwspinlock driver...
conf/machine/colibri-vf.conf | 2 ++ conf/machine/pcl052.conf | 2 ++ conf/machine/pcm052.conf | 2 ++ conf/machine/quartz.conf | 2 ++ .../kernel-module-mcc-toradex_1.06+toradex.bb | 20 ++++++++++++++++++++ 5 files changed, 28 insertions(+) create mode 100644 recipes-kernel/kernel-module-mcc-toradex/kernel-module-mcc-toradex_1.06+toradex.bb
conf/machine/colibri-vf.conf +2 -0
@@ -18,6 +18,8 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree" PREFERRED_PROVIDER_u-boot = "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader = "u-boot-toradex" +PREFERRED_PROVIDER_virtual/kernel-module-mcc = "kernel-module-mcc-toradex" +PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev = "kernel-module-mcc-toradex" # U-Boot NAND binary includes 0x400 padding required for NAND boot UBOOT_BINARY = "u-boot-nand.imx"
conf/machine/pcl052.conf +2 -0
@@ -10,6 +10,8 @@ include conf/machine/include/tune-cortexa5.inc SOC_FAMILY = "vf:vf60" PREFERRED_PROVIDER_virtual/kernel = "linux-timesys" +PREFERRED_PROVIDER_virtual/kernel-module-mcc ?= "kernel-module-mcc" +PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev ?= "kernel-module-mcc" PREFERRED_PROVIDER_u-boot = "u-boot-timesys" UBOOT_MACHINE = "pcl052_config"
conf/machine/pcm052.conf +2 -0
@@ -10,6 +10,8 @@ include conf/machine/include/tune-cortexa5.inc SOC_FAMILY = "vf:vf60" PREFERRED_PROVIDER_virtual/kernel = "linux-timesys" +PREFERRED_PROVIDER_virtual/kernel-module-mcc ?= "kernel-module-mcc" +PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev ?= "kernel-module-mcc" PREFERRED_PROVIDER_u-boot = "u-boot-timesys" UBOOT_MACHINE = "pcm052_config"
conf/machine/quartz.conf +2 -0
@@ -10,6 +10,8 @@ include conf/machine/include/tune-cortexa5.inc SOC_FAMILY = "vf:vf60" PREFERRED_PROVIDER_virtual/kernel = "linux-timesys" +PREFERRED_PROVIDER_virtual/kernel-module-mcc ?= "kernel-module-mcc" +PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev ?= "kernel-module-mcc" PREFERRED_PROVIDER_u-boot = "u-boot-timesys" # The quartz_nand_config target supports both SD and NAND boot.
recipes-kernel/kernel-module-mcc-toradex/kernel-module-mcc-toradex_1.06+toradex.bb new file +20 -0
@@ -0,0 +1,20 @@ +# Copyright (C) 2015 Toradex AG +# Copyright (C) 2013 Timesys Corporation +SUMMARY = "Multicore communication kernel module for linux-toradex kernel" +LICENSE = "GPL-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c8959abcbbe4d6676c58eab9354019e6" + +PROVIDES = "virtual/kernel-module-mcc" +RPROVIDES_${PN} = "virtual/kernel-module-mcc" +RPROVIDES_${PN}-dev = "virtual/kernel-module-mcc-dev" + +inherit module + +SRC_URI = "git://github.com/toradex/mcc-kmod.git;protocol=git;branch=${SRCBRANCH}" + +SRCBRANCH = "master" +SRCREV = "6a089386787e0540c30cc12fe774f3481c82051c" + +S = "${WORKDIR}/git" + +COMPATIBLE_MACHINE = "(vf60)"
Signature · 1 line
1.9.3