/
README
108 lines (70 loc) · 3.31 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
DSC Team Phoenix kernel project.
Features and differences from Dell/Olleh 405 kernel sources:
http://forum.xda-developers.com/showpost.php?p=25291276&postcount=3812
Guides by Lubomir Trifonov:
How to prepare your own streak kernel.
1. You will need some tools:
- download Android SDK http://developer.android.com/sdk/index.html
- download Android NDK http://developer.android.com/sdk/ndk/index.html
- download mkboot.tar.gz from here http://codex.xiaoka.com/wiki/streak:kernel_porting#flashing
- download extract-ramdisk.pl from here http://code.google.com/p/zen-droid/downloads/detail?name=extract-ramdisk.pl
uncompress both archives in some directory for example in linux:
mkdir /usr/src/dell
cd /usr/src/dell
wget http://dl.google.com/android/android-sdk_r15-linux.tgz
wget http://dl.google.com/android/ndk/android-ndk-r7-linux-x86.tar.bz2
extract both archives in /usr/src/dell/
2. You will need kernel sources
- download with git:
git clone git@github.com:dsc-team/dsc-team-kernel-project.git
=======
kernel source will be in /usr/src/dell/dsc-team-kernel-project
now, tune your system for cross-compilation: (tune to your path of course)
export PATH=/usr/src/dell/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/:$PATH
cd /usr/src/dell/dsc-team-kernel-project
3. Configure the kernel:
ARCH=arm CROSS_COMPILE=arm-linux-androideabi- make menuconfig
or you can tweak file .config (if you know what are you doing)
when ready compile kernel:
ARCH=arm CROSS_COMPILE=arm-linux-androideabi- make
now go to drink some coffe, tea or beer ;)
when you come back (10-20 minutes) you will see:
...........
Kernel: arch/arm/boot/zImage is ready
...........
and below:
............
drivers/net/wireless/bcm4325/dhd.ko
............
OK, that was long part, now tricky one - making boot.img
extract downloaded file mkboot.tar.gz in some directory
put in the same directory downloaded extract-ramdisk.pl
this will be your working directory.
now, get boot.img from your favourite rom, and place in working directory.
Tricky part:
./extract-ramdisk.pl boot.img
cp /usr/src/dell/dsc-team-kernel-project/arch/arm/boot/zImage . (this will copy here your compiled zImage)
./mkbootimg --kernel zImage --ramdisk boot.img-ramdisk.cpio.gz --cmdline "androidboot.hardware=streak" --base 0x20000000 -o boot-my.img
that's it.
now you have a file "boot-my.img" - your new kernel
transfer it via fastboot to device:
./fastboot -i 0x413c flash boot boot-my.img
if something goes wrong - transfer back your original kernel:
./fastboot -i 0x413c flash boot boot.img
Update:
@Team:
Just created new branch "experimental14" in our github
this is same kernel as our stable, just patched to version 2.6.35.14
how I did it:
1. downloaded clean source of 2.6.35.7
2. downloaded clean source of 2.6.35.14
3. diff 2.6.35.7 vs our kernel (this generate dell additions to kernel as a patch
4. diff 2.6.35.7 vs 2.6.35.14 (this generate version upgrade patch )
5. patched those 2 patches over clean 2.6.35.7 (there was some rejects, i added them manually)
now there are 2 branches in our github:
- master (our stable based on dell open-source 405)
- experimental14 - cloned with above steps from master
you can clone locally in some empty dir with command:
git clone git@github.com:dsc-team/dsc-team-kernel-project.git -b experimental14
LTrifonov
=======