linux编译内核

来源:互联网 发布:mac开发windows程序 编辑:程序博客网 时间:2024/05/14 18:41

red hat linux版本的内核编译

make -j2 //编译

make modules

make modules_install
make install
cd /boot
mkinitramfs -o initrd.img-2.6.30.10 2.6.30.10  //此项可能不需要
vim /boot/grub/grub.cfg 去修改启动项

reboot


debian linux版本的内核编译

//此命令编译安装后,直接重启系统了

make -j2 && make modules_install && make install && cd /boot/ && mkinitramfs -o initrd.img-2.6.30.10 2.6.30.10&& init 6





原创粉丝点击