-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu_htc_source_kernal.txt
42 lines (34 loc) · 1.82 KB
/
ubuntu_htc_source_kernal.txt
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
31
32
33
34
35
36
37
38
39
40
41
42
export PATH=$PATH:/home/willir/workspace/android/skib/source_froyo/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin
export PATH=${PATH}:/home/willir/workspace/android/skib/source_froyo/out/host/linux-x86/bin
#if error
#-----------------
gedit arch/arm/mach-msm/include/mach/camera.h&
#and add next lines:
#define CONFIG_MSM_CAMERA_LEGACY
#define CONFIG_MSM_CAMERA
#-----------------
make ARCH=arm oldconfig
make ARCH=arm menuconfig
make -j3 ARCH=arm
mkbootimg --kernel /home/willir/workspace/android/skib/htc_legend/source/arch/arm/boot/zImage --ramdisk /home/willir/workspace/android/skib/source_froyo/out/target/product/generic/ramdisk.img -o boot.img
# To learn the base address from boot.img.
# Its very hard because little-ending.
#-----------------
dd if=boot.img bs=1 skip=14 count=2 conv=swab 2>/dev/null | hexdump -v -e '/1 "%02X"'; dd if=boot.img bs=1 skip=12 count=2 conv=swab 2>/dev/null | hexdump -v -e '/1 "%02X"'; echo "";
#-----------------
# base addresses (--base) for some devices:
#-----------------
# HTC legend: 0x12c00000 confirmed
# HTC hero: 0x19200000 not confirmed
# Nexus One: 0x20000000 not confirmed
# LG: 0x12200000 not confirmed
# Huawei U8150: 0×00200000 not confirmed
#-----------------
# Command line (--cmdline) for some devices:
#-----------------
# HTC legend: no_console_suspend=1 console=null confirmed
# HTC hero: no_console_suspend=1 console=null not confirmed
# Nexus One: no_console_suspend=1 console=null not confirmed
# LG : no_console_suspend=1 console=null not confirmed
# Huawei U8150: no_console_suspend=1 console=null not confirmed
#-----------------