本帖最后由 tieshou200 于 2022-5-23 13:50 编辑 我在官方SDK下编译,得到自己编译出来的两个包 linux-headers-4.19.219_4.19.219-12_arm64.deb linux-image-4.19.219_4.19.219-12_arm64.deb 然后再开发板上安装,按照这个步骤安装 2.3.2. 安装 以下以 ROC-RK3568-PC 安装为例: 将得到的 deb 包放入设备中,然后安装,对于 headers,安装后还需要进行编译处理: 对于使用了 extboot 的板卡,安装后重启即可完成内核更新,之后再进行编译 headers # 安装sudo dpkg -i linux-headers-4.19.172_4.19.172-189_arm64.debsudo dpkg -i linux-image-4.19.172_4.19.172-189_arm64.deb# 编译cd /usr/src/linux-headers-4.19.172make headers_checkmake headers_install# make scripts 可能会出错,如果出错在 tools,可以直接忽略,安装完成make scriptsroot@firefly:/home/firefly# ls Desktop New.c linux-headers-4.19.219_4.19.219-12_arm64.deb linux-image-4.19.219_4.19.219-12_arm64.deb root@firefly:/home/firefly# dpkg -i linux-headers-4.19.219_4.19.219-12_arm64.deb (Reading database ... 81711 files and directories currently installed.) Preparing to unpack linux-headers-4.19.219_4.19.219-12_arm64.deb ... Unpacking linux-headers-4.19.219 (4.19.219-12) over (4.19.219-12) ... Setting up linux-headers-4.19.219 (4.19.219-12) ... root@firefly:/home/firefly# dpkg -i linux-image-4.19.219_4.19.219-12_arm64.deb (Reading database ... 81711 files and directories currently installed.) Preparing to unpack linux-image-4.19.219_4.19.219-12_arm64.deb ... Unpacking linux-image-4.19.219 (4.19.219-12) over (4.19.219-12) ... Setting up linux-image-4.19.219 (4.19.219-12) ... update-initramfs: Generating /boot/initrd.img-4.19.219 root@firefly:/home/firefly# cd /usr/src/linux-headers-4.19.219/ 这里显示,没有这个文本,可如何是好呢? root@firefly:/usr/src/linux-headers-4.19.219# make headers_check /usr/bin/env: ‘python’: No such file or directory /usr/bin/env: ‘python’: No such file or directory /usr/bin/env: ‘python’: No such file or directory HOSTCC scripts/basic/fixdep /bin/sh: 1: gcc: not found scripts/Makefile.host:90: recipe for target 'scripts/basic/fixdep' failed make[1]: *** [scripts/basic/fixdep] Error 127 Makefile:509: recipe for target 'scripts_basic' failed make: *** [scripts_basic] Error 2 然后我还考虑到可能是linuxSDK版本不对无法使用,我就cat一下 root@firefly:~# cat /proc/version Linux version 4.19.219 (zjt@zjt-virtual-machine) (firefly: 72491ed436765c35dddc56ce27b537a4d3703107) (sdk version: rk356x_linux_release_20220311_v1.2.3a.xml) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05), GNU ld (Linaro_Binutils-2017.05) 2.27.0.20161019) #12 SMP Mon May 23 10:33:38 CST 2022 SDK这里版本显示是V.1.2.3a,是不是因为它低于1.2.4a,所以就导致linux-headers和linux-image无法使用呢? |
-
598 Bytes, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1