{"id":5337,"date":"2024-01-12T07:19:20","date_gmt":"2024-01-12T07:19:20","guid":{"rendered":"https:\/\/www.mixtile.com\/?post_type=ht_kb&#038;p=5337"},"modified":"2024-10-08T08:50:26","modified_gmt":"2024-10-08T08:50:26","slug":"compile-debian-image-from-source-code","status":"publish","type":"ht_kb","link":"https:\/\/www.mixtile.com\/ja\/docs\/compile-debian-image-from-source-code\/","title":{"rendered":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089Debian\u30a4\u30e1\u30fc\u30b8\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b"},"content":{"rendered":"<p>\u3053\u306e\u6587\u66f8\u3067\u306f\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089 Debian \u30a4\u30e1\u30fc\u30b8\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"1-prerequisites\">1.\u6e96\u5099<\/h3>\n\n\n\n<ul><li>Ubuntu Linux\u74b0\u5883\uff08ubuntu-latest\uff09<\/li><li>\u8ffd\u52a0\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\uff08\u4f8b\uff1a20GB\u306e\u30eb\u30fc\u30c8\u30ea\u30b6\u30fc\u30d6\u30011GB\u306e\u30b9\u30ef\u30c3\u30d7\uff09<\/li><li>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30a2\u30af\u30bb\u30b9<\/li><\/ul>\n\n\n\n<h3 id=\"2-checkout-code\">2.\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/mixtile-rockchip\/build.git\ncd \u30d3\u30eb\u30c9<\/code><\/pre>\n\n\n\n<h3 id=\"3-checkout-lfs\">3.LFS\u306e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>git lfs fetch &amp;&amp; git lfs checkout<\/code><\/pre>\n\n\n\n<h3 id=\"4-install-dependencies\">4.\u4f9d\u5b58\u95a2\u4fc2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  sudo apt-get update &amp;&amp; sudo apt-get upgrade -y\n  sudo apt-get install -y git ssh make gcc libssl-dev  \\\n  liblz4-tool expect g++ patchelf chrpath gawk texinfo \u0b67-\u0348\u1d17-\u0348)\u25de\u02b1\u02b1\n  chrpath diffstat software-properties-common bison flex \u0b67-\u0348\u1d17-\u0348)\u25de\u02b1\u02b1\n  fakeroot cmake gcc-multilib g++-multilib unzip device-tree-compiler  \\\n  libncurses-dev python3-pip python3-pyelftools bc make build-essential  \\\n  libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl \u0b67-\u0348\u1d17-\u0348)\u25de\u02b1\u02b1\n  llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev \u0b67-\u0348\u1d17-\u0348.\n  liblzma-dev uuid-dev lzma-dev liblzma-dev libbluetooth-dev python-parted-doc \u0b67-\u0348\u1d17-\u0348.\n  u-boot-tools sudo time rsync libmpc-dev bsdmainutils python2 xz-utils<\/code><\/pre>\n\n\n\n<h3 id=\"5-install-ppa-dependencies\">5.ppa\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update &amp;&amp; sudo apt-get install -y binfmt-support qemu-user-static live-build<\/code><\/pre>\n\n\n\n<h3 id=\"6-install-debian_prepare\">6.debian_prepare \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  sudo cp debian-rk3588.tar.gz \/opt\/ &amp;&amp; sudo tar -xvf debian-rk3588.tar.gz -C \/opt\/ &amp;&amp; \\\n  sudo apt-get update &amp;&amp; sudo apt-get install -y xxd &amp;&amp; \\\n  sudo chmod a+x debian_prepare.sh &amp;&amp; sudo .\/debian_prepare.sh<\/code><\/pre>\n\n\n\n<h3 id=\"7-install-repo\">7.\u30ec\u30dd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  mkdir -p ~\/.bin &amp;&amp; \\\n  sudo curl https:\/\/storage.googleapis.com\/git-repo-downloads\/repo -o ~\/.bin\/repo &amp;&amp; \\\n  sudo cp ~\/.bin\/repo \/usr\/bin\/repo &amp;&amp; sudo chmod a+x \/usr\/bin\/repo<\/code><\/pre>\n\n\n\n<h3 id=\"8-download-code\">8.\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  repo init -u https:\/\/github.com\/mixtile-rockchip\/manifests.git -b master -m mixtile_core3588e_release.xml &amp;&amp; \\\n  \u30ea\u30dd\u30b8\u30c8\u30ea\u540c\u671f<\/code><\/pre>\n\n\n\n<h3 id=\"9-build-image\">9.\u30d3\u30eb\u30c9\u30a4\u30e1\u30fc\u30b8<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  echo '20' &gt;&gt; input.txt &amp;&amp; \\\n  echo '5' &gt;&gt; input.txt &amp;&amp; \\\n  sudo .\/build.sh chip &lt; input.txt &amp;&amp; sudo rm input.txt &amp;&amp; \\\n  sudo .\/build.sh all<\/code><\/pre>\n\n\n\n<h3 id=\"10-build-output\">10.\u30d3\u30eb\u30c9\u51fa\u529b<\/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>\n\n\n\n<h3 id=\"11-upgrade-firmware\">11.\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/h3>\n\n\n\n<p>\u3053\u306e\u30da\u30fc\u30b8\u3092\u53c2\u7167 <a href=\"https:\/\/www.mixtile.com\/ja\/docs\/upgrade-core-3588e-firmware-using-raw-image\/\">RAW\u753b\u50cf\u3092\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/a> \u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/p>","protected":false},"excerpt":{"rendered":"<p>This document describes how to compile Debian image from source code. 1. Preparations Ubuntu Linux environment (ubuntu-latest) Additional disk space (e.g., 20GB root reserve, 1GB swap) Internet access 2. Checkout code 3. Checkout LFS 4. Install dependencies 5. Install ppa dependencies 6. Install debian_prepare 7. Install repo 8. Download code 9. Build image 10. Build [&#8230;]","protected":false},"author":7,"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 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-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=\"This document describes how to compile Debian image from source code. 1. Preparations Ubuntu Linux environment (ubuntu-latest) Additional disk space (e.g., 20GB root reserve, 1GB swap) Internet access 2. Checkout code 3. Checkout LFS 4. Install dependencies 5. Install ppa dependencies 6. Install debian_prepare 7. Install repo 8. Download code 9. Build image 10. Build [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mixtile.com\/ja\/docs\/compile-debian-image-from-source-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Mixtile\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-08T08:50:26+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-debian-image-from-source-code\/#webpage\",\"url\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-debian-image-from-source-code\/\",\"name\":\"Compile Debian Image from Source Code | Mixtile\",\"isPartOf\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/#website\"},\"datePublished\":\"2024-01-12T07:19:20+00:00\",\"dateModified\":\"2024-10-08T08:50:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-debian-image-from-source-code\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mixtile.com\/ja\/docs\/compile-debian-image-from-source-code\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-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-debian-image-from-source-code\/","og_locale":"ja_JP","og_type":"article","og_title":"Compile Debian Image from Source Code | Mixtile","og_description":"This document describes how to compile Debian image from source code. 1. Preparations Ubuntu Linux environment (ubuntu-latest) Additional disk space (e.g., 20GB root reserve, 1GB swap) Internet access 2. Checkout code 3. Checkout LFS 4. Install dependencies 5. Install ppa dependencies 6. Install debian_prepare 7. Install repo 8. Download code 9. Build image 10. Build [...]","og_url":"https:\/\/www.mixtile.com\/ja\/docs\/compile-debian-image-from-source-code\/","og_site_name":"Mixtile","article_modified_time":"2024-10-08T08:50:26+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-debian-image-from-source-code\/#webpage","url":"https:\/\/www.mixtile.com\/ja\/docs\/compile-debian-image-from-source-code\/","name":"Compile Debian Image from Source Code | Mixtile","isPartOf":{"@id":"https:\/\/www.mixtile.com\/ja\/#website"},"datePublished":"2024-01-12T07:19:20+00:00","dateModified":"2024-10-08T08:50:26+00:00","breadcrumb":{"@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-debian-image-from-source-code\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mixtile.com\/ja\/docs\/compile-debian-image-from-source-code\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-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\/5337"}],"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=5337"}],"version-history":[{"count":2,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/5337\/revisions"}],"predecessor-version":[{"id":5339,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/5337\/revisions\/5339"}],"wp:attachment":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/media?parent=5337"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb-category?post=5337"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb-tag?post=5337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}