-
Notifications
You must be signed in to change notification settings - Fork 1
/
README_Xperia
42 lines (27 loc) · 1.48 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
Configuration files can be found in arch/arm/configs.
Xperia Z C6603/C6616/C6602/C6606 => fusion3_yuga_defconfig
Xperia ZL C6503/C6506/C6502 => fusion3_odin_defconfig
Xperia ZR C5503/C5502 => fusion3_dogo_defconfig
Xperia Tablet Z Tablet SGP351/SGP341 => fusion3_pollux_defconfig
Xperia Tablet Z Tablet SGP311(16G)/SGP312(32G) => fusion3_pollux_windy_defconfig
How to build your kernel:
Prerequisites:
* ramdisk.img - root fs
* mkbootimg - boot.img generator
* The ARM cross-compiler
We recommend getting the CodeSourcery Lite compiler.
Or, you can also use prebuild executable binary which is included in
standard Android tree.
Step 1: Build Your Kernel (zImage)
$ cd kernel
$ export ARCH=arm
$ export CROSS_COMPILE=/opt/arm-2010q1/bin/arm-none-eabi-
NOTE: Please set the location and the prefix of the ARM cross-compiler.
$ make fusion3_yuga_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: Assembling the boot.img
$ mkbootimg --kernel zImage --ramdisk ramdisk.img --pagesize 2048 --base 0x80200000 \
--cmdline "androidboot.hardware=qcom user_debug=23 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.selinux=permissive vmalloc=400M androidboot.bootdevice=msm_sdcc.1" \
--ramdisk_offset 0x02000000 --output boot.img