按“https://wiki.t-firefly.com/zh_CN ... i-buildroot-gu-jian” 的wiki教程,严格按教程操作,一步步顺利走到下面步骤: 1.5. 编译 Buildroot 固件 我们环境下的实际 SDK版本信息查询如下: jeff@ubuntu:~/RK3588/rk3588_sdk$ readlink -f .repo/manifest.xml /home/jeff/RK3588/rk3588_sdk/.repo/manifests/rk3588/rk3588_linux_release_20240412_v1.4.0a.xml 按下面的wiki教程: 1.5.1. 准备工作1.5.1.1. 搭建编译环境sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool \expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support \qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib \unzip \device-tree-compiler ncurses-dev \ 注:上面的步骤我们都做了,各上面所列的应用都正常安装了,没发现什么问题,报了个Note如下,不知是否会有问题? 感觉问题不大: Note, selecting 'libncurses5-dev' instead of'ncurses-dev' 按wiki教程: 1.5.2. 编译 SDK1.5.2.1. 编译前配置 在 device/rockchip/rk3588/ 目录下,有不同板型的配置文件,选择配置文件: ./build.sh itx-3588j-buildroot.mkor./build.sh tx-3588j-BE45-A1-buildroot.mk # MIPI 屏幕我们操作用的命令和系统反馈如下,感觉没问题: jeff@ubuntu:~/RK3588/rk3588_sdk$ ./build.sh ./device/rockchip/rk3588/itx-3588j-BE45-A1-buildroot.mk processing option: ./device/rockchip/rk3588/itx-3588j-BE45-A1-buildroot.mk 然后我们再按照wiki的下面指示 1.5.2.2. 编译 1.5.2.2.1. 全自动编译 全自动编译会执行上述编译、打包操作,生成 RK 固件。 ./build.sh打包固件,生成的完整固件会保存到 rockdev/pack/ 目录。 我们执行了下面的操作: jeff@ubuntu:~/RK3588/rk3588_sdk$ ./build.sh 系统开始运行,第1次,运行了很长时间,有全部重新编译并有下载软件安装的 等等,最后报 下面的 错误log,多次运行(后面几次运行都快了,前面需要的软件都已经编译好了,有些软件已经下载安装好了,所以运行起来比较快乐) 所报错误都是下面的错误log(看2处 红色高亮字的有 Error 的地方),情况一样、不变,问题现象是稳定的: 2024-05-08T11:39:14 >>> Copying overlay board/firefly/roc-rk3588s-pc 2024-05-08T11:39:14 >>> Copying overlay board/firefly/itx-3588j 2024-05-08T11:39:14 >>> Copying overlay board/firefly/aio-3588sjd4 2024-05-08T11:39:14 >>> Executing post-build script ../device/rockchip/common/post-build.sh 2024-05-08T11:39:14 Executing post-build.sh... 2024-05-08T11:39:14 Top of tree: /home/jeff/RK3588/rk3588_sdk/device/rockchip/common/../../.. 2024-05-08T11:39:14 Adding information to /etc/os-release... 2024-05-08T11:39:16 Traceback (most recent call last): 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/git_command.py", line 220, in __init__ 2024-05-08T11:39:16 stderr = stderr) 2024-05-08T11:39:16 File "/usr/lib/python3.6/subprocess.py", line 709, in __init__ 2024-05-08T11:39:16 restore_signals, start_new_session) 2024-05-08T11:39:16 File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child 2024-05-08T11:39:16 raise child_exception_type(errno_num, err_msg, err_filename) 2024-05-08T11:39:16 FileNotFoundError: [Errno 2] No such file or directory: '/home/jeff/RK3588/rk3588_sdk/app/rkadk': '/home/jeff/RK3588/rk3588_sdk/app/rkadk' 2024-05-08T11:39:16 2024-05-08T11:39:16 During handling of the above exception, another exception occurred: 2024-05-08T11:39:16 2024-05-08T11:39:16 Traceback (most recent call last): 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/main.py", line 554, in <module> 2024-05-08T11:39:16 _Main(sys.argv[1:]) 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/main.py", line 529, in _Main 2024-05-08T11:39:16 result = repo._Run(argv) or 0 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/main.py", line 191, in _Run 2024-05-08T11:39:16 result = cmd.Execute(copts, cargs) 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/subcmds/manifest.py", line 81, in Execute 2024-05-08T11:39:16 self._Output(opt) 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/subcmds/manifest.py", line 71, in _Output 2024-05-08T11:39:16 peg_rev_upstream = opt.peg_rev_upstream) 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/manifest_xml.py", line 370, in Save 2024-05-08T11:39:16 output_projects(None, root, list(sorted(projects))) 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/manifest_xml.py", line 280, in output_projects 2024-05-08T11:39:16 output_project(parent, parent_node, project) 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/manifest_xml.py", line 307, in output_project 2024-05-08T11:39:16 value = p.work_git.rev_parse(HEAD + '^0') 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/project.py", line 3061, in runner 2024-05-08T11:39:16 capture_stderr=True) 2024-05-08T11:39:16 File "/home/jeff/RK3588/rk3588_sdk/.repo/repo/git_command.py", line 222, in __init__ 2024-05-08T11:39:16 raise GitError('%s: %s' % (command[1], e)) 2024-05-08T11:39:16 error.GitError: rev-parse: [Errno 2] No such file or directory: '/home/jeff/RK3588/rk3588_sdk/app/rkadk': '/home/jeff/RK3588/rk3588_sdk/app/rkadk' 2024-05-08T11:39:16 Makefile:756: recipe for target 'target-finalize' failed 2024-05-08T11:39:16 make: *** [target-finalize] Error 1 2024-05-08T11:39:16 make: Leaving directory '/home/jeff/RK3588/rk3588_sdk/buildroot' Please check details in /home/jeff/RK3588/rk3588_sdk/.buildroot/br.log Command exited with non-zero status 1 you take 1:13.92 to build builroot ERROR: Running build_buildroot failed! ERROR: exit code 1 from line 1315: /usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $RK_CFG_BUILDROOT $DST_DIR jeff@ubuntu:~/RK3588/rk3588_sdk$ jeff@ubuntu:~/RK3588/rk3588_sdk$ jeff@ubuntu:~/RK3588/rk3588_sdk$ 情况大概这样,看怎样能解决掉,能继续往下完成并能生成完整的buildroot的固件,可以烧到开发板上去测试下,用来验证这个开发环境建好了,这样我们可以基于这个基础上去修改代码、开发适应自己板卡的代码;感觉运行快成功了,就缺临门一脚了;注:什么代码也没改过,包括编译环境等都没改过,都是在没改过代码和编译环境的基础上,按wiki流程走下来,然后在上面的地方碰到问题了。 看了下问题好像和app目录下的rkadk应用程序或子目录有关,看了下 app目录下确实没有 rkadk的应用或子目录,信息如下: jeff@ubuntu:~/RK3588/rk3588_sdk$ ls -l total 48 drwxr-xr-x 8 jeff jeff 4096 May 7 08:50 app drwxr-xr-x 18 jeff jeff 4096 May 8 18:58 buildroot lrwxrwxrwx 1 jeff jeff 31 May 7 08:50 build.sh -> device/rockchip/common/build.sh drwxr-xr-x 3 jeff jeff 4096 May 7 08:50 device drwxr-xr-x 7 jeff jeff 4096 May 7 08:50 docs lrwxrwxrwx 1 jeff jeff 27 May 7 08:50 envsetup.sh -> buildroot/build/envsetup.sh drwxr-xr-x 23 jeff jeff 4096 May 7 08:51 external lrwxrwxrwx 1 jeff jeff 40 May 7 08:50 firefly-update.sh -> device/rockchip/common/firefly-update.sh drwxr-xr-x 27 jeff jeff 4096 May 8 11:37 kernel lrwxrwxrwx 1 jeff jeff 36 May 7 08:50 mkfirmware.sh -> device/rockchip/common/mkfirmware.sh drwxr-xr-x 3 jeff jeff 4096 May 7 08:52 prebuilts drwxr-xr-x 10 jeff jeff 4096 May 8 11:36 rkbin lrwxrwxrwx 1 jeff jeff 33 May 7 08:50 rkflash.sh -> device/rockchip/common/rkflash.sh drwxr-xr-x 3 jeff jeff 4096 May 8 20:42 rockdev drwxr-xr-x 6 jeff jeff 4096 May 7 08:53 tools drwxr-xr-x 28 jeff jeff 4096 May 8 11:36 u-boot drwxr-xr-x 6 jeff jeff 4096 May 7 08:53 uefi jeff@ubuntu:~/RK3588/rk3588_sdk$ cd app jeff@ubuntu:~/RK3588/rk3588_sdk/app$ ls -l total 24 drwxr-xr-x 3 jeff jeff 4096 May 7 08:50 multivideoplayer drwxr-xr-x 3 jeff jeff 4096 May 7 08:50 qcamera drwxr-xr-x 5 jeff jeff 4096 May 7 08:50 qfm drwxr-xr-x 5 jeff jeff 4096 May 7 10:31 QLauncher drwxr-xr-x 3 jeff jeff 4096 May 7 08:50 qplayer drwxr-xr-x 3 jeff jeff 4096 May 7 08:50 qsetting jeff@ubuntu:~/RK3588/rk3588_sdk/app$ 尝试过用下面命令,好像没这个应用,没用: jeff@ubuntu:~/RK3588/rk3588_sdk$ sudo apt list rkadk Listing... Done jeff@ubuntu:~/RK3588/rk3588_sdk$ sudo apt install rkadk Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package rkadk jeff@ubuntu:~/RK3588/rk3588_sdk$ |
-
57.9 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1