-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
111 lines (89 loc) · 3.95 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
109
110
111
This is a bunch of build-scripts for the linux-kernel with some config files optimized for these devices:
-ASUS EEEPC 1001PG (and may be some others)
- Optimized for Intel Atom (instead of generic_x86)
- Removed some uneeded stuff
- AMD CPU-Features
- NVIDIA and AMD Graphics support
- RAID Stuff
- NVME (This technology did not even exist back then)
- misc
- a lot of drivers which arent in the system
- Changed default CPU governor to "CONSERVATIVE"
- Optimized CFLAGS to build for Intel Atom CPUs
- Dell Alienware-17R4 (and may be some similars)
- Optimized for Intel Core2Duo/Xeon (instead of generic_x86)
- Removed some uneeded stuff
- AMD CPU-Features
- AMD Graphics support
- Firewire
- a lot of drivers which arent in the system
- Changed default CPU governor to "CONSERVATIVE"
- Optimized CFLAGS to build for Intel Skylake CPUs
- Odys Winpad 12 (and probably others as this is an Intel Baytrail/Cherrytrail convertible)
- Optimized for Intel Atom (instead of generic_x86)
- Removed some uneeded stuff
- AMD CPU-Features
- NVIDIA and AMD Graphics support
- RAID Stuff
- NVME (This technology did not even exist back then)
- a lot of drivers which arent in the system
- Optimized CFLAGS to build for Intel Atom CPUs
- HP ProBook 650 G3 (and may be some similars)
- Optimized for Intel Core2Duo/Xeon (instead of generic_x86)
- Removed some uneeded stuff
- AMD CPU-Features
- AMD Graphics support
- a lot of drivers which arent in the system
- Optimized CFLAGS to build for Intel Skylake CPUs (its an Kaby-Lake but the CFLAGS are the same as for Skylake)
Building tested under Linux-Mint 19.
Needed:
sudo apt install build-essential kernel-package libncurses5-dev fakeroot wget bzip2 libelf-dev libssl-dev gpgv2 -y
Steps:
Optional - Setup ccache to speedup future builds:
Install ccache:
apt install ccache -y
Make sure all compiler-symlinks are there (several symlinks e.g. gcc, g++ pointing to ccache) allowing it to work transparently without needing to change any makefile
ls -l /usr/lib/ccache
setup your ccache config
nano ~/.ccache/ccache.conf
max_size=15.0G (or something else)
cache_dir=/path/to/your/ccache-directory
put ccache to your $PATH-Variable. make sure ist before the other paths, as linux tries the first binary it can find (when firing gcc or g++ or another binary)
nano ~/.bashrc
Add the following line:
export PATH="/usr/lib/ccache:$PATH"
check your configuration with:
ccache -s
It should like this:
cache directory /path/to/your/ccache-directory
primary config /root/.ccache/ccache.conf
secondary config (readonly) /etc/ccache.conf
stats zero time Tue Jun 4 16:20:28 2019
cache hit (direct) 0
cache hit (preprocessed) 0
cache miss 4531
cache hit rate 0.00 %
called for link 27
called for preprocessing 353
unsupported code directive 4
no input file 6050
cleanups performed 0
files in cache 13585
cache size 1.6 GB
max cache size 15.0 GB
Then:
=======
1. Download Kernel
download-kernel.sh [longterm|longterm2]
2. CD to kerneldir
3. Make Config
make-config.sh <DEVICETARGET>
4. Compile
build-kernel.sh <DEVICETARGET>
5. Install Kernel
install-kernels.sh <DEVICETARGET>
Possible <DEVICETARGET>'s are:
- aw17r4 (Dell Alienware 17 R4)
- eeepc (Asus EEEPC)
- winpad12 (Odys Winpad 12")
- probook650g3 (HP Probook 650 G3)