在RK3288Android5.1上使用makeotapackage命令编译OTA升级包时,出现如下错误:NoRKLoaderforTARGET_DEVICErk3288tootapackagepackageaddresource.imgtoBOOTandRECOVERYNoubootforuboot/uboot.imgtootapackageNotrustforuboot/trust.imgtootapackageNochargeforuboot/charge.imgtoo
在RK3288 Android5.1上使用
make otapackage
命令编译OTA升级包时,出现如下错误:
No RK Loader for TARGETDEVICE rk3288 to otapackage package add resource.img to BOOT and RECOVERY No uboot for uboot/uboot.img to otapackage No trust for uboot/trust.img to otapackage No charge for uboot/charge.img to otapackage No parameter for TARGETDEVICE rk3288 to otapackage Package target files: out/target/product/rk3288/obj/PACKAGING/targetfilesintermediates/rk3288-targetfiles-eng.guochongxin.zip building image from targetfiles RECOVERY… Traceback (most recent call last): File "./build/tools/releasetools/makerecoverypatch", line 68, in main(sys.argv[1:]) File "./build/tools/releasetools/makerecoverypatch", line 39, in main inputdir, "RECOVERY") File "/home/guochongxin/rk/rk32885.1/build/tools/releasetools/common.py", line 411, in GetBootableImage infodict) File "/home/guochongxin/rk/rk32885.1/build/tools/releasetools/common.py", line 365, in BuildBootableImage p4 = Run(signcmd) File "/home/guochongxin/rk/rk32885.1/build/tools/releasetools/common.py", line 86, in Run return subprocess.Popen(args, kwargs) File "/usr/lib/python2.7/subprocess.py", line 679, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1249, in executechild raise childexception OSError: [Errno 2] No such file or directory make: * [out/target/product/rk3288/obj/PACKAGING/targetfilesintermediates/rk3288-targetfiles-eng.guochongxin.zip] Error 1
发现是 drmsigntool 没有编译进去,于是cd build/tools/drmsigntool/,然后mm -B,再回到源码根目录下make otapackage,然后看到如下错误:
Traceback (most recent call last): File "./build/tools/releasetools/otafromtargetfiles", line 1577, in main(sys.argv[1:]) File "./build/tools/releasetools/otafromtargetfiles", line 1534, in main WriteFullOTAPackage(inputzip, outputzip) File "./build/tools/releasetools/otafromtargetfiles", line 493, in WriteFullOTAPackage infodict=OPTIONS.infodict) File "/home/guochongxin/rk/rk32885.1/build/tools/releasetools/common.py", line 883, in init self.module = imp.loadmodule("devicespecific", info) File "/tmp/targetfiles-JetnRt/META/releasetools.py", line 138 try: ^ IndentationError: unindent does not match any outer indentation level make: ** [out/target/product/rk3288/rk3288-ota-eng.guochongxin.zip] Error 1
后来发现是在 device/rockchip/common/releasetools.py 里面 138 行的 try 的缩进不对导致。
修正即可 修改正常即可修改正常即可修改正常即可修改正常即可修改正常即可