Coolpi 4b linux kernel开发在线更新说明
-
无需使用烧录工具,简单的拷贝指令即可进行内核驱动升级。
远程ssh登录或串口登录(图形桌面登录亦可)
coolpi@coolpi.local's password: Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.10.110 aarch64) * Support: https://www.cool-pi.com System information as of Sat Sep 10 02:48:03 CST 2022 System load: 1.029296875 Processes: 295 Usage of /: 56.5% of 14.01GB Users logged in: 0 Memory usage: 17% IPv4 address for docker0: 172.17.0.1 Swap usage: 0% IPv4 address for eth0: 192.168.1.250 Temperature: 39.8 C IPv4 address for virbr0: 192.168.122.1 Last login: Sat Sep 10 02:48:05 2022 coolpi@coolpi:~$
按实际需要更新:
1.更新内核sudo cp vmlinuz Image /boot/firmware/
文件来源:内核源码out目录文件vmlinuz Image
2.更新驱动包
sudo rm -rf /lib/modules/5.10.110/ sudo tar -xf modules.tar.gz -C /lib
文件来源:内核源码out目录文件modules.tar.gz
3.更新设备树
sudo cp rk3588s-cp4.dtb /boot/firmware/
文件来源:内核源码out目录文件rk3588s-cp4.dtb
操作完成后,请重启系统。
-
最新版的ubuntu22.04镜像是否更改了文件架构?
目前需要将启动分区/dev/mmcblk0p1中的文件替换, 并非/boot/firmware -
@lymnxn 手动挂载更新。后续发布再合入
-
补充内核编译操作说明(如下以coolpi 4b ubuntu22.04 0306系统版本为例):
首先下载内核源码
coolpi@coolpi:~$ git clone https://github.com/yanyitech/coolpi-kernel.git Cloning into 'coolpi-kernel'... remote: Enumerating objects: 8550563, done. remote: Counting objects: 100% (5962/5962), done. remote: Compressing objects: 100% (3084/3084), done. remote: Total 8550563 (delta 2757), reused 5819 (delta 2648), pack-reused 8544601 Receiving objects: 100% (8550563/8550563), 1.98 GiB | 11.07 MiB/s, done. Resolving deltas: 100% (7166058/7166058), done. Checking objects: 100% (33554432/33554432), done. Updating files: 100% (87196/87196), done. coolpi@coolpi:~$
额外安装组件包
coolpi@coolpi:~$ sudo apt install -y flex bison libssl-dev coolpi@coolpi:~$ sudo ln -sf /usr/bin/python3 /usr/bin/python
开始编译内核
coolpi@coolpi:~$ cd coolpi-kernel coolpi@coolpi:~/coolpi-kernel$ ./build-kernel.sh cp4b
-
-