\u4e2d\u6587linux<\/strong>\uff0c\u5728\u4e0a\u9762\u6dfb\u52a0\u4e0a\u4e09\u884c\u547d\u4ee4\uff1a<\/p>\n<\/p>\n
setfileencodings=utf-8,gb2312,gbk,gb18030<\/p>\n
settermencoding=utf-8<\/p>\n
setencoding=utf8<\/p>\n
STEP3<\/p>\n
\u5982\u4eca\uff0c\u65b0\u7684\u6e90\u7801\u65e9\u5df2\u5168\u90e8\u7f16\u8bd1\u5b8c\u6210\u4e86\uff0c\u5728\u65b0\u6e90\u7801\u7684\u4e0a\u9762\u627e\u5230busybox-1.25.1\u8fd9\u4e2a\u6587\u4ef6\u5939\u3002\u6b65\u5165\u4ee5\u4e0b\u8def\u5f84\uff1a<\/p>\n
lichee\/out\/sun8iw11p1\/linux\/common\/buildroot\/build\/busybox-1.25.1<\/p>\n
01.<\/p>\n
\u6267\u884cmakemenuconfigARCH=arm\u6b65\u5165busybox\u7684\u56fe\u5f62\u5316\u7f16\u8f91\u754c\u9762\u3002<\/p>\n
BusyboxSettings--->GeneralConfiguration---><\/p>\n
[*]Enablelocalesupport(systemneedslocaleforthistowork)<\/p>\n
<\/p>\n
[*]SupportUnicode<\/p>\n
[*]UselibcroutinesforUnicode(elseusesinternalones)<\/p>\n
(65533)Charactercodetosubstituteunprintablecharacterswith<\/p>\n
(195102)RangeofsupportedUnicodecharacters<\/p>\n
\u4fee\u6539\u597d\u4ee5\u540e\u4e00\u8defExit\u9000\u51fa\uff0c\u6700\u540e\u9009\u62e9yes\u4fdd\u5b58\u914d\u7f6e\u3002<\/p>\n
02.<\/p>\n
\u4e4b\u540e\u4fee\u6539busybox-1.25.1\u6587\u4ef6\u5939\u8def\u5f84\u4e0b\u7684\u6587\u4ef6<\/p>\n
libbb\/printable_string.c\uff0c<\/p>\n
\u641c\u7d220x7f\uff0c\u5220\u6389\u4ee5\u4e0b\u4e24\u884c\uff1a<\/p>\n
<\/p>\n
\u5c06\u8fd9\u513f\u4fee\u6539\u4e3a<\/p>\n
-if(c=0x7f)<\/p>\n
+if(c<'')<\/p>\n
<\/p>\n
03.<\/p>\n
\u4fee\u6539libbb\/unicode.c\u6587\u4ef6\uff0c\u5148\u627e\u5230\u8fd9\u6837\u4e00\u6bb5\uff1astaticchar*FAST_FUNC\u3002\u4e4b\u540e\u5c06\u4e0a\u9762\u76841022\u884c\u548c1030\u884c\u8fdb\u884c\u66f4\u6539\uff1a<\/p>\n
\u5c06*d++=(c>=''&&c<0x7f)?c:'?';<\/p>\n
\u66f4\u6539\u4e3a*d++=(c>='')?c:'?';<\/p>\n
\u5c06if(c=0x7f)<\/p>\n
\u66f4\u6539\u4e3aif(c<'')<\/p>\n
\u66f4\u6539\u5b8c\u6210\u4ee5\u540e\uff0c\u5220\u6389.stamp_built\u6587\u4ef6\u548c.stamp_target_installed\u6587\u4ef6\uff0c\u8fd4\u56de\u5230lichee\u6587\u4ef6\u5939\u4e0b\u8fb9\u4e2d\u6587linux<\/strong>\uff0c\u91cd\u65b0\u8fdb\u884c\u5168\u7f16\u8bd1sudo.\/build.sh\u64cd\u4f5c\u3002<\/p>\n\u5728out\/sun8iw11p1\/linux\/common\/buildroot\/target\/bin\u8def\u5f84\u524d\u9762\u4f1a\u751f\u6210\u4e00\u4e2abusybox\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5c06\u8fd9\u4e2a\u53ebbusybox\u7684\u53ef\u6267\u884c\u6587\u4ef6\u66ff\u6362\u5230\u987b\u8981\u82f1\u6587\u6e90\u7801\u7684\u76f8\u540c\u8def\u5f84\u4e0b\u8fb9\u2014\u2014<\/p>\n
lichee\/out\/sun8iw11p1\/linux\/common\/buildroot\/target\/bin\u4e0a\u9762\u3002<\/p>\n
<\/p>\n
STEP4<\/p>\n
\u6700\u540e\uff0c\u5728\u987b\u8981\u82f1\u6587\u7684\u90a3\u4e00\u4efd\u6e90\u7801\u4e0a\u9762\u8fdb\u884c\u5185\u6838\u7f16\u8bd1\uff0c\u6253\u5305\u6587\u4ef6\u7cfb\u7edf\uff0c\u6253\u5305\u955c\u50cf\u64cd\u4f5c\uff0c\u518d\u5c06\u955c\u50cf\u70e7\u5199\u5230OKA40i-C\u5f00\u53d1\u677f\u4e0a\u9762\u5c31\u53ef\u4ee5\u663e\u793a\u82f1\u6587\u4e86\u3002<\/p>\n
sudo.\/build.sh-mkernel<\/p>\n
sudo.\/build.sh-mpack_rootfs<\/p>\n
sudo.\/build.shpack<\/p>\n
\u6700\u540e\u6211\u4eec\u6765\u9a8c\u8bc1\u4e00\u4e0b\u3002\u53ef\u4ee5\u770b\u89c1\u6b64\u65f6\u65e9\u5df2\u53ef\u4ee5\u76f4\u63a5\u8fdb\u884c\u82f1\u6587\u8f93\u5165\u4e86\uff0c\u4f46\u662f\u548cwindows\u5bf9\u63a5\u7684\u82f1\u6587\u6587\u4ef6\u53ef\u4ee5\u76f4\u63a5\u663e\u793a\u67e5\u770b\u3002<\/p>\n
<\/p>\n
\u7ed3\u8bed<\/p>\n
Linux\u7cfb\u7edf\u82f1\u6587\u663e\u793a\u7684\u4fee\u6539\u663e\u7136\u5c31\u662f\u4fee\u6539\u5185\u6838\u7684\u5b57\u7b26\u96c6\u548c\u6253\u5f00busybox\u7684\u663e\u793a\u5c01\u9501\uff0c\u7b2c\u4e00\u6b21\u7f16\u8bd1\u597d\u540e\u7ea2\u8054linux\u8bba\u575b\uff0c\u4e4b\u540e\u987b\u8981\u82f1\u6587\u7684busybox\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u6b64\u6b21\u7684busybox\u8fdb\u884c\u66ff\u6362\u4e2d\u56fdlinux\u64cd\u4f5c\u7cfb\u7edf\uff0c\u8282\u7ea6\u4e86\u597d\u591a\u7684\u5de5\u4f5c\u91cf\u3002\u4fee\u6539\u5b8c\u6210\u4ee5\u540e\u5c31\u53ef\u4ee5\u5728OKA40i-C\u5f00\u53d1\u677f\u7684Linux\u7cfb\u7edf\u91cc\u9762\u7f16\u8f91\u548c\u67e5\u770b\u82f1\u6587\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u4eca\u5929\u5c0f\u7f16\u5c31\u901a\u8fc7\u98de\u51cc\u5d4c\u5165\u5f0f\u7684OKA40i-C\u5f00\u53d1\u677f\u6765\u4e3a\u5927\u5bb6\u6f14\u793a\u8ba9Linux\u7cfb\u7edf\u663e\u793a\u4e2d\u6587\u7684\u4fee\u6539\u65b9\u6cd5\u3002\u66f4\u6539\u5b8c\u6210\u4e4b\u540e\u5c31\u53ef\u4ee5\u5728OKA40i-C\u5f00\u53d1\u677f\u7684Linux\u7cfb\u7edf\u4e0a\u9762\u7f16\u8f91\u548c\u67e5\u770b\u4e2d\u6587\u4e86\u3002<\/p>\n","protected":false},"author":1,"featured_media":293112,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[1437,3138,2836],"class_list":["post-293111","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-th","tag-ymby","tag-pzwj"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=293111"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293111\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293112"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}