sudo apt-get install binutils
sudo apt-get install libncurses5-dev
//这一步相当于make all, 期中包含了make modules
1. allen@allen-ubuntu14vm:/usr/src/linux-source-3.13.0/linux-source-3.13.0$ sudo make
#allen@allen-ubuntu14vm:/usr/src/linux-source-3.13.0/linux-source-3.13.0$ sudo make modules
//感觉啊,这一步必须在make install之前执行,因为make install时会build bzImage,如果moudules没有提前Ready做出来的initrd_img-3.xx.xx 就会有问题,导致启动失败。
2. allen@allen-ubuntu14vm:/usr/src/linux-source-3.13.0/linux-source-3.13.0$ sudo make modules_install
//这一步会自动build bzImage,并且update grub
3. allen@allen-ubuntu14vm:/usr/src/linux-source-3.13.0/linux-source-3.13.0$ sudo make install
#allen@allen-ubuntu14vm:/usr/src/linux-source-3.13.0/linux-source-3.13.0$ sudo make bzImage
如何让启动Menu显现
1. 修改 /etc/default/grub.conf
comment out GRUB_HIDDEN_TIMEOUT=0
uncomment GRUB_TERMINAL=console -> disable graphical terminal
2. sudo update-grub
阅读(1187) | 评论(0) | 转发(0) |