{"id":223,"date":"2021-03-08T01:47:49","date_gmt":"2021-03-07T17:47:49","guid":{"rendered":"http:\/\/szddt.com\/service\/?p=223"},"modified":"2021-03-08T01:47:50","modified_gmt":"2021-03-07T17:47:50","slug":"f1c100s%e7%bc%96%e8%af%91c600%e7%9a%84linux%e5%8c%85","status":"publish","type":"post","link":"https:\/\/szddt.com\/?p=223","title":{"rendered":"f1c100s\u7f16\u8bd1c600\u7684linux\u5305"},"content":{"rendered":"\n<p>\u51c6\u5907\u5de5\u4f5c\uff1aapt install bison flex texinfo<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@szddt:\/opt\/f1c100s\/C600_Linux# .\/build.sh config\n\nWelcome to mkscript setup progress\nAll available chips:\n   0. sun50iw1p1\n   1. sun8iw10p1\n   2. sun8iw1p1\n   3. sun8iw3p1\n   4. sun8iw5p1\n   5. sun8iw6p1\n   6. sun8iw7p1\n   7. sun8iw8p1\n   8. sun8iw9p1\n   9. sun9iw1p1\n  10. sunivw1p1\nChoice: 10\nAll available platforms:\n   0. android\n   1. dragonboard\n   2. linux\n   3. camdroid\nChoice: 2\nAll available kernel:\n   0. linux-3.10\nChoice: 0\nAll available boards:\n   0. evb\nChoice: 0\nroot@szddt:\/opt\/f1c100s\/C600_Linux# .\/build.sh\n.\/build.sh pack<\/code><\/pre>\n\n\n\n<p>\u7f16\u8bd1\u51fa\u9519\uff0c\u63d0\u793a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hechen@szddt:\/opt\/f1c100s\/lv7_rtthread_f1c100s\/rt-thread\/bsp\/allwinner_tina$ scons -c\nscons: Reading SConscript files ...\nError: the toolchain path (..\/..\/..\/tools\/gcc-arm-none-eabi\/bin) is not exist, please check 'EXEC_PATH' in path or rtconfig.py.\nhechen@szddt:\/opt\/f1c100s\/lv7_rtthread_f1c100s\/rt-thread\/bsp\/allwinner_tina$<\/code><\/pre>\n\n\n\n<p>\u4fee\u6539rtconfig.py\u7684\u5185\u5bb9\uff1a<\/p>\n\n\n\n<p>if CROSS_TOOL == &#8216;gcc&#8217;:<br>PLATFORM = &#8216;gcc&#8217;<br><strong>EXEC_PATH = r&#8217;..\/..\/..\/tools\/gcc-arm-none-eabi\/bin&#8217;<\/strong><\/p>\n\n\n\n<p>\u6539\u4e3a\uff1a<\/p>\n\n\n\n<p>if CROSS_TOOL == &#8216;gcc&#8217;:<br>PLATFORM = &#8216;gcc&#8217;<br><strong>EXEC_PATH = r&#8217;\/opt\/f1c100s\/arm-2014.05\/bin&#8217;<\/strong><\/p>\n\n\n\n<p>\u7cfb\u7edf\u9ed8\u8ba4\u7684\u4f4d\u7f6e\u4e0e\u5b9e\u9645\u7684\u4e0d\u540c\uff0c\u4fee\u6539\u4e3a\u5b9e\u9645\u7684\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u7f16\u8bd1\u51fa\u73b0lzo\u5305\u7684bug\uff1a<\/p>\n\n\n\n<p>checking for strrchr\u2026 yes<br>checking for strstr\u2026 yes<br>checking for time\u2026 yes<br>checking for umask\u2026 yes<br>checking for utime\u2026 yes<br>checking for vsnprintf\u2026 yes<br>checking whether your compiler passes the ACC conformance test\u2026 FAILED<br>configure:<br>configure: Your compiler failed the ACC conformance test &#8211; for details see<br>configure: `config.log&#8217;. Please check that log file and consider sending<br>configure: a patch or bug-report to <a href=\"mailto:markus@oberhumer.com\">markus@oberhumer.com<\/a>.<br>configure: Thanks for your support.<br>configure:<br>configure: error: ACC conformance test failed. Stop.<br>make: *** [package\/Makefile.package.in:283: \/opt\/f1c100s\/C600_Linux\/out\/sunivw1p1\/linux\/common\/buildroot\/build\/host-lzo-2.03\/.stamp_configured] Error 1<br>make: Leaving directory &#8216;\/opt\/f1c100s\/C600_Linux\/buildroot<\/p>\n\n\n\n<p>\u8fdb\u5165lzo\u76ee\u5f55\u4e0b\uff0c\u4fee\u6539configure\u7684\u547d\u4ee4\u5373\u53ef\u3002<\/p>\n\n\n\n<p>root@szddt:\/#cd \/opt\/f1c100s\/C600_Linux\/out\/sunivw1p1\/linux\/common\/buildroot\/build\/host-lzo-2.03<br>root@szddt:\/opt\/f1c100s\/C600_Linux\/out\/sunivw1p1\/linux\/common\/buildroot\/build\/host-lzo-2.03# .\/configure CPPFLAGS=&#8221;$CPPFLAGS -std=c90 -fPIC&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u51c6\u5907\u5de5\u4f5c\uff1aapt install bison flex texinfo \u7f16\u8bd1\u51fa\u9519\uff0c\u63d0\u793a\uff1a \u4fee\u6539rtc&hellip; <a href=\"https:\/\/szddt.com\/?p=223\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">f1c100s\u7f16\u8bd1c600\u7684linux\u5305<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-223","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"h-entry","9":"h-as-article"},"_links":{"self":[{"href":"https:\/\/szddt.com\/index.php?rest_route=\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szddt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/szddt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/szddt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/szddt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=223"}],"version-history":[{"count":4,"href":"https:\/\/szddt.com\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":230,"href":"https:\/\/szddt.com\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions\/230"}],"wp:attachment":[{"href":"https:\/\/szddt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/szddt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/szddt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}