[meta-zephyr 1/2] conf: machine: add stm32mp157c-dk2 support
Arnaud Pouliquen <arnaud.pouliquen@...>
The board is based on STMicroelectronics STM32MP157 processor based on
a dual Cortex-A7 core and a Cortex-M4 core. STM32MP1 family support depends on STM32 HAL and OpenAMP for inter-core communication. This change has been verified with zephyr-philosophers and zephyr-shell sample applications on by loading Zephyr image to Cortex-M4 core from Linux using remoteproc framework. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@...> --- conf/machine/stm32mp157c-dk2.conf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 conf/machine/stm32mp157c-dk2.conf diff --git a/conf/machine/stm32mp157c-dk2.conf b/conf/machine/stm32mp157c-dk2.conf new file mode 100644 index 000000000000..52c18192b2c3 --- /dev/null +++ b/conf/machine/stm32mp157c-dk2.conf @@ -0,0 +1,8 @@ +#@TYPE: Machine +#@NAME: stm32mp1-openamp + +#@DESCRIPTION: Machine configuration for stm32mp157x-DK2 Board. + +require conf/machine/include/stm32mp1-cortex-m4.inc + +ARCH:stm32mp157c-dk2 = "arm" -- 2.17.1
|
|
[meta-zephyr 2/2] zephyr-kernel: add openamp-rsc-table sample
Arnaud Pouliquen <arnaud.pouliquen@...>
The recipe to build rpmsg sample demonstrating messaging between
main core dunning Linux and and the coprocessor running Zephyr. Useful to demonstrate inter-processing communication. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@...> --- .../zephyr-kernel/zephyr-openamp-rsc-table.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb b/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb new file mode 100644 index 000000000000..3eec58adb17b --- /dev/null +++ b/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb @@ -0,0 +1,10 @@ +include zephyr-sample.inc + + +ZEPHYR_MAKE_OUTPUT = "zephyr_openamp_rsc_table.elf" +ZEPHYR_MAKE_BIN_OUTPUT = "zephyr_openamp_rsc_table.bin" +ZEPHYR_MAKE_EFI_OUTPUT = "zephyr_openamp_rsc_table.efi" + +ZEPHYR_SRC_DIR = "${S}/samples/subsys/ipc/openamp_rsc_table" + +COMPATIBLE_MACHINE = "(stm32mp157c-dk2)" -- 2.17.1
|
|
[meta-zephyr 0/2] add support of the zephyr-openamp-rsc-table sample on STM32MP157
Arnaud Pouliquen <arnaud.pouliquen@...>
Add capability to genereate the "zephyr-openamp-rsc-table" sample in yocto build.
This example demonstrates inter-processor communication based on a resource table, with the objective of responding to the Linux kernel rpmsg sample. This sample is compatible with the stm32mp157c_dk2 board. The support of the board is also added in this series. Arnaud Pouliquen (2): conf: machine: add stm32mp157c-dk2 support zephyr-kernel: add openamp-rsc-table sample conf/machine/stm32mp157c-dk2.conf | 8 ++++++++ .../zephyr-kernel/zephyr-openamp-rsc-table.bb | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 conf/machine/stm32mp157c-dk2.conf create mode 100644 recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb -- 2.17.1
|
|
Re: [meta-security][PATCH] swtpm: update to 0.6.1
Anton Antonov
This recipe fails because of the wrong format in "PACKAGECONFIG[gnutls] = "--with-gnutls, --without-gnutls, gnutls, gnutls, expect bash tpm2-pkcs11-tools" There should be only four parts in the line separated by commas as defined here https://www.yoctoproject.org/docs/2.4.2/ref-manual/ref-manual.html#var-PACKAGECONFIG
|
|
Re: [meta-security][PATCH 2/2] swtpm: fix build issues of missing expect
Kristian Klausen <kristian@...>
Den Tue, Sep 28, 2021 at 16:39:09 -0700 skrev Armin Kuster:
Signed-off-by: Armin Kuster <akuster808@...>expect is there twice now (+ native). Would expect-native be enough or do we also need expect? expect is needed as a runtime dependency for swtpm-create-tpmca, but I added it as a recommended dependency as I don't think all people are interesting in swtpm-create-tpmca working out-of-the-box. expect should still be here, no? PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux"
|
|
[meta-rockchip][PATCH 3/3] nanopi-m4: add common override
Trevor Woerner
Add a common override for both nanopi-m4 MACHINEs.
Signed-off-by: Trevor Woerner <twoerner@...> --- conf/machine/include/nanopi-m4.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/machine/include/nanopi-m4.inc b/conf/machine/include/nanopi-m4.inc index b8e1db1..aaf07a3 100644 --- a/conf/machine/include/nanopi-m4.inc +++ b/conf/machine/include/nanopi-m4.inc @@ -1,6 +1,9 @@ # Copyright (C) 2021 Blade SAS # Common definitions for all NanoPi M4 RK3399 board variants +# add a common override for all nanopi-m4 +MACHINEOVERRIDES =. "nanopi-m4:" + require conf/machine/include/rk3399.inc MACHINE_FEATURES += "usbhost serial" -- 2.30.0.rc0
|
|
[meta-rockchip][PATCH 2/3] include/nanopi-m4: remove KMACHINE
Trevor Woerner
There is no "nanopi-m4" defined in any yocto kernel metadata (yet?), therefore
remove this superfluous line. Build (core-image-base) and run tested (both systemd and sysvinit) on: - nanopi-m4 Signed-off-by: Trevor Woerner <twoerner@...> --- conf/machine/include/nanopi-m4.inc | 1 - 1 file changed, 1 deletion(-) diff --git a/conf/machine/include/nanopi-m4.inc b/conf/machine/include/nanopi-m4.inc index 3870b51..b8e1db1 100644 --- a/conf/machine/include/nanopi-m4.inc +++ b/conf/machine/include/nanopi-m4.inc @@ -5,5 +5,4 @@ require conf/machine/include/rk3399.inc MACHINE_FEATURES += "usbhost serial" -KMACHINE = "nanopi-m4" KERNEL_DEVICETREE = "rockchip/rk3399-nanopi-m4.dtb" -- 2.30.0.rc0
|
|
[meta-rockchip][PATCH 1/3] linux-yocto: remove mmc aliases
Trevor Woerner
Now that we're booting via UUID, we no longer need these aliases in the DT.
Personally I wasn't able to prove to myself that they actually worked (at least not with 5.13.y) and fiddling with these aliases didn't seem to affect the mmc probe order on boot. Additionally it looks like some of these aliases will be landing upstream shortly. Build (core-image-base) and run tested (both systemd and sysvinit) on: - rock64 - rock-pi-e (i.e. the two rk3328 MACHINEs) Signed-off-by: Trevor Woerner <twoerner@...> --- ...an-dtsi-rk3328-add-mmc0-mmc1-aliases.patch | 27 ------------------- recipes-kernel/linux/linux-yocto%.bbappend | 3 --- 2 files changed, 30 deletions(-) delete mode 100644 recipes-kernel/linux/files/0001-ayufan-dtsi-rk3328-add-mmc0-mmc1-aliases.patch diff --git a/recipes-kernel/linux/files/0001-ayufan-dtsi-rk3328-add-mmc0-mmc1-aliases.patch b/recipes-kernel/linux/files/0001-ayufan-dtsi-rk3328-add-mmc0-mmc1-aliases.patch deleted file mode 100644 index 1ad3b9e..0000000 --- a/recipes-kernel/linux/files/0001-ayufan-dtsi-rk3328-add-mmc0-mmc1-aliases.patch +++ /dev/null @@ -1,27 +0,0 @@ -From f10cfe01f753348d346374008b8e8f5f26ed94ab Mon Sep 17 00:00:00 2001 -From: Kamil Trzcinski <ayufan@...> -Date: Mon, 28 Aug 2017 11:24:37 +0200 -Subject: [PATCH] ayufan: dtsi: rk3328: add mmc0/mmc1 aliases -Upstream-Status: Pending [https://github.com/ayufan-rock64/linux-mainline-kernel/commit/f10cfe01f753348d346374008b8e8f5f26ed94ab] - -Change-Id: I82a5394df8a505f7d1496393621c1198895c88b0 ---- - arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi -index 0afed15bc7ff..800f1c796882 100644 ---- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi -+++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi -@@ -27,6 +27,8 @@ - i2c1 = &i2c1; - i2c2 = &i2c2; - i2c3 = &i2c3; -+ mmc0 = &emmc; -+ mmc1 = &sdmmc; - ethernet0 = &gmac2io; - ethernet1 = &gmac2phy; - }; --- -2.30.2 - diff --git a/recipes-kernel/linux/linux-yocto%.bbappend b/recipes-kernel/linux/linux-yocto%.bbappend index cf63a30..470dc09 100644 --- a/recipes-kernel/linux/linux-yocto%.bbappend +++ b/recipes-kernel/linux/linux-yocto%.bbappend @@ -12,6 +12,3 @@ COMPATIBLE_MACHINE:rock64 = "rock64" COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e" FILESEXTRAPATHS:prepend := "${THISDIR}/files:" - -# indeed applicable to all rk3328 boards -SRC_URI:append:rock64 = " file://0001-ayufan-dtsi-rk3328-add-mmc0-mmc1-aliases.patch" -- 2.30.0.rc0
|
|
Re: Enabling tk for Python tkinter module
Tim Orling
On Tue, Sep 28, 2021 at 2:58 PM Chris Tapp <opensource@...> wrote: I am trying to get PySimpleGUI running on an RPi4 using meta-raspberrypi with hardknott. You need to add “tk” to the package config for python3 Add the following to your distro|site|local.conf (or a python3_%.bbappend) PACKAGECONFIG:append:pn-python3 = “ tk” ( replace : with _ if you are on old release that doesn’t support the new override syntax) (This assumes you have meta-oe in your bblayers.conf so you can build tk, which it sounds like you do) This is because the _tkinter .so built by python3 is dynamically loaded only if present —Tim “moto-timo” Orling
|
|
[meta-security][PATCH 2/2] swtpm: fix build issues of missing expect
Signed-off-by: Armin Kuster <akuster808@...>
--- meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb b/meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb index 807c02b..d602ee0 100644 --- a/meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb +++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=fe8092c832b71ef20dfe4c6d3decb3a8" SECTION = "apps" # coreutils-native and net-tools-native are reportedly only required for the tests -DEPENDS = "libtasn1 coreutils-native expect socat glib-2.0 net-tools-native libtpm json-glib" +DEPENDS = "libtasn1 coreutils-native expect socat glib-2.0 net-tools-native libtpm json-glib expect expect-native" SRCREV = "98187d24fe14851653a7c46eb16e9c5f0b9beaa1" SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.6 \ @@ -28,7 +28,7 @@ PACKAGECONFIG[openssl] = "--with-openssl, --without-openssl, openssl" # expect, bash, tpm2-pkcs11-tools (tpm2_ptool), tpmtool and certtool is # used by swtpm-create-tpmca (the last two is provided by gnutls) # gnutls is required by: swtpm-create-tpmca, swtpm-localca and swtpm_cert -PACKAGECONFIG[gnutls] = "--with-gnutls, --without-gnutls, gnutls, gnutls, expect bash tpm2-pkcs11-tools" +PACKAGECONFIG[gnutls] = "--with-gnutls, --without-gnutls, gnutls, gnutls, bash tpm2-pkcs11-tools" PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux" PACKAGECONFIG[cuse] = "--with-cuse, --without-cuse, fuse" PACKAGECONFIG[seccomp] = "--with-seccomp, --without-seccomp, libseccomp" -- 2.25.1
|
|
[meta-security][PATCH 1/2] swtpm: update to 0.6.1
From: "Kristian Klausen via lists.yoctoproject.org" <kristian=klausen.dk@...>
swtpm no longer depends on Python[1] so the dependencies have been removed. "inherit perlnative" has been added due to (in oe-core): deda455b3c ("bitbake.conf: drop pod2man from hosttools") Some leftover dependencies have also been removed, ex: tpm-tools required in the past by swtpm_setup.sh (<0.4.0)[2]. [1] https://github.com/stefanberger/swtpm/issues/437 [2] https://github.com/stefanberger/swtpm/commit/eee8cb5dfb13f87140dddda38f65bf61aff19508 Signed-off-by: Kristian Klausen <kristian@...> Signed-off-by: Armin Kuster <akuster808@...> --- .../swtpm/swtpm-wrappers-native.bb | 12 ++++------ .../swtpm/{swtpm_0.5.2.bb => swtpm_0.6.1.bb} | 23 ++++++++----------- 2 files changed, 14 insertions(+), 21 deletions(-) rename meta-tpm/recipes-tpm/swtpm/{swtpm_0.5.2.bb => swtpm_0.6.1.bb} (72%) diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm-wrappers-native.bb b/meta-tpm/recipes-tpm/swtpm/swtpm-wrappers-native.bb index 644f3ac..bb93374 100644 --- a/meta-tpm/recipes-tpm/swtpm/swtpm-wrappers-native.bb +++ b/meta-tpm/recipes-tpm/swtpm/swtpm-wrappers-native.bb @@ -1,6 +1,6 @@ SUMMARY = "SWTPM - OpenEmbedded wrapper scripts for native swtpm tools" LICENSE = "MIT" -DEPENDS = "swtpm-native tpm-tools-native net-tools-native" +DEPENDS = "swtpm-native" inherit native @@ -14,23 +14,19 @@ do_create_wrapper () { for i in `find ${bindir} ${base_bindir} ${sbindir} ${base_sbindir} -name 'swtpm*' -perm /+x -type f`; do exe=`basename $i` case $exe in - swtpm_setup.sh) + swtpm_setup) cat >${WORKDIR}/swtpm_setup_oe.sh <<EOF #! /bin/sh # -# Wrapper around swtpm_setup.sh which adds parameters required to +# Wrapper around swtpm_setup which adds parameters required to # run the setup as non-root directly from the native sysroot. PATH="${bindir}:${base_bindir}:${sbindir}:${base_sbindir}:\$PATH" export PATH -# tcsd only allows to be run as root or tss. Pretend to be root... -exec env ${FAKEROOTENV} ${FAKEROOTCMD} swtpm_setup.sh --config ${STAGING_DIR_NATIVE}/etc/swtpm_setup.conf "\$@" +exec swtpm_setup --config ${STAGING_DIR_NATIVE}/etc/swtpm_setup.conf "\$@" EOF ;; - swtpm_setup) - true - ;; *) cat >${WORKDIR}/${exe}_oe.sh <<EOF #! /bin/sh diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb b/meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb similarity index 72% rename from meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb rename to meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb index 912e939..807c02b 100644 --- a/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb +++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb @@ -3,14 +3,11 @@ LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=fe8092c832b71ef20dfe4c6d3decb3a8" SECTION = "apps" -DEPENDS = "libtasn1 coreutils-native expect socat glib-2.0 net-tools-native libtpm libtpm-native" +# coreutils-native and net-tools-native are reportedly only required for the tests +DEPENDS = "libtasn1 coreutils-native expect socat glib-2.0 net-tools-native libtpm json-glib" -# configure checks for the tools already during compilation and -# then swtpm_setup needs them at runtime -DEPENDS:append = " tpm-tools-native expect-native socat-native python3-pip-native python3-cryptography-native" - -SRCREV = "e59c0c1a7b4c8d652dbb280fd6126895a7057464" -SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.5 \ +SRCREV = "98187d24fe14851653a7c46eb16e9c5f0b9beaa1" +SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.6 \ file://ioctl_h.patch \ file://oe_configure.patch \ " @@ -19,7 +16,7 @@ PE = "1" S = "${WORKDIR}/git" PARALLEL_MAKE = "" -inherit autotools pkgconfig python3native +inherit autotools pkgconfig perlnative TSS_USER="tss" TSS_GROUP="tss" @@ -28,7 +25,10 @@ PACKAGECONFIG ?= "openssl" PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}" PACKAGECONFIG += "${@bb.utils.contains('BBFILE_COLLECTIONS', 'filesystems-layer', 'cuse', '', d)}" PACKAGECONFIG[openssl] = "--with-openssl, --without-openssl, openssl" -PACKAGECONFIG[gnutls] = "--with-gnutls, --without-gnutls, gnutls" +# expect, bash, tpm2-pkcs11-tools (tpm2_ptool), tpmtool and certtool is +# used by swtpm-create-tpmca (the last two is provided by gnutls) +# gnutls is required by: swtpm-create-tpmca, swtpm-localca and swtpm_cert +PACKAGECONFIG[gnutls] = "--with-gnutls, --without-gnutls, gnutls, gnutls, expect bash tpm2-pkcs11-tools" PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux" PACKAGECONFIG[cuse] = "--with-cuse, --without-cuse, fuse" PACKAGECONFIG[seccomp] = "--with-seccomp, --without-seccomp, libseccomp" @@ -41,14 +41,11 @@ USERADD_PARAM:${PN} = "--system -g ${TSS_GROUP} --home-dir \ --no-create-home --shell /bin/false ${BPN}" -PACKAGES =+ "${PN}-python" -FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" - PACKAGE_BEFORE_PN = "${PN}-cuse" FILES:${PN}-cuse = "${bindir}/swtpm_cuse" INSANE_SKIP:${PN} += "dev-so" -RDEPENDS:${PN} = "libtpm expect socat bash tpm-tools python3 python3-cryptography python3-twisted" +RDEPENDS:${PN} = "libtpm" BBCLASSEXTEND = "native nativesdk" -- 2.25.1
|
|
Re: [meta-security][PATCH] dmverity: Make use of DATA_BLOCK_SIZE variable in initrdscript.
merged.
toggle quoted messageShow quoted text
On 9/23/21 8:45 AM, Paulo Neves wrote:
From: Christer Fletcher <christer.fletcher@...>
|
|
Re: [meta-security][PATCH] Upgrade parsec-service 0.8.1 and parsec-tool 0.4.0
merged.
toggle quoted messageShow quoted text
On 9/27/21 12:57 PM, Anton Antonov wrote:
Signed-off-by: Anton Antonov <Anton.Antonov@...>
|
|
Re: [meta-security][PATCH] libtpm: update to 0.8.7
merged
toggle quoted messageShow quoted text
On 9/27/21 4:07 AM, Kristian Klausen via lists.yoctoproject.org wrote:
Signed-off-by: Kristian Klausen <kristian@...>
|
|
Re: [meta-security][PATCH] clamav: Set clamav:clamav ownership on /var/lib/clamav in do_install
merged.
toggle quoted messageShow quoted text
On 9/26/21 5:25 AM, Zoltán Böszörményi wrote:
From: Zoltán Böszörményi <zboszor@...>
|
|
Enabling tk for Python tkinter module
Chris Tapp
I am trying to get PySimpleGUI running on an RPi4 using meta-raspberrypi with hardknott.
I have created a recipe for PySimpleGUI and added the following to my local.conf: PACKAGECONFIG_pn-python3 = “tk” IMAGE_INSTALL_append = " python3 python3-modules python3-pysimplegui tk" However, the tkinter module fails to load, reporting “No module named _tkinter”, with a note above saying that Python may not be configured for Tk. Looking on the target, /usr/lib/libtk.8.so is present. It looks as if there is something else I need to do to get Python to build correctly, but I’m out of ideas ;-) I’ve found a few bits on the internet that seem related, but they haven’t helped me get things going: https://www.mail-archive.com/yocto@yoctoproject.org/msg18232.html https://www.yoctoproject.org/pipermail/yocto/2014-July/020547.html Any pointers on where to look would be appreciated. -- Chris Tapp opensource@... www.keylevel.com
|
|
Yocto Project Status WW39`21
Stephen Jolley
Current Dev Position: YP 3.4 M4 Next Deadline: 4th Oct. 2021 YP 3.4 M4 build
Next Team Meetings:
Key Status/Updates:
Ways to contribute:
YP 3.4 Milestone Dates:
Planned upcoming dot releases:
Tracking Metrics:
The Yocto Project’s technical governance is through its Technical Steering Committee, more information is available at: https://wiki.yoctoproject.org/wiki/TSC
The Status reports are now stored on the wiki at: https://wiki.yoctoproject.org/wiki/Weekly_Status
[If anyone has suggestions for other information you’d like to see on this weekly status update, let us know!]
Thanks,
Stephen K. Jolley Yocto Project Program Manager ( Cell: (208) 244-4460 * Email: sjolley.yp.pm@...
|
|
Re: [OE-core] Incorrect systemd timer
Manuel Wagesreither
Am Di, 28. Sep 2021, um 03:43, schrieb JH:
Is the timer unit shadowed by some other timer?perhaps useNo, the same result, completely bewildered why the timer does not work Mind that units can live in * `/lib/systemd/system/`, * `/etc/systemd/system/`, * `/run/systemd/system/` and there's a priority. Check here: https://www.freedesktop.org/software/systemd/man/systemd.unit.html Didn't check, but I guess when you `systemctl status your.timer`, it shows the unit in effect. At least with service unit it does. `systemctl cat your.timer` should do this as well. Regards, Manuel
|
|
Re: [meta-security][PATCH] swtpm: update to 0.6.1
On 9/27/21 4:39 AM, Kristian Klausen via lists.yoctoproject.org wrote:
swtpm no longer depends on Python[1] so the dependencies have beenthis is failing on qemux86-64 https://errors.yoctoproject.org/Errors/Build/131312/
|
|
Re: [meta-zephyr][hardknott] backport tmpfsdir from master
Naveen Saini
Done.
toggle quoted messageShow quoted text
Regards, Naveen
-----Original Message-----
|
|