Support filenames with i18n chars
Hello,
I am trying to get filenames with utf-8 chars to appear correctly when doing the "ls" command. Currently, "ls" will output the filename but replace the international char with "?". For example it will output "/tmp/h??llo" rather than "/tmp/hallo" (a with an umlaut). If I set the LANG=en_US.utf-8, that seems to fix the issue. But I have other embedded devices (not built by Yocto) that don't have LANG set that will output correctly.
I have tried the kernel config CONFIG_NLS_DEFAULT="utf8", but that did not help. I have also added numerous the glibc-locale packages to the image but that also doesn't seem to help.
"locale -a" outputs "C POSIX en_US en_US.utf8 es_ES ... (etc etc)" "locale -m" outputs only "UTF-8" "localedef -c -f UTF-8 -i en_US en_US.UTF-8" seems to succeed. "locale" outputs "LANG= LC_*="POSIX" LC_ALL="
Any help is appreciated. Rusty Howell
|
|
#yocto #zeus Problem with moving from rocko to zeus
#yocto
#zeus
Hello,
I am trying to upgrade my distro from rocko to zeus. After I fixed all the initial parsing and build problems I have reached a point where the linux-imx doesn't build. Maybe I am underestimating the task in front of me, but I have already seen it done.
The error looks like this:
| .../kernel-source/Makefile:947: recipe for target 'fs' failed | make[2]: *** [fs] Error 2 | Makefile:146: recipe for target 'sub-make' failed | make[1]: *** [sub-make] Error 2 | Makefile:24: recipe for target '__sub-make' failed | make: *** [__sub-make] Error 2 | WARNING: exit code 1 from a shell command. | ERROR: Task (.../meta-mylayer/recipes-kernel/linux/linux-imx_4.1.15.bb:do_compile) failed with exit code '1'
Is it possible that I am using the wrong linux-imx version? I have tried a few but to no avail.
Thanks in advance.
Best regards, Dule
|
|
On Thu, 2022-02-10 at 16:30 +0000, Raj, Khem wrote: Can we then keep meta-agl for LTS and master only ? as it seems that’s what it is going to support Yes, I got a reply from Scott/Jan-Simon saying to not test this on honister going forward so I'll make that change. That shouldn't therefore block this going into QA, just a question of the sstate issues. If we did block on those, I'm not sure when we'd have them fixed by :/ Cheers, Richard
|
|
Can we then keep meta-agl for LTS and master only ? as it seems that’s what it is going to support
From: tsc@... <tsc@...> on behalf of Richard Purdie <richard.purdie@...>
Date: Thursday, February 10, 2022 at 2:45 AM
To: qa-build-notification <qa-build-notification@...>, Yocto TSC <tsc@...>, <yocto@...>
Cc: Teoh, Jay Shen <jay.shen.teoh@...>, Mittal, Anuj <anuj.mittal@...>, Michael Halstead <mhalstead@...>, Jan-Simon Moeller <dl9pf@...>, Scott Murray <scott.murray@...>
Subject: [EXTERNAL] [tsc] 3.4.2 rc1 QA
3.4.2 rc1 was built on the autobuilder. It didn't send the QA email as that is
broken. I haven't sent it manually as we need to decide what to do with this
build. There was one failure and 8 warnings.
The failure was with meta-agl. As far as I know agl doesn't support honister and
the next branch has moved on for kirkstone. There is therefore an open question
about what we configure the autobuilder to do there.
The warnings all look to be from SDK testing with sstate server networking
issues. They shouldn't break the release and I don't believe there is any code
side issue beyond the server one.
Thoughts?
[Yes, we need to get these things fixed, I know. They are being worked on. I'm
resorting to merging master stuff blind at this point too as the issues affect
that as well.]
Cheers,
Richard
|
|
Re: Upgrading Yocto without rebuilding instances
#yocto
Hello
IIRC you can prepare configuration for Zeus and run build, lots of things probable will need to be rebuild
as there will be in different versions but if only U-Boot is a problem then maybe you could stay on Hardknott
version and only change the U-Boot version? Could you please share some more information about your build?
Which layers are you using? Do you have some custom layer?
Greetings
--
Tomasz Żyjewski Embedded Systems Engineer GPG: 5C495EA3EBEECA59 https://3mdeb.com | @3mdeb_com
|
|
Upgrading Yocto without rebuilding instances
#yocto
Hello everyone,
Say I built Yocto for the latest build for instance Hardknott. Let’s say I need to build for Zeus instead (and hopefully keep everything I built [that doesn’t need to be updated]).
Has anyone done this?
Outside of building a whole new Yocto distribution from scratch… What else can I do?
I have to rebuild Yocto with an older version because apparently there is some issue with Uboot that is not able to be built correctly.
|
|
Re: Problems building eSDK: Exception: variable BBFILES references itself!
Richard,
toggle quoted messageShow quoted text
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 3:59 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 20:19 +0000, Bryan Evenson wrote:
Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 2:47 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 19:36 +0000, Bryan Evenson wrote:
Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 1:51 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 18:10 +0000, Bryan Evenson wrote:
Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 12:25 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 16:51 +0000, Bryan Evenson wrote:
All,
I've used the SDK in the past and want to start using the eSDK for my project.
I'm on the dunfell branch. I'm trying to build the eSDK for my image by calling:
bitbake <my_image_name> -c populate_sdk_ext
The sdk generation fails with the error in the subject. I haven't been able to find any documentation on what this means or how to fix it. I've tried deleting my tmp directory and running cleansstate on my image and I still get the same error. I've also tried generating the eSDK for core-image-minimal and I have the same error. I can generate the SDK successfully, just not the eSDK. I have copied more of the build output below if it helps.
Note that I have replaced some text that I'm paranoid about publishing on the internet; the modified text is enclosed with <>.
Does anyone have any insight as to why the eSDK build is failing? Could you share what bitbake -e shows BBFILES as being set to? The variable history from that command for the variable may also be
helpful.
There has to be something different to how you're setting it compared to what we test on the autobuilder.
Cheers,
Richard Here's what I was able to pull from bitbake -e. I've included details for both BBFILES and BBFILES_DYNAMIC. Let me know if anything else would be helpful. Thanks, I'm not seeing anything too odd there. I guess next we need to see the bblayers.conf that the code is building into the eSDK and compare it to your original conf/bblayer.conf.
The generated file should be in the eSDK image directory somewhere, I'm not able to look up the exact path right now. Let me know if you can't
find it.
Lets see if the two bblayers.conf files look different and introduce some issue.
I think I found what you were looking for under the image tmp working directory at sdk-ext/image/temp-renamed-sdk/conf/bblayers.conf. Here's a comparison of my original bblayers.conf in my tmp directory and the generated bblayers.conf for the eSDK. I confirmed that the layers directory is present and contains all the layers as listed in the generated bblayers.conf.
##########################################################
############
### # # Contents of my original bblayers.conf #
##########################################################
############
### # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf # changes incompatibly POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}" BBFILES ?= ""
BBLAYERS ?= " \ <my_home_dir>/poky/<my_custom_layer1> \ <my_home_dir>/poky/<my_custom_layer2> \ <my_home_dir>/poky/meta-bacnet \ <my_home_dir>/poky/meta-atmel \ <my_home_dir>/poky/meta \ <my_home_dir>/poky/meta-poky \ <my_home_dir>/poky/meta-yocto-bsp \ <my_home_dir>/poky/meta-openembedded/meta-oe \ <my_home_dir>/poky/meta-openembedded/meta-networking \ <my_home_dir>/poky/meta-openembedded/meta-python \ <my_home_dir>/poky/poky-build/workspace \ " BBLAYERS_NON_REMOVABLE ?= " \ <my_home_dir>/poky/meta \ <my_home_dir>/poky/meta-poky \ "
##########################################################
############
### # # Contents of my <img_tmp_work_dir>/sdk-ext/image/tmp-renamed- sdk/conf/bblayers.conf
#
##########################################################
############
### # WARNING: this configuration has been automatically generated and in # most cases should not be edited. If you need more flexibility than # this configuration provides, it is strongly suggested that you set # up a proper instance of the full build system and use that instead.
BBPATH = "${TOPDIR}" SDKBASEMETAPATH = "${TOPDIR}" BBLAYERS := " \ ${SDKBASEMETAPATH}/layers/poky/<my_custom_layer1> \ ${SDKBASEMETAPATH}/layers/poky/<my_custom_layer2> \ ${SDKBASEMETAPATH}/layers/poky/meta-bacnet \ ${SDKBASEMETAPATH}/layers/poky/meta-atmel \ ${SDKBASEMETAPATH}/layers/poky/meta \ ${SDKBASEMETAPATH}/layers/poky/meta-poky \ ${SDKBASEMETAPATH}/layers/poky/meta-yocto-bsp \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta-oe \
${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta- networking \
${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta- python \
${SDKBASEMETAPATH}/workspace \ "
Let me know if anything else would be helpful for diagnosing this issue. I'm now wondering what happens if you remove
<my_home_dir>/poky/poky-build/workspace \
since I suspect your local workspace probably doesn't make sense in the eSDK? Could you try temporarily removing that and see if that helps?
The BBFILES entry in one of these layer.conf files is probably causing some issue but I can't easily know which one. You could remove some of the other layers to try and see if you identify where the
issue is from too?
This is odd. I removed the workspace from my local bblayers.conf. I executed:
bitbake -c cleansstate image bitbake image bitbake image -c populate_sdk_ext
I got the same error message as before. Also, the bblayers.conf in the tmp- sdk-ext directory still contains the workspace directory in the BBLAYERS list.
I then switched and built core-image-minimal the same way, and I'm getting the same error. I checked BBLAYERS in bitbake -e for core-image-minimal, and the workspace directory is not listed. I don’t know how populate_sdk_ext is pulling the workspace directory into BBLAYERS. Any ideas?
I suspect the eSDK adds a workspace for the devtool and similar workflows so that piece may be normal and perhaps it was conflicting with your existing workspace? I have to admit I don't remember if it does that or not offhand but it could.
If that were the case, it is sounding like the conflict may be with some other layer instead.
Cheers,
Richard I found it. In one of my layers, instead of: BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" I had: BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend" I know I looked at that line a few times in the last day and never noticed the problem. This has been like this on my layer for a long time. Not sure how this has built without issue for the last eight years. Thanks for the assistance. Thanks, Bryan
|
|
3.4.2 rc1 was built on the autobuilder. It didn't send the QA email as that is broken. I haven't sent it manually as we need to decide what to do with this build. There was one failure and 8 warnings.
The failure was with meta-agl. As far as I know agl doesn't support honister and the next branch has moved on for kirkstone. There is therefore an open question about what we configure the autobuilder to do there.
The warnings all look to be from SDK testing with sstate server networking issues. They shouldn't break the release and I don't believe there is any code side issue beyond the server one.
Thoughts?
[Yes, we need to get these things fixed, I know. They are being worked on. I'm resorting to merging master stuff blind at this point too as the issues affect that as well.]
Cheers,
Richard
|
|
|
|
Good day,
I am new to yocto and in need of assistance please.
Could someone please assist me with getting DKMS included in my build.
my platform is: stm32mp1
|
|
Re: [qa-build-notification] QA notification for completed autobuilder build (yocto-3.1.14.rc1)
Hi all,
Intel and WR YP QA is planning for QA execution for YP build yocto-3.1.14.rc1. We are planning to execute following tests for this cycle:
OEQA-manual tests for following module: 1. OE-Core 2. BSP-hw
Runtime auto test for following platforms: 1. MinnowTurbot 32-bit 2. Coffee Lake 3. NUC 7 4. NUC 6 5. Edgerouter 6. Beaglebone
ETA for completion next Tuesday, Feb 15.
Thanks, Jay
toggle quoted messageShow quoted text
-----Original Message----- From: qa-build-notification@... <qa-build- notification@...> On Behalf Of Richard Purdie Sent: Tuesday, 1 February, 2022 5:47 AM To: <yocto@...> <yocto@...> Cc: qa-build-notification <qa-build-notification@...> Subject: [qa-build-notification] QA notification for completed autobuilder build (yocto-3.1.14.rc1)
A build flagged for QA (yocto-3.1.14.rc1) was completed on the autobuilder and is available at:
https://autobuilder.yocto.io/pub/releases/yocto-3.1.14.rc1
Build hash information:
bitbake: be6ecc160ac4a8d9715257b9b955363cecc081ea meta-agl: 7a644d636237459c54128a71d083cb6f9e1b8e60 meta-arm: ce535dfb96de4d2529f091d7d85a7172c626001c meta-aws: 9979cfa676105cb68cfadfdaeabf044d7c919319 meta-gplv2: 60b251c25ba87e946a0ca4cdc8d17b1cb09292ac meta-intel: 87984115eb6ed1a4c17204629dcb100f6b76fe82 meta-mingw: 524de686205b5d6736661d4532f5f98fee8589b7 meta-openembedded: ab9fca485e13f6f2f9761e1d2810f87c2e4f060a oecore: f3be01483b01c88f8c4ba24ca73ccf1bcc33665c poky: bba323389749ec3e306509f8fb12649f031be152
This is an automated message from the Yocto Project Autobuilder Git: git://git.yoctoproject.org/yocto-autobuilder2 Email: richard.purdie@...
|
|
Re: Maintaining ABI Compatibility for LTS branch
On Wed, 2022-02-09 at 14:13 -0500, Sinan Kaya wrote: On 2/9/2022 1:41 PM, Richard Purdie wrote:
There are lots of levels it could be implemented at but it is something someone would need to pick up and drive forward with a long term view to helping with issues etc. What would be the minimum acceptable solution with the least investment? in other words, do we have a list of requirements? You're after our LTS to maintain ABI. In order to do that we need help, not just with patches generating some output, but in day to day running of the project, i.e. help comparing output before and after changes. Whenever a patch is submitted which breaks this, it will need attention and help some someone to explain to that submitter what the issue, why it is important and hints on how to fix it.
That's true, this will require engagement from the community. Tool could take few iterations to perfect. Until then, I expect tool owner to be responsible for fixing these bugs. Once stability is reached, it becomes community maintained.
If the tool owner doesn't maintain and community has no interest, tool dies and gets reverted. It is as simple as any open source engagement.
When stability is established, each code contributor to LTS would be subject to addressing issues found before they get merged. I agree, this either needs input from the community in order to drive it or a sponsor. It will be interesting to see if people are interested in doing this and I guess we can gauge that from the replies to this thread to see if people do want to do it. I can tell you first hand how badly the existing maintainers are burning out with the current load so we need new people. The idea of "least investment" sends shivers down my spine since it sounds like you want to do the absolute bare minimum to have this happen, rather than a more community oriented approach. It depends on your taste. I believe in smaller improvements as opposed to throwing a big project to you that no-one will use it.
We both agree on incremental improvements and I am fine with that. I don't want any patch acceptance taken as a sign we're goging to add a significant process burden though. I'd prefer we have a broad agreement of what the end objective is architecture wise too. Everyone has different needs. We need to find the common ones. That's why, I'm asking if there is an existing tool that works for large part of the community accepting that there will be some folks that won't have their needs addressed.
I'm interested in revisiting the tooling discussion and have these gaps addressed for the biggest audience so that we can have something to build upon.
Anyway, my point is there is more to this than just a patch. We have various kinds of build output already and reports on test regressions - nobody helps with them. I need some kind of a sign that ABI would be different and there are people able to help with review on an ongoing basis, else it will just be something else I and a small number of others become overloaded with.
Noted. Hopefully, things will be not that volatile for the LTS branch and tool would actually help the maintainer.
In an ideal world, change needs to be stopped before that happens and have the patch author address it similar to how you monitor build pipelines.
Our team has posted a solution. BMW folks posted a solution. None of them got merged. Can you remind me of your team's please?
https://lists.yoctoproject.org/g/yocto/topic/85279259?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,160,85279259
This was an intern project from last summer that we are interested in expanding coverage. "None of them got merged" isn't particularly fair here. There was a brief thread on the yocto list, no patches were proposed or reviewed and the implementation is a standalone layer so doesn't need to merge anyway, people could use it already if they wanted. If the question is whether something would be accepted into core, the answer is possibly, it would depends. The quality of the code in that layer needs improving for core and I'm not sure about the approach. Hooking it against buildhistory is "easy" but as I mentioned in separate discussions earlier today, buildhistory is getting pulled in different directions (such as a SBOM) and I'm worried about some of the extensions to it. Certainly, the ABI saving shouldn't really be buried in a do_install postfunc and perhaps is more of a build history item that some others that are being proposed. This probably does need a discussion on the architecture list and we need some discussion and decisions about where/what buildhistory could/should do. Adding this to buildhistory is all well and good but we don't have a meaningful integration/monitoring of existing buildhistory issues in our autobuilder/workflow today even before adding new things.
I have to admit I can't remember what the conclusion was on your team's version but if you remind me of the patches I can try and remember. This is a bigger problem than just patches though sadly. Sure, let's find out what everyone is doing.
Ok. Cheers, Richard
|
|
Re: Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 20:19 +0000, Bryan Evenson wrote: Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 2:47 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 19:36 +0000, Bryan Evenson wrote:
Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 1:51 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 18:10 +0000, Bryan Evenson wrote:
Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 12:25 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 16:51 +0000, Bryan Evenson wrote:
All,
I've used the SDK in the past and want to start using the eSDK for my project.
I'm on the dunfell branch. I'm trying to build the eSDK for my image by calling:
bitbake <my_image_name> -c populate_sdk_ext
The sdk generation fails with the error in the subject. I haven't been able to find any documentation on what this means or how to fix it. I've tried deleting my tmp directory and running cleansstate on my image and I still get the same error. I've also tried generating the eSDK for core-image-minimal and I have the same error. I can generate the SDK successfully, just not the eSDK. I have copied more of the build output below if it helps.
Note that I have replaced some text that I'm paranoid about publishing on the internet; the modified text is enclosed with <>.
Does anyone have any insight as to why the eSDK build is failing? Could you share what bitbake -e shows BBFILES as being set to? The variable history from that command for the variable may also be
helpful.
There has to be something different to how you're setting it compared to what we test on the autobuilder.
Cheers,
Richard Here's what I was able to pull from bitbake -e. I've included details for both BBFILES and BBFILES_DYNAMIC. Let me know if anything else would be helpful. Thanks, I'm not seeing anything too odd there. I guess next we need to see the bblayers.conf that the code is building into the eSDK and compare it to your original conf/bblayer.conf.
The generated file should be in the eSDK image directory somewhere, I'm not able to look up the exact path right now. Let me know if you can't
find it.
Lets see if the two bblayers.conf files look different and introduce some issue.
I think I found what you were looking for under the image tmp working directory at sdk-ext/image/temp-renamed-sdk/conf/bblayers.conf. Here's a comparison of my original bblayers.conf in my tmp directory and the generated bblayers.conf for the eSDK. I confirmed that the layers directory is present and contains all the layers as listed in the generated bblayers.conf.
########################################################## ############
### # # Contents of my original bblayers.conf #
########################################################## ############
### # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf # changes incompatibly POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}" BBFILES ?= ""
BBLAYERS ?= " \ <my_home_dir>/poky/<my_custom_layer1> \ <my_home_dir>/poky/<my_custom_layer2> \ <my_home_dir>/poky/meta-bacnet \ <my_home_dir>/poky/meta-atmel \ <my_home_dir>/poky/meta \ <my_home_dir>/poky/meta-poky \ <my_home_dir>/poky/meta-yocto-bsp \ <my_home_dir>/poky/meta-openembedded/meta-oe \ <my_home_dir>/poky/meta-openembedded/meta-networking \ <my_home_dir>/poky/meta-openembedded/meta-python \ <my_home_dir>/poky/poky-build/workspace \ " BBLAYERS_NON_REMOVABLE ?= " \ <my_home_dir>/poky/meta \ <my_home_dir>/poky/meta-poky \ "
########################################################## ############
### # # Contents of my <img_tmp_work_dir>/sdk-ext/image/tmp-renamed- sdk/conf/bblayers.conf
#
########################################################## ############
### # WARNING: this configuration has been automatically generated and in # most cases should not be edited. If you need more flexibility than # this configuration provides, it is strongly suggested that you set # up a proper instance of the full build system and use that instead.
BBPATH = "${TOPDIR}" SDKBASEMETAPATH = "${TOPDIR}" BBLAYERS := " \ ${SDKBASEMETAPATH}/layers/poky/<my_custom_layer1> \ ${SDKBASEMETAPATH}/layers/poky/<my_custom_layer2> \ ${SDKBASEMETAPATH}/layers/poky/meta-bacnet \ ${SDKBASEMETAPATH}/layers/poky/meta-atmel \ ${SDKBASEMETAPATH}/layers/poky/meta \ ${SDKBASEMETAPATH}/layers/poky/meta-poky \ ${SDKBASEMETAPATH}/layers/poky/meta-yocto-bsp \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta-oe \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta- networking \
${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta- python \
${SDKBASEMETAPATH}/workspace \ "
Let me know if anything else would be helpful for diagnosing this issue. I'm now wondering what happens if you remove
<my_home_dir>/poky/poky-build/workspace \
since I suspect your local workspace probably doesn't make sense in the eSDK? Could you try temporarily removing that and see if that helps?
The BBFILES entry in one of these layer.conf files is probably causing some issue but I can't easily know which one. You could remove some of the other layers to try and see if you identify where the issue is from too?
This is odd. I removed the workspace from my local bblayers.conf. I executed: bitbake -c cleansstate image bitbake image bitbake image -c populate_sdk_ext
I got the same error message as before. Also, the bblayers.conf in the tmp- sdk-ext directory still contains the workspace directory in the BBLAYERS list. I then switched and built core-image-minimal the same way, and I'm getting the same error. I checked BBLAYERS in bitbake -e for core-image-minimal, and the workspace directory is not listed. I don’t know how populate_sdk_ext is pulling the workspace directory into BBLAYERS. Any ideas? I suspect the eSDK adds a workspace for the devtool and similar workflows so that piece may be normal and perhaps it was conflicting with your existing workspace? I have to admit I don't remember if it does that or not offhand but it could. If that were the case, it is sounding like the conflict may be with some other layer instead. Cheers, Richard
|
|
Re: Problems building eSDK: Exception: variable BBFILES references itself!
Richard,
toggle quoted messageShow quoted text
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 2:47 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 19:36 +0000, Bryan Evenson wrote:
Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 1:51 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 18:10 +0000, Bryan Evenson wrote:
Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 12:25 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 16:51 +0000, Bryan Evenson wrote:
All,
I've used the SDK in the past and want to start using the eSDK for my project.
I'm on the dunfell branch. I'm trying to build the eSDK for my image by calling:
bitbake <my_image_name> -c populate_sdk_ext
The sdk generation fails with the error in the subject. I haven't been able to find any documentation on what this means or how to fix it. I've tried deleting my tmp directory and running cleansstate on my image and I still get the same error. I've also tried generating the eSDK for core-image-minimal and I have the same error. I can generate the SDK successfully, just not the eSDK. I have copied more of the build output below if it helps.
Note that I have replaced some text that I'm paranoid about publishing on the internet; the modified text is enclosed with <>.
Does anyone have any insight as to why the eSDK build is failing? Could you share what bitbake -e shows BBFILES as being set to? The variable history from that command for the variable may also be
helpful.
There has to be something different to how you're setting it compared to what we test on the autobuilder.
Cheers,
Richard Here's what I was able to pull from bitbake -e. I've included details for both BBFILES and BBFILES_DYNAMIC. Let me know if anything else would be helpful. Thanks, I'm not seeing anything too odd there. I guess next we need to see the bblayers.conf that the code is building into the eSDK and compare it to your original conf/bblayer.conf.
The generated file should be in the eSDK image directory somewhere, I'm not able to look up the exact path right now. Let me know if you can't
find it.
Lets see if the two bblayers.conf files look different and introduce some issue.
I think I found what you were looking for under the image tmp working directory at sdk-ext/image/temp-renamed-sdk/conf/bblayers.conf. Here's a comparison of my original bblayers.conf in my tmp directory and the generated bblayers.conf for the eSDK. I confirmed that the layers directory is present and contains all the layers as listed in the generated bblayers.conf.
########################################################## ############
### # # Contents of my original bblayers.conf #
########################################################## ############
### # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf # changes incompatibly POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}" BBFILES ?= ""
BBLAYERS ?= " \ <my_home_dir>/poky/<my_custom_layer1> \ <my_home_dir>/poky/<my_custom_layer2> \ <my_home_dir>/poky/meta-bacnet \ <my_home_dir>/poky/meta-atmel \ <my_home_dir>/poky/meta \ <my_home_dir>/poky/meta-poky \ <my_home_dir>/poky/meta-yocto-bsp \ <my_home_dir>/poky/meta-openembedded/meta-oe \ <my_home_dir>/poky/meta-openembedded/meta-networking \ <my_home_dir>/poky/meta-openembedded/meta-python \ <my_home_dir>/poky/poky-build/workspace \ " BBLAYERS_NON_REMOVABLE ?= " \ <my_home_dir>/poky/meta \ <my_home_dir>/poky/meta-poky \ "
########################################################## ############
### # # Contents of my <img_tmp_work_dir>/sdk-ext/image/tmp-renamed- sdk/conf/bblayers.conf
#
########################################################## ############
### # WARNING: this configuration has been automatically generated and in # most cases should not be edited. If you need more flexibility than # this configuration provides, it is strongly suggested that you set # up a proper instance of the full build system and use that instead.
BBPATH = "${TOPDIR}" SDKBASEMETAPATH = "${TOPDIR}" BBLAYERS := " \ ${SDKBASEMETAPATH}/layers/poky/<my_custom_layer1> \ ${SDKBASEMETAPATH}/layers/poky/<my_custom_layer2> \ ${SDKBASEMETAPATH}/layers/poky/meta-bacnet \ ${SDKBASEMETAPATH}/layers/poky/meta-atmel \ ${SDKBASEMETAPATH}/layers/poky/meta \ ${SDKBASEMETAPATH}/layers/poky/meta-poky \ ${SDKBASEMETAPATH}/layers/poky/meta-yocto-bsp \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta-oe \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta- networking \
${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta- python \
${SDKBASEMETAPATH}/workspace \ "
Let me know if anything else would be helpful for diagnosing this issue. I'm now wondering what happens if you remove
<my_home_dir>/poky/poky-build/workspace \
since I suspect your local workspace probably doesn't make sense in the eSDK? Could you try temporarily removing that and see if that helps?
The BBFILES entry in one of these layer.conf files is probably causing some issue but I can't easily know which one. You could remove some of the other layers to try and see if you identify where the issue is from too?
This is odd. I removed the workspace from my local bblayers.conf. I executed: bitbake -c cleansstate image bitbake image bitbake image -c populate_sdk_ext I got the same error message as before. Also, the bblayers.conf in the tmp-sdk-ext directory still contains the workspace directory in the BBLAYERS list. I then switched and built core-image-minimal the same way, and I'm getting the same error. I checked BBLAYERS in bitbake -e for core-image-minimal, and the workspace directory is not listed. I don’t know how populate_sdk_ext is pulling the workspace directory into BBLAYERS. Any ideas? Thanks, Bryan
|
|
Re: Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 19:36 +0000, Bryan Evenson wrote: Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 1:51 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 18:10 +0000, Bryan Evenson wrote:
Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 12:25 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 16:51 +0000, Bryan Evenson wrote:
All,
I've used the SDK in the past and want to start using the eSDK for my project.
I'm on the dunfell branch. I'm trying to build the eSDK for my image by calling:
bitbake <my_image_name> -c populate_sdk_ext
The sdk generation fails with the error in the subject. I haven't been able to find any documentation on what this means or how to fix it. I've tried deleting my tmp directory and running cleansstate on my image and I still get the same error. I've also tried generating the eSDK for core-image-minimal and I have the same error. I can generate the SDK successfully, just not the eSDK. I have copied more of the build output below if it helps. Note that I have replaced some text that I'm paranoid about publishing on the internet; the modified text is enclosed with <>.
Does anyone have any insight as to why the eSDK build is failing? Could you share what bitbake -e shows BBFILES as being set to? The variable history from that command for the variable may also be helpful.
There has to be something different to how you're setting it compared to what we test on the autobuilder.
Cheers,
Richard Here's what I was able to pull from bitbake -e. I've included details for both BBFILES and BBFILES_DYNAMIC. Let me know if anything else would be helpful. Thanks, I'm not seeing anything too odd there. I guess next we need to see the bblayers.conf that the code is building into the eSDK and compare it to your original conf/bblayer.conf.
The generated file should be in the eSDK image directory somewhere, I'm not able to look up the exact path right now. Let me know if you can't find it. Lets see if the two bblayers.conf files look different and introduce some issue.
I think I found what you were looking for under the image tmp working directory at sdk-ext/image/temp-renamed-sdk/conf/bblayers.conf. Here's a comparison of my original bblayers.conf in my tmp directory and the generated bblayers.conf for the eSDK. I confirmed that the layers directory is present and contains all the layers as listed in the generated bblayers.conf.
######################################################################### # # Contents of my original bblayers.conf # ######################################################################### # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf # changes incompatibly POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}" BBFILES ?= ""
BBLAYERS ?= " \ <my_home_dir>/poky/<my_custom_layer1> \ <my_home_dir>/poky/<my_custom_layer2> \ <my_home_dir>/poky/meta-bacnet \ <my_home_dir>/poky/meta-atmel \ <my_home_dir>/poky/meta \ <my_home_dir>/poky/meta-poky \ <my_home_dir>/poky/meta-yocto-bsp \ <my_home_dir>/poky/meta-openembedded/meta-oe \ <my_home_dir>/poky/meta-openembedded/meta-networking \ <my_home_dir>/poky/meta-openembedded/meta-python \ <my_home_dir>/poky/poky-build/workspace \ " BBLAYERS_NON_REMOVABLE ?= " \ <my_home_dir>/poky/meta \ <my_home_dir>/poky/meta-poky \ "
######################################################################### # # Contents of my <img_tmp_work_dir>/sdk-ext/image/tmp-renamed-sdk/conf/bblayers.conf # ######################################################################### # WARNING: this configuration has been automatically generated and in # most cases should not be edited. If you need more flexibility than # this configuration provides, it is strongly suggested that you set # up a proper instance of the full build system and use that instead.
BBPATH = "${TOPDIR}" SDKBASEMETAPATH = "${TOPDIR}" BBLAYERS := " \ ${SDKBASEMETAPATH}/layers/poky/<my_custom_layer1> \ ${SDKBASEMETAPATH}/layers/poky/<my_custom_layer2> \ ${SDKBASEMETAPATH}/layers/poky/meta-bacnet \ ${SDKBASEMETAPATH}/layers/poky/meta-atmel \ ${SDKBASEMETAPATH}/layers/poky/meta \ ${SDKBASEMETAPATH}/layers/poky/meta-poky \ ${SDKBASEMETAPATH}/layers/poky/meta-yocto-bsp \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta-oe \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta-networking \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta-python \ ${SDKBASEMETAPATH}/workspace \ "
Let me know if anything else would be helpful for diagnosing this issue. I'm now wondering what happens if you remove <my_home_dir>/poky/poky-build/workspace \ since I suspect your local workspace probably doesn't make sense in the eSDK? Could you try temporarily removing that and see if that helps? The BBFILES entry in one of these layer.conf files is probably causing some issue but I can't easily know which one. You could remove some of the other layers to try and see if you identify where the issue is from too? Cheers, Richard
|
|
Re: Error: Transaction check error: while doing do_rootfs task
Hello Khem,
Doing "bitbake -e core-image-swupdate | grep ^INIT_MANAGER=" shows INIT_MANAGER="none". And "bitbake -e core-image-swupdate | grep ^DISTRO_FEATURES=" shows DISTRO_FEATURES="acl alsa argp bluetooth ext2 ipv4 ipv6 largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11 vfat largefile opengl ptest multiarch wayland vulkan systemd wifi systemd pulseaudio sysvinit gobject-introspection-data ldconfig".
I don't understand why these is both systemd and sysvinit. In the core-image-swupdate I have mentioned:
DISTRO_FEATURES_append = " systemd"
Can you please let me know how can I check if the recipe has dependency on sysvinit or not?
Thanks in advance
|
|
Re: Problems building eSDK: Exception: variable BBFILES references itself!
Richard,
toggle quoted messageShow quoted text
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 1:51 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 18:10 +0000, Bryan Evenson wrote:
Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 12:25 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 16:51 +0000, Bryan Evenson wrote:
All,
I've used the SDK in the past and want to start using the eSDK for my project.
I'm on the dunfell branch. I'm trying to build the eSDK for my image by calling:
bitbake <my_image_name> -c populate_sdk_ext
The sdk generation fails with the error in the subject. I haven't been able to find any documentation on what this means or how to fix it. I've tried deleting my tmp directory and running cleansstate on my image and I still get the same error. I've also tried generating the eSDK for core-image-minimal and I have the same error. I can generate the SDK successfully, just not the eSDK. I have copied more of the build output below if it helps. Note that I have replaced some text that I'm paranoid about publishing on the internet; the modified text is enclosed with <>.
Does anyone have any insight as to why the eSDK build is failing? Could you share what bitbake -e shows BBFILES as being set to? The variable history from that command for the variable may also be helpful.
There has to be something different to how you're setting it compared to what we test on the autobuilder.
Cheers,
Richard Here's what I was able to pull from bitbake -e. I've included details for both BBFILES and BBFILES_DYNAMIC. Let me know if anything else would be helpful. Thanks, I'm not seeing anything too odd there. I guess next we need to see the bblayers.conf that the code is building into the eSDK and compare it to your original conf/bblayer.conf.
The generated file should be in the eSDK image directory somewhere, I'm not able to look up the exact path right now. Let me know if you can't find it. Lets see if the two bblayers.conf files look different and introduce some issue.
I think I found what you were looking for under the image tmp working directory at sdk-ext/image/temp-renamed-sdk/conf/bblayers.conf. Here's a comparison of my original bblayers.conf in my tmp directory and the generated bblayers.conf for the eSDK. I confirmed that the layers directory is present and contains all the layers as listed in the generated bblayers.conf. ######################################################################### # # Contents of my original bblayers.conf # ######################################################################### # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf # changes incompatibly POKY_BBLAYERS_CONF_VERSION = "2" BBPATH = "${TOPDIR}" BBFILES ?= "" BBLAYERS ?= " \ <my_home_dir>/poky/<my_custom_layer1> \ <my_home_dir>/poky/<my_custom_layer2> \ <my_home_dir>/poky/meta-bacnet \ <my_home_dir>/poky/meta-atmel \ <my_home_dir>/poky/meta \ <my_home_dir>/poky/meta-poky \ <my_home_dir>/poky/meta-yocto-bsp \ <my_home_dir>/poky/meta-openembedded/meta-oe \ <my_home_dir>/poky/meta-openembedded/meta-networking \ <my_home_dir>/poky/meta-openembedded/meta-python \ <my_home_dir>/poky/poky-build/workspace \ " BBLAYERS_NON_REMOVABLE ?= " \ <my_home_dir>/poky/meta \ <my_home_dir>/poky/meta-poky \ " ######################################################################### # # Contents of my <img_tmp_work_dir>/sdk-ext/image/tmp-renamed-sdk/conf/bblayers.conf # ######################################################################### # WARNING: this configuration has been automatically generated and in # most cases should not be edited. If you need more flexibility than # this configuration provides, it is strongly suggested that you set # up a proper instance of the full build system and use that instead. BBPATH = "${TOPDIR}" SDKBASEMETAPATH = "${TOPDIR}" BBLAYERS := " \ ${SDKBASEMETAPATH}/layers/poky/<my_custom_layer1> \ ${SDKBASEMETAPATH}/layers/poky/<my_custom_layer2> \ ${SDKBASEMETAPATH}/layers/poky/meta-bacnet \ ${SDKBASEMETAPATH}/layers/poky/meta-atmel \ ${SDKBASEMETAPATH}/layers/poky/meta \ ${SDKBASEMETAPATH}/layers/poky/meta-poky \ ${SDKBASEMETAPATH}/layers/poky/meta-yocto-bsp \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta-oe \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta-networking \ ${SDKBASEMETAPATH}/layers/poky/meta-openembedded/meta-python \ ${SDKBASEMETAPATH}/workspace \ " Let me know if anything else would be helpful for diagnosing this issue. Thanks, Bryan Cheers,
Richard
|
|
Re: Maintaining ABI Compatibility for LTS branch
On Wed, 2022-02-09 at 18:41 +0000, Richard Purdie wrote: The BMW one is about hash equivalence so wouldn't help your ABI output problem with the LTS. From what I remember, it predates hash equivalence and the project needed a generic equivalance mechanism complete with server done at the runqueue level in bitbake. This has now happened so we could revisit the idea of what is in that layer but translating it to a hash equivalence plugin.
I'd also add that even with hash equivalence done well like we ended up with, we have only two people interested/able to work on bugs with it, the author and myself. For a key component of the system, this worries me a lot. Adding more complexity without maintainer support isn't going to help anyone.
Sorry, I'm getting confused here with earlier work Michael Ho did at BMW. The links here: https://lists.yoctoproject.org/g/yocto/message/52650https://github.com/bmwcarit/meta-abicompatare the revised version from last year which *does* hook into hash equivalence. I'm getting two things confused, sorry. The nice thing about the layer above is that it is a standalone layer, we don't have to merge it in order to use it. This shows the power of the new hash equivalence code as it is a plugin to it. We may consider merging it at some point but there is less of a pressing need and we need time to experiment with it. At this point it is a proof of concept and doesn't solve the ABI problem you're describing in the original email. Sorry about any confusion. The abidw recipe could be useful to your ABI issue. Cheers, Richard
|
|
Re: Maintaining ABI Compatibility for LTS branch
On 2/9/2022 1:41 PM, Richard Purdie wrote: There are lots of levels it could be implemented at but it is something someone would need to pick up and drive forward with a long term view to helping with issues etc. What would be the minimum acceptable solution with the least investment? in other words, do we have a list of requirements? You're after our LTS to maintain ABI. In order to do that we need help, not just with patches generating some output, but in day to day running of the project, i.e. help comparing output before and after changes. Whenever a patch is submitted which breaks this, it will need attention and help some someone to explain to that submitter what the issue, why it is important and hints on how to fix it.
That's true, this will require engagement from the community. Tool could take few iterations to perfect. Until then, I expect tool owner to be responsible for fixing these bugs. Once stability is reached, it becomes community maintained. If the tool owner doesn't maintain and community has no interest, tool dies and gets reverted. It is as simple as any open source engagement. When stability is established, each code contributor to LTS would be subject to addressing issues found before they get merged. The idea of "least investment" sends shivers down my spine since it sounds like you want to do the absolute bare minimum to have this happen, rather than a more community oriented approach. It depends on your taste. I believe in smaller improvements as opposed to throwing a big project to you that no-one will use it. Everyone has different needs. We need to find the common ones. That's why, I'm asking if there is an existing tool that works for large part of the community accepting that there will be some folks that won't have their needs addressed. I'm interested in revisiting the tooling discussion and have these gaps addressed for the biggest audience so that we can have something to build upon. Anyway, my point is there is more to this than just a patch. We have various kinds of build output already and reports on test regressions - nobody helps with them. I need some kind of a sign that ABI would be different and there are people able to help with review on an ongoing basis, else it will just be something else I and a small number of others become overloaded with.
Noted. Hopefully, things will be not that volatile for the LTS branch and tool would actually help the maintainer. In an ideal world, change needs to be stopped before that happens and have the patch author address it similar to how you monitor build pipelines. Our team has posted a solution. BMW folks posted a solution. None of them got merged. Can you remind me of your team's please?
https://lists.yoctoproject.org/g/yocto/topic/85279259?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,160,85279259 This was an intern project from last summer that we are interested in expanding coverage. The BMW one is about hash equivalence so wouldn't help your ABI output problem with the LTS. From what I remember, it predates hash equivalence and the project needed a generic equivalance mechanism complete with server done at the runqueue level in bitbake. This has now happened so we could revisit the idea of what is in that layer but translating it to a hash equivalence plugin. I'd also add that even with hash equivalence done well like we ended up with, we have only two people interested/able to work on bugs with it, the author and myself. For a key component of the system, this worries me a lot. Adding more complexity without maintainer support isn't going to help anyone.
OK, I didn't know the story behind the change. Could we take the version from BMW folks, merge and have the next person add new features where it doesn't satisfy requirements? See above on the BMW version. I'm a little worried you're suggesting merging something which doesn't actually do what you need/want:(.
Got it. or vice versa? or as Ross said some other work? or none of the solutions are acceptable? I have to admit I can't remember what the conclusion was on your team's version but if you remind me of the patches I can try and remember. This is a bigger problem than just patches though sadly.
Sure, let's find out what everyone is doing.
|
|
Re: Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 18:10 +0000, Bryan Evenson wrote: Richard,
-----Original Message----- From: Richard Purdie <richard.purdie@...> Sent: Wednesday, February 9, 2022 12:25 PM To: Bryan Evenson <bevenson@...>; yocto@... Subject: Re: [yocto] Problems building eSDK: Exception: variable BBFILES references itself!
On Wed, 2022-02-09 at 16:51 +0000, Bryan Evenson wrote:
All,
I've used the SDK in the past and want to start using the eSDK for my project.
I'm on the dunfell branch. I'm trying to build the eSDK for my image by calling:
bitbake <my_image_name> -c populate_sdk_ext
The sdk generation fails with the error in the subject. I haven't been able to find any documentation on what this means or how to fix it. I've tried deleting my tmp directory and running cleansstate on my image and I still get the same error. I've also tried generating the eSDK for core-image-minimal and I have the same error. I can generate the SDK successfully, just not the eSDK. I have copied more of the build output below if it helps. Note that I have replaced some text that I'm paranoid about publishing on the internet; the modified text is enclosed with <>.
Does anyone have any insight as to why the eSDK build is failing? Could you share what bitbake -e shows BBFILES as being set to? The variable history from that command for the variable may also be helpful.
There has to be something different to how you're setting it compared to what we test on the autobuilder.
Cheers,
Richard Here's what I was able to pull from bitbake -e. I've included details for both BBFILES and BBFILES_DYNAMIC. Let me know if anything else would be helpful. Thanks, I'm not seeing anything too odd there. I guess next we need to see the bblayers.conf that the code is building into the eSDK and compare it to your original conf/bblayer.conf. The generated file should be in the eSDK image directory somewhere, I'm not able to look up the exact path right now. Let me know if you can't find it. Lets see if the two bblayers.conf files look different and introduce some issue. Cheers, Richard
|
|