微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > OTA编译问题

OTA编译问题

时间:10-02 整理:3721RD 点击:
执行OTA编译:
./build/tools/releasetools/ota_fROM_target_files  -i old.zip new.zip updata.zip
编译出错:
<type 'exceptions.KeyError'> "There is no item named 'SYSTEM/bin/brom_lite' in the archive"
Traceback (most recent call last):
  File "./build/tools/releasetools/ota_from_target_files", line 1420, in <module>
    main(sys.argv[1:])
  File "./build/tools/releasetools/ota_from_target_files", line 1409, in main
    SignOutput(temp_zip_file.name, args[1])
  File "./build/tools/releasetools/ota_from_target_files", line 416, in SignOutput
    whole_file=True)
  File "/home/mtk6572/alps/build/tools/releasetools/common.py", line 478, in SignFile
    p = Run(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
  File "/home/MTK6572/alps/build/tools/releasetools/common.py", line 68, in Run
    return subprocess.Popen(args, **kwargs)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
SYSTEM/bin/brom_lite路径有这个文件的,不知道怎么找不到!

顶一下     

在\mediatek\external\brom_lite目录mk文件看到没有在Projectconfig中配置,所以没有编译。
# AP only chip use external modem, ex: mt8135.
PURE_AP_USE_EXTERNAL_MODEM=no
但是这个项目没有使用外部modem,那在调用ota_from_target_files的
#copy bromm_lite from /system/bin to META-INF/com/google/android/
def ModemPackage(input_zip, output_zip, modem_modify_cnt):函数肯定会报错;
屏蔽了ModemPackage函数;还是不行

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top