先暂时将编译流程于下,等待后来分析:
#设置gcc环境变量
P="/opt/gcc/bin/" export PATH=“$P:$PATH”
#设置ARCH export ARCH=mips #设置交叉编译工具链前缀 export CROSS_COMPILE="mips64el-linux-"
设置完之后,编译。
安装模块
sudo make INSTALL_MOD_PATH=/home/name/tmp/modlues modules_install
安装内核
sudo make INSTALL_PATH=/home/name/tmp/boot/ install
创建initramfs
sudo update-initramfs -k <version> -c -b <path>
然后将上边的文件替换到目标设备上就可以完成内核安装
参考资料:
https://blog.csdn.net/guofengdidai/article/details/52184374 (initrd.img 和vmlinux的作用分别是什么?)
参考资料:
https://blog.csdn.net/Feng_8071/article/details/82947510
https://blog.csdn.net/u012134296/article/details/79026615?utm_source=blogkpcl1
https://www.cnblogs.com/wxishang1991/p/5322507.html