Re: [yocto] [meta-tpm][v2][PATCH] swtpm: fix build issues of missing expect
Den Fri, Oct 01, 2021 at 15:25:17 -0700 skrev Armin Kuster: > Signed-off-by: Armin Kuster > > -- > V2] > Only need expect-native > Clean up PACKAGECONFGI[gnutils] to conform to spec > --- > 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..0087367 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-native socat glib-2.0 > net-tools-native libtpm json-glib" > > 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 > expect bash tpm2-pkcs11-tools" Hi Armin Support for RRECOMMENDS in the PACKAGECONFIG was added some years ago[1][2]. Whatever they should be RRECOMMENDS or RDEPENDS I'm not sure about (I don't think swtpm-create-tpmca is a hard requirement for most people). If you like I can squash the changes into my own patch and resend it. [1] https://git.openembedded.org/openembedded-core/commit/?id=ec96c985ce1c888c3ce3c4d964d7a106c3c88a5c [2] https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#var-PACKAGECONFIG Cheers, Kristian > PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux" > PACKAGECONFIG[cuse] = "--with-cuse, --without-cuse, fuse" > PACKAGECONFIG[seccomp] = "--with-seccomp, --without-seccomp, libseccomp" > -- > 2.25.1 > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54929): https://lists.yoctoproject.org/g/yocto/message/54929 Mute This Topic: https://lists.yoctoproject.org/mt/86012566/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] [meta-tpm][v2][PATCH] swtpm: fix build issues of missing expect
Signed-off-by: Armin Kuster -- V2] Only need expect-native Clean up PACKAGECONFGI[gnutils] to conform to spec --- 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..0087367 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-native socat glib-2.0 net-tools-native libtpm json-glib" 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 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" -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54928): https://lists.yoctoproject.org/g/yocto/message/54928 Mute This Topic: https://lists.yoctoproject.org/mt/86012566/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] Meta-raspberrypi - how to configure device tree for MCP251x
I am having trouble getting the Waveshare 2-CH CAN HAT working with an RPI4. Channel 0 does not come up, channel 1 does, but it will only send one message (eventually reporting "write: No buffer space available”) and not receive anything. Looking at the mcp2515-can0-overlay.dts and mcp2515-can1-overlay.dts device tree files in /tmp/work-shared/raspberrypi4/kernel-source/arch/arm/boot/dts/overlays/, it looks as if the interrupts are not mapped as required for the board. DTS HAT CAN0 brcm,pins = <25> PIN23 CAN1 brcm,pins = <25> PIN25 This doesn’t look right, and seems consistent with the behaviour I am seeing. I would also like to check the device chip select signals, but I can't see how (if) they are mapped in the dts files. How can I override these settings when I build the image? -- Chris Tapp opensou...@keylevel.com www.keylevel.com -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54927): https://lists.yoctoproject.org/g/yocto/message/54927 Mute This Topic: https://lists.yoctoproject.org/mt/86011706/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto][meta-rockchip][PATCH] rockchip.wks: use uuid for /boot during fstab-update
Since the recent patch to switch to UUIDs [0aa5e600: "use uuid instead of hard-coding root device"] wic fstab-update is not able to get the correct value for the used device anymore and falls to the default 'sda'. Thus wrong /dev/sda entries are generated in fstab. For partitions that should be updated automatically this can be avoided by either generate entries using uuid or label. Signed-off-by: MarkusVolk --- wic/rockchip.wks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wic/rockchip.wks b/wic/rockchip.wks index 5ee276b..bd36ab0 100644 --- a/wic/rockchip.wks +++ b/wic/rockchip.wks @@ -20,7 +20,7 @@ part reserved1 --offset 4032 --fixed-size 64K part reserved2 --offset 4096 --fixed-size 4096K part loader2--offset 8192 --fixed-size 4096K--source rawcopy --sourceparams="file=u-boot.${UBOOT_SUFFIX}" part atf--offset 12288 --fixed-size 4096K -part /boot --offset 16384 --size 114688K --active --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot" +part /boot --offset 16384 --size 114688K --active --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot" --use-uuid part /--source rootfs --fstype=ext4 --label root --use-uuid bootloader --ptable gpt --append="console=tty1 console=${RK_CONSOLE_DEVICE},${RK_CONSOLE_BAUD}n8 rw rootfstype=ext4 init=/sbin/init" -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54926): https://lists.yoctoproject.org/g/yocto/message/54926 Mute This Topic: https://lists.yoctoproject.org/mt/85999141/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] Enabling Websockets in Mosquitto in yocto zeus #zeus
Greetings ! I could able to add Mosquitto in Yocto Zeus , but as default websockets is disabled in Mosquitto . Can anyone help me how to enable websockets in Mosquitto in yocto zeus. Thanks in Advance -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54925): https://lists.yoctoproject.org/g/yocto/message/54925 Mute This Topic: https://lists.yoctoproject.org/mt/85995510/21656 Mute #zeus:https://lists.yoctoproject.org/g/yocto/mutehashtag/zeus Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] How to add Firefox with Yocto build for RPI4.
Dear Team, I'm using poky-hardknotte for building the image for rpi4, here my need is to add one desktop and a Firefox browser with it, I built xfce desktop and it's working fine, but when I'm adding Firefox browser with it's getting segmentation fault when executing it from terminal, and from desktop menu it's responding anything may be back end it's getting same segmentation fault, please give me some hint so that I can conclude my task. Thanks & Regards. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54924): https://lists.yoctoproject.org/g/yocto/message/54924 Mute This Topic: https://lists.yoctoproject.org/mt/85993848/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] How to enable and disable device tree node at runtime from linux userspace #dunfell
Hai All, I wanted to use a GPIO to put the SOM into sleep mode and again use it to wake it up from the sleep. I used the below node to configure the SOM to use the GPIO1 18 to wake up from sleep. keys { compatible = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <_gpio_userkeys> ; wakeup { gpios = < 18 GPIO_ACTIVE_LOW>; linux,code = ; gpio-key,wakeup; }; } But again to put into sleep I am unable to read the GPIO state from linux userspace as it is used by driver. I am using libgpiod to read the gpio status for which I am getting device or resource busy error # gpioget gpiochip0 18 gpioget: error reading GPIO values: Device or resource busy How to disable the device tree node from linux user space so it is possible to read the GPIO staus. And onces the button is pressed enable the device tree node and enter the sleep mode so the driver will take care of waking of the SOM. Or Any other way to force read the status of GPIO status Regards, James A -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54923): https://lists.yoctoproject.org/g/yocto/message/54923 Mute This Topic: https://lists.yoctoproject.org/mt/85992941/21656 Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-