You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_posts/lnx/arch.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,11 +61,37 @@ yay -S fcitx5-sogou
61
61
62
62
# 编译内核
63
63
64
+
要制作一个可启动的内核,涉及到 3 个步骤
65
+
66
+
- 编译内核,生成内核 ELF 可执行文件 vmlinuz (压缩格式),安装内核模块
67
+
- 生成初始内存文件系统 initramfs
68
+
- 更新 grub.cfg
69
+
70
+
总的来说,在 Arch Linux 上制作一个可启动的新内核,让系统能够用新内核正常工作,是相对比较简单的,这也是我放弃 openKylin,转向 Arch Linux 的主要原因,在 openKylin 上,光是找到目前正在运行的内核源码都费半天劲儿,包括内核源码库,整个发行版的软件包源码仓库,软件版本管理都有点混乱。
71
+
64
72
## vmlinuz
65
73
74
+
```bash
75
+
make
76
+
sudo make modules_installsudo grub-mkconfig -o /boot/grub/grub.cfg
0 commit comments