Linux驱动编程1——内核编译

编译内核(ubuntu)

1.安装必要的内核开发包,包括gcc、make、libncurses-dev。

$ apt-get install gcc make libncurses-dev

2.$ make menuconfig

3. build kernel

$ make bzImage 

$ make modules 

4.install

$ make modules_install 

$ make install

5.切换内核

修改/boot/grub/grub.cfg文件的内核优先级,修改后输入sudo update-grub再重启系统。

或者

reboot以后长按esc进入选择内核

posted on 2021-08-11 13:20  温昀  阅读(43)  评论(0编辑  收藏  举报

导航