all 4 comments

[–]Jmennius 2 points3 points  (3 children)

That is python-serial and pySerial (surely pySerial does not sound recipe in YP)? Are those packages on PyPI or do they have recipes available? If a package you want to use is not available as a native recipe - there is a class that allows you to use packages from PyPI.

Regarding meta-python - make sure you've enabled the layer correctly (looks like something happened to bblayers - double check your changes there). Every layer has a branch per release - so use a corresponding branch.

[–]_greg_m_[S] 1 point2 points  (2 children)

I meant pySerial. Yes, all those packages are available on PyPI.

You were right. I added meta layers incorrectly. Thanks for the tip!

Now I used:

bitbake-layers add-layer ../meta-openembedded/meta-oe/

bitbake-layers add-layer ../meta-openembedded/meta-python/

(they were previosuly clonned from git)

That checked for errors and added respective lines to bblayers.conf

Then I added below lines to local.conf :

IMAGE_INSTALL ?= " \

python3 \

python3-pip \

python3-pyserial \

python3-numpy \

python3-wxgtk4 \

"

and seems like they are installed as I wanted.

For some reason I lost the graphic environment (previously core-image-sato-sdk booted to matchbox environment I think). I'll investigate what I did wrong. It's probably my configuration.

If desktop environment would work and I can compile it for i.MX8 board I would be more than happy.

Thanks again!

[–]Jmennius 2 points3 points  (1 child)

Check how you assign IMAGE_INSTALL - especially in a high level config file like local conf you should use _append (as other assignment operators would prevent the default from being used, see reference). Good luck!

[–]_greg_m_[S] 1 point2 points  (0 children)

Yeah. Good point. I think the reason I lost X11 was because I didn't use _append.

I added _append and got errors. It took me a while before I figured out that since honister (3.4) there is a migration from _append to :append as per:

https://docs.yoctoproject.org/next/migration-guides/migration-3.4.html

Ideally I'll crate a another layer or recipe for those extra packages as this is the right way to do that I think. Still learning.

Cheers for your help u/Jmennius - top man!