{"id":3730,"date":"2023-08-30T09:40:08","date_gmt":"2023-08-30T09:40:08","guid":{"rendered":"https:\/\/staging.mixtile.com\/?post_type=ht_kb&#038;p=1285"},"modified":"2024-10-08T08:51:15","modified_gmt":"2024-10-08T08:51:15","slug":"compile-and-install-driver-in-blade-3","status":"publish","type":"ht_kb","link":"https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/","title":{"rendered":"Blade 3\u3067\u306e\u30c9\u30e9\u30a4\u30d0\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u4ee5\u4e0b\u306f\u3001Blade 3 \u306b\u30c9\u30e9\u30a4\u30d0\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806\u3067\u3059\u3002<\/p>\n\n\n\n<ol><li>\u30ab\u30fc\u30cd\u30eb\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3002&nbsp;<a href=\"https:\/\/github.com\/mixtile\/linux\/tree\/mixtile\/blade3\/debian11\/kernel5.10\">Github\u30ea\u30f3\u30af<\/a>&nbsp;\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308c\u308b\u3002<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone --single-branch --branch mixtile\/blade3\/debian11\/kernel5.10 https:\/\/github.com\/mixtile\/linux.git<\/code><\/pre>\n\n\n\n<p>2.Blade 3\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3001\/lib\/modules\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d3\u30eb\u30c9\u30ea\u30f3\u30af\u3092\u3001\u65b0\u3057\u304f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30ab\u30fc\u30cd\u30eb\u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30a9\u30eb\u30c0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm \/lib\/modules\/5.10.66\/build\n\nln -snf xxx\/kernel \/lib\/modules\/5.10.66\/build\n<\/code><\/pre>\n\n\n\n<p>(\u6ce8\uff1a \"<strong>xxx<\/strong>\"\u3092\u30ab\u30fc\u30cd\u30eb\u30fb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u7d76\u5bfe\u30d1\u30b9\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044)<\/p>\n\n\n\n<ol start=\"3\"><li>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff1a<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get update\n\napt-get install -y git ssh make gcc libssl-dev liblz4-tool expect g++ patchelf chrpath gawk texinfo chrpath diffstat software-properties-common bison flex fakeroot cmake unzip device-tree-compiler libncurses-dev python3-pip python3-pyelftools bc make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev python rsync\n\napt-get install gcc-aarch64-linux-gnu<\/code><\/pre>\n\n\n\n<p>4.\u30ab\u30fc\u30cd\u30eb\u306e\u8a2d\u5b9a<\/p>\n\n\n\n<p>    4.1 \u30ab\u30fc\u30cd\u30eb\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001\u30ab\u30fc\u30cd\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- blade3_linux_defconfig<\/code><\/pre>\n\n\n\n<p>     4.2 \u30ab\u30fc\u30cd\u30eb\u306e\u30b3\u30f3\u30d1\u30a4\u30eb<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rk3588-blade3-v101-linux.img<\/code><\/pre>\n\n\n\n<p>5.\u30c9\u30e9\u30a4\u30d0\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30f3\u30d1\u30a4\u30eb<\/p>\n\n\n\n<p>    5.1 \u30c9\u30e9\u30a4\u30d0\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f\u3001\u4ee5\u4e0b\u306f\u7c21\u5358\u306a\u4f8b\u3067\u3059\uff1a<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(a) \u30c9\u30e9\u30a4\u30d0\u30d5\u30a1\u30a4\u30eb hello.c \u3092\u66f8\u304f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include \n#include  \n#include \n\nMODULE_AUTHOR(\"fengyc\");\nMODULE_DESCRIPTION(\"This is a demo.\");\nMODULE_VERSION(\"0.0.1\");\nMODULE_LICENSE(\"GPL\");\n\nstatic int __init hello_init(void)\n{\nprintk(KERN_INFO \"Hello, world!\\n\");\nreturn 0;\n}\n\nstatic void __exit hello_exit(void)\n{\nprintk(KERN_INFO \"Goodbye, world!\\n\");\n}\n\nmodule_init(hello_init);\nmodule_exit(hello_exit);<\/code><\/pre>\n\n\n\n<p>&nbsp;(b) Makefile\u3092\u66f8\u304f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>obj-m += hello.o\n\nall:\nmake -C \"\/lib\/modules\/$(shell uname -r)\/build\" M=$(PWD) modules\n\nclean:\nmake -C \"\/lib\/modules\/$(shell uname -r)\/build\" M=$(PWD) clean<\/code><\/pre>\n\n\n\n<p>5.2 \u30c9\u30e9\u30a4\u30d0\u306e\u30b3\u30f3\u30d1\u30a4\u30eb<\/p>\n\n\n\n<p>\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067make\u3092\u5b9f\u884c\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make<\/code><\/pre>\n\n\n\n<p>\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u3067\u304d\u308b\uff1a<\/p>\n\n\n\n<p><strong>Makefile hello.c hello.mod hello.mod.o modules.order Module.symvers hello.ko hello.mod.c hello.o<\/strong><\/p>\n\n\n\n<p>5.3 \u30c9\u30e9\u30a4\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>insmod hello.ko<\/code><\/pre>\n\n\n\n<p>5.4 \u30c9\u30e9\u30a4\u30d0\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rmmod hello.ko<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>Below is the instruction to compile and install driver in Blade 3. Download source code of kernel from this&nbsp;Github link&nbsp;and put it to folder of Blade 3. 2. Use Blade 3 console and modify the build link of \/lib\/modules directory to the folder directory of newly downloaded kernel files (Note: You should replace \u201cxxx\u201d in [&#8230;]","protected":false},"author":1,"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 and Install Driver in Blade 3 | 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-and-install-driver-in-blade-3\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Compile and Install Driver in Blade 3 | Mixtile\" \/>\n<meta property=\"og:description\" content=\"Below is the instruction to compile and install driver in Blade 3. Download source code of kernel from this&nbsp;Github link&nbsp;and put it to folder of Blade 3. 2. Use Blade 3 console and modify the build link of \/lib\/modules directory to the folder directory of newly downloaded kernel files (Note: You should replace \u201cxxx\u201d in [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/\" \/>\n<meta property=\"og:site_name\" content=\"Mixtile\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-08T08:51:15+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-and-install-driver-in-blade-3\/#webpage\",\"url\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/\",\"name\":\"Compile and Install Driver in Blade 3 | Mixtile\",\"isPartOf\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/#website\"},\"datePublished\":\"2023-08-30T09:40:08+00:00\",\"dateModified\":\"2024-10-08T08:51:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.mixtile.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Compile and Install Driver in Blade 3\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Compile and Install Driver in Blade 3 | 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-and-install-driver-in-blade-3\/","og_locale":"ja_JP","og_type":"article","og_title":"Compile and Install Driver in Blade 3 | Mixtile","og_description":"Below is the instruction to compile and install driver in Blade 3. Download source code of kernel from this&nbsp;Github link&nbsp;and put it to folder of Blade 3. 2. Use Blade 3 console and modify the build link of \/lib\/modules directory to the folder directory of newly downloaded kernel files (Note: You should replace \u201cxxx\u201d in [...]","og_url":"https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/","og_site_name":"Mixtile","article_modified_time":"2024-10-08T08:51:15+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-and-install-driver-in-blade-3\/#webpage","url":"https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/","name":"Compile and Install Driver in Blade 3 | Mixtile","isPartOf":{"@id":"https:\/\/www.mixtile.com\/ja\/#website"},"datePublished":"2023-08-30T09:40:08+00:00","dateModified":"2024-10-08T08:51:15+00:00","breadcrumb":{"@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mixtile.com\/ja\/docs\/compile-and-install-driver-in-blade-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mixtile.com\/"},{"@type":"ListItem","position":2,"name":"Compile and Install Driver in Blade 3"}]}]}},"_links":{"self":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/3730"}],"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=3730"}],"version-history":[{"count":2,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/3730\/revisions"}],"predecessor-version":[{"id":6873,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb\/3730\/revisions\/6873"}],"wp:attachment":[{"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/media?parent=3730"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb-category?post=3730"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mixtile.com\/ja\/wp-json\/wp\/v2\/ht-kb-tag?post=3730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}