{"id":4532,"date":"2023-11-17T10:14:35","date_gmt":"2023-11-17T10:14:35","guid":{"rendered":"https:\/\/www.mixtile.com\/?post_type=ht_kb&#038;p=4532"},"modified":"2025-09-30T08:28:38","modified_gmt":"2025-09-30T08:28:38","slug":"compile-ubuntu-image-from-source-code","status":"publish","type":"ht_kb","link":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/","title":{"rendered":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089Ubuntu\u30a4\u30e1\u30fc\u30b8\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b"},"content":{"rendered":"<p>This document describes how to compile Ubuntu image from source code.<\/p>\n\n\n\n<h2>\u6e96\u5099<\/h2>\n\n\n\n<p>A Ubuntu 22.04 machine<\/p>\n\n\n\n<h2>\u30b9\u30c6\u30c3\u30d7<\/h2>\n\n\n\n<h3>Step 1. Install dependent packages<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install -y build-essential gcc-aarch64-linux-gnu bison \\\nqemu-user-static qemu-system-arm qemu-efi u-boot-tools binfmt-support \\\ndebootstrap flex libssl-dev bc rsync kmod cpio xz-utils fakeroot parted \\\nudev dosfstools uuid-runtime git-lfs device-tree-compiler python2 python3 \\\npython-is-python3 fdisk bc debhelper python3-pyelftools python3-setuptools \\\npython3-distutils python3-pkg-resources swig libfdt-dev libpython3-dev<\/code><\/pre>\n\n\n\n<h3>Step 2. Obtain the source code<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/mixtile-rockchip\/ubuntu-rockchip.git\ncd ubuntu-rockchip<\/code><\/pre>\n\n\n\n<h3>Step 3. All Build<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo .\/build.sh -b mixtile-core3588e -s noble -f desktop<\/code><\/pre>\n\n\n\n<h3>If you only want to compile kernel and uboot, you can use the following command<\/h3>\n\n\n\n<p>Only build kernel<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo .\/build.sh -b mixtile-core3588e -s noble -f desktop -ko\n<\/code><\/pre>\n\n\n\n<p>Only build uboot<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo .\/build.sh -b mixtile-core3588e -s noble -f desktop -uo\n<\/code><\/pre>\n\n\n\n<p>Other build options<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Usage: .\/build.sh --board=&#91;mixtile-core3588e] --suite=&#91;jammy|noble] --flavor=&#91;server|desktop]\n\nRequired arguments:\n  -b, --board=BOARD      target board\n  -s, --suite=SUITE      ubuntu suite\n  -f, --flavor=FLAVOR    ubuntu flavor\n\nOptional arguments:\n  -h,  --help            show this help message and exit\n  -c,  --clean           clean the build directory\n  -ko, --kernel-only     only compile the kernel\n  -uo, --uboot-only      only compile uboot\n  -ro, --rootfs-only     only build rootfs\n  -l,  --launchpad       use kernel and uboot from launchpad repo\n  -v,  --verbose         increase the verbosity of the bash script\n<\/code><\/pre>\n\n\n\n<h2>The generated image file is in the images folder, including xz compressed packages of the desktop version.<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">images\/\n\u251c\u2500\u2500 ubuntu-24.04-preinstalled-desktop-arm64-mixtile-core3588e-rockchip-format.img.xz\n\u251c\u2500\u2500 ubuntu-24.04-preinstalled-desktop-arm64-mixtile-core3588e-rockchip-format.img.xz.sha256\n\u251c\u2500\u2500 ubuntu-24.04-preinstalled-desktop-arm64-mixtile-core3588e.img.xz\n\u2514\u2500\u2500 ubuntu-24.04-preinstalled-desktop-arm64-mixtile-core3588e.img.xz.sha256<\/pre>\n\n\n\n<p>ubuntu-24.04-preinstalled-desktop-arm64-mixtile-core3588e.img.xz: the compressed disk image file (<code>img.xz<\/code>) for Ubuntu 24.04 preinstalled desktop for the Mixtile Core3588E board.<\/p>\n\n\n\n<p>ubuntu-24.04-preinstalled-desktop-arm64-mixtile-core3588e-rockchip-format.img.xz: the compressed disk image file (<code>img.xz<\/code>) for Ubuntu 24.04 preinstalled desktop specifically tailored for the Mixtile Core3588E board with Rockchip format.<\/p>\n\n\n\n<p>Fore more information, see <a href=\"https:\/\/github.com\/mixtile-rockchip\/ubuntu-rockchip\/wiki\">Mixtile ubuntu-rockchip wiki<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>This document describes how to compile Ubuntu image from source code. Preparations A Ubuntu 22.04 machine Steps Step 1. Install dependent packages Step 2. Obtain the source code Step 3. All Build If you only want to compile kernel and uboot, you can use the following command Only build kernel Only build uboot Other build [&#8230;]","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"spay_email":""},"ht-kb-category":[203],"ht-kb-tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Compile Ubuntu Image from Source Code | Mixtile<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Compile Ubuntu Image from Source Code | Mixtile\" \/>\n<meta property=\"og:description\" content=\"This document describes how to compile Ubuntu image from source code. Preparations A Ubuntu 22.04 machine Steps Step 1. Install dependent packages Step 2. Obtain the source code Step 3. All Build If you only want to compile kernel and uboot, you can use the following command Only build kernel Only build uboot Other build [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Mixtile\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-30T08:28:38+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.mixtile.com\/ja\/#organization\",\"name\":\"Mixtile Limited\",\"url\":\"https:\/\/www.mixtile.com\/ja\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.mixtile.com\/ja\/#logo\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/dh19rycdk230a.cloudfront.net\/app\/uploads\/2022\/02\/logo.svg\",\"contentUrl\":\"https:\/\/dh19rycdk230a.cloudfront.net\/app\/uploads\/2022\/02\/logo.svg\",\"caption\":\"Mixtile Limited\"},\"image\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.mixtile.com\/ja\/#website\",\"url\":\"https:\/\/www.mixtile.com\/ja\/\",\"name\":\"Mixtile\",\"description\":\"Hardware for IoT Solutions\",\"publisher\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.mixtile.com\/ja\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/#webpage\",\"url\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/\",\"name\":\"Compile Ubuntu Image from Source Code | Mixtile\",\"isPartOf\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/#website\"},\"datePublished\":\"2023-11-17T10:14:35+00:00\",\"dateModified\":\"2025-09-30T08:28:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.mixtile.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Compile Ubuntu Image from Source Code\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Compile Ubuntu Image from Source Code | Mixtile","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/","og_locale":"ja_JP","og_type":"article","og_title":"Compile Ubuntu Image from Source Code | Mixtile","og_description":"This document describes how to compile Ubuntu image from source code. Preparations A Ubuntu 22.04 machine Steps Step 1. Install dependent packages Step 2. Obtain the source code Step 3. All Build If you only want to compile kernel and uboot, you can use the following command Only build kernel Only build uboot Other build [...]","og_url":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/","og_site_name":"Mixtile","article_modified_time":"2025-09-30T08:28:38+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.mixtile.com\/ja\/#organization","name":"Mixtile Limited","url":"https:\/\/www.mixtile.com\/ja\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/www.mixtile.com\/ja\/#logo","inLanguage":"ja","url":"https:\/\/dh19rycdk230a.cloudfront.net\/app\/uploads\/2022\/02\/logo.svg","contentUrl":"https:\/\/dh19rycdk230a.cloudfront.net\/app\/uploads\/2022\/02\/logo.svg","caption":"Mixtile Limited"},"image":{"@id":"https:\/\/www.mixtile.com\/ja\/#logo"}},{"@type":"WebSite","@id":"https:\/\/www.mixtile.com\/ja\/#website","url":"https:\/\/www.mixtile.com\/ja\/","name":"Mixtile","description":"Hardware for IoT Solutions","publisher":{"@id":"https:\/\/www.mixtile.com\/ja\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mixtile.com\/ja\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/#webpage","url":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/","name":"Compile Ubuntu Image from Source Code | Mixtile","isPartOf":{"@id":"https:\/\/www.mixtile.com\/ja\/#website"},"datePublished":"2023-11-17T10:14:35+00:00","dateModified":"2025-09-30T08:28:38+00:00","breadcrumb":{"@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-image-from-source-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mixtile.com\/"},{"@type":"ListItem","position":2,"name":"Compile Ubuntu Image from Source Code"}]}]}},"_links":{"self":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/4532"}],"collection":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/comments?post=4532"}],"version-history":[{"count":3,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/4532\/revisions"}],"predecessor-version":[{"id":7868,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/4532\/revisions\/7868"}],"wp:attachment":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/media?parent=4532"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb-category?post=4532"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb-tag?post=4532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}