Making boot image for Huawei C8650

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:

  1. Use split_bootimg.pl to split an existing boot.img into boot.img-kernel and boot.img-ramdisk.gz.
  2. 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

3 thoughts on “Making boot image for Huawei C8650

  1. 你好博主,我给华为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 开始的,请问博主,该错误该如何解决,谢谢

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>