forked from glewarne/Note2Core_kernel_build_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
96 lines (64 loc) · 3.19 KB
/
README.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
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
How to build you own Note2Core Galaxy Note2 kernel
First, you need a linux computer (or a linux VM), with "git", "g++" and "libncurses" installed
Secondly, you need a cross compiler toolchain. The standard Google NDK 4.4.3 GCC is recommended
Now, firstly you need to "git clone" a number of repositories from github, and lay them out in the
following process
--------------------------------------------------------------------------------------------
Stage 1)
Create a working folder anywhere on your system, preferably on your desktop. The name of the folder does
not matter. In this example we will call it KBUILD. Now open a terminal, navigate to your new folder and run
"git clone https://github.com/glewarne/Note2Core_kernel_build_scripts.git"
This will craete a folder called "Note2Core_kernel_build_scripts". Open this folder, and move all the contents
into the original folder (KBUILD), so it looks like this
>KBUILD
>>build_scripts
>>output
>>menu.sh
and delete the now empty folder from the git clone
--------------------------------------------------------------------------------------------
Stage 2)
In terminal again, within your KBUILD folder run
"git clone https://github.com/glewarne/GT-N7105_ramdisk.git"
and then
"git clone https://github.com/glewarne/GT-N7100_ramdisk.git"
As before, there will be two new folders. Now, make a new folder in your KBUILD directory called "ramdiscs", and within
the new "ramdiscs" folder another 2 folders, called "initramfs_n7100" and "initramfs_n7105" Now copy the contents of the folders
created when you ran the last two "git clone" commands into their respective ramdiscs>initramfs_n710x folder, and delete the now
empty directories from the "git clone" commands,
Your folder structure should now look like this
>KBUILD
>>build_scripts
>>output
>>ramdiscs
>>>>initramfs_n7100
>>>>initramfs_n7105
>>menu.sh
--------------------------------------------------------------------------------------------
Stage 3)
In terminal, in your KBUILD folder, now run this command
"git clone https://github.com/glewarne/Note2Core_v2_GT_N710x_Kernel.git"
This will take a while, depending on your connection speed. Once complete, simply rename the new folder "source"
Your folder structure should now look like this
>KBUILD
>>build_scripts
>>output
>>ramdiscs
>>>>initramfs_n7100
>>>>initramfs_n7105
>>source
>>menu.sh
--------------------------------------------------------------------------------------------
Stage 4)
You are nearly ready! Now all you have to do is edit the Makefile in the source folder to point to the location of your
downloaded toolchain.
Edit from this: CROSS_COMPILE ?= ../toolchain/arm-eabi-4.4.3/bin/arm-eabi-
to this: CROSS_COMPILE ?= LOCATION-OF-YOUR-TOOLCHAIN-BIN-FOLDER/arm-eabi-
(arm-eabi- may be different depending on the toolchain you have decided to use)
--------------------------------------------------------------------------------------------
Stage 5)
Now, you should be ready to compile!
Run the menu,sh script from a root (or sudo) terminal
"./menu.sh"
The menu is reasonably self explanatory, and if you compile sucessfully your kernel .zip and .tar will end up in the relevant
subdirectory in the KBUILD/output folder
Happy compiling!