-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkernel
More file actions
66 lines (55 loc) · 1.77 KB
/
kernel
File metadata and controls
66 lines (55 loc) · 1.77 KB
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
Kernel
https://www.kernel.org/
ArchLinux
Установка пакетов
package installation
pacman -S wget bc base-devel
kernel.org
wget -c https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.15.9.tar.xz
cd /usr/src
Распаковка
npack ~/linux-4.15.9.tar.xz
Символьная ссылка
ls -l (старая rm linux)
Новая
ln -s /usr/src/linux-4.15.9 /usr/src/linux && cd linux && pwd && less README
Подготовьтесь к компиляции
Prepare for compilation
make mrproper
(Необязательно, возможно будут изменение в ядре)
(Not necessary)
zcat /proc/config.gz > $HOME/build/linux-4.15.9/.config
file Makefile
(Процесс конфигурации)
Цели
make config
make menuconfig
make defconfig
make nconfig
(Для многоядерных процессоров)
make -j3 -l2 [# число ядер + 1] nproc [# number of cores + 1]
Процесс:
CC расширение (идёт компиляция)
LD расширение (сборка модулей)
less README
make modules_install (только установка модулей)
или
make modules_install install
ls /lib/modules/ (каталоги с модулями (kernel)) версия ядра.
make install
ls -l /boot/
(Boot Logo)
Device Drivers --->
Graphics support --->
[*] Bootup logo --->
[*] 224-color Armadeus Linux logo
cp -v arch/x86/boot/bzImage /boot/vmlinuz-4.15.9
cp System.map /boot/System.map-4.15.9
cp .config /boot/config-4.15.9
mkinitcpio -k 4.15.9 -g /boot/initramfs-4.15.9.img
grub-mkconfig -o /boot/grub/grub.cfg
nano -w /boot/grub/grub.conf (initrd initramfs-4.15.9.img)
Конфиг
Config GRUB new kernel
/boot/grub/grub.conf
arch/i386/boot/install.sh