crops / poky-container

A container image that is able to run bitbake/poky. It has helpers to create users and groups within the container. This is so that the output generated in the container will be readable by the user on the host.
GNU General Public License v2.0
206 stars 94 forks source link

Unable to startup bitbake server #44

Open budebulai opened 4 years ago

budebulai commented 4 years ago

On my PC,

In PowerShell console, running command docker run -it --name yocto-ws --mount type=bind,source=I:/WORKSPACE,target=/workdir crops/poky, yocto-ws container can start up. Everything is ok until now.

But when running bitbake core-image-minimal in poky build dir, something wrong, _server = bb.server.process.BitBakeServer(lock, sockname, configuration, featureset) File "/workdir/yocto3_ws/poky/bitbake/lib/bb/server/process.py", line 392, in init self.sock.bind(os.path.basename(sockname)) PermissionError: [Errno 1] Operation not permitted ...... NOTE: Reconnecting to bitbake server... NOTE: Previous bitbake instance shutting down?, waiting to retry... NOTE: Retrying server connection (#8)... ERROR: Unable to connect to bitbake server, or start one (server startup failures would be in bitbake-cookerdaemon.log)._

And when ./x86_64-buildtools-nativesdk-standalone-3.0.1.sh script execution tried, also error occured, _Build tools installer version 3.0.1 Enter target directory for SDK (default: /opt/poky/3.0.1): /workdir/yocto3_ws/buildtools You are about to install the SDK to "/workdir/yocto3_ws/buildtools". Proceed [Y/n]? Y Extracting SDK...........done Setting it up...Traceback (most recent call last): File "/workdir/yocto3_ws/buildtools/relocate_sdk.py", line 219, in perms = os.stat(e)[stat.ST_MODE] OSError: [Errno 2] No such file or directory: '/workdir/yocto3_ws/buildtools/sysroots/x8664-pokysdk-linux/usr/bin/find' SDK could not be set up. Relocate script failed. Abort!

What's wrong with crops/poky? Howto?

rewitt1 commented 4 years ago

Hi @budebulai,

Does the problem still occur if you instead use a volume following the instructions on the wiki?

bitbake requires a filesystem with capabilities similar to ext4 and other linux filesystems. Running docker as you outlined above would use the a virtual filesystem to map the filesystem of I: to the VM used by docker for windows.

I don't have a windows machine to test this with currently, but this would be my first guess.