Creating a Custom Image

Creating your own custom image is simple and at minimum consists of “requiring” corecdp-base-image.bb, adding any packages you want to the IMAGE_INSTALL variable and setting IMAGE_BASENAME to a custom name.

Example custom image recipe that adds the asterisk package:

require recipes/images/corecdp-base-image.bb

IMAGE_INSTALL += "asterisk"

export IMAGE_BASENAME = "asterisk-image"

Save the example above to user-layer/recipes/images/asterisk-image.bb

Then run bitbake asterisk-image. This will download the asterisk software source, compile it, and add it into your rootfs.

Once the build completes, the rootfs will be located at (assuming MACHINE=”mtcdp”):
build/tmp/deploy/eglibc/images/mtcdp/asterisk-image-mtcdp.jffs2

Flash the image using the instructions on the NAND Flash Programming page.

For more image examples, look at the various CoreCDP image recipes located at: multitech/recipes/images