Motorola XT897 >> CM 10.2

如何更新Kernel


步驟如下:
1. 更新boot磁區

$ su
# dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=boot.img
# mkdir boot
# unpackbootimg -i boot.img -o boot
# cd boot
# cp xxx boot.img-kernel
# mkbootimg --kernel boot.img-kernel --ramdisk boot.img-ramdisk --cmdline "console=/dev/null androidboot.hardware=qcom user_debug=31 loglevel=1 zcache" --base 0x80200000 --kernel_offset 0x8000 --ramdisk_offset 0x1600000 --second_offset 0xf00000 --tags_offset 0x100 --pagesize 2048 -o boot.img
# dd if=boot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot bs=1
# sync

P.S. xxx就是新的zImage

2. 更新ko檔案

# mount -o remount,rw /system
# cp xxx/*.ko /system/lib/modules/
# sync


返回上一頁