So we are currently using a Virtualbox VM for Yocto, but the new possibility for use Docker with WSL2 could increase performance, so we are trying to compile our yocto meta-layer using the new docker method.
I am following this documentation : https://www.digi.com/resources/documentation/digidocs/embedded/dey/3.2/cc6ul/yocto_t_set-up-docker-windows
The first problem was that Docker Desktop shows a advice against using directly windows filesystem volumes because there is poor performance and no "inotify events", see https://docs.docker.com/desktop/windows/wsl/
I had some "permissions denied" errors on bitbake, so I tried again using directly a docker linux volume (using docker desktop volume tab).
Do you recommend using a WSL2 volume instead of a Windows volume ? It seems to be the "best practice" on Docker Desktop doc.
The second problem is about repo sync. This command line :
dey@b53778495448: repo sync -j 4
gets this :
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (1/1), done.
Fetching: 100% (12/12), done in 13.178s
Garbage collecting: 100% (12/12), done in 0.070s
info: A new version of repo is available
warning: repo is not tracking a remote branch, so it will not receive updates
repo reset: error: Entry 'command.py' not uptodate. Cannot merge.
fatal: Could not reset index file to revision 'v2.16.7^0'.
It looks like the docker image is not up to date and cannot update because on 'command.py', which is a repo file. Is this error important ? How to fix this ? I want to be sure that the version I build is up to date.
Have a good day,
Mathieu Galle, Vitirover