Total Pageviews

Sunday, 15 July 2018

Debian下的内核编译

$ cd ~

$ wget https://git.kernel.org/torvalds/t/linux-4.13-rc6.tar.gz -O linux-4.13-rc6.tar.gz

$ tar -zxvf linux-4.13-rc6.tar.gz

$ cd linux-4.13-rc6/

$ sudo apt-get install make

$ sudo apt-get install build-essential

$ sudo apt-get install kernel-package

$ sudo apt-get install ncurses-dev

#一路回车到底
$ make oldconfig

$ make-kpkg --initrd kernel-image

完成后,在当前用户目录下生成linux-image-4.13.0-rc6_4.13.0-rc6-10.00.Custom_amd64.deb安装包,执行如下命令安装:
$ cd ~

$ sudo dpkg -i linux-image-4.13.0-rc6_4.13.0-rc6-10.00.Custom_amd64.deb

参考链接


Debian下的内核编译

No comments:

Post a Comment