android 8.0 展讯平台系统编译问题点

编译系统异常点
1. 如何编译参考邮件
        1. 解压 idh.code.tgz 得到 idh.code 文件夹
        2. 解压 conf-sharkle.tar.gz 得到 device 文件夹
        3. 将 device/sprd 文件夹拷贝到 idh.code/device 文件夹下,
        4. 按照安卓正常编译
注:        
        1.     proprietories-sl8541e_1h10_gofu_osea-user.zip 或者 proprietories-sl8541e_1h10_gofu_osea-userdebug.zip 必须存在
        2.  lunch 选择 sl8541e_1h10_gofu_osea 或者 sl8541e_1h10_gofu_osea-userdebug 
        3.  解压对应的 proprietories-sl8541e_1h10_gofu_osea-user.zip 或者 proprietories-sl8541e_1h10_gofu_osea-userdebug.zip (根据lunch 选择使用哪个文件夹中的文件) ,将其中的 sml.bin 和 tos.bin 俩个文件放到 idh.code/out/target/product/${BOARD_NAME} 下
        4.  进行 make 操作        
2. pack 打包
        阅读 pac_script3.rar 中的 readme 文档

3. 编译问题及解决

3.1 
    [  0% 719/76023] Lex: applypatch <= bootable/recovery/edify/lexer.ll
    FAILED: out/target/product/sl8541e_1h10_go/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp 
    /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/target/product/sl8541e_1h10_go/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll"
    flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
    Aborted (core dumped)
    
    解决:    
        export LC_ALL=C 
        
3.2 
    FAILED: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex 
    /bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp
    Out of memory error (version 1.3-rc7 'Douarn' (445000 d7be3910514558d6715ce455ce0861ae2f56925a by [email protected])).
    GC overhead limit exceeded.
    Try increasing heap size with java option '-Xmx'.

    解决: 
                
        export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx10240m"     
        ./prebuilts/sdk/tools/jack-admin kill-server
        ./prebuilts/sdk/tools/jack-admin start-server        
        

3.3 
        FAILED: out/target/common/docs/api-stubs-timestamp 
        /bin/bash out/target/common/docs/api-stubs-timestamp.rsp
        OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000bdc80000, 87556096, 0) failed; error='Cannot allocate memory' (errno=12)
        #
        # There is insufficient memory for the Java Runtime Environment to continue.
        # Native memory allocation (mmap) failed to map 87556096 bytes for committing reserved memory.
        # An error report file with more information is saved as:

    解决:
        mkdir /swapfile
      cd /swapfile
        sudo dd if=/dev/zero of=swap bs=1024 count=10000000        # 10g 交换空间
        sudo mkswap -f  swap
        sudo swapon swap        # 启动交换空间
        
3.4         
     ####  no out/target/product/sl8541e_1h10_go/sml-sign.bin, pls check #### 
     ####  no out/target/product/sl8541e_1h10_go/tos-sign.bin, pls check ####    

    解决:
         查找 sml.bin tos.bin 文件,并将其放到 out/target/product/ 目录下。
         
    
        
        
注:
     1. 在笔记本或虚拟机中进行编译时,make 前先进行3.1,3.2 的配置
                 
                 


4. 烧录
    1. 驱动安装
         解压  MODEM 下 CP0 中的 FM_BASE_17B_Release_W18.47.2_9832e_CUSTOMER.rar ,安装 Tools 中的 drivers(可 安装 Drivers 文件夹下的驱动)
        
                 
     
3.4 jack-server端口冲突
    解决:
    1).改端口号
    ~/.jack-server/config.properties
    ~/.jack-settings
    两个文件的SERVER_PORT_SERVICE和SERVER_PORT_ADMIN要一致
    2).改权限(要注意.jack-server文件夹里面每个文件和文件夹的权限)
    chmod 700 ~/.jack-server
    chmod 600 ~/.jack-server/client.jks
    chmod 600 ~/.jack-server/client.pem
    chmod 600 ~/.jack-server/launcher.jar
    chmod 600 ~/.jack-server/server-1.jar
    chmod 600 ~/.jack-server/server.jks
    chmod 600 ~/.jack-server/server.pem
    chmod 600 ~/.jack-server/config.properties
    chmod 775 ~/.jack-server/jack
    chmod 764 ~/.jack-server/jack/jack-1546930398112-0.jar
    chmod 775 ~/.jack-server/logs
    chmod 764 ~/.jack-server/logs/outputs.txt
 

你可能感兴趣的:(android 8.0 展讯平台系统编译问题点)