{"id":5410,"date":"2024-02-01T08:31:13","date_gmt":"2024-02-01T08:31:13","guid":{"rendered":"https:\/\/www.mixtile.com\/?post_type=ht_kb&#038;p=5410"},"modified":"2024-10-08T08:48:42","modified_gmt":"2024-10-08T08:48:42","slug":"compile-ubuntu-debian-image-from-source-code","status":"publish","type":"ht_kb","link":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/","title":{"rendered":"Compile Debian image from source code"},"content":{"rendered":"<h2>\u6e96\u5099<\/h2>\n\n\n\n<p>A x86 computer which runs Ubuntu 22.04<\/p>\n\n\n\n<h2>\u30b9\u30c6\u30c3\u30d7<\/h2>\n\n\n\n<h3>1. Install Docker<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update\nsudo apt-get install docker.io<\/code><\/pre>\n\n\n\n<h3><a href=\"https:\/\/github.com\/mixtile-rockchip\/build#2-build-docker-image\"><\/a>2. Build Docker image<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/mixtile-rockchip\/build.git\ncd build\nsudo docker build -t blade3-debian-env .\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># View the built docker image\nblade3:mixtile~\/build$ sudo docker images\nREPOSITORY          TAG       IMAGE ID       CREATED         SIZE\nblade3-debian-env   latest    ad587023e07a   3 minutes ago   1.7GB\nubuntu              20.04     83a4bf3bb050   2 weeks ago     72.8MB<\/code><\/pre>\n\n\n\n<h3><a href=\"https:\/\/github.com\/mixtile-rockchip\/build#3-install-repo\"><\/a>3. Install Repo<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># repo depends on python3, make sure you have a python3 environment before using it\n# sudo apt-get install -y python3 &amp;&amp; sudo ln -snf \/usr\/bin\/python3 \/usr\/bin\/python\nmkdir -p ~\/.bin\nPATH=\"${HOME}\/.bin:${PATH}\"\ncurl https:\/\/storage.googleapis.com\/git-repo-downloads\/repo &gt; ~\/.bin\/repo\nchmod a+rx ~\/.bin\/repo<\/code><\/pre>\n\n\n\n<h3><a href=\"https:\/\/github.com\/mixtile-rockchip\/build#4-download-code\"><\/a>4. Download code<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># Before downloading git, install git tool and configure Git information\n# sudo apt-get install -y git git-lfs\n# git config --global user.email \"you@example.com\"\n# git config --global user.name \"Your Name\"\n# You can create a new blade3 directory and do the following\nmkdir blade3 &amp;&amp; cd blade3\nrepo init -u https:\/\/github.com\/mixtile-rockchip\/manifests.git -b master -m rk3588_linux_release.xml\nrepo sync<\/code><\/pre>\n\n\n\n<h3><a href=\"https:\/\/github.com\/mixtile-rockchip\/build#5-build-using-docker\"><\/a>5. Build using Docker<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># You need to execute the following command in the source directory, the blade3 directory\nsudo docker run --privileged -u root -it --rm -v $PWD:\/build blade3-debian-env\ncd \/build\n.\/build.sh chip    # Follow the prompts to select rk3588 and rockchip_rk3588_blade3_v101_defconfig\n.\/build.sh all<\/code><\/pre>\n\n\n\n<h3><a href=\"https:\/\/github.com\/mixtile-rockchip\/build#6-build-output\"><\/a>6. Build output<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea: output\/update\/Image\n.\n\u251c\u2500\u2500 boot.img -&gt; ..\/..\/..\/kernel\/boot.img\n\u251c\u2500\u2500 MiniLoaderAll.bin -&gt; ..\/..\/..\/u-boot\/rk3588_spl_loader_v1.13.112.bin\n\u251c\u2500\u2500 misc.img -&gt; ..\/..\/firmware\/misc.img\n\u251c\u2500\u2500 oem.img -&gt; ..\/..\/firmware\/oem.img\n\u251c\u2500\u2500 \u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\n\u251c\u2500\u2500 parameter.txt -&gt; ..\/..\/..\/device\/rockchip\/.chips\/rk3588\/parameter.txt\n\u251c\u2500\u2500 recovery.img -&gt; ..\/..\/..\/buildroot\/output\/rockchip_rk3588_recovery\/images\/recovery.img\n\u251c\u2500\u2500 rootfs.img -&gt; ..\/..\/..\/debian\/linaro-rootfs.img\n\u251c\u2500\u2500 uboot.img -&gt; ..\/..\/..\/u-boot\/uboot.img\n\u251c\u2500\u2500 update.img\n\u251c\u2500\u2500 update.raw.img\n\u2514\u2500\u2500 userdata.img -&gt; ..\/..\/firmware\/userdata.img<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>Preparations A x86 computer which runs Ubuntu 22.04 Steps 1. Install Docker 2. Build Docker image 3. Install Repo 4. Download code 5. Build using Docker 6. Build output<\/p>","protected":false},"author":7,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"spay_email":""},"ht-kb-category":[201],"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 Debian 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-debian-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 Debian image from source code | Mixtile\" \/>\n<meta property=\"og:description\" content=\"Preparations A x86 computer which runs Ubuntu 22.04 Steps 1. Install Docker 2. Build Docker image 3. Install Repo 4. Download code 5. Build using Docker 6. Build output\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Mixtile\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-08T08:48:42+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-debian-image-from-source-code\/#webpage\",\"url\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/\",\"name\":\"Compile Debian image from source code | Mixtile\",\"isPartOf\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/#website\"},\"datePublished\":\"2024-02-01T08:31:13+00:00\",\"dateModified\":\"2024-10-08T08:48:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.mixtile.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Compile Debian image from source code\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Compile Debian 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-debian-image-from-source-code\/","og_locale":"ja_JP","og_type":"article","og_title":"Compile Debian image from source code | Mixtile","og_description":"Preparations A x86 computer which runs Ubuntu 22.04 Steps 1. Install Docker 2. Build Docker image 3. Install Repo 4. Download code 5. Build using Docker 6. Build output","og_url":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/","og_site_name":"Mixtile","article_modified_time":"2024-10-08T08:48:42+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-debian-image-from-source-code\/#webpage","url":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/","name":"Compile Debian image from source code | Mixtile","isPartOf":{"@id":"https:\/\/www.mixtile.com\/ja\/#website"},"datePublished":"2024-02-01T08:31:13+00:00","dateModified":"2024-10-08T08:48:42+00:00","breadcrumb":{"@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-ubuntu-debian-image-from-source-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mixtile.com\/"},{"@type":"ListItem","position":2,"name":"Compile Debian image from source code"}]}]}},"_links":{"self":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/5410"}],"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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/comments?post=5410"}],"version-history":[{"count":4,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/5410\/revisions"}],"predecessor-version":[{"id":5415,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/5410\/revisions\/5415"}],"wp:attachment":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/media?parent=5410"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb-category?post=5410"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb-tag?post=5410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}