{"id":782,"date":"2025-02-25T08:00:56","date_gmt":"2025-02-25T00:00:56","guid":{"rendered":"https:\/\/www.zhoubin.asia\/?p=782"},"modified":"2025-02-24T12:52:15","modified_gmt":"2025-02-24T04:52:15","slug":"h15-h10-sbc-wifi","status":"publish","type":"post","link":"https:\/\/www.zhoubin.asia\/index.php\/2025\/02\/25\/h15-h10-sbc-wifi\/","title":{"rendered":"\u5728 H15\/H10 SBC \u4e0a\u8bbe\u7f6e USB Wi-Fi \u8f6c\u6362\u5668"},"content":{"rendered":"<p>\u5728\u672c\u6307\u5357\u4e2d\uff0c\u6211\u4eec\u5c06\u5f15\u5bfc\u60a8\u5b8c\u6210\u5728 H15\/H10 \u5355\u677f\u8ba1\u7b97\u673a\uff08SBC\uff09\u4e0a\u8bbe\u7f6e USB Wi-Fi \u9002\u914d\u5668\u7684\u6b65\u9aa4\uff0c\u4ece\u800c\u4f7f\u5176\u80fd\u591f\u8fde\u63a5\u5230 Wi-Fi \u7f51\u7edc\u3002\u8fd9\u4e2a\u8bbe\u7f6e\u5bf9\u4e8e\u5c06 SBC \u7528\u4f5c\u4ee5\u592a\u7f51 GenAI \u7f51\u7edc\u670d\u52a1\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<h2>USB Wi-Fi \u9002\u914d\u5668\u9a71\u52a8\u7a0b\u5e8f<\/h2>\n<p>\u60a8\u53ef\u4ee5\u5728 GitHub \u4e0a\u627e\u5230 USB Wi-Fi \u9002\u914d\u5668\u7684\u9a71\u52a8\u7a0b\u5e8f\uff1a<\/p>\n<p><a href=\"https:\/\/github.com\/your-repository-link\" target=\"_blank\" rel=\"noopener\">USB Wi-Fi Adapter Driver<\/a><\/p>\n<h2>\u5728 H15\/H10 SBC \u4e0a\u8bbe\u7f6e USB Wi-Fi \u9002\u914d\u5668\u7684\u6b65\u9aa4<\/h2>\n<h3>1. \u4f7f\u7528\u5de5\u5177\u94fe\u6784\u5efa\u9a71\u52a8\u7a0b\u5e8f<\/h3>\n<p><strong>a. \u5b89\u88c5\u5de5\u5177\u94fe<\/strong><\/p>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u4e3a\u60a8\u7684\u6784\u5efa\u73af\u5883\u5b89\u88c5 Yocto SDK\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 SDK\uff08\u6839\u636e\u9700\u8981\u66ff\u6362\u8def\u5f84\uff09\uff1a<\/p>\n<pre>.\/poky-glibc-x86_64-core-image-minimal-armv8a-hailo15-sbc-gen-ai-toolchain-4.0.23.sh\r\n<\/pre>\n<p><strong>b. \u590d\u5236\u5185\u6838\u6e90\u4ee3\u7801<\/strong><\/p>\n<p>\u5c06\u5185\u6838\u6e90\u4ee3\u7801\u590d\u5236\u5230 SBC \u4e0a\u7684\u6b63\u786e\u76ee\u5f55\u4e2d\u3002\u8def\u5f84\u5e94\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre>\/opt\/poky\/4.0.23\/sysroots\/armv8a-poky-linux\/usr\/src\/debug\/linux-yocto-hailo\/5.15.32-r0\/linux-hailo15_sbc_gen_ai-standard-build\/\r\n<\/pre>\n<p>\u786e\u4fdd\u5728\u6b64\u6b65\u9aa4\u4e2d\u5305\u62ec .config \u6587\u4ef6\uff0c\u56e0\u4e3a\u5b83\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<p><strong>c. \u4fee\u6539 Makefile<\/strong><\/p>\n<p>\u66f4\u65b0 Makefile \u4ee5\u5305\u542b\u6b63\u786e\u7684\u8def\u5f84\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a Makefile \u914d\u7f6e\u793a\u4f8b\uff1a<\/p>\n<pre>ifeq ($(CONFIG_PLATFORM_YOCTO), y)\r\n  ARCH = arm64     \r\n  KDIR = \/opt\/poky\/4.0.23\/sysroots\/armv8a-poky-linux\/usr\/src\/debug\/linux-yocto-hailo\/5.15.32-r0\/linux-hailo15_sbc_gen_ai-standard-build\/\r\n  CROSS_COMPILE = \/opt\/poky\/4.0.23\/sysroots\/x86_64-pokysdk-linux\/usr\/bin\/aarch64-poky-linux\/aarch64-poky-linux-    \r\n  MODDESTDIR = \/lib\/modules\/$(KVER)\/kernel\/drivers\/net\/wireless\/aic8800     \r\n  PWD   = $(shell pwd)     \r\n  KVER = 5.15.32-yocto-standard \r\nendif\r\n<\/pre>\n<p><strong>d. \u6784\u5efa\u5185\u6838\u548c\u9a71\u52a8\u7a0b\u5e8f<\/strong><\/p>\n<p>\u5728\u8bbe\u7f6e\u597d SDK \u5de5\u5177\u94fe\u73af\u5883\u540e\uff0c\u6784\u5efa\u5185\u6838\uff1a<\/p>\n<pre>source \/environment-setup-armv8a-poky-linux\r\nmake\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-783\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2025\/02\/kernel_driver_build.png\" alt=\"\" width=\"1909\" height=\"358\" \/><\/pre>\n<p>\u6b64\u8fc7\u7a0b\u5c06\u751f\u6210\u4e24\u4e2a\u5185\u6838\u6a21\u5757\u6587\u4ef6\uff1a<\/p>\n<ul>\n<li>aic_load_fw.ko<\/li>\n<li>aic8800_fdrv.ko<\/li>\n<\/ul>\n<h3>2. \u51c6\u5907\u56fa\u4ef6\u548c\u4f9d\u8d56\u9879<\/h3>\n<p><strong>a. \u590d\u5236\u56fa\u4ef6<\/strong><\/p>\n<p>\u5c06\u6240\u6709\u56fa\u4ef6\u6587\u4ef6\u590d\u5236\u5230 \/vendor\/etc\/firmware\/ \u76ee\u5f55\uff0c\u5e76\u5c06 aic_userconfig.txt \u6587\u4ef6\u590d\u5236\u5230 \/vendor\/etc\/firmware\/aic8800D80\/\u3002\u6839\u636e\u6211\u4eec\u5728\u52a0\u8f7d\u6a21\u5757\u65f6\u9047\u5230\u7684\u9519\u8bef\u6d88\u606f\uff0c\u6b64\u6b65\u9aa4\u662f\u5fc5\u8981\u7684\u3002<\/p>\n<p><strong>b. \u542f\u7528 SBC \u5185\u6838\u7684 Wi-Fi \u652f\u6301<\/strong><\/p>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cSBC \u53ef\u80fd\u6ca1\u6709\u542f\u7528 Wi-Fi \u652f\u6301\u3002\u4e3a\u4e86\u907f\u514d\u91cd\u65b0\u6784\u5efa\u6574\u4e2a\u5185\u6838\uff0c\u6211\u4eec\u53ef\u4ee5\u6dfb\u52a0\u4ee5\u4e0b\u8bbe\u7f6e\uff1a<\/p>\n<pre>CONFIG_RFKILL=m \r\nCONFIG_CFG80211=m \r\nCONFIG_MAC80211=m<\/pre>\n<p>\u91cd\u65b0\u6784\u5efa\u5185\u6838\uff0c\u60a8\u5e94\u8be5\u4f1a\u5728\u6784\u5efa\u76ee\u5f55\u4e2d\u627e\u5230\u4ee5\u4e0b\u9a71\u52a8\u7a0b\u5e8f\uff1a<\/p>\n<ul>\n<li>rfkill.ko<\/li>\n<li>cfg80211.ko<\/li>\n<li>mac80211.ko\uff08\u6ce8\u610f\uff1a\u6211\u4eec\u4f7f\u7528\u4e86\u524d\u4e24\u4e2a\u9a71\u52a8\u7a0b\u5e8f\uff0c\u4f46\u6ca1\u6709\u4f7f\u7528 mac80211.ko\uff09<\/li>\n<\/ul>\n<p><strong>c. \u4e0b\u8f7d\u9a71\u52a8\u4f9d\u8d56\u6570\u636e\u5e93<\/strong><\/p>\n<p>\u4e0b\u8f7d cfg80211 \u6a21\u5757\u7684 regulatory.db \u548c regulatory.db.p7s \u6587\u4ef6\u3002\u8fd9\u4e9b\u6587\u4ef6\u53ef\u4ee5\u4ece kernel.org \u83b7\u53d6\u3002\u7136\u800c\uff0c\u6211\u4eec\u9047\u5230\u4e86\u4e00\u4e9b\u7248\u672c\u95ee\u9898\uff0c\u56e0\u6b64\u4ece\u672c\u5730 x86 PC \u4e2d\u590d\u5236\u4e86\u7248\u672c\u3002<\/p>\n<h3>3. \u5b89\u88c5\u6a21\u5757\u9a71\u52a8\u7a0b\u5e8f<\/h3>\n<p>\u73b0\u5728\uff0c\u4e00\u5207\u5df2\u8bbe\u7f6e\u5b8c\u6210\uff0c\u5b89\u88c5\u5185\u6838\u6a21\u5757\u3002\u5b8c\u6210\u540e\uff0c\u60a8\u7684 USB Wi-Fi \u9002\u914d\u5668\u5e94\u8be5\u4f1a\u88ab\u8bc6\u522b\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c ifconfig \u547d\u4ee4\u67e5\u770b\u5230 wlan0\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-784\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2025\/02\/\u5c4f\u5e55\u622a\u56fe-2025-02-24-115832.png\" alt=\"\" width=\"1564\" height=\"730\" \/><\/p>\n<h3>4. \u6784\u5efa\u5e76\u4f7f\u7528 WPA Supplicant \u8fde\u63a5\u5230 Wi-Fi<\/h3>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528 wpa_supplicant \u914d\u7f6e Wi-Fi \u8fde\u63a5\uff0cwpa_supplicant \u5df2\u5305\u542b\u5728 Yocto \u6784\u5efa\u73af\u5883\u4e2d\uff1a<\/p>\n<pre>bitbake wpa-supplicant<\/pre>\n<p>\u786e\u4fdd\u60a8\u5df2\u5b89\u88c5\u6240\u9700\u7684\u5e93\uff0c\u4f8b\u5982 libnl-3.so.200 \u548c libnl-genl-3.so\uff0c\u56e0\u4e3a\u5b83\u4eec\u662f wpa_supplicant \u7684\u4f9d\u8d56\u9879\u3002<\/p>\n<h3>5. \u8fde\u63a5\u5230 Wi-Fi<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8 wpa_supplicant \u5e76\u8fde\u63a5\u5230 Wi-Fi \u7f51\u7edc\uff1a<\/p>\n<pre>wpa_supplicant -i wlan0 -c wpa_supplicant.conf -B<\/pre>\n<p>\u6700\u540e\uff0c\u4f7f\u7528 ifconfig \u914d\u7f6e IP \u5730\u5740\u3002\u73b0\u5728\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u901a\u8fc7 Wi-Fi \u5c06 SBC \u8fde\u63a5\u5230\u60a8\u7684\u5c40\u57df\u7f51\u3002<\/p>\n<p><strong>\u6ce8\u610f\uff1a<\/strong>\u5728\u6b64\u9636\u6bb5\uff0c\u6211\u4eec\u9047\u5230\u4e86\u4e00\u4e2a\u95ee\u9898\uff1a\u867d\u7136\u53ef\u4ee5\u901a\u8fc7 Wi-Fi \u8fde\u63a5\u5230\u5c40\u57df\u7f51\uff0c\u4f46\u65e0\u6cd5\u8bbf\u95ee\u4e92\u8054\u7f51\uff0c\u6000\u7591\u53ef\u80fd\u8fd8\u662f\u5c11\u52a0\u8f7d\u4e86\u54ea\u4e9b\u9a71\u52a8\u5bfc\u81f4\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u672c\u6307\u5357\u4e2d\uff0c\u6211\u4eec\u5c06\u5f15\u5bfc\u60a8\u5b8c\u6210\u5728 H15\/H10 \u5355\u677f\u8ba1\u7b97\u673a\uff08SBC\uff09\u4e0a\u8bbe\u7f6e USB Wi-Fi \u9002\u914d\u5668\u7684\u6b65\u9aa4\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-782","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":1,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/782\/revisions"}],"predecessor-version":[{"id":785,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/782\/revisions\/785"}],"wp:attachment":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/media?parent=782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/categories?post=782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/tags?post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}