目录
Practice1 ............................................................................................................................................ 4
一 编译过程 ............................................................................................................................. 4
1 安装必要的软件 ........................................................................................................... 4
2 下载 linux 内核源文件 ................................................................................................. 4
3 解压缩源文件 ............................................................................................................... 5
4 复制 config 文件 ........................................................................................................... 6
5 进行 menucofig 配置 .................................................................................................. 6
6 menuconfig 配置页面 ................................................................................................ 7
7 对驱动设置进行简单配置 ........................................................................................... 8
8 选择 cpu 类型 ............................................................................................................. 8
9 设置完成保存退出 ..................................................................................................... 9
10 开始编译内核 ............................................................................................................. 9
11 内核编译过程 ........................................................................................................... 10
12 内核编译过程(3 小时后) ....................................................................................... 11
13 内核编译成功 ........................................................................................................... 12
14 安装新内核 ............................................................................................................... 12
15 新内核安装过程 ....................................................................................................... 13
16 比较两个内核 ........................................................................................................... 14
17 重新启动系统 ........................................................................................................... 14
18 登录新内核 ............................................................................................................... 15
19 新内核登录成功 ....................................................................................................... 15
20 查看新内核版本号号 ............................................................................................... 16
二、 编译过程中遇到的问题 ............................................................................................... 16
1 错误 VFS: Unable to mount root............................................................................ 16
2 错误 Driver ‘mdio-gpio’ .............................................................................................. 18
Practice2 .......................................................................................................................................... 20
一、内核选项翻译及选择理由 ............................................................................................. 20
1. General setup 常规设置 ............................................................................................ 20
二、裁剪过程 ......................................................................................................................... 21
1.进入设置界面 .............................................................................................................. 21
2. General setup 页 设置 ............................................................................................... 22
3. Enable the block layer 页 设置 .................................................................................. 23
4. Processor type and features 页 设置 ......................................................................... 24
5. Power Management and ACPI options 页 设置......................................................... 28
6. Bus options 页 设置 ................................................................................................... 29
7. Executable file formats 页 设置 ................................................................................. 30
8. Networking options 页 设置 ...................................................................................... 31
9. Device Drivers 页 设置 .............................................................................................. 34
10. Firmware Drivers 页 设置 ........................................................................................ 37
11. File systems 页 设置 ................................................................................................ 38
12. Kernel hacking 页 设置 ............................................................................................ 40
13 CryptographicAPI 页 设置 ......................................................................................... 41