<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                lichee 編譯踩坑記錄(ilichee ZERO) 一.編譯環境 編譯的時候原來是正常編譯過linux內核的,不過buildroot和里面帶的程序還需要其他的一些軟件包 需要安裝的包 bison flex texinfo zlib1g-dev gawk 填坑方案 sudo apt-get install [包名稱] 二.buildroot源碼 由于各種各樣的原因buildroot里到處是坑- -有的源碼可能對新編譯器不適應,需要修改 修改時有兩個位置,如果還沒有進行編譯可以在 /buildroot/pakage/[包名稱]/ 里找到對應文件/文件夾 編譯時使用的是將上面的源碼復制到 /out/linux/common/buildroot/build/[包名稱] 或 /out/linux/common/buildroot/build/host-[包名稱] 下, 所以如果編譯的過程中出錯除了改buildroot里的源碼也需要改后面那兩個(如果有)文件夾下的源碼 1.host-m4-1.4.15 buildroot過程中 ./stdio.h:456:1:error: 'gets' undeclared here (not in a function) _GL_WARN_ON_USE(gets, "gets is a security hole - use fgets instead"); 填坑方法:參考鏈接:http://www.civilnet.cn/talk/browse.php?topicno=78555 找到:host-m4-1.4.15/lib/stdio.h,然后對stdio.h文件做出如下改動,必要時連同stdio.in.h一起修改: === modified file 'host-m4-1.4.15/lib/stdio.h'? @@ -140,8 +140,10 @@? +#if defined gets? #undef gets? _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");? +#endif? 修改后測試通過 2.host-autoconf-2.65 buildroot過程中 conftest.c:14625:must be after `@defmac' to use `@defmacx' 填坑方法:參考鏈接:http://gnu-autoconf.7623.n7.nabble.com/compile-error-conftest-c-14625-must-be-after-defmac-to-use-defmacx-td18843.html 找到 autoconf-2.65/doc/autoconf.texi,進行修改 @@ -15,7 +15,7 @@? @c The ARG is an optional argument.? To be used for macro arguments in? @c their documentation (@defmac).? @macro ovar{varname}? -@r{[}@var{\varname\}@r{]}@c? +@r{[}@var{\varname\}@r{]}? @end macro? @c @dvar(ARG, DEFAULT)? @@ -23,7 +23,7 @@? @c The ARG is an optional argument, defaulting to DEFAULT.? To be used? @c for macro arguments in their documentation (@defmac).? @macro dvar{varname, default}? -@r{[}@var{\varname\} = @samp{\default\}@r{]}@c? +@r{[}@var{\varname\} = @samp{\default\}@r{]}? @end macro? @c Handling the indexes with Texinfo yields several different problems.? 修改后測試通過 3.host-makedevs buildroot過程中 /lichee/out/linux/common/buildroot/build/host-makedevs/makedevs.c:374:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable] int ret = EXIT_SUCCESS; ^ cc1: all warnings being treated as errors 找到 /makedevs/makedevs.c 或 /host-makedevs/makedevs.c 進行修改 最后一行,return 0; 修改為:return ret; 這也算(╯‵□′)╯︵┻━┻) 三、lichee缺rootfs.cpio.gz buildroot后 無法定位"rootfs.cpio.gz" 澤畔大大說可以自己包一個 我從H3的SDK里扒了一個出來 目前為止沒有出錯 放到linux內核目錄下 四、awk: line 2: function strtonum never defined awk版本問題,需要安裝gawk sudo apt-get install gawk 五、pack finish但無鏡像輸出 出現Dragon execute image.cfg failed lichee默認的對象是編譯到nor flash上,但是沒找到nor flash的配置文件o(╯□╰)o 修改/lichee/tools/pack/pack 354: -update_mbr sys_partition_nor.bin 1 > /dev/null 355: -dragon image.cfg sys_partition_nor.fex 354: +update_mbr sys_partition.bin 1 > /dev/null 355: +dragon image.cfg sys_partition.fex 用默認的配置文件 似乎是針對nand的 sudo ./build.sh sudo ./build.sh pack 終于成功〒▽〒
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看