OK3568 forlinx系统编译过程及问题汇总

  1. 共享文件夹无法加载;通过网上把文件夹加载后,拷贝文件很慢,任务管理器查看发现硬盘读写速率很低。解决办法:重新安装vmware tools。

  2. 拷贝Linux源码到虚拟机,解压。

  3. 虚拟机基本库安装

forlinx@ubuntu:~$ sudo apt-get update //更新下载源信息

forlinx@ubuntu:~$ sudo apt-get install build-essential //提供编译程序必须软件包的列表信息

forlinx@ubuntu:~$ sudo apt-get install libncurses* //用于生成基于文本的用户界面

forlinx@ubuntu:~$ sudo apt-get install lzop //基于Lzo库的压缩解压工具

forlinx@ubuntu:~$ sudo apt-get install net-tools //网络配置工具

以上顺利完成

  1. 编译OK3568 Linux源码必要库安装

forlinx@ubuntu:~$ sudo apt-get update //更新apt-get下载源

forlinx@ubuntu:~$ sudo apt-get install openssh-server vim git fakeroot //必备工具包的安装

forlinx@ubuntu:~$ 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 python-pip libncurses5-dev

以上顺利完成

  1. Qt Creator安装

不安装了,先试下

  1. 编译

./build.sh

漫长的等待,不知道等了多少个小时,搞了大半天,卡在QT那里不动,于是回头重装QT。然后:

./build.sh cleanall

./build.sh

2023-10-04T00:51:04 >>> host-lzip 1.19 Extracting

2023-10-04T00:51:05 >>> host-lzip 1.19 Patching

2023-10-04T00:51:05 >>> host-lzip 1.19 Configuring

2023-10-04T00:51:05 >>> host-lzip 1.19 Building

2023-10-04T00:51:09 >>> host-lzip 1.19 Installing to host directory

2023-10-04T00:51:10 >>> host-m4 1.4.18 Extracting

2023-10-04T00:51:10 >>> host-m4 1.4.18 Patching

2023-10-04T00:51:11 >>> host-m4 1.4.18 Updating config.sub and config.guess

2023-10-04T00:51:11 >>> host-m4 1.4.18 Patching libtool

2023-10-04T00:51:11 >>> host-m4 1.4.18 Configuring

2023-10-04T00:51:43 >>> host-m4 1.4.18 Building

2023-10-04T00:51:46 >>> host-m4 1.4.18 Installing to host directory

2023-10-04T00:51:47 >>> host-bison 3.0.4 Extracting

2023-10-04T00:51:48 >>> host-bison 3.0.4 Patching

2023-10-04T00:51:48 >>> host-bison 3.0.4 Updating config.sub and config.guess

2023-10-04T00:51:48 >>> host-bison 3.0.4 Patching libtool

2023-10-04T00:51:48 >>> host-bison 3.0.4 Configuring

00:51分开始编译,看看要什么时候可以结束

14点多完成编译,共花了13个多小时,提示build.sh指令错误,所在行1077,打开文件,最后一行1066。

因为自己调整了build.sh设备树,为了确认是不是自己的问题,重新解压,重新编译。

Writing boot file...

Writing firmware...

Generating MD5 data...

MD5 data generated successfully!

New image generated successfully!

Making ./Image/update.img OK.

Running build_updateimg succeeded.

Running build_save succeeded.

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

PLEASE CHECK BOARD GPIO POWER DOMAIN CONFIGURATION !!!!!

<<< ESPECIALLY Wi-Fi/Flash/Ethernet IO power domain >>> !!!!!

Check Node [pmu_io_domains] in the file: /home/forlinx/3568/OK3568-linux-source/kernel/arch/arm64/boot/dts/rockchip/OK3568-C-linux.dts

请再次确认板级的电源域配置!!!!!!

<<< 特别是Wi-Fi,FLASH,以太网这几路IO电源的配置 >>> !!!!!

检查内核文件 /home/forlinx/3568/OK3568-linux-source/kernel/arch/arm64/boot/dts/rockchip/OK3568-C-linux.dts 的节点 [pmu_io_domains]

Running build_allsave succeeded.

编译成功

  1. 修改设备树,禁用PCIE

&pcie30phy {

status = "disabled";

};

&pcie3x2 {

reset-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;

enable-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;

vpcie3v3-supply = <&vcc3v3_sys>;

status = "disabled";

};

&pcie2x1 {

reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;

vpcie3v3-supply = <&vcc3v3_sys>;

status = "disabled";

};

保存,编译

成功

  1. 烧录

  2. XSHELL登录提示 received:3,expected:20

解决办法:

在/etc/ssh/sshd_config最后一行加入

KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

问题解决

相关推荐
煤泥做不到的!37 分钟前
挑战一个月基本掌握C++(第十一天)进阶文件,异常处理,动态内存
开发语言·c++
F-2H39 分钟前
C语言:指针4(常量指针和指针常量及动态内存分配)
java·linux·c语言·开发语言·前端·c++
aherhuo42 分钟前
基于openEuler22.09部署OpenStack Yoga云平台(一)
linux·运维·服务器·openstack
檀越剑指大厂1 小时前
【Linux系列】Shell 脚本中的条件判断:`[ ]`与`[[ ]]`的比较
linux·运维·服务器
bryant_meng2 小时前
【python】OpenCV—Image Moments
开发语言·python·opencv·moments·图片矩
若亦_Royi2 小时前
C++ 的大括号的用法合集
开发语言·c++
资源补给站3 小时前
大恒相机开发(2)—Python软触发调用采集图像
开发语言·python·数码相机
2301_819287123 小时前
ce第六次作业
linux·运维·服务器·网络
m0_748247553 小时前
Web 应用项目开发全流程解析与实战经验分享
开发语言·前端·php
武汉联从信息3 小时前
如何使用linux日志管理工具来管理oracle osb服务器日志文件?
linux·运维·服务器