-
Notifications
You must be signed in to change notification settings - Fork 10
/
README
43 lines (30 loc) · 2.05 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
Build kernel and kernel modules for Samsung Galaxy Tab 3 Marvell PXA988
originaly by Ketut P. Kumajaya <ketut.kumajaya at gmail dot com>, Sept 2013
I assume your home directory is /home/kumajaya, kernel source inside /home/kumajaya/android/android_kernel_samsung_lt02
PART I: Build the kernel
1. Create an environtment text file, save it as /home/kumajaya/android/build.env (change CROSS_COMPILE to point to your toolchain):
export CROSS_COMPILE='/opt/toolchains/arm-eabi-4.7/bin/arm-eabi-'
export LDFLAGS=''
export CFLAGS=''
export SUBARCH=arm
export ARCH=arm
2. Import environtment file above (dot+space+build.env), create build directory outside kernel source directory,
and start the building process:
$ cd /home/kumajaya/android/android_kernel_samsung_lt02
$ . /home/kumajaya/android/build.env
$ mkdir -p /home/kumajaya/android/build/lt02wifi
$ make O=/home/kumajaya/android/build/lt02wifi mrproper
$ make O=/home/kumajaya/android/build/lt02wifi VARIANT_DEFCONFIG=blackhawk_lt02wifi_defconfig blackhawk_lt02_defconfig
$ make -j8 O=/home/kumajaya/android/build/lt02wifi
3. Copy the resulting kernel and modules to a binary directory:
$ mkdir -p /home/kumajaya/android/build/lt02wifi-bin
$ mkdir -p /home/kumajaya/android/build/lt02wifi-bin/modules
$ cp /home/kumajaya/android/build/lt02wifi/arch/arm/boot/zImage /home/kumajaya/android/build/lt02wifi-bin/
$ find /home/kumajaya/android/build/lt02wifi/ -type f -name *.ko -exec cp {} /home/kumajaya/android/build/lt02wifi-bin/modules/ \;
PART II: Build kernel modules
I assume your kernel modules source inside /home/kumajaya/android/android_kernel_samsung_lt02_modules
$ cd /home/kumajaya/android/android_kernel_samsung_lt02_modules
$ make clean_modules KERNELDIR=/home/kumajaya/android/build/lt02wifi KERNEL_OUTDIR=/home/kumajaya/android/build/lt02wifi-bin
$ make modules KERNELDIR=/home/kumajaya/android/build/lt02wifi KERNEL_OUTDIR=/home/kumajaya/android/build/lt02wifi-bin
Your kernel ready in /home/kumajaya/android/build/lt02wifi-bin and all kernel modules in /home/kumajaya/android/build/lt02wifi-bin/modules
Congratulations!