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

runqemu and devtool inside poky-container #42

Closed dkruces closed 4 years ago

dkruces commented 4 years ago

Hi!

I'm trying to use devtool inside the container which is already running the qemu image. Would this be possible?

docker run --rm -it -p 2222:2222 -v $PWD:/workdir crops/poky:debian-9 --workdir=/workdir
source poky/oe-init-build-env
MACHINE=qemux86-64 core-image-minimal
runqemu qemux86-64 slirp nographic

Now, how can I connect a new container to use devtool in there and send the devtool results to the running image?

Thanks in advance!

rewitt1 commented 4 years ago

Hi @dagmcr,

Does it need to be a separate container? For instance the below works for me when using core-image-sato:

Inside container

% runqemu slirp

In another shell on host

% docker exec --user=pokyuser -it CONTAINERID bash
pokyuser@bdae98f98ef7:/home/yoctouser$ ssh -l root -p 2222 localhost
root@qemux86:~#

This means that port 2222 is working for the ssh port. You should be able to do devtool deploy-target -s -P 2222 recipename root@localhost if you source oe-init-build-env in the second shell.

dkruces commented 4 years ago

Hi @rewitt1,

Thanks for the help! That's exactly what I was looking for and it worked so well.