{"id":7688,"date":"2025-03-12T02:12:26","date_gmt":"2025-03-12T02:12:26","guid":{"rendered":"https:\/\/www.mixtile.com\/?post_type=ht_kb&#038;p=7688"},"modified":"2025-03-12T02:15:25","modified_gmt":"2025-03-12T02:15:25","slug":"compile-talos-os-image-from-source-code","status":"publish","type":"ht_kb","link":"https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/","title":{"rendered":"Compile Talos Linux Image from Source Code"},"content":{"rendered":"<h2>1. Setting Up the Compilation Environment<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/mixtile-rockchip\/mixtile-talos#1-setting-up-the-compilation-environment\"><\/a><\/p>\n\n\n\n<h3>1.1 Installing Docker (If Not Installed)<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/mixtile-rockchip\/mixtile-talos#11-installing-docker-if-not-installed\"><\/a><\/p>\n\n\n\n<p>If Docker is not installed on your system, follow these steps to install it:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># Update package index\nsudo apt update\n\n# Install required dependencies\nsudo apt install -y ca-certificates curl gnupg\n\n# Add Docker's official GPG key\nsudo install -m 0755 -d \/etc\/apt\/keyrings\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo tee \/etc\/apt\/keyrings\/docker.asc &gt; \/dev\/null\nsudo chmod a+r \/etc\/apt\/keyrings\/docker.asc\n\n# Add Docker repository\necho \"deb [arch=$(dpkg --print-architecture) signed-by=\/etc\/apt\/keyrings\/docker.asc] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable\" | sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null\n\n# Update package index\nsudo apt update\n\n# Install Docker CE and Buildx\nsudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin\n\n# Start Docker service\nsudo systemctl start docker<\/pre>\n\n\n\n<h3>1.2 Logging into ghcr.io<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/mixtile-rockchip\/mixtile-talos#12-logging-into-ghcrio\"><\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo \"Your Personal Access Token\" | docker login ghcr.io -u YourGitHubUsername --password-stdin<\/pre>\n\n\n\n<p>Ensure that you have selected&nbsp;<strong>read:packages<\/strong>&nbsp;\u305d\u3057\u3066&nbsp;<strong>write:packages<\/strong>&nbsp;permissions.<\/p>\n\n\n\n<p>Replace&nbsp;<code>USERNAME<\/code>&nbsp;\u3067&nbsp;<code>build.sh<\/code>&nbsp;with your GitHub username:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># export USERNAME=buyuliang\nexport USERNAME=xxx<\/pre>\n\n\n\n<h2>2. Compilation<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/mixtile-rockchip\/mixtile-talos#2-compilation\"><\/a><\/p>\n\n\n\n<h3>2.1 Compiling<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/mixtile-rockchip\/mixtile-talos#21-compiling\"><\/a><\/p>\n\n\n\n<p>After entering the container, execute the following command to start the compilation process:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">.\/build.sh<\/pre>\n\n\n\n<h2>3. Flashing the Compiled Output<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/mixtile-rockchip\/mixtile-talos#3-flashing-the-compiled-output\"><\/a><\/p>\n\n\n\n<p>After compilation, the&nbsp;<code>installer-arm64.tar<\/code>&nbsp;file will be available in the&nbsp;<code>output<\/code>&nbsp;directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">output\/_out\/\n\u2514\u2500\u2500 installer-arm64.tar<\/pre>\n\n\n\n<p>For&nbsp;<strong>Metal<\/strong>&nbsp;builds, note that the construction command must be executed on a physical machine and cannot be run in a virtual machine. The final output will be a RAW image:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">_out\/\n\u2514\u2500\u2500 metal-arm64.raw.xz # xz-compressed raw image<\/pre>\n\n\n\n<h3>3.1 Preparing the Flashing Tool<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/mixtile-rockchip\/mixtile-talos#31-preparing-the-flashing-tool\"><\/a><\/p>\n\n\n\n<p>Download and install&nbsp;<code>rkdeveloptool<\/code>&nbsp;for flashing firmware:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git clone https:\/\/github.com\/mixtile-rockchip\/rkdeveloptool.git\n\nFollow the README instructions to install<\/pre>\n\n\n\n<h3>3.2 Entering Flash Mode<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/mixtile-rockchip\/mixtile-talos#32-entering-flash-mode\"><\/a><\/p>\n\n\n\n<p>Connect the device to the PC and enter&nbsp;<strong>flash mode<\/strong>&nbsp;(usually by holding a specific button while powering on). Then check if the device is detected:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rkdeveloptool list<\/pre>\n\n\n\n<h3>3.3 Flashing the RAW Image<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/mixtile-rockchip\/mixtile-talos#33-flashing-the-raw-image\"><\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rkdeveloptool db output\/uboot\/rk3588_spl_loader_xxxx.bin\nrkdeveloptool wl 0 metal-arm64.raw<\/pre>\n\n\n\n<h3>3.4 Restarting the Device<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/mixtile-rockchip\/mixtile-talos#34-restarting-the-device\"><\/a><\/p>\n\n\n\n<p>Once flashing is complete, reboot the device with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rkdeveloptool rd<\/pre>\n\n\n\n<p>At this point, the entire compilation and flashing process is complete. The device should boot and run the newly flashed firmware successfully.<\/p>\n\n\n\n<p><strong>Note: Some PD adapters may be restarted. Adapters with non-PD protocol and 5V\/3A support are recommended<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>1. Setting Up the Compilation Environment 1.1 Installing Docker (If Not Installed) If Docker is not installed on your system, follow these steps to install it: # Update package index sudo apt update # Install required dependencies sudo apt install -y ca-certificates curl gnupg # Add Docker&#8217;s official GPG key sudo install -m 0755 -d [&#8230;]","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 Talos Linux 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-talos-os-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 Talos Linux Image from Source Code | Mixtile\" \/>\n<meta property=\"og:description\" content=\"1. Setting Up the Compilation Environment 1.1 Installing Docker (If Not Installed) If Docker is not installed on your system, follow these steps to install it: # Update package index sudo apt update # Install required dependencies sudo apt install -y ca-certificates curl gnupg # Add Docker&#039;s official GPG key sudo install -m 0755 -d [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Mixtile\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-12T02:15:25+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-talos-os-image-from-source-code\/#webpage\",\"url\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/\",\"name\":\"Compile Talos Linux Image from Source Code | Mixtile\",\"isPartOf\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/#website\"},\"datePublished\":\"2025-03-12T02:12:26+00:00\",\"dateModified\":\"2025-03-12T02:15:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.mixtile.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Compile Talos Linux Image from Source Code\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Compile Talos Linux 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-talos-os-image-from-source-code\/","og_locale":"ja_JP","og_type":"article","og_title":"Compile Talos Linux Image from Source Code | Mixtile","og_description":"1. Setting Up the Compilation Environment 1.1 Installing Docker (If Not Installed) If Docker is not installed on your system, follow these steps to install it: # Update package index sudo apt update # Install required dependencies sudo apt install -y ca-certificates curl gnupg # Add Docker's official GPG key sudo install -m 0755 -d [...]","og_url":"https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/","og_site_name":"Mixtile","article_modified_time":"2025-03-12T02:15:25+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-talos-os-image-from-source-code\/#webpage","url":"https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/","name":"Compile Talos Linux Image from Source Code | Mixtile","isPartOf":{"@id":"https:\/\/www.mixtile.com\/ja\/#website"},"datePublished":"2025-03-12T02:12:26+00:00","dateModified":"2025-03-12T02:15:25+00:00","breadcrumb":{"@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-talos-os-image-from-source-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mixtile.com\/"},{"@type":"ListItem","position":2,"name":"Compile Talos Linux Image from Source Code"}]}]}},"_links":{"self":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/7688"}],"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=7688"}],"version-history":[{"count":3,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/7688\/revisions"}],"predecessor-version":[{"id":7692,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/7688\/revisions\/7692"}],"wp:attachment":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/media?parent=7688"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb-category?post=7688"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb-tag?post=7688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}