-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
30 lines (19 loc) · 895 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
To build source-based kernel:
1. Set CROSS_COMPILE to an appropriate path prefix, e.g.,
export CROSS_COMPILE=../cm/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
2. Build kernel:
make m2_vzw_defconfig && make -j 4
And to merge the kernel into recovery:
3. Pull recovery partition from device:
adb reboot recovery
adb root
adb shell 'dd if=/dev/block/mmcblk0p18 of=/tmp/recovery.img bs=256k'
adb pull /tmp/recovery.img
4. Merge newly-built zImage into recovery.img:
../cm/out/host/linux-x86/bin/unpackbootimg -i recovery.img
cp arch/arm/boot/zImage recovery.img-zImage
../cm/out/host/linux-x86/bin/mkbootimg --kernel recovery.img-zImage \
--ramdisk recovery.img-ramdisk.gz \
--cmdline "console=null androidboot.hardware=qcom user_debug=31" \
--base 0x80200000 --pagesize 2048 --ramdiskaddr 0x81500000 \
-o recovery.img