-
Notifications
You must be signed in to change notification settings - Fork 3
/
README_Xperia
51 lines (32 loc) · 1.7 KB
/
README_Xperia
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
43
44
45
46
47
48
49
50
Configuration files can be found in arch/arm/configs.
Xperia Z Ultra C6802/C6806/C6833 => rhine_togari_row_defconfig
Xperia Z Ultra C6843 => rhine_togari_brazil_defconfig
Xperia Z1 C6902/L39h/C6903/C6906 => rhine_honami_row_defconfig
Xperia Z1 C6943 => rhine_honami_brazil_defconfig
Xperia Z1 Compact D5503/M51w => rhine_amami_row_defconfig
How to build your kernel:
Prerequisites:
* ramdisk.img - root fs
* mkbootimg - boot.img generator
* dtbTool - DTB combiner
You can obtain it from various trusted sites including https://www.codeaurora.org/
* The ARM cross-compiler
Please use the arm-eabi-4.6 prebuild executable binary which is included in
standard Android tree.
Step 1: Build Your Kernel (zImage)
$ cd kernel
$ export ARCH=arm
$ export CROSS_COMPILE=arm-eabi-
NOTE: Please set the location and the prefix of the ARM cross-compiler.
$ make rhine_honami_row_defconfig
NOTE: Please set a configuration file you want to build.
$ make
You can see arch/arm/boot/zImage if you succeed in building the kernel.
Step 2: Prepare Device Tree Image (dt.img)
(In the Linux Kernel directory)
$ dtbTool -o dt.img -s 2048 -p scripts/dtc/ arch/arm/boot/
Step 3: Assembling the boot.img
(In the Linux Kernel directory)
$ mkbootimg --cmdline "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3b7 ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1 vmalloc=300M dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y" \
--base 0x00000000 --kernel arch/arm/boot/zImage --ramdisk ramdisk.img \
--ramdisk_offset 0x02000000 -o boot.img --dt dt.img --tags_offset 0x01E00000