日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

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

發布時間:2023/12/8 windows 43 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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 android-jack-team@google.com)).
?? ?GC overhead limit exceeded.
?? ?Try increasing heap size with java option '-Xmx<size>'.

?? ?解決:?
?? ??? ??? ??? ?
?? ??? ?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 展讯平台系统编译问题点的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。