http://ask.loongnix.org/?/article/66
http://ask.loongnix.org/?/article/67
http://ask.loongnix.org/?/article/68
1. 下载内核源码
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
此处下载的是 mainline 的所称为 vanilla 的内核源码
也可下载其它版本(如 stable 版)的源码,具体链接详见:
https://git.kernel.org/
2. 配置内核
a) cd linux
b) make mrproper
c) 如果是想把内核安装到自己的系统上,建议使用已安装好的发行版拥有的配置文件,即:
$ cp /boot/config-`uname -r` .config
也可以:
$ cp arch/mips/configs/loongson3_defconfig .config *** 注意此处的 loongson3_defconfig 需先用
http://www.loongnix.org/cgit/linux-4.4/tree/arch/mips/configs/ 下的同名文件替换
d) $ make menuconfig (运行此命令前需要有依赖包 ncurses-devel)