Date   

[layerindex-web][PATCH] utils.py: Use get_layer_var() to get BBFILE_COLLECTIONS

Robert Yang
 

The commit 38e6288c7dad579518b0de2b6664f23be58889b6 has added oe-core to
BBLAYERS by default, and then there will be mutliple BBFILE_COLLECTIONS and
caused update.py failed to update layers (most of the dependencies or
reccommends are missing), use get_layer_var() to get BBFILE_COLLECTIONS to fix
the problem since it can ignore the extra oe-core from BBFILE_COLLECTIONS.

Signed-off-by: Robert Yang <liezhi.yang@...>
---
layerindex/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layerindex/utils.py b/layerindex/utils.py
index efd18e4..ed7fb47 100644
--- a/layerindex/utils.py
+++ b/layerindex/utils.py
@@ -188,7 +188,7 @@ def _add_dependency(var, name, layerbranch, config_data, logger=None, required=T
logger.warn('Either set REMOVE_LAYER_DEPENDENCIES to remove them from the database, or fix conf/layer.conf')

def set_layerbranch_collection_version(layerbranch, config_data, logger=None):
- layerbranch.collection = config_data.getVar('BBFILE_COLLECTIONS', True)
+ layerbranch.collection = get_layer_var(config_data, 'BBFILE_COLLECTIONS', logger)
ver_str = "LAYERVERSION_"
if layerbranch.collection:
layerbranch.collection = layerbranch.collection.strip()
--
2.37.0


M+ & H bugs with Milestone Movements WW31

Stephen Jolley
 

All,

YP M+ or high bugs which moved to a new milestone in WW31 are listed below:

Priority

Bug ID

Short Description

Changer

Owner

Was

Became

Medium+

14800

AB-INT PTEST: libgcrypt ptest intermittent failure

randy.macleod@...

ross.burton@...

4.1

4.1 M3

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Enhancements/Bugs closed WW31!

Stephen Jolley
 

All,

The below were the owners of enhancements or bugs closed during the last week!

Who

Count

ross.burton@...

1

mhalstead@...

1

Grand Total

2

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Current high bug count owners for Yocto Project 4.1

Stephen Jolley
 

All,

 

Below is the list as of top 37 bug owners as of the end of WW31 of who have open medium or higher bugs and enhancements against YP 4.1.   There are 62 possible work days left until the final release candidates for YP 4.1 needs to be released.

Who

Count

 

michael.opdenacker@...

36

 

ross.burton@...

26

 

david.reyna@...

23

 

bruce.ashfield@...

21

 

randy.macleod@...

16

 

richard.purdie@...

11

 

saul.wold@...

10

 

JPEWhacker@...

9

 

sakib.sajal@...

9

 

Aryaman.Gupta@...

7

 

tim.orling@...

6

 

mhalstead@...

4

 

jon.mason@...

4

 

akuster808@...

3

 

hongxu.jia@...

2

 

pavel@...

2

 

pgowda.cve@...

2

 

Qi.Chen@...

2

 

tvgamblin@...

2

 

sundeep.kokkonda@...

2

 

ptsneves@...

1

 

aehs29@...

1

 

Martin.Jansa@...

1

 

nicolas.dechesne@...

1

 

thomas.perrot@...

1

 

martin.beeger@...

1

 

Ahmed.Hossam@...

1

 

behanw@...

1

 

sgw@...

1

 

alexandre.belloni@...

1

 

ola.x.nilsson@...

1

 

raj.khem@...

1

 

mostthingsweb@...

1

 

shachar@...

1

 

luca.ceresoli@...

1

 

alejandro@...

1

 

open.source@...

1

 

Grand Total

214

 

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Yocto Project Newcomer & Unassigned Bugs - Help Needed

Stephen Jolley
 

All,

 

The triage team is starting to try and collect up and classify bugs which a newcomer to the project would be able to work on in a way which means people can find them. They're being listed on the triage page under the appropriate heading:

https://wiki.yoctoproject.org/wiki/Bug_Triage#Newcomer_Bugs  Also please review: https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded and how to create a bugzilla account at: https://bugzilla.yoctoproject.org/createaccount.cgi

The idea is these bugs should be straight forward for a person to help work on who doesn't have deep experience with the project.  If anyone can help, please take ownership of the bug and send patches!  If anyone needs help/advice there are people on irc who can likely do so, or some of the more experienced contributors will likely be happy to help too.

 

Also, the triage team meets weekly and does its best to handle the bugs reported into the Bugzilla. The number of people attending that meeting has fallen, as have the number of people available to help fix bugs. One of the things we hear users report is they don't know how to help. We (the triage team) are therefore going to start reporting out the currently 410 unassigned or newcomer bugs.

 

We're hoping people may be able to spare some time now and again to help out with these.  Bugs are split into two types, "true bugs" where things don't work as they should and "enhancements" which are features we'd want to add to the system.  There are also roughly four different "priority" classes right now,  “4.1”, “4.2”, "4.99" and "Future", the more pressing/urgent issues being in "4.1" and then “4.2”.

 

Please review this link and if a bug is something you would be able to help with either take ownership of the bug, or send me (sjolley.yp.pm@...) an e-mail with the bug number you would like and I will assign it to you (please make sure you have a Bugzilla account).  The list is at: https://wiki.yoctoproject.org/wiki/Bug_Triage_Archive#Unassigned_or_Newcomer_Bugs

 

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Re: Confused as to why runtime variables (RDEPENDS, RPROVIDES, etc) require package name overrides

kergoth@...
 

It doesn't have anything to do with parsing. A single bitbake recipe will write multiple binary packages by splitting up its files, so each binary package it writes has its own metadata.


On Mon, Aug 1, 2022 at 10:45 AM <brownij6@...> wrote:
Essentially I don't understand why variables like RDEPENDS require a package name conditional override such as "RDEPENDS_${PN}" while other variables, including DEPENDS, do not require this. Isn't putting the package name as a conditional after the variable pointless, since bitbake only parses the variables from the recipe it is currently building? I feel like my confusion may stem from some fundamental misunderstanding of the way the build system works.

Thanks for your help,
James




--
Christopher Larson
chris_larson@..., chris.larson@..., kergoth@...
Principal Software Engineer, Embedded Linux Solutions, Siemens Digital Industries Software


Confused as to why runtime variables (RDEPENDS, RPROVIDES, etc) require package name overrides

brownij6@...
 

Essentially I don't understand why variables like RDEPENDS require a package name conditional override such as "RDEPENDS_${PN}" while other variables, including DEPENDS, do not require this. Isn't putting the package name as a conditional after the variable pointless, since bitbake only parses the variables from the recipe it is currently building? I feel like my confusion may stem from some fundamental misunderstanding of the way the build system works.

Thanks for your help,
James


[meta-security][PATCH 2/2] packagegroup-core-security: remove krill for some archs

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@...>
---
recipes-core/packagegroup/packagegroup-core-security.bb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/recipes-core/packagegroup/packagegroup-core-security.bb b/recipes-core/packagegroup/packagegroup-core-security.bb
index 821ebf6..a12a4c2 100644
--- a/recipes-core/packagegroup/packagegroup-core-security.bb
+++ b/recipes-core/packagegroup/packagegroup-core-security.bb
@@ -44,7 +44,10 @@ RDEPENDS:packagegroup-security-utils = "\

RDEPENDS:packagegroup-security-utils:append:x86 = "chipsec"
RDEPENDS:packagegroup-security-utils:append:x86-64 = "chipsec"
-RDEPENDS:packagegroup-security-utils:remove:mipsarch = "firejail"
+RDEPENDS:packagegroup-security-utils:remove:mipsarch = "firejail krill"
+RDEPENDS:packagegroup-security-utils:remove:libc-musl = "krill"
+RDEPENDS:packagegroup-security-utils:remove:riscv64 = "krill"
+RDEPENDS:packagegroup-security-utils:remove:armv7ve = " krill"

SUMMARY:packagegroup-security-scanners = "Security scanners"
RDEPENDS:packagegroup-security-scanners = "\
--
2.25.1


[meta-security][PATCH 1/2] krill: only builds on x86/x86-64 and arm64

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@...>
---
recipes-security/krill/krill_0.9.6.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes-security/krill/krill_0.9.6.bb b/recipes-security/krill/krill_0.9.6.bb
index c8b5b0c..fd86c4b 100644
--- a/recipes-security/krill/krill_0.9.6.bb
+++ b/recipes-security/krill/krill_0.9.6.bb
@@ -20,7 +20,6 @@ CARGO_SRC_DIR = ""

inherit pkgconfig useradd systemd cargo

-
do_install:append () {
install -d ${D}${sysconfdir}
install -d ${D}${datadir}/krill
@@ -39,3 +38,5 @@ USERADD_PARAM:${PN} = "--system -g ${KRILL_GID} --home-dir \
--shell /sbin/nologin ${BPN}"

FILES:${PN} += "{sysconfdir}/defaults ${datadir}"
+
+COMPATIBLE_HOST = "(i.86|x86_64|aarch64).*-linux"
--
2.25.1


Re: nftables_0.7 not working

Quentin Schulz
 

Hi Maik,

On 8/1/22 17:34, Maik Vermeulen wrote:
Hi Quentin,
Thank you for your response!
I added kernel-modules to the IMAGE_INSTALL_append, but it seems that the
modules are still not being loaded.
Is that the correct way?
Also I see that CONFIG_NF_TABLES is not set (with ~# zcat /proc/config.gz |
grep CONFIG_NF_ | grep TABLE)
Is that expected?
No, you would indeed need to enable those in your kernel config.

Cheers,
Quentin


Re: nftables_0.7 not working

Maik Vermeulen
 

Hi Quentin,

Thank you for your response!

I added kernel-modules to the IMAGE_INSTALL_append, but it seems that the modules are still not being loaded.
Is that the correct way?

Also I see that CONFIG_NF_TABLES is not set (with ~# zcat /proc/config.gz | grep CONFIG_NF_ | grep TABLE)
Is that expected?

Kind regards,

Maik Vermeulen

Embedded Software Engineer — Lightyear


On Mon, Aug 1, 2022 at 3:51 PM Quentin Schulz <quentin.schulz@...> wrote:
Hi Maik,

On 8/1/22 14:41, Maik Vermeulen wrote:
> Hi,
>
> I added the following to our image recipe:
> IMAGE_INSTALL_append = " nftables"
>
> When running that image, nftables seems to be included, but we get the
> following error:
> ~# nft
> ../../nftables-0.7/src/netlink.c:59: Unable to initialize Netlink socket:
> Protocol not supported
>
> Furthermore, it's not showing in lsmod, and also not in modprobe
> --showconfigs.
>
> This is the active kernel config:
> root@agent336:~# zcat /proc/config.gz | grep "CONFIG_NF_\|CONFIG_NETFILTER_"
> CONFIG_NETFILTER_ADVANCED=y
> CONFIG_NETFILTER_INGRESS=y
> # CONFIG_NETFILTER_NETLINK_ACCT is not set
> # CONFIG_NETFILTER_NETLINK_QUEUE is not set
> # CONFIG_NETFILTER_NETLINK_LOG is not set
> CONFIG_NF_CONNTRACK=m
> CONFIG_NF_LOG_COMMON=m
> # CONFIG_NF_LOG_NETDEV is not set
> # CONFIG_NF_CONNTRACK_MARK is not set
> CONFIG_NF_CONNTRACK_PROCFS=y
> CONFIG_NF_CONNTRACK_EVENTS=y
> # CONFIG_NF_CONNTRACK_TIMEOUT is not set
> # CONFIG_NF_CONNTRACK_TIMESTAMP is not set
> CONFIG_NF_CT_PROTO_DCCP=y
> CONFIG_NF_CT_PROTO_SCTP=y
> CONFIG_NF_CT_PROTO_UDPLITE=y
> # CONFIG_NF_CONNTRACK_AMANDA is not set
> # CONFIG_NF_CONNTRACK_FTP is not set
> # CONFIG_NF_CONNTRACK_H323 is not set
> # CONFIG_NF_CONNTRACK_IRC is not set
> # CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
> # CONFIG_NF_CONNTRACK_SNMP is not set
> # CONFIG_NF_CONNTRACK_PPTP is not set
> # CONFIG_NF_CONNTRACK_SANE is not set
> # CONFIG_NF_CONNTRACK_SIP is not set
> # CONFIG_NF_CONNTRACK_TFTP is not set
> # CONFIG_NF_CT_NETLINK is not set
> # CONFIG_NF_CT_NETLINK_TIMEOUT is not set
> CONFIG_NF_NAT=m
> CONFIG_NF_NAT_NEEDED=y
> CONFIG_NF_NAT_PROTO_DCCP=y
> CONFIG_NF_NAT_PROTO_UDPLITE=y
> CONFIG_NF_NAT_PROTO_SCTP=y
> # CONFIG_NF_NAT_AMANDA is not set
> # CONFIG_NF_NAT_FTP is not set
> # CONFIG_NF_NAT_IRC is not set
> # CONFIG_NF_NAT_SIP is not set
> # CONFIG_NF_NAT_TFTP is not set
> # CONFIG_NF_NAT_REDIRECT is not set
> # CONFIG_NF_TABLES is not set
> CONFIG_NETFILTER_XTABLES=m
> # CONFIG_NETFILTER_XT_MARK is not set
> # CONFIG_NETFILTER_XT_CONNMARK is not set
> # CONFIG_NETFILTER_XT_TARGET_AUDIT is not set
> CONFIG_NETFILTER_XT_TARGET_CHECKSUM=m
> # CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set
> # CONFIG_NETFILTER_XT_TARGET_CONNMARK is not set
> # CONFIG_NETFILTER_XT_TARGET_DSCP is not set
> # CONFIG_NETFILTER_XT_TARGET_HL is not set
> # CONFIG_NETFILTER_XT_TARGET_HMARK is not set
> # CONFIG_NETFILTER_XT_TARGET_IDLETIMER is not set
> # CONFIG_NETFILTER_XT_TARGET_LED is not set
> CONFIG_NETFILTER_XT_TARGET_LOG=m
> # CONFIG_NETFILTER_XT_TARGET_MARK is not set
> CONFIG_NETFILTER_XT_NAT=m
> # CONFIG_NETFILTER_XT_TARGET_NETMAP is not set
> # CONFIG_NETFILTER_XT_TARGET_NFLOG is not set
> # CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
> # CONFIG_NETFILTER_XT_TARGET_RATEEST is not set
> # CONFIG_NETFILTER_XT_TARGET_REDIRECT is not set
> # CONFIG_NETFILTER_XT_TARGET_TEE is not set
> # CONFIG_NETFILTER_XT_TARGET_TPROXY is not set
> # CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set
> # CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set
> CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
> # CONFIG_NETFILTER_XT_MATCH_BPF is not set
> # CONFIG_NETFILTER_XT_MATCH_CGROUP is not set
> # CONFIG_NETFILTER_XT_MATCH_CLUSTER is not set
> # CONFIG_NETFILTER_XT_MATCH_COMMENT is not set
> # CONFIG_NETFILTER_XT_MATCH_CONNBYTES is not set
> # CONFIG_NETFILTER_XT_MATCH_CONNLABEL is not set
> # CONFIG_NETFILTER_XT_MATCH_CONNLIMIT is not set
> # CONFIG_NETFILTER_XT_MATCH_CONNMARK is not set
> CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
> # CONFIG_NETFILTER_XT_MATCH_CPU is not set
> # CONFIG_NETFILTER_XT_MATCH_DCCP is not set
> # CONFIG_NETFILTER_XT_MATCH_DEVGROUP is not set
> # CONFIG_NETFILTER_XT_MATCH_DSCP is not set
> # CONFIG_NETFILTER_XT_MATCH_ECN is not set
> # CONFIG_NETFILTER_XT_MATCH_ESP is not set
> # CONFIG_NETFILTER_XT_MATCH_HASHLIMIT is not set
> # CONFIG_NETFILTER_XT_MATCH_HELPER is not set
> # CONFIG_NETFILTER_XT_MATCH_HL is not set
> # CONFIG_NETFILTER_XT_MATCH_IPCOMP is not set
> # CONFIG_NETFILTER_XT_MATCH_IPRANGE is not set
> # CONFIG_NETFILTER_XT_MATCH_L2TP is not set
> # CONFIG_NETFILTER_XT_MATCH_LENGTH is not set
> # CONFIG_NETFILTER_XT_MATCH_LIMIT is not set
> # CONFIG_NETFILTER_XT_MATCH_MAC is not set
> # CONFIG_NETFILTER_XT_MATCH_MARK is not set
> # CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set
> # CONFIG_NETFILTER_XT_MATCH_NFACCT is not set
> # CONFIG_NETFILTER_XT_MATCH_OWNER is not set
> # CONFIG_NETFILTER_XT_MATCH_POLICY is not set
> # CONFIG_NETFILTER_XT_MATCH_PHYSDEV is not set
> # CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
> # CONFIG_NETFILTER_XT_MATCH_QUOTA is not set
> # CONFIG_NETFILTER_XT_MATCH_RATEEST is not set
> # CONFIG_NETFILTER_XT_MATCH_REALM is not set
> # CONFIG_NETFILTER_XT_MATCH_RECENT is not set
> # CONFIG_NETFILTER_XT_MATCH_SCTP is not set
> # CONFIG_NETFILTER_XT_MATCH_STATE is not set
> # CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set
> # CONFIG_NETFILTER_XT_MATCH_STRING is not set
> # CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set
> # CONFIG_NETFILTER_XT_MATCH_TIME is not set
> # CONFIG_NETFILTER_XT_MATCH_U32 is not set
> CONFIG_NF_DEFRAG_IPV4=m
> CONFIG_NF_CONNTRACK_IPV4=m
> # CONFIG_NF_SOCKET_IPV4 is not set
> # CONFIG_NF_DUP_IPV4 is not set
> # CONFIG_NF_LOG_ARP is not set
> CONFIG_NF_LOG_IPV4=m
> CONFIG_NF_REJECT_IPV4=m
> CONFIG_NF_NAT_IPV4=m
> CONFIG_NF_NAT_MASQUERADE_IPV4=m
> # CONFIG_NF_NAT_PPTP is not set
> # CONFIG_NF_NAT_H323 is not set
> CONFIG_NF_DEFRAG_IPV6=m
> CONFIG_NF_CONNTRACK_IPV6=m
> # CONFIG_NF_SOCKET_IPV6 is not set
> # CONFIG_NF_DUP_IPV6 is not set
> CONFIG_NF_REJECT_IPV6=m
> CONFIG_NF_LOG_IPV6=m
> CONFIG_NF_NAT_IPV6=m
> CONFIG_NF_NAT_MASQUERADE_IPV6=m
>
> What am I missing? Should I enable it some other way instead of using
> IMAGE_INSTALL_append? Do I need to enable more?
>

It seems you built many netfilter features/drivers as modules and not
built-in in the kernel. When that is the case, you need to add the
modules to your image because Yocto does not do it for you. Yocto splits
each module in its own package. As a simple try, you can add the
kernel-modules package to your image, it is a package that pulls all
kernel module packages all at once. At least you'll know if there's
another issue before pinpointing the exact kernel module package names
you will want in your image (kernel-modules can be pretty big if you
don't have a "clean" defconfig with many unnecessary drivers built as
modules).

Cheers,
Quentin






Automotive Campus 70 —5708 JZ Helmond, the Netherlands

This email may contain information which is privileged and/or confidential. If you received this e-mail in error, please notify us immediately by e-mail and delete the email without copying or disclosing its contents to any other person. Lightyear is a trade name of Atlas Technologies B.V. and is registered at the Dutch Chamber of Commerce under number 67264298. 


Re: nftables_0.7 not working

Quentin Schulz
 

Hi Maik,

On 8/1/22 14:41, Maik Vermeulen wrote:
Hi,
I added the following to our image recipe:
IMAGE_INSTALL_append = " nftables"
When running that image, nftables seems to be included, but we get the
following error:
~# nft
../../nftables-0.7/src/netlink.c:59: Unable to initialize Netlink socket:
Protocol not supported
Furthermore, it's not showing in lsmod, and also not in modprobe
--showconfigs.
This is the active kernel config:
root@agent336:~# zcat /proc/config.gz | grep "CONFIG_NF_\|CONFIG_NETFILTER_"
CONFIG_NETFILTER_ADVANCED=y
CONFIG_NETFILTER_INGRESS=y
# CONFIG_NETFILTER_NETLINK_ACCT is not set
# CONFIG_NETFILTER_NETLINK_QUEUE is not set
# CONFIG_NETFILTER_NETLINK_LOG is not set
CONFIG_NF_CONNTRACK=m
CONFIG_NF_LOG_COMMON=m
# CONFIG_NF_LOG_NETDEV is not set
# CONFIG_NF_CONNTRACK_MARK is not set
CONFIG_NF_CONNTRACK_PROCFS=y
CONFIG_NF_CONNTRACK_EVENTS=y
# CONFIG_NF_CONNTRACK_TIMEOUT is not set
# CONFIG_NF_CONNTRACK_TIMESTAMP is not set
CONFIG_NF_CT_PROTO_DCCP=y
CONFIG_NF_CT_PROTO_SCTP=y
CONFIG_NF_CT_PROTO_UDPLITE=y
# CONFIG_NF_CONNTRACK_AMANDA is not set
# CONFIG_NF_CONNTRACK_FTP is not set
# CONFIG_NF_CONNTRACK_H323 is not set
# CONFIG_NF_CONNTRACK_IRC is not set
# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
# CONFIG_NF_CONNTRACK_SNMP is not set
# CONFIG_NF_CONNTRACK_PPTP is not set
# CONFIG_NF_CONNTRACK_SANE is not set
# CONFIG_NF_CONNTRACK_SIP is not set
# CONFIG_NF_CONNTRACK_TFTP is not set
# CONFIG_NF_CT_NETLINK is not set
# CONFIG_NF_CT_NETLINK_TIMEOUT is not set
CONFIG_NF_NAT=m
CONFIG_NF_NAT_NEEDED=y
CONFIG_NF_NAT_PROTO_DCCP=y
CONFIG_NF_NAT_PROTO_UDPLITE=y
CONFIG_NF_NAT_PROTO_SCTP=y
# CONFIG_NF_NAT_AMANDA is not set
# CONFIG_NF_NAT_FTP is not set
# CONFIG_NF_NAT_IRC is not set
# CONFIG_NF_NAT_SIP is not set
# CONFIG_NF_NAT_TFTP is not set
# CONFIG_NF_NAT_REDIRECT is not set
# CONFIG_NF_TABLES is not set
CONFIG_NETFILTER_XTABLES=m
# CONFIG_NETFILTER_XT_MARK is not set
# CONFIG_NETFILTER_XT_CONNMARK is not set
# CONFIG_NETFILTER_XT_TARGET_AUDIT is not set
CONFIG_NETFILTER_XT_TARGET_CHECKSUM=m
# CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set
# CONFIG_NETFILTER_XT_TARGET_CONNMARK is not set
# CONFIG_NETFILTER_XT_TARGET_DSCP is not set
# CONFIG_NETFILTER_XT_TARGET_HL is not set
# CONFIG_NETFILTER_XT_TARGET_HMARK is not set
# CONFIG_NETFILTER_XT_TARGET_IDLETIMER is not set
# CONFIG_NETFILTER_XT_TARGET_LED is not set
CONFIG_NETFILTER_XT_TARGET_LOG=m
# CONFIG_NETFILTER_XT_TARGET_MARK is not set
CONFIG_NETFILTER_XT_NAT=m
# CONFIG_NETFILTER_XT_TARGET_NETMAP is not set
# CONFIG_NETFILTER_XT_TARGET_NFLOG is not set
# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
# CONFIG_NETFILTER_XT_TARGET_RATEEST is not set
# CONFIG_NETFILTER_XT_TARGET_REDIRECT is not set
# CONFIG_NETFILTER_XT_TARGET_TEE is not set
# CONFIG_NETFILTER_XT_TARGET_TPROXY is not set
# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set
# CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
# CONFIG_NETFILTER_XT_MATCH_BPF is not set
# CONFIG_NETFILTER_XT_MATCH_CGROUP is not set
# CONFIG_NETFILTER_XT_MATCH_CLUSTER is not set
# CONFIG_NETFILTER_XT_MATCH_COMMENT is not set
# CONFIG_NETFILTER_XT_MATCH_CONNBYTES is not set
# CONFIG_NETFILTER_XT_MATCH_CONNLABEL is not set
# CONFIG_NETFILTER_XT_MATCH_CONNLIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_CONNMARK is not set
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
# CONFIG_NETFILTER_XT_MATCH_CPU is not set
# CONFIG_NETFILTER_XT_MATCH_DCCP is not set
# CONFIG_NETFILTER_XT_MATCH_DEVGROUP is not set
# CONFIG_NETFILTER_XT_MATCH_DSCP is not set
# CONFIG_NETFILTER_XT_MATCH_ECN is not set
# CONFIG_NETFILTER_XT_MATCH_ESP is not set
# CONFIG_NETFILTER_XT_MATCH_HASHLIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_HELPER is not set
# CONFIG_NETFILTER_XT_MATCH_HL is not set
# CONFIG_NETFILTER_XT_MATCH_IPCOMP is not set
# CONFIG_NETFILTER_XT_MATCH_IPRANGE is not set
# CONFIG_NETFILTER_XT_MATCH_L2TP is not set
# CONFIG_NETFILTER_XT_MATCH_LENGTH is not set
# CONFIG_NETFILTER_XT_MATCH_LIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_MAC is not set
# CONFIG_NETFILTER_XT_MATCH_MARK is not set
# CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set
# CONFIG_NETFILTER_XT_MATCH_NFACCT is not set
# CONFIG_NETFILTER_XT_MATCH_OWNER is not set
# CONFIG_NETFILTER_XT_MATCH_POLICY is not set
# CONFIG_NETFILTER_XT_MATCH_PHYSDEV is not set
# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
# CONFIG_NETFILTER_XT_MATCH_QUOTA is not set
# CONFIG_NETFILTER_XT_MATCH_RATEEST is not set
# CONFIG_NETFILTER_XT_MATCH_REALM is not set
# CONFIG_NETFILTER_XT_MATCH_RECENT is not set
# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
# CONFIG_NETFILTER_XT_MATCH_STATE is not set
# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set
# CONFIG_NETFILTER_XT_MATCH_STRING is not set
# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
CONFIG_NF_DEFRAG_IPV4=m
CONFIG_NF_CONNTRACK_IPV4=m
# CONFIG_NF_SOCKET_IPV4 is not set
# CONFIG_NF_DUP_IPV4 is not set
# CONFIG_NF_LOG_ARP is not set
CONFIG_NF_LOG_IPV4=m
CONFIG_NF_REJECT_IPV4=m
CONFIG_NF_NAT_IPV4=m
CONFIG_NF_NAT_MASQUERADE_IPV4=m
# CONFIG_NF_NAT_PPTP is not set
# CONFIG_NF_NAT_H323 is not set
CONFIG_NF_DEFRAG_IPV6=m
CONFIG_NF_CONNTRACK_IPV6=m
# CONFIG_NF_SOCKET_IPV6 is not set
# CONFIG_NF_DUP_IPV6 is not set
CONFIG_NF_REJECT_IPV6=m
CONFIG_NF_LOG_IPV6=m
CONFIG_NF_NAT_IPV6=m
CONFIG_NF_NAT_MASQUERADE_IPV6=m
What am I missing? Should I enable it some other way instead of using
IMAGE_INSTALL_append? Do I need to enable more?
It seems you built many netfilter features/drivers as modules and not built-in in the kernel. When that is the case, you need to add the modules to your image because Yocto does not do it for you. Yocto splits each module in its own package. As a simple try, you can add the kernel-modules package to your image, it is a package that pulls all kernel module packages all at once. At least you'll know if there's another issue before pinpointing the exact kernel module package names you will want in your image (kernel-modules can be pretty big if you don't have a "clean" defconfig with many unnecessary drivers built as modules).

Cheers,
Quentin


error building core-image-full-cmdline image on kirkstone for powerpc 64 (meta-freescale, t1024rdb-64b machine)

Sona Sarmadi (ssarmadi) <ssarmadi@...>
 

Hi everyone,

 

I get some errors when I build “core-image-full-cmdline” for t1024rdb-64b machine. I fix the error then I get another one, so I wonder if anybody has seen these errors or if meta-freescale (kirkstone) has been tested/used by someone?

 

This is what I do:

  1. clone poky kirkstone
  2. clone meta-freescale kirskstone
  3. edit conf/local.conf and add: MACHINE ??= "t4240rdb-64b"
  4. edit conf/bblayer.conf and add meta-freescale layer
  5. bitbake core-image-full-cmdline

Here are the errors I get:

#error 1:

 

| make -f /home/sona/shared/yocto-kirkstone/builds/ppc64/tmp/work/t1024rdb_64b-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/scripts/Makefile.build obj=drivers
| powerpc-pokymllib32-linux-ld: board/freescale/t102xrdb/cpld.o:/home/sona/shared/yocto-kirkstone/builds/ppc64/tmp/work/t1024rdb_64b-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/
cpld.h:24: multiple definition of `cpld_data_t'; board/freescale/t102xrdb/t102xrdb.o:

/home/sona/shared/yocto-kirkstone/builds/ppc64/tmp/work/t1024rdb_64b-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/cpld.h:24: first defined here

 

 

Vim cpld.h +24

struct cpld_data {
        u8 cpld_ver;            /* 0x00 - CPLD Major Revision Register */
        u8 cpld_ver_sub;        /* 0x01 - CPLD Minor Revision Register */
        u8 hw_ver;              /* 0x02 - Hardware Revision Register */
        u8 sw_ver;              /* 0x03 - Software Revision register */
        u8 res0[12];            /* 0x04 - 0x0F - not used */
        u8 reset_ctl1;          /* 0x10 - Reset control Register1 */
        u8 reset_ctl2;          /* 0x11 - Reset control Register2 */
        u8 int_status;          /* 0x12 - Interrupt status Register */
        u8 flash_csr;           /* 0x13 - Flash control and status register */
        u8 fan_ctl_status;      /* 0x14 - Fan control and status register  */
        u8 led_ctl_status;      /* 0x15 - LED control and status register */
        u8 sfp_ctl_status;      /* 0x16 - SFP control and status register  */
        u8 misc_ctl_status;     /* 0x17 - Miscellanies ctrl & status register*/
        u8 boot_override;       /* 0x18 - Boot override register */
        u8 boot_config1;        /* 0x19 - Boot config override register*/
        u8 boot_config2;        /* 0x1A - Boot config override register*/
} cpld_data_t;

Is “cpld_data_t” supposed to be a type definition (as the “_t” suffix indicates) or a variable declaration? Variable declarations in header files need “extern” and an accompanying variable definition in some C file.

 

 

#error 2:

   File "../yocto- kirkstone/builds/ppc64/tmp/work/t1024rdb_64b-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/tools/binman/../binman/control.py", line 11, in <module>
|     import pkg_resources
| ModuleNotFoundError: No module named 'pkg_resources'

meta-freescale/recipes-bsp/u-boot/u-boot-qoriq_2021.04.bb

 

#error 3:

 

 ..yocto-kirkstone/builds/ppc64/tmp/work/t1024rdb_64b-poky-linux/lttng-modules/2.13.3-r0/lttng-modules-2.13.3/src/wrapper/kallsyms.c:20:3: error: #error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0"
|    20 | # error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0"

 

 

Thanks --Sona

 


nftables_0.7 not working

Maik Vermeulen
 

Hi,

I added the following to our image recipe:
IMAGE_INSTALL_append = " nftables"

When running that image, nftables seems to be included, but we get the following error:
~# nft
../../nftables-0.7/src/netlink.c:59: Unable to initialize Netlink socket: Protocol not supported

Furthermore, it's not showing in lsmod, and also not in modprobe --showconfigs.

This is the active kernel config:
root@agent336:~# zcat /proc/config.gz | grep "CONFIG_NF_\|CONFIG_NETFILTER_"
CONFIG_NETFILTER_ADVANCED=y
CONFIG_NETFILTER_INGRESS=y
# CONFIG_NETFILTER_NETLINK_ACCT is not set
# CONFIG_NETFILTER_NETLINK_QUEUE is not set
# CONFIG_NETFILTER_NETLINK_LOG is not set
CONFIG_NF_CONNTRACK=m
CONFIG_NF_LOG_COMMON=m
# CONFIG_NF_LOG_NETDEV is not set
# CONFIG_NF_CONNTRACK_MARK is not set
CONFIG_NF_CONNTRACK_PROCFS=y
CONFIG_NF_CONNTRACK_EVENTS=y
# CONFIG_NF_CONNTRACK_TIMEOUT is not set
# CONFIG_NF_CONNTRACK_TIMESTAMP is not set
CONFIG_NF_CT_PROTO_DCCP=y
CONFIG_NF_CT_PROTO_SCTP=y
CONFIG_NF_CT_PROTO_UDPLITE=y
# CONFIG_NF_CONNTRACK_AMANDA is not set
# CONFIG_NF_CONNTRACK_FTP is not set
# CONFIG_NF_CONNTRACK_H323 is not set
# CONFIG_NF_CONNTRACK_IRC is not set
# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
# CONFIG_NF_CONNTRACK_SNMP is not set
# CONFIG_NF_CONNTRACK_PPTP is not set
# CONFIG_NF_CONNTRACK_SANE is not set
# CONFIG_NF_CONNTRACK_SIP is not set
# CONFIG_NF_CONNTRACK_TFTP is not set
# CONFIG_NF_CT_NETLINK is not set
# CONFIG_NF_CT_NETLINK_TIMEOUT is not set
CONFIG_NF_NAT=m
CONFIG_NF_NAT_NEEDED=y
CONFIG_NF_NAT_PROTO_DCCP=y
CONFIG_NF_NAT_PROTO_UDPLITE=y
CONFIG_NF_NAT_PROTO_SCTP=y
# CONFIG_NF_NAT_AMANDA is not set
# CONFIG_NF_NAT_FTP is not set
# CONFIG_NF_NAT_IRC is not set
# CONFIG_NF_NAT_SIP is not set
# CONFIG_NF_NAT_TFTP is not set
# CONFIG_NF_NAT_REDIRECT is not set
# CONFIG_NF_TABLES is not set
CONFIG_NETFILTER_XTABLES=m
# CONFIG_NETFILTER_XT_MARK is not set
# CONFIG_NETFILTER_XT_CONNMARK is not set
# CONFIG_NETFILTER_XT_TARGET_AUDIT is not set
CONFIG_NETFILTER_XT_TARGET_CHECKSUM=m
# CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set
# CONFIG_NETFILTER_XT_TARGET_CONNMARK is not set
# CONFIG_NETFILTER_XT_TARGET_DSCP is not set
# CONFIG_NETFILTER_XT_TARGET_HL is not set
# CONFIG_NETFILTER_XT_TARGET_HMARK is not set
# CONFIG_NETFILTER_XT_TARGET_IDLETIMER is not set
# CONFIG_NETFILTER_XT_TARGET_LED is not set
CONFIG_NETFILTER_XT_TARGET_LOG=m
# CONFIG_NETFILTER_XT_TARGET_MARK is not set
CONFIG_NETFILTER_XT_NAT=m
# CONFIG_NETFILTER_XT_TARGET_NETMAP is not set
# CONFIG_NETFILTER_XT_TARGET_NFLOG is not set
# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
# CONFIG_NETFILTER_XT_TARGET_RATEEST is not set
# CONFIG_NETFILTER_XT_TARGET_REDIRECT is not set
# CONFIG_NETFILTER_XT_TARGET_TEE is not set
# CONFIG_NETFILTER_XT_TARGET_TPROXY is not set
# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set
# CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
# CONFIG_NETFILTER_XT_MATCH_BPF is not set
# CONFIG_NETFILTER_XT_MATCH_CGROUP is not set
# CONFIG_NETFILTER_XT_MATCH_CLUSTER is not set
# CONFIG_NETFILTER_XT_MATCH_COMMENT is not set
# CONFIG_NETFILTER_XT_MATCH_CONNBYTES is not set
# CONFIG_NETFILTER_XT_MATCH_CONNLABEL is not set
# CONFIG_NETFILTER_XT_MATCH_CONNLIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_CONNMARK is not set
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
# CONFIG_NETFILTER_XT_MATCH_CPU is not set
# CONFIG_NETFILTER_XT_MATCH_DCCP is not set
# CONFIG_NETFILTER_XT_MATCH_DEVGROUP is not set
# CONFIG_NETFILTER_XT_MATCH_DSCP is not set
# CONFIG_NETFILTER_XT_MATCH_ECN is not set
# CONFIG_NETFILTER_XT_MATCH_ESP is not set
# CONFIG_NETFILTER_XT_MATCH_HASHLIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_HELPER is not set
# CONFIG_NETFILTER_XT_MATCH_HL is not set
# CONFIG_NETFILTER_XT_MATCH_IPCOMP is not set
# CONFIG_NETFILTER_XT_MATCH_IPRANGE is not set
# CONFIG_NETFILTER_XT_MATCH_L2TP is not set
# CONFIG_NETFILTER_XT_MATCH_LENGTH is not set
# CONFIG_NETFILTER_XT_MATCH_LIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_MAC is not set
# CONFIG_NETFILTER_XT_MATCH_MARK is not set
# CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set
# CONFIG_NETFILTER_XT_MATCH_NFACCT is not set
# CONFIG_NETFILTER_XT_MATCH_OWNER is not set
# CONFIG_NETFILTER_XT_MATCH_POLICY is not set
# CONFIG_NETFILTER_XT_MATCH_PHYSDEV is not set
# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
# CONFIG_NETFILTER_XT_MATCH_QUOTA is not set
# CONFIG_NETFILTER_XT_MATCH_RATEEST is not set
# CONFIG_NETFILTER_XT_MATCH_REALM is not set
# CONFIG_NETFILTER_XT_MATCH_RECENT is not set
# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
# CONFIG_NETFILTER_XT_MATCH_STATE is not set
# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set
# CONFIG_NETFILTER_XT_MATCH_STRING is not set
# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
CONFIG_NF_DEFRAG_IPV4=m
CONFIG_NF_CONNTRACK_IPV4=m
# CONFIG_NF_SOCKET_IPV4 is not set
# CONFIG_NF_DUP_IPV4 is not set
# CONFIG_NF_LOG_ARP is not set
CONFIG_NF_LOG_IPV4=m
CONFIG_NF_REJECT_IPV4=m
CONFIG_NF_NAT_IPV4=m
CONFIG_NF_NAT_MASQUERADE_IPV4=m
# CONFIG_NF_NAT_PPTP is not set
# CONFIG_NF_NAT_H323 is not set
CONFIG_NF_DEFRAG_IPV6=m
CONFIG_NF_CONNTRACK_IPV6=m
# CONFIG_NF_SOCKET_IPV6 is not set
# CONFIG_NF_DUP_IPV6 is not set
CONFIG_NF_REJECT_IPV6=m
CONFIG_NF_LOG_IPV6=m
CONFIG_NF_NAT_IPV6=m
CONFIG_NF_NAT_MASQUERADE_IPV6=m

What am I missing? Should I enable it some other way instead of using IMAGE_INSTALL_append? Do I need to enable more?

Thanks,
Kind regards,

Maik Vermeulen

Embedded Software Engineer — Lightyear






Automotive Campus 70 —5708 JZ Helmond, the Netherlands

This email may contain information which is privileged and/or confidential. If you received this e-mail in error, please notify us immediately by e-mail and delete the email without copying or disclosing its contents to any other person. Lightyear is a trade name of Atlas Technologies B.V. and is registered at the Dutch Chamber of Commerce under number 67264298. 


Re: Re : rdepends upon non-existent task do_package_write_deb

Poornesh G ( India - Bangalore )
 

Thanks for your valuable reply .

I followed the procedure which you have mentioned i.e added IMAGE_INSTALL:append = " go.opentelemetry.io-proto-otlp" in local.conf file. After that I am getting this error , can you please suggest me where I need to modify .

------------------------------------------------------------------------

user@user-Latitude-3490:~/yocto/imx_krikstone/build$ bitbake core-image-minimal
WARNING: You have included the meta-virtualization layer, but 'virtualization' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-virtualization README for details on enabling virtualization support.
Loading cache: 100% |############################################################################################################| Time: 0:00:00
Loaded 5514 entries from dependency cache.
Parsing recipes: 100% |##########################################################################################################| Time: 0:00:00
Parsing of 3954 .bb files complete (3953 cached, 1 parsed). 5514 targets, 658 skipped, 5 masked, 0 errors.
Removing 1 recipes from the cortexa7t2hf-neon sysroot: 100% |####################################################################| Time: 0:00:00
Removing 1 recipes from the imx6ul_pds sysroot: 100% |###########################################################################| Time: 0:00:00
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'go.opentelemetry.io-proto-otlp' (but /home/user/yocto/imx_krikstone/sources/poky/meta/recipes-core/images/core-image-minimal.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'go.opentelemetry.io-proto-otlp' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['go.opentelemetry.io-proto-otlp']
ERROR: Required build target 'core-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal', 'go.opentelemetry.io-proto-otlp']

------------------------------------------------------------------------

Thanks in advance


Re: os-release change - build failure #bitbake #os-release

Martin Jansa
 

On Sun, Jul 31, 2022 at 11:56:24PM -0700, Gangadhar N wrote:
Hi All,
I made below change in recipes-core/os-release/os-release.bbappend. It results in build failure. Please give me pointers to resolve the issue.
I deleted build/cache and build/sstate-cache. But it didn't resolve the issue.
Use exiting DATETIME variable and add it to vardepsexclude if it isn't
already there.


Thanks & Regards,
Gangadhar

Change made:
--------------------

@@ -18,7 +18,7 @@ python() {
if target_machine:
d.setVar('OPENBMC_TARGET_MACHINE', target_machine)

-    date_str = bb.process.run('date +"%Y%m%d-%H"')[0].strip('\n')
+    date_str = bb.process.run('date +"%Y-%m-%d %H:%M:%S"')[0].strip('\n')

version_id = "${DISTRO_VERSION}" + "-" + date_str

Original code:
___________

python() {
target_machine = d.getVar('MACHINE', True)
if target_machine:
d.setVar('OPENBMC_TARGET_MACHINE', target_machine)

date_str = bb.process.run('date +"%Y%m%d-%H"')[0].strip('\n')

version_id = "${DISTRO_VERSION}" + "-" + date_str

git_description = run_git(d, 'describe --dirty --long')

d.setVar('VERSION_ID', version_id)
build_id = git_description
d.setVar('BUILD_ID', build_id)
}

-----------------------------Error log--------------------------------------------------
ERROR: When reparsing /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile, the basehash value changed from d097fd959c9279c6f46ce70c65b20dd566269c3b3ff068543a49dbd5ba0e2b6a to 536804bd358edc0dc61059e12c5b5e4a2e6d4658c0d4ec4ff9cf39fceb769f1f. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake os-release -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake os-release -cdo_compile -Sprintdiff

ERROR: os-release-1.0-r0 do_compile: Taskhash mismatch ab507017c7cb41dee34112e53705212c320f8432ebd0368d161f173aa97083c3 versus 4de80f60ca66d55cec2c36ddf5470b295be215dacede6e0dba0c698b81fde649 for /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile
ERROR: Taskhash mismatch ab507017c7cb41dee34112e53705212c320f8432ebd0368d161f173aa97083c3 versus 4de80f60ca66d55cec2c36ddf5470b295be215dacede6e0dba0c698b81fde649 for /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile
ERROR: When reparsing /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile, the basehash value changed from d097fd959c9279c6f46ce70c65b20dd566269c3b3ff068543a49dbd5ba0e2b6a to 536804bd358edc0dc61059e12c5b5e4a2e6d4658c0d4ec4ff9cf39fceb769f1f. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake os-release -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake os-release -cdo_compile -Sprintdiff

ERROR: When reparsing /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile, the basehash value changed from d097fd959c9279c6f46ce70c65b20dd566269c3b3ff068543a49dbd5ba0e2b6a to 536804bd358edc0dc61059e12c5b5e4a2e6d4658c0d4ec4ff9cf39fceb769f1f. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake os-release -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake os-release -cdo_compile -Sprintdiff

ERROR: When reparsing /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile, the basehash value changed from d097fd959c9279c6f46ce70c65b20dd566269c3b3ff068543a49dbd5ba0e2b6a to 536804bd358edc0dc61059e12c5b5e4a2e6d4658c0d4ec4ff9cf39fceb769f1f. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake os-release -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake os-release -cdo_compile -Sprintdiff



os-release change - build failure #bitbake #os-release

Gangadhar N
 

Hi All,
I made below change in recipes-core/os-release/os-release.bbappend. It results in build failure. Please give me pointers to resolve the issue.
I deleted build/cache and build/sstate-cache. But it didn't resolve the issue.

Thanks & Regards,
Gangadhar


Change made:
--------------------

@@ -18,7 +18,7 @@ python() {
     if target_machine:
         d.setVar('OPENBMC_TARGET_MACHINE', target_machine)
 
-    date_str = bb.process.run('date +"%Y%m%d-%H"')[0].strip('\n')
+    date_str = bb.process.run('date +"%Y-%m-%d %H:%M:%S"')[0].strip('\n')
 
     version_id = "${DISTRO_VERSION}" + "-" + date_str


Original code:
___________

python() {
    target_machine = d.getVar('MACHINE', True)
    if target_machine:
        d.setVar('OPENBMC_TARGET_MACHINE', target_machine)
 
    date_str = bb.process.run('date +"%Y%m%d-%H"')[0].strip('\n')
 
    version_id = "${DISTRO_VERSION}" + "-" + date_str
 
    git_description = run_git(d, 'describe --dirty --long')
 
    d.setVar('VERSION_ID', version_id)
    build_id = git_description
    d.setVar('BUILD_ID', build_id)
}


-----------------------------Error log--------------------------------------------------
ERROR: When reparsing /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile, the basehash value changed from d097fd959c9279c6f46ce70c65b20dd566269c3b3ff068543a49dbd5ba0e2b6a to 536804bd358edc0dc61059e12c5b5e4a2e6d4658c0d4ec4ff9cf39fceb769f1f. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake os-release -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake os-release -cdo_compile -Sprintdiff
 
ERROR: os-release-1.0-r0 do_compile: Taskhash mismatch ab507017c7cb41dee34112e53705212c320f8432ebd0368d161f173aa97083c3 versus 4de80f60ca66d55cec2c36ddf5470b295be215dacede6e0dba0c698b81fde649 for /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile
ERROR: Taskhash mismatch ab507017c7cb41dee34112e53705212c320f8432ebd0368d161f173aa97083c3 versus 4de80f60ca66d55cec2c36ddf5470b295be215dacede6e0dba0c698b81fde649 for /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile
ERROR: When reparsing /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile, the basehash value changed from d097fd959c9279c6f46ce70c65b20dd566269c3b3ff068543a49dbd5ba0e2b6a to 536804bd358edc0dc61059e12c5b5e4a2e6d4658c0d4ec4ff9cf39fceb769f1f. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake os-release -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake os-release -cdo_compile -Sprintdiff
 
ERROR: When reparsing /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile, the basehash value changed from d097fd959c9279c6f46ce70c65b20dd566269c3b3ff068543a49dbd5ba0e2b6a to 536804bd358edc0dc61059e12c5b5e4a2e6d4658c0d4ec4ff9cf39fceb769f1f. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake os-release -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake os-release -cdo_compile -Sprintdiff
 
ERROR: When reparsing /home/gangadhar/openbmc/meta/recipes-core/os-release/os-release.bb:do_compile, the basehash value changed from d097fd959c9279c6f46ce70c65b20dd566269c3b3ff068543a49dbd5ba0e2b6a to 536804bd358edc0dc61059e12c5b5e4a2e6d4658c0d4ec4ff9cf39fceb769f1f. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake os-release -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake os-release -cdo_compile -Sprintdiff


[meta-security][v2][PATCH] lkrg: update to 0.9.4

Armin Kuster
 

drop Makefile fixup patch. Use sed instead

LIC_FILES_CHKSUM update do to yr update

Signed-off-by: Armin Kuster <akuster808@...>

---
V2]
Add LIC_FILES_CHKSUM change reason
---
.../lkrg/files/makefile_cleanup.patch | 53 -------------------
...g-module_0.9.3.bb => lkrg-module_0.9.4.bb} | 16 +++---
2 files changed, 10 insertions(+), 59 deletions(-)
delete mode 100644 recipes-kernel/lkrg/files/makefile_cleanup.patch
rename recipes-kernel/lkrg/{lkrg-module_0.9.3.bb => lkrg-module_0.9.4.bb} (70%)

diff --git a/recipes-kernel/lkrg/files/makefile_cleanup.patch b/recipes-kernel/lkrg/files/makefile_cleanup.patch
deleted file mode 100644
index f29afbe..0000000
--- a/recipes-kernel/lkrg/files/makefile_cleanup.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-Upstream-Status: Inappropriate [embedded specific]
-
-Signed-off-by: Armin Kuster <akuster808@...>
-
-
-Index: git/Makefile
-===================================================================
---- git.orig/Makefile
-+++ git/Makefile
-@@ -7,15 +7,8 @@
-
- P_OUTPUT = output
- P_PWD ?= $(shell pwd)
--P_KVER ?= $(shell uname -r)
- P_BOOTUP_SCRIPT ?= scripts/bootup/lkrg-bootup.sh
- TARGET := p_lkrg
--ifneq ($(KERNELRELEASE),)
-- KERNEL := /lib/modules/$(KERNELRELEASE)/build
--else
-- ## KERNELRELEASE not set.
-- KERNEL := /lib/modules/$(P_KVER)/build
--endif
-
- #
- # Use DEBUG=on for debug build.
-@@ -94,14 +87,13 @@ $(TARGET)-objs += src/modules/ksyms/p_re
- src/p_lkrg_main.o
-
-
--all:
--# $(MAKE) -C $(KERNEL) M=$(P_PWD) modules CONFIG_DEBUG_SECTION_MISMATCH=y
-- $(MAKE) -C $(KERNEL) M=$(P_PWD) modules
-+modules:
-+ $(MAKE) -C $(KERNEL_SRC) M=$(P_PWD) modules
- mkdir -p $(P_OUTPUT)
- cp $(P_PWD)/$(TARGET).ko $(P_OUTPUT)
-
--install:
-- $(MAKE) -C $(KERNEL) M=$(P_PWD) modules_install
-+moduled_install:
-+ $(MAKE) -C $(KERNEL_SRC) M=$(P_PWD) modules_install
- depmod -a
- $(P_PWD)/$(P_BOOTUP_SCRIPT) install
-
-@@ -109,7 +101,7 @@ uninstall:
- $(P_PWD)/$(P_BOOTUP_SCRIPT) uninstall
-
- clean:
-- $(MAKE) -C $(KERNEL) M=$(P_PWD) clean
-+ $(MAKE) -C $(KERNEL_SRC) M=$(P_PWD) clean
- $(RM) Module.markers modules.order
- $(RM) $(P_PWD)/src/modules/kmod/client/kmod/Module.markers
- $(RM) $(P_PWD)/src/modules/kmod/client/kmod/modules.order
diff --git a/recipes-kernel/lkrg/lkrg-module_0.9.3.bb b/recipes-kernel/lkrg/lkrg-module_0.9.4.bb
similarity index 70%
rename from recipes-kernel/lkrg/lkrg-module_0.9.3.bb
rename to recipes-kernel/lkrg/lkrg-module_0.9.4.bb
index 2553974..fa46cb6 100644
--- a/recipes-kernel/lkrg/lkrg-module_0.9.3.bb
+++ b/recipes-kernel/lkrg/lkrg-module_0.9.4.bb
@@ -5,15 +5,13 @@ SECTION = "security"
HOMEPAGE = "https://www.openwall.com/lkrg/"
LICENSE = "GPL-2.0-only"

-LIC_FILES_CHKSUM = "file://LICENSE;md5=5105ead24b08a32954f34cbaa7112432"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3f3e5dd56319d33a1944d635c1c86c6f"

DEPENDS = "virtual/kernel elfutils"

-SRC_URI = "git://github.com/lkrg-org/lkrg.git;protocol=https;branch=main \
- file://makefile_cleanup.patch \
-"
+SRC_URI = "git://github.com/lkrg-org/lkrg.git;protocol=https;branch=main"

-SRCREV = "c578e9f786299b67ffd62057b4534b0bf4fb7ece"
+SRCREV = "c58cb52145b8e8ccc6bd19079f5c835933281cdc"

S = "${WORKDIR}/git"

@@ -21,7 +19,13 @@ inherit module kernel-module-split

MAKE_TARGETS = "modules"

-MODULE_NAME = "p_lkrg"
+MODULE_NAME = "lkrg"
+
+do_configure:append () {
+ sed -i -e 's/^all/modules/' ${S}/Makefile
+ sed -i -e 's/^install/modules_install/' ${S}/Makefile
+ sed -i -e 's/KERNEL/KERNEL_SRC/g' ${S}/Makefile
+}

module_do_install() {
install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}
--
2.25.1


[meta-security][PATCH] lkrg: update to 0.9.4

Armin Kuster
 

drop Makefile fixup patch. Use sed instead

Signed-off-by: Armin Kuster <akuster808@...>
---
.../lkrg/files/makefile_cleanup.patch | 53 -------------------
...g-module_0.9.3.bb => lkrg-module_0.9.4.bb} | 16 +++---
2 files changed, 10 insertions(+), 59 deletions(-)
delete mode 100644 recipes-kernel/lkrg/files/makefile_cleanup.patch
rename recipes-kernel/lkrg/{lkrg-module_0.9.3.bb => lkrg-module_0.9.4.bb} (70%)

diff --git a/recipes-kernel/lkrg/files/makefile_cleanup.patch b/recipes-kernel/lkrg/files/makefile_cleanup.patch
deleted file mode 100644
index f29afbe..0000000
--- a/recipes-kernel/lkrg/files/makefile_cleanup.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-Upstream-Status: Inappropriate [embedded specific]
-
-Signed-off-by: Armin Kuster <akuster808@...>
-
-
-Index: git/Makefile
-===================================================================
---- git.orig/Makefile
-+++ git/Makefile
-@@ -7,15 +7,8 @@
-
- P_OUTPUT = output
- P_PWD ?= $(shell pwd)
--P_KVER ?= $(shell uname -r)
- P_BOOTUP_SCRIPT ?= scripts/bootup/lkrg-bootup.sh
- TARGET := p_lkrg
--ifneq ($(KERNELRELEASE),)
-- KERNEL := /lib/modules/$(KERNELRELEASE)/build
--else
-- ## KERNELRELEASE not set.
-- KERNEL := /lib/modules/$(P_KVER)/build
--endif
-
- #
- # Use DEBUG=on for debug build.
-@@ -94,14 +87,13 @@ $(TARGET)-objs += src/modules/ksyms/p_re
- src/p_lkrg_main.o
-
-
--all:
--# $(MAKE) -C $(KERNEL) M=$(P_PWD) modules CONFIG_DEBUG_SECTION_MISMATCH=y
-- $(MAKE) -C $(KERNEL) M=$(P_PWD) modules
-+modules:
-+ $(MAKE) -C $(KERNEL_SRC) M=$(P_PWD) modules
- mkdir -p $(P_OUTPUT)
- cp $(P_PWD)/$(TARGET).ko $(P_OUTPUT)
-
--install:
-- $(MAKE) -C $(KERNEL) M=$(P_PWD) modules_install
-+moduled_install:
-+ $(MAKE) -C $(KERNEL_SRC) M=$(P_PWD) modules_install
- depmod -a
- $(P_PWD)/$(P_BOOTUP_SCRIPT) install
-
-@@ -109,7 +101,7 @@ uninstall:
- $(P_PWD)/$(P_BOOTUP_SCRIPT) uninstall
-
- clean:
-- $(MAKE) -C $(KERNEL) M=$(P_PWD) clean
-+ $(MAKE) -C $(KERNEL_SRC) M=$(P_PWD) clean
- $(RM) Module.markers modules.order
- $(RM) $(P_PWD)/src/modules/kmod/client/kmod/Module.markers
- $(RM) $(P_PWD)/src/modules/kmod/client/kmod/modules.order
diff --git a/recipes-kernel/lkrg/lkrg-module_0.9.3.bb b/recipes-kernel/lkrg/lkrg-module_0.9.4.bb
similarity index 70%
rename from recipes-kernel/lkrg/lkrg-module_0.9.3.bb
rename to recipes-kernel/lkrg/lkrg-module_0.9.4.bb
index 2553974..fa46cb6 100644
--- a/recipes-kernel/lkrg/lkrg-module_0.9.3.bb
+++ b/recipes-kernel/lkrg/lkrg-module_0.9.4.bb
@@ -5,15 +5,13 @@ SECTION = "security"
HOMEPAGE = "https://www.openwall.com/lkrg/"
LICENSE = "GPL-2.0-only"

-LIC_FILES_CHKSUM = "file://LICENSE;md5=5105ead24b08a32954f34cbaa7112432"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3f3e5dd56319d33a1944d635c1c86c6f"

DEPENDS = "virtual/kernel elfutils"

-SRC_URI = "git://github.com/lkrg-org/lkrg.git;protocol=https;branch=main \
- file://makefile_cleanup.patch \
-"
+SRC_URI = "git://github.com/lkrg-org/lkrg.git;protocol=https;branch=main"

-SRCREV = "c578e9f786299b67ffd62057b4534b0bf4fb7ece"
+SRCREV = "c58cb52145b8e8ccc6bd19079f5c835933281cdc"

S = "${WORKDIR}/git"

@@ -21,7 +19,13 @@ inherit module kernel-module-split

MAKE_TARGETS = "modules"

-MODULE_NAME = "p_lkrg"
+MODULE_NAME = "lkrg"
+
+do_configure:append () {
+ sed -i -e 's/^all/modules/' ${S}/Makefile
+ sed -i -e 's/^install/modules_install/' ${S}/Makefile
+ sed -i -e 's/KERNEL/KERNEL_SRC/g' ${S}/Makefile
+}

module_do_install() {
install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}
--
2.25.1


comparison between two build of different times #sdk #toolchain #ubuntu #yocto #linux

Nikita Gupta <nikitagupta2509@...>
 

Hello Everyone,
I have generated two build with different platform for same target  (core-image-minimal) and for same yocto release "dunfell" . One image I have generated with the help of yocto project and one is from "KAS" by making YML File .Now I am not getting any suitable way of differentiation between these two binary files for following reason .
1. Are those build same or not .
2. There version are same or not .
4. Those Hash keys same or not .
3. What things could be different ? 
I am trying to find out the way so i could do comparison between those binary files .
Your replies would be appreciated . Thanks in advance