There is an excellent post on unpacking and repacking the boot.img for Android systems, however, not only the the links to scripts are broken, also they may not work for certain devices.
For example, Huawei C8650 is an exception, running repack-bootimg.pl immediately after unpack-bootimg.pl result in a different boot.img — the scripts don’t take all possible arguments into consideration.
And after a little investigation, I found out a way to integrate a newly built kernel into your image, given that you already have Android built on your machine:
- Use
split_bootimg.plto split an existingboot.imgintoboot.img-kernelandboot.img-ramdisk.gz. - Run in your shell:
$ANDROID_SRC_DIR/out/host/linux-x86/bin/mkbootimg --kernel $NEW_KERNEL --ramdisk boot.img-ramdisk.gz --cmdline 'console=ttyDCC0 androidboot.hardware=huawei' --base 0x10200000 -o $NEW_IMG
你好博主,我给华为C8650 移植了2.3.7,基本上工作正常,但是在调试radio的时候发现,切换APN 上网方式不论是切换ctwap 和ctnet 都没有效果。主要调试日志我发现错误的地方如下
D/RILJ ( 343): [0011]< SIM_IO error: com.android.internal.telephony.CommandException: GENERIC_FAILURE
D/RILJ ( 343): [0010]< GET_IMSI
D/CDMA ( 343): IMSI: 460991xxxxxxxxx
D/CDMA ( 343): RuimRecords: record load complete
D/CDMA ( 343): [IccCard] Broadcasting intent ACTION_SIM_STATE_CHANGED LOADED reason null
正确的IMSI:46003 开始的,请问博主,该错误该如何解决,谢谢
你的
libril.so是自己编译的还是从原来机器上拿下来的?我使用的是机器拿下来的。按照博主的DEVICE编译libaudio不能通过。博主能否基于caf制作一个编译脚本呢。因为华为的C网机器源码是基于CAF来编译的
https://www.codeaurora.org/gitweb/quic/la/
用google 的源码 类似于APN 彩信都不能使用 ctwap上网无效