In order to get started quickly (source) you can build an image for qemu-x86 with the following commands
# apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath libsdl1.2-dev xterm
$ git clone git://git.openembedded.org/openembedded-core oe-core && cd oe-core
$ git clone git://git.openembedded.org/bitbake bitbake
$ git checkout fido && cd bitbake && git checkout 1.26 && cd -
$ source ./oe-init-build-env
$ bitbake core-image-minimal
The final image will be at the path <build dir>/tmp-glibc/deploy/images/qemux86
. The next step is run
the built image
oe-core/build $ (fido) runqemu qemux86 core-image-minimal ext4
Assuming core-image-minimal really means /opt/openembedded/oe-core/build/tmp-glibc/deploy/images/qemux86/core-image-minimal-qemux86.ext4
Continuing with the following parameters:
KERNEL: [/opt/openembedded/oe-core/build/tmp-glibc/deploy/images/qemux86/bzImage-qemux86.bin]
ROOTFS: [/opt/openembedded/oe-core/build/tmp-glibc/deploy/images/qemux86/core-image-minimal-qemux86-20151008151916.rootfs.ext4]
FSTYPE: [ext4]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
Running qemu-system-i386...
/opt/openembedded/oe-core/build/tmp-glibc/sysroots/x86_64-linux/usr/bin/qemu-system-i386 -kernel /opt/openembedded/oe-core/build/tmp-glibc/deploy/images/qemux86/bzImage-qemux86.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -cpu qemu32 -hda /opt/openembedded/oe-core/build/tmp-glibc/deploy/images/qemux86/core-image-minimal-qemux86-20151008151916.rootfs.ext4 -show-cursor -usb -usbdevice wacom-tablet -vga vmware -no-reboot -m 256 --append "vga=0 uvesafb.mode_option=640x480-32 root=/dev/hda rw mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 oprofile.timer=1 rootfstype=ext4 "
It's possible to login as root (wo password).
It's possible to build a toolchain
$ bitbake meta-toolchain
that produces an installer in <build dir>/tmp-glibc/deploy/sdk
.
Exists a recipe named virtual/kernel
; if you want to clean it
$ MACHINE=beaglebone bitbake -c clean virtual/kernel