Re: [meta-intel] [PATCH V3 1/2] meta-intel/common: Add include file for DPDK
Hi Ross, Any feedback on this patch ? Thanks and Regards, -Sreeju -Original Message- From: Ong, Boon Leong Sent: Wednesday, October 01, 2014 2:52 PM To: Selvaraj, Sreeju ArmughanX; meta-intel@yoctoproject.org Subject: RE: [meta-intel] [PATCH V3 1/2] meta-intel/common: Add include file for DPDK -Original Message- From: meta-intel-boun...@yoctoproject.org [mailto:meta-intel- boun...@yoctoproject.org] On Behalf Of sreeju.armughanx.selva...@intel.com Sent: Tuesday, September 30, 2014 10:43 AM To: meta-intel@yoctoproject.org Subject: [meta-intel] [PATCH V3 1/2] meta-intel/common: Add include file for DPDK From: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com Added include file dpdk.inc to share the common functionality based on dpdk_1.6.0r2 Added a new variable EXAMPLE_BUILD_DIR. this points to apps build directory which is different in dpdk v1.6.0r2 and v1.7.0. User of dpdk.inc has to define EXAMPLE_BUILD_DIR for the installation of example apps Signed-off-by: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com Acked-by: Ong Boon Leong boon.leong@intel.com --- common/recipes-extended/dpdk/dpdk.inc| 139 + common/recipes-extended/dpdk/dpdk_1.6.0r2.bb | 150 +++- --- 2 files changed, 154 insertions(+), 135 deletions(-) create mode 100644 common/recipes-extended/dpdk/dpdk.inc diff --git a/common/recipes-extended/dpdk/dpdk.inc b/common/recipes- extended/dpdk/dpdk.inc new file mode 100644 index 000..ef369df --- /dev/null +++ b/common/recipes-extended/dpdk/dpdk.inc @@ -0,0 +1,139 @@ +DESCRIPTION = Intel(r) Data Plane Development Kit +HOMEPAGE = http://dpdk.org; +LICENSE = BSD LGPLv2 GPLv2 +LIC_FILES_CHKSUM = file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe + + +RDEPENDS_${PN} += python-subprocess + +inherit module + +export MODULE_DIR=/lib/modules/${KERNEL_VERSION}/kernel/drivers/net +export RTE_SDK = ${S} +export RTE_TARGET=${TARGET_ARCH}-ivshmem-${TARGET_OS}app-gcc +export ICP_ROOT = ${PKG_CONFIG_SYSROOT_DIR}/usr/include +export ICP_LIB_ROOT= ${PKG_CONFIG_SYSROOT_DIR}/usr/lib +export RTE_KERNELDIR = ${STAGING_KERNEL_DIR} +export INSTALL_PATH = ${prefix}/dpdk + + +do_configure () { + ## ### + ### default value for prefix is usr, unsetting it, so it + ### will not be concatenated in ${RTE_TARGET}/Makefile + ### which will cause compilation failure + ## ### + unset prefix + + make O=$RTE_TARGET T=$RTE_TARGET config + +} + + +do_compile () { + unset LDFLAGS TARGET_LDFLAGS BUILD_LDFLAGS + + cd ${S}/${RTE_TARGET} + oe_runmake EXTRA_LDFLAGS= --sysroot=${STAGING_DIR_HOST} \ +EXTRA_CFLAGS= --sysroot=${STAGING_DIR_HOST} \ +CROSS=${TARGET_PREFIX} \ +prefix= LDFLAGS= WERROR_FLAGS=-w V=1 + +} + + +do_install () { + + install -m 0755 -d ${D}/${INSTALL_PATH} \ + ${D}/${INSTALL_PATH}/doc \ + ${D}/${INSTALL_PATH}/tools \ + ${D}/${INSTALL_PATH}/${RTE_TARGET} \ + ${D}/${INSTALL_PATH}/${RTE_TARGET}/app \ + ${D}${includedir} \ + ${D}${includedir}/arch \ + ${D}${includedir}/exec-env \ + ${D}${libdir} \ + ${D}${MODULE_DIR} + + install -m 0755 ${S}/${RTE_TARGET}/kmod/igb_uio.ko ${D}${MODULE_DIR}/ + install -m 0755 ${S}/${RTE_TARGET}/kmod/rte_kni.ko ${D}${MODULE_DIR}/ + + install -m 640 ${S}/${RTE_TARGET}/lib/*.a ${D}${libdir} + + install -m 640 ${S}/${RTE_TARGET}/.config ${D}/${INSTALL_PATH}/${RTE_TARGET}/ + install -m 640 ${S}/${RTE_TARGET}/include/*.h ${D}${includedir}/ + install -m 640 ${S}/${RTE_TARGET}/include/arch/* ${D}${includedir}/arch/ + install -m 640 ${S}/${RTE_TARGET}/include/exec-env/* ${D}${includedir}/exec-env/ + install -m 0755 ${S}/tools/*.py ${D}/${INSTALL_PATH}/tools/ + + + #Install test applications + install -m 0755 ${S}/${RTE_TARGET}/app/test ${D}/${INSTALL_PATH}/${RTE_TARGET}/app + install -m 0755 ${S}/${RTE_TARGET}/app/testpmd ${D}/${INSTALL_PATH}/${RTE_TARGET}/app + install -m 0755 ${S}/${RTE_TARGET}/app/dump_cfg ${D}/${INSTALL_PATH}/${RTE_TARGET}/app + install -m 0755 ${S}/${RTE_TARGET}/app/cmdline_test ${D}/${INSTALL_PATH}/${RTE_TARGET}/app + + + # Install example applications + # It is expected that user of this include file should define EXAMPLES_BUILD_DIR + for app in ${S}/examples/* + do + case `basename ${app}` in + dpdk_qat | vhost
Re: [meta-intel] [PATCH V3 2/2] meta-intel/common: Upgrade DPDK to v1.7.0
Hi Ross, As per the feedback, I have added the Upstream Status to the patches. Please review the changes. Thanks and Regards, -Sreeju -Original Message- From: Ong, Boon Leong Sent: Wednesday, October 01, 2014 2:52 PM To: Selvaraj, Sreeju ArmughanX; meta-intel@yoctoproject.org Subject: RE: [meta-intel] [PATCH V3 2/2] meta-intel/common: Upgrade DPDK to v1.7.0 -Original Message- From: meta-intel-boun...@yoctoproject.org [mailto:meta-intel- boun...@yoctoproject.org] On Behalf Of sreeju.armughanx.selva...@intel.com Sent: Tuesday, September 30, 2014 10:43 AM To: meta-intel@yoctoproject.org Subject: [meta-intel] [PATCH V3 2/2] meta-intel/common: Upgrade DPDK to v1.7.0 From: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com Added support for DPDK v1.7.0 Added PACKAGECONFIG mechanism to explicitly disable the use of fuse and qat which are dependancies for example apps dpdk_qat and vhost. Added config variables CONFIG_EXAMPLE_DPDK_QAT and CONFIG_EXAMPLE_DPDK_VHOST to enable or disable the compilation of example apps dpdk_qat and vhost. Resolved the installation failure found in example app ip_pipeline by cherry picking the patch from dpdk.org. Resolved the test failure found in example app ring_pmd_autotest by cherry picking the patches from dpdk.org. Signed-off-by: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com Acked-by: Ong Boon Leong boon.leong@intel.com --- ...d-config-variables-to-enable-disable-dpdk.patch | 42 +++ ...examples- pipeline-build-with-all-examples.patch | 34 ++ ...e-extra-devices-creation- with-vdev-option.patch | 44 +++ .../dpdk/dpdk-1.7.0-ring-simplify-unit- tests.patch | 380 + common/recipes-extended/dpdk/dpdk_1.7.0.bb | 41 +++ 5 files changed, 541 insertions(+) create mode 100644 common/recipes-extended/dpdk/dpdk/dpdk-1.7.0- examples-Add-config-variables-to-enable-disable-dpdk.patch create mode 100644 common/recipes-extended/dpdk/dpdk/dpdk-1.7.0- examples-pipeline-build-with-all-examples.patch create mode 100644 common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-ring- remove-extra-devices-creation-with-vdev-option.patch create mode 100644 common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-ring- simplify-unit-tests.patch create mode 100644 common/recipes-extended/dpdk/dpdk_1.7.0.bb diff --git a/common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-Add- config-variables-to-enable-disable-dpdk.patch b/common/recipes- extended/dpdk/dpdk/dpdk-1.7.0-examples-Add-config-variables-to-enable- disable-dpdk.patch new file mode 100644 index 000..d0721ca --- /dev/null +++ b/common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-Add- config-v +++ ariables-to-enable-disable-dpdk.patch @@ -0,0 +1,42 @@ +From 63f8ccc5a305b193e219d288ef9e43b9a9fa6aa8 Mon Sep 17 00:00:00 +2001 +From: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com +Date: Wed, 17 Sep 2014 19:10:01 +0800 +Subject: [PATCH] examples: Add config variables to enable/disable +dpdk_qat and vhost + +Upstream-Status: Inappropriate [configuration] + +This can be used to export CONFIG_EXAMPLE_DPDK_QAT=n if dpdk_qat is not +in PACKAGECONFIG and also allow to export CONFIG_EXAMPLE_DPDK_VHOST=n +if vhost is not in PACKAGECONFIG. + +Signed-off-by: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com +--- + examples/Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/examples/Makefile b/examples/Makefile index +d0624f6..885c938 100644 +--- a/examples/Makefile b/examples/Makefile +@@ -39,7 +39,7 @@ include $(RTE_SDK)/mk/rte.vars.mk + + DIRS-y += cmdline + ifneq ($(ICP_ROOT),) +-DIRS-y += dpdk_qat ++DIRS-$(CONFIG_EXAMPLE_DPDK_QAT) += dpdk_qat + endif + DIRS-y += exception_path + DIRS-y += helloworld +@@ -61,7 +61,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_METER) += qos_meter + DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += qos_sched DIRS-y += +quota_watermark DIRS-y += timer -DIRS-y += vhost ++DIRS-$(CONFIG_EXAMPLE_DPDK_VHOST) += vhost + DIRS-$(CONFIG_RTE_LIBRTE_XEN_DOM0) += vhost_xen DIRS-y += vmdq +DIRS-y += vmdq_dcb +-- +1.9.1 + diff --git a/common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples- pipeline-build-with-all-examples.patch b/common/recipes- extended/dpdk/dpdk/dpdk-1.7.0-examples-pipeline-build-with-all- examples.patch new file mode 100644 index 000..25f029f --- /dev/null +++ b/common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-pipeline- bui +++ ld-with-all-examples.patch @@ -0,0 +1,34 @@ +From 15aef6e666ee2eb0befa153d277d47754f3656e4 Mon Sep 17 00:00:00 2001 +From: Thomas Monjalon thomas.monja...@6wind.com +Date: Thu, 17 Jul 2014 10:30:52 +0200 +Subject: [PATCH] examples/pipeline: build with all examples + +Upstream-Status: Backport +Imported patch from: http://dpdk.org/browse/dpdk/log/ + +When adding this packet framework sample (commit 77a3346), it has +been forgotten to add it into the global makefile
Re: [meta-intel] [PATCH V2 1/3] meta-intel/common: Add include file for DPDK
Hi Ross, Is this patch fine ? Do you have any feedback on this. Thanks and Regards, -Sreeju -Original Message- From: Selvaraj, Sreeju ArmughanX Sent: Wednesday, September 17, 2014 10:20 PM To: meta-intel@yoctoproject.org Cc: Selvaraj, Sreeju ArmughanX Subject: [PATCH V2 1/3] meta-intel/common: Add include file for DPDK From: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com Added include file dpdk.inc to share the common functionality based on dpdk_1.6.0r2 Added a new variable EXAMPLE_BUILD_DIR. this points to apps build directory which is different in dpdk v1.6.0r2 and v1.7.0. User of dpdk.inc has to define EXAMPLE_BUILD_DIR for the installation of example apps Signed-off-by: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com --- common/recipes-extended/dpdk/dpdk.inc| 139 + common/recipes-extended/dpdk/dpdk_1.6.0r2.bb | 150 +++ 2 files changed, 154 insertions(+), 135 deletions(-) create mode 100644 common/recipes-extended/dpdk/dpdk.inc diff --git a/common/recipes-extended/dpdk/dpdk.inc b/common/recipes-extended/dpdk/dpdk.inc new file mode 100644 index 000..ef369df --- /dev/null +++ b/common/recipes-extended/dpdk/dpdk.inc @@ -0,0 +1,139 @@ +DESCRIPTION = Intel(r) Data Plane Development Kit +HOMEPAGE = http://dpdk.org; +LICENSE = BSD LGPLv2 GPLv2 +LIC_FILES_CHKSUM = file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe + + +RDEPENDS_${PN} += python-subprocess + +inherit module + +export MODULE_DIR=/lib/modules/${KERNEL_VERSION}/kernel/drivers/net +export RTE_SDK = ${S} +export RTE_TARGET=${TARGET_ARCH}-ivshmem-${TARGET_OS}app-gcc +export ICP_ROOT = ${PKG_CONFIG_SYSROOT_DIR}/usr/include +export ICP_LIB_ROOT= ${PKG_CONFIG_SYSROOT_DIR}/usr/lib +export RTE_KERNELDIR = ${STAGING_KERNEL_DIR} +export INSTALL_PATH = ${prefix}/dpdk + + +do_configure () { + # + ### default value for prefix is usr, unsetting it, so it + ### will not be concatenated in ${RTE_TARGET}/Makefile + ### which will cause compilation failure + # + unset prefix + + make O=$RTE_TARGET T=$RTE_TARGET config + +} + + +do_compile () { + unset LDFLAGS TARGET_LDFLAGS BUILD_LDFLAGS + + cd ${S}/${RTE_TARGET} + oe_runmake EXTRA_LDFLAGS= --sysroot=${STAGING_DIR_HOST} \ + EXTRA_CFLAGS= --sysroot=${STAGING_DIR_HOST} \ + CROSS=${TARGET_PREFIX} \ + prefix= LDFLAGS= WERROR_FLAGS=-w V=1 + +} + + +do_install () { + + install -m 0755 -d ${D}/${INSTALL_PATH} \ + ${D}/${INSTALL_PATH}/doc \ + ${D}/${INSTALL_PATH}/tools \ + ${D}/${INSTALL_PATH}/${RTE_TARGET} \ + ${D}/${INSTALL_PATH}/${RTE_TARGET}/app \ + ${D}${includedir} \ + ${D}${includedir}/arch \ + ${D}${includedir}/exec-env \ + ${D}${libdir} \ + ${D}${MODULE_DIR} + + install -m 0755 ${S}/${RTE_TARGET}/kmod/igb_uio.ko ${D}${MODULE_DIR}/ + install -m 0755 ${S}/${RTE_TARGET}/kmod/rte_kni.ko ${D}${MODULE_DIR}/ + + install -m 640 ${S}/${RTE_TARGET}/lib/*.a ${D}${libdir} + + install -m 640 ${S}/${RTE_TARGET}/.config ${D}/${INSTALL_PATH}/${RTE_TARGET}/ + install -m 640 ${S}/${RTE_TARGET}/include/*.h ${D}${includedir}/ + install -m 640 ${S}/${RTE_TARGET}/include/arch/* ${D}${includedir}/arch/ + install -m 640 ${S}/${RTE_TARGET}/include/exec-env/* ${D}${includedir}/exec-env/ + install -m 0755 ${S}/tools/*.py ${D}/${INSTALL_PATH}/tools/ + + + #Install test applications + install -m 0755 ${S}/${RTE_TARGET}/app/test ${D}/${INSTALL_PATH}/${RTE_TARGET}/app + install -m 0755 ${S}/${RTE_TARGET}/app/testpmd ${D}/${INSTALL_PATH}/${RTE_TARGET}/app + install -m 0755 ${S}/${RTE_TARGET}/app/dump_cfg ${D}/${INSTALL_PATH}/${RTE_TARGET}/app + install -m 0755 ${S}/${RTE_TARGET}/app/cmdline_test ${D}/${INSTALL_PATH}/${RTE_TARGET}/app + + + # Install example applications + # It is expected that user of this include file should define EXAMPLES_BUILD_DIR + for app in ${S}/examples/* + do + case `basename ${app}` in + dpdk_qat | vhost | vhost_xen | Makefile ) continue + ;; + l2fwd-ivshmem) + install -m 0755 ${app}/guest/${EXAMPLES_BUILD_DIR}/app/guest ${D}/${INSTALL_PATH}/${RTE_TARGET}/app + install -m 0755 ${app}/host/${EXAMPLES_BUILD_DIR}/app/host ${D}/${INSTALL_PATH}/${RTE_TARGET}/app
Re: [meta-intel] [PATCH V2 2/3] meta-inte/common: Upgrade DPDK to v1.7.0
Hi Ross, Is This patch fine ? Thanks and Regards, -Sreeju -Original Message- From: Selvaraj, Sreeju ArmughanX Sent: Wednesday, September 17, 2014 10:20 PM To: meta-intel@yoctoproject.org Cc: Selvaraj, Sreeju ArmughanX Subject: [PATCH V2 2/3] meta-inte/common: Upgrade DPDK to v1.7.0 From: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com Added support for DPDK v1.7.0 Added PACKAGECONFIG mechanism to explicitly disable the use of fuse and qat which are dependancies for example apps dpdk_qat and vhost. Added config variables CONFIG_EXAMPLE_DPDK_QAT and CONFIG_EXAMPLE_DPDK_VHOST to enable or disable the compilation of example apps dpdk_qat and vhost. Resolved the installation failure found in example app ip_pipeline by cherry picking the patch from dpdk.org. Resolved the test failure found in example app ring_pmd_autotest by cherry picking the patches from dpdk.org. Signed-off-by: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com --- ...d-config-variables-to-enable-disable-dpdk.patch | 40 +++ ...examples-pipeline-build-with-all-examples.patch | 33 ++ ...e-extra-devices-creation-with-vdev-option.patch | 43 +++ .../dpdk/dpdk-1.7.0-ring-simplify-unit-tests.patch | 379 + common/recipes-extended/dpdk/dpdk_1.7.0.bb | 41 +++ 5 files changed, 536 insertions(+) create mode 100644 common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-Add-config-variables-to-enable-disable-dpdk.patch create mode 100644 common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-pipeline-build-with-all-examples.patch create mode 100644 common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-ring-remove-extra-devices-creation-with-vdev-option.patch create mode 100644 common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-ring-simplify-unit-tests.patch create mode 100644 common/recipes-extended/dpdk/dpdk_1.7.0.bb diff --git a/common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-Add-config-variables-to-enable-disable-dpdk.patch b/common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-Add-config-variables-to-enable-disable-dpdk.patch new file mode 100644 index 000..79a44e7 --- /dev/null +++ b/common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-Add-config-v +++ ariables-to-enable-disable-dpdk.patch @@ -0,0 +1,40 @@ +From 6e1b99836d0c50d18f7ed0027dc4ed3119bdbb2f Mon Sep 17 00:00:00 2001 +From: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com +Date: Wed, 17 Sep 2014 19:10:01 +0800 +Subject: [PATCH] examples: Add config variables to enable/disable +dpdk_qat and vhost + +This can be used to export CONFIG_EXAMPLE_DPDK_QAT=n if dpdk_qat is not +in PACKAGECONFIG and also allow to export CONFIG_EXAMPLE_DPDK_VHOST=n +if vhost is not in PACKAGECONFIG. + +Signed-off-by: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com +--- + examples/Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/examples/Makefile b/examples/Makefile index +dc85cf3..1788d6e 100644 +--- a/examples/Makefile b/examples/Makefile +@@ -39,7 +39,7 @@ include $(RTE_SDK)/mk/rte.vars.mk + + DIRS-y += cmdline + ifneq ($(ICP_ROOT),) +-DIRS-y += dpdk_qat ++DIRS-$(CONFIG_EXAMPLE_DPDK_QAT) += dpdk_qat + endif + DIRS-y += exception_path + DIRS-y += helloworld +@@ -62,7 +62,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_METER) += qos_meter + DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += qos_sched DIRS-y += +quota_watermark DIRS-y += timer -DIRS-y += vhost ++DIRS-$(CONFIG_EXAMPLE_DPDK_VHOST) += vhost + DIRS-$(CONFIG_RTE_LIBRTE_XEN_DOM0) += vhost_xen DIRS-y += vmdq +DIRS-y += vmdq_dcb +-- +1.9.1 + diff --git a/common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-pipeline-build-with-all-examples.patch b/common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-pipeline-build-with-all-examples.patch new file mode 100644 index 000..234260b --- /dev/null +++ b/common/recipes-extended/dpdk/dpdk/dpdk-1.7.0-examples-pipeline-bui +++ ld-with-all-examples.patch @@ -0,0 +1,33 @@ +From 835b75b7b22d8373f6ee17cb9ff456518ea7c208 Mon Sep 17 00:00:00 2001 +From: Thomas Monjalon thomas.monja...@6wind.com +Date: Thu, 17 Jul 2014 10:30:52 +0200 +Subject: [PATCH] examples/pipeline: build with all examples + +Imported patch from: http://dpdk.org/browse/dpdk/log/ + +When adding this packet framework sample (commit 77a3346), it has been +forgotten to add it into the global makefile for make examples. + +Signed-off-by: Thomas Monjalon thomas.monja...@6wind.com (cherry +picked from commit a6664a09a7caa5e63f9ae625cf1946b0eef7794e) +Signed-off-by: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com +--- + examples/Makefile | 1 + 1 file changed, 1 insertion(+) + +diff --git a/examples/Makefile b/examples/Makefile index +d0624f6..dc85cf3 100644 +--- a/examples/Makefile b/examples/Makefile +@@ -43,6 +43,7 @@ DIRS-y += dpdk_qat + endif + DIRS-y += exception_path + DIRS-y += helloworld ++DIRS-y += ip_pipeline + DIRS-y += ip_reassembly + DIRS-$(CONFIG_RTE_MBUF_SCATTER_GATHER) += ip_fragmentation + DIRS-$(CONFIG_RTE_MBUF_SCATTER_GATHER
Re: [meta-intel] [PATCH V2 3/3] meta-romley: DPDK v1.7.0 support for Romley machine config
Hi Nitin, Yes, it can be utilized in crystalforest, highlandforest and mohonpeak. Thanks and Regards, -Sreeju -Original Message- From: Kamble, Nitin A Sent: Thursday, September 18, 2014 12:04 AM To: Selvaraj, Sreeju ArmughanX; meta-intel@yoctoproject.org Subject: Re: [meta-intel] [PATCH V2 3/3] meta-romley: DPDK v1.7.0 support for Romley machine config Hi Sreeju, ArenĀ¹t there other BSPs such as crystalforest which can utilize the DPDK feature? Nitin On 9/17/14, 7:20 AM, sreeju.armughanx.selva...@intel.com sreeju.armughanx.selva...@intel.com wrote: From: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com Added MACHINE_EXTRA_RRECOMMENDS to include dpdk v1.7.0 support for romley machiine, so that dpdk will be enabled by default for Romley. Also included the dpdk example package, so that user can use example apps to exercise the DPDK libraries. Signed-off-by: Sreeju Selvaraj sreeju.armughanx.selva...@intel.com --- meta-romley/conf/machine/romley-ivb.conf | 4 meta-romley/conf/machine/romley.conf | 5 + 2 files changed, 9 insertions(+) diff --git a/meta-romley/conf/machine/romley-ivb.conf b/meta-romley/conf/machine/romley-ivb.conf index af52897..e130068 100644 --- a/meta-romley/conf/machine/romley-ivb.conf +++ b/meta-romley/conf/machine/romley-ivb.conf @@ -18,3 +18,7 @@ XSERVER ?= ${XSERVER_X86_BASE} \ ${XSERVER_X86_EXT} \ ${XSERVER_X86_MATROX_MGA} \ +PREFERRED_VERSION_dpdk ?= 1.7.0% +MACHINE_EXTRA_RRECOMMENDS += dpdk \ +dpdk-examples \ + diff --git a/meta-romley/conf/machine/romley.conf b/meta-romley/conf/machine/romley.conf index ed52a1e..a814fc3 100644 --- a/meta-romley/conf/machine/romley.conf +++ b/meta-romley/conf/machine/romley.conf @@ -18,3 +18,8 @@ XSERVER ?= ${XSERVER_X86_BASE} \ ${XSERVER_X86_EXT} \ ${XSERVER_X86_MATROX_MGA} \ +PREFERRED_VERSION_dpdk ?= 1.7.0% +MACHINE_EXTRA_RRECOMMENDS += dpdk \ +dpdk-examples \ + + -- 1.9.1 -- ___ meta-intel mailing list meta-intel@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-intel -- ___ meta-intel mailing list meta-intel@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-intel
Re: [meta-intel] [yocto] Where's my 'thermal_zone'?
Hi Chris, Is there any local changes has been made ? especially at kernel side drivers/acpi/ and driver/thermal Thanks, Sreeju From: Chris Tapp [mailto:opensou...@keylevel.com] Sent: Wednesday, February 26, 2014 8:53 PM To: Selvaraj, Sreeju ArmughanX Subject: Re: [meta-intel] [yocto] Where's my 'thermal_zone'? Hi Sreeju, On 26 Feb 2014, at 12:36, Selvaraj, Sreeju ArmughanX sreeju.armughanx.selva...@intel.commailto:sreeju.armughanx.selva...@intel.com wrote: I have thermal related configuration at Advance tab: CPU Configuration- TM1-Enabled TM2-Enabled DTS-Enabled And Thermal Configuration under Advance tab But changing of these configuration(Disabling) doesn't create any difference for me. I've also tried booting on an Intel DN2800MT. That also has no thermal zone showing, so it looks as if the BIOS isn't the issue. Another thing is command line argument thermal.off, by default it is 0 if you are not passing thermal.off=1 as command line argument, then it is ok. I'm not passing this, so we should be ok. Can you paste the content of meta-intel/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend FILESEXTRAPATHS_prepend := ${THISDIR}/${PN}: SRC_URI_cedartrail = git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;bareclone=1;branch=${KBRANCH},meta,yocto/pvr;name=machine,meta,pvrgit://git.yoctoproject.org/linux-yocto-3.0;protocol=git;bareclone=1;branch=$%7bKBRANCH%7d,meta,yocto/pvr;name=machine,meta,pvr SRC_URI_cedartrail-nopvr = git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,metagit://git.yoctoproject.org/linux-yocto-3.0;protocol=git;nocheckout=1;branch=$%7bKBRANCH%7d,meta;name=machine,meta COMPATIBLE_MACHINE_cedartrail = cedartrail KMACHINE_cedartrail = cedartrail KBRANCH_cedartrail = yocto/standard/cedartrail KERNEL_FEATURES_append_cedartrail += bsp/cedartrail/cedartrail-pvr-merge.scc KERNEL_FEATURES_append_cedartrail += cfg/efi-ext.scc COMPATIBLE_MACHINE_cedartrail-nopvr = cedartrail KMACHINE_cedartrail-nopvr = cedartrail KBRANCH_cedartrail-nopvr = yocto/standard/cedartrail KERNEL_FEATURES_append_cedartrail-nopvr += cfg/smp.scc SRCREV_machine_pn-linux-yocto_cedartrail ?= 1e79e03d115ed177882ab53909a4f3555e434833 SRCREV_meta_pn-linux-yocto_cedartrail ?= bf5ee4945ee6d748e6abe16356f2357f76b5e2f0 SRCREV_pvr_pn-linux-yocto_cedartrail ?= 7828ab82533828b924dbfad5158e274a8bb04df3 SRCREV_machine_pn-linux-yocto_cedartrail-nopvr ?= 1e79e03d115ed177882ab53909a4f3555e434833 SRCREV_meta_pn-linux-yocto_cedartrail-nopvr ?= bf5ee4945ee6d748e6abe16356f2357f76b5e2f0 From: Chris Tapp [mailto:opensou...@keylevel.com] Sent: Wednesday, February 26, 2014 7:13 PM To: Selvaraj, Sreeju ArmughanX Subject: Re: [meta-intel] [yocto] Where's my 'thermal_zone'? Hi Sreeju, On 26 Feb 2014, at 10:51, Selvaraj, Sreeju ArmughanX sreeju.armughanx.selva...@intel.commailto:sreeju.armughanx.selva...@intel.com wrote: I checked the kernel configuration, fine with respect to enabling thermal zone. And verified, after built with the config you have provided. Can I get some info: Once boot up the image, can you run the below commands and provide the output. # dmesg | grep Thermal # dmesg | grep thermal These both report nothing. # dmesg | cooling This gives: acpi device:1f: registered as cooling_device4 What is the BIOS version on your target ? The board is an ASRock DN2800MT (the Intel board is no longer available) and has an AMI BIOS, version 1.20. Does something need to be enabled in the BIOS for the thermal zone to appear? ASRock have been happy to make simple configuration changes to the BIOS for me in the past if this is needed. The BIOS has a few ACPI settings, but nothing related to thermal. I suspect other settings exist, but they are not exposed to the user. And want to check syslinux.cfg on your target. The board is being network booted over iPXE, so there is no syslinux.cfg. The boot simply uses the kernel, initramfs and rootfs images produced by Yocto. The kernel command line is: root=/dev/ram0 script=runme mac=bc:5f:f4:d6:eb:66 ip=192.168.1.58 dhcp netmask=255.255.255.0 gateway=192.168.1.1 dns=192.168.1.1 serverurl=http://sjs-serverhttp://sjs-server/ console=ttyS0,115200 quiet video=1280x1024-32@60 video=LVDS-1:d video=VGA-1:e Thanks, Sreeju From: Chris Tapp [mailto:opensou...@keylevel.com] Sent: Friday, February 21, 2014 8:02 PM To: Selvaraj, Sreeju ArmughanX Subject: Re: [meta-intel] [yocto] Where's my 'thermal_zone'? Hi Sreeju, Thanks for getting back to me on this. Answers below... On 21 Feb 2014, at 11:43, Selvaraj, Sreeju ArmughanX sreeju.armughanx.selva...@intel.commailto:sreeju.armughanx.selva...@intel.com wrote: This is what I have tried. built the core-image-sato for cedartrail under danny. build configuration: BB_VERSION= 1.16.0 TARGET_ARCH = i586 TARGET_OS = linux MACHINE = cedartrail DISTRO= poky DISTRO_VERSION