Images recipes for poky / yocto and creating complete BSP Images using those

Yocto / poky provides following image recipes by default, sources of this you can find in poky/meta/recipes-core/images directory,

poky/meta/recipes-core/images$ tree
├── build-appliance-image
│   ├── README_VirtualBox_Guest_Additions.txt
│   ├── README_VirtualBox_Toaster.txt
│   ├── Yocto_Build_Appliance.vmx
│   └── Yocto_Build_Appliance.vmxf

1 directory, 11 files

Now, to compile any of this images, you need to source environment variables from top of “poky” directory as,

$ source poky/oe-init-build-env build

then type “bitbake image-recipe-name” as for example, if we want to create image which provides minimal rootfs, then you can type like below,

 $ bitbake core-image-minimal

In case of RaspberryPi, Once above command is executed successfully, you can find the necessary binaries created at build/tmp/deploy/images/raspberrypi3
and the rootfs which goes to this final images is present at build/tmp/work/raspberrypi3-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs

Follow Lynxbee Posts with Google News

Leave a Comment