Ubuntu 22.04 桌面版本 内核编译
-
环境补充安装:
sudo ln -sf /usr/bin/python2 /usr/bin/python sudo apt install flex bison
可选执行
sudo dpkg-reconfigure dash
(注意弹框选择No)
测试代码下载与编译
ubuntu@coolpi:~$ mkdir test ubuntu@coolpi:~$ cd test/ ubuntu@coolpi:~/test$ git clone https://gitee.com/yanyitech/coolpi-kernel.git 正克隆到 'coolpi-kernel'... remote: Enumerating objects: 88605, done. remote: Counting objects: 100% (88605/88605), done. remote: Compressing objects: 100% (75148/75148), done.
...
查看远程仓库
ubuntu@coolpi:~/test/$ git remote -v origin https://gitee.com/yanyitech/coolpi-kernel.git (fetch) origin https://gitee.com/yanyitech/coolpi-kernel.git (push)
编译
ubuntu@coolpi:~/test/$ ./build-kernel.sh
修改内核配置
ubuntu@coolpi:~/test/$ make ARCH=arm64 menuconfig
-
@大法师 make ARCH=arm64 savedefconfig 保存修改后的配置 然后cp defconfig 到arch/arm64/config
-
cp defconfig arch/arm64/configs/rk3588s_cp4b_defconfig