{"id":162,"date":"2010-02-18T12:55:40","date_gmt":"2010-02-18T18:55:40","guid":{"rendered":"http:\/\/dmartenson.dc.multitech.prv\/developer\/?page_id=162"},"modified":"2011-11-23T14:42:51","modified_gmt":"2011-11-23T20:42:51","slug":"creating-a-custom-image","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/corecdp\/development\/creating-a-custom-image\/","title":{"rendered":"Creating a Custom Image"},"content":{"rendered":"<p>Creating your own custom image is simple and at minimum consists of &#8220;requiring&#8221; <code>corecdp-base-image.bb<\/code>, adding any packages you want to the <code>IMAGE_INSTALL<\/code> variable and setting <code>IMAGE_BASENAME<\/code> to a custom name.<\/p>\n<p>Example custom image recipe that adds the asterisk package:<\/p>\n<pre class=\"brush:text\">require recipes\/images\/corecdp-base-image.bb\r\n\r\nIMAGE_INSTALL += \"asterisk\"\r\n\r\nexport IMAGE_BASENAME = \"asterisk-image\"\r\n<\/pre>\n<p>Save the example above to <code>user-layer\/recipes\/images\/asterisk-image.bb<\/code><\/p>\n<p>Then run <code>bitbake asterisk-image<\/code>.  This will download the asterisk software source, compile it, and add it into your rootfs.<\/p>\n<p>Once the build completes, the rootfs will be located at (assuming MACHINE=&#8221;mtcdp&#8221;):<br \/>\n<code>build\/tmp\/deploy\/eglibc\/images\/mtcdp\/asterisk-image-mtcdp.jffs2<\/code><\/p>\n<p>Flash the image using the instructions on the <a href='https:\/\/www.multitech.net\/developer\/software\/corecdp\/development\/nand-flash-programming\/' title='NAND Flash Programming'>NAND Flash Programming<\/a> page.<\/p>\n<p>For more image examples, look at the various CoreCDP image recipes located at: <code>multitech\/recipes\/images<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating your own custom image is simple and at minimum consists of &#8220;requiring&#8221; 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 += &#8220;asterisk&#8221; export IMAGE_BASENAME = &#8220;asterisk-image&#8221; Save the example above to user-layer\/recipes\/images\/asterisk-image.bb Then [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":314,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-162","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=162"}],"version-history":[{"count":25,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/162\/revisions"}],"predecessor-version":[{"id":216,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/162\/revisions\/216"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/314"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}