当前位置:网站首页>RK3568开发笔记(三):RK3568虚拟机基础环境搭建之更新源、安装网络工具、串口调试、网络连接、文件传输、安装vscode和samba共享服务
RK3568开发笔记(三):RK3568虚拟机基础环境搭建之更新源、安装网络工具、串口调试、网络连接、文件传输、安装vscode和samba共享服务
2022-06-21 21:38:00 【长沙红胖子Qt】
若该文为原创文章,转载请注明原文出处
本文章博客地址:https://hpzwl.blog.csdn.net/article/details/125142167
红胖子(红模仿)的博文大全:开发技术集合(包含Qt实用技术、树莓派、三维、OpenCV、OpenGL、ffmpeg、OSG、单片机、软硬结合等等)持续更新中…
瑞芯微开发专栏
上一篇:《RK3568开发笔记(二):入手RK3568开发板的套件介绍、底板介绍和外设测试》
下一篇:敬请期待…
前言
开始搭建RK3568的基础虚拟机,具备基本的通用功能,主要包含了串口工具minicom,远程登陆ssh,远程传输filezilla,代码编辑工具vscode。
虚拟机
文档对对虚拟机做了一些基本要求,如下图:

为了尽量在前期减少错误,应选择一样的vmware版本 和ubuntu,尤其是ubuntu(重点是amd 64位的)。
笔者使用ubutn18.04 x64位系统,制作一个空系统,使用vmware虚拟机只做一个改系统的空系统(如何安装虚拟机,请自行百度)。

Ubuntu界面方式更新源
更换源




更换完成,如果弹出要更新,请点击取消(界面更新的东西好像比较多)。
安装网络工具
Ubuntu18没有ifconfig等一些工具,需要手动安装:
sudo apt-get install net-tools

开发板调试串口连接
更新源
更换完成后,使用以下命令更新以下:
sudo apt-get update

串口物理连接
将串口连接到PC电脑上,并将串口PC与虚拟机连接,是虚拟机可以打开串口。
串口物理接线:

电脑上显示新的串口:

虚拟机将串口接入:

确认串口(USB串口):

虚拟机网络连接

下载串口工具minicom
sudo apt-get install minicom

打开串口(ttyUSB0,一般波特率都为115200)
sudo minicom -s



重新上电,连接成功

查看开发板内核系统版本:

虚拟机与开发板的网络连接
虚拟机通往开发板
开发板ip:

查看网卡,此开发板网络配置很多,wlan0为无线网卡配置;

虚拟机通往开发板:

开发板通往虚拟机
虚拟机ip:

开发板通往虚拟机:

安装fileZilla文件传输软件
(此开发板自带的系统没有该服务,但是我们系统需要安装上后,往后需要搭建自己的系统,现在只安装这个软件)
在ubuntu软件中心下载软件fileZilla,如下图:

代码开发编辑工具vscode
下载vscode
(因为开发驱动,而不是之前只开发qt和c应用了,尝试使用vscode)。
vscode 是一款免费开源的代码编辑器, 而且功能十分强大, 基本支持所有主流的编程语言的语法高亮,自动补全, 匹配括号等。 软件跨平台支持 win, mac 和 linux。
官方下载地址:https://code.visualstudio.com/Download
CSDN粉丝0积分下载地址:https://download.csdn.net/download/qq21497936/85430506
QQ群下载地址:1047134658(点击“文件”搜索“code”,群内与博文同步更新)

安装vscode
sudo dpkg --install code_1.67.2-1652812855_amd64.deb


安装vscode插件


安装插件,根据开发文档推荐的,如下:
- C/C++:C和C++的编译环境
- C/C++ Snippets:C/C++重用代码块。
- C/C++ Advanced Lint:C/C++静态检测。
- Code Runner:即代码运行。
- Include AutoComplete:自动头文件包含。
- Rainbow Brackets:彩虹花括号,有助于阅读代码。
- One Dark Pro:VSCode 的主题。
- GBKtoUTF8:将 GBK 转换为 UTF8。
- Arm Assmebly:即支持 ARM 汇编语法高亮显示。
- Chinese(Simplified):中文环境。
- vscode-icons:VSCode 图标插件, 主要是资源管理器下各个文件夹的图标。
- compareit:比较插件, 可以用于比较两个文件的差异。
- DeviceTree:设备树语法插件。
- TabNine AI:AI 自动补全插件。
安装完成后:

共享文件服务器samba
虚拟机有时候拽拖文件有问题,为了更好的避免,此处安装了samba服务,让外部电脑通过资源管理器直接使用ip地址即可访问虚拟机ubuntu的共享文件夹,实现文件传输。
参考博文《linux实用技巧:ubuntu18.04安装samba服务器实现局域网文件共享》
上一篇:《RK3568开发笔记(二):入手RK3568开发板的套件介绍、底板介绍和外设测试》
下一篇:敬请期待…
若该文为原创文章,转载请注明原文出处
本文章博客地址:https://hpzwl.blog.csdn.net/article/details/124981391
边栏推荐
- 并查集练习题1:朋友圈
- Is it safe for the head teacher to open a stock account in qiniu?
- Better manage all kinds of music, professional DJ music management software pioneer DJ rekordbox
- 2022-06-21:golang选择题,以下golang代码输出什么?A:3;B:4;C:100;D:编译失败。 package main import (
- Use of three values of pointer events
- Matplotlib drawing and displaying Chinese
- Truncate strings by length into an array
- Analysis of 43 cases of MATLAB neural network: Chapter 9 associative memory of discrete Hopfield Neural Network -- number recognition
- Distributed database uses logical volume to manage storage expansion
- 力扣75:颜色分流
猜你喜欢

numpy矩阵初等变换

Mongo uses too much memory and is automatically shut down by the system

WSL 2 installation process (and introduction)

STM32 cannot download the program again after downloading it once, and the program cannot run.

原生小程序 申请小程序 - 发布流程
![[use four tricky examples to help you understand] how data is stored in memory](/img/ef/372ae4483bda909318cbdc05bd38f0.png)
[use four tricky examples to help you understand] how data is stored in memory
![[highly recommended] markdown grammar](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[highly recommended] markdown grammar

逆向调试入门-基础知识

Uniapp encapsulates the request function to achieve unique login. One account can only log in to one device at the same time

Flink实战之实时风控规则引擎
随机推荐
Speech breakpoint detection (short time improved subband spectral entropy)
C# 委托(Delegate)
Apache shardingsphere 5.1.2 release | new driving API + cloud native deployment to create a high-performance data gateway
Niuke month race - insectivores on the ring
Buckle 75: color split
CISSP certification 2021 textbook OSG 9th Edition added (modified) knowledge points: comparison with the 8th Edition
How to use metric unit buffer in PostGIS
Produced by Ali! Graphical ant script - idea plug-in cloudtoolkit
Notes de développement de la tarte aux framboises (XVI): la tarte aux framboises 4b + installe la base de données mariadb (MySQL open source Branch) et teste les opérations de base
【用四道刁钻例题带你理解】数据在内存中存储的方式
Ah ah ah ah ah ah
集合-Set
关于 QtCreator的设计器QtDesigner完全无法正常拽托控件 的解决方法
Left hand code, right hand open source, part of the open source road
Analysis of 43 cases of MATLAB neural network: Chapter 19 handwritten font recognition based on SVM
Solve the problem that the letter of a key in laptop (I) cannot be pressed
keep-alive的使用注意点
Uni app advanced style framework / production environment [Day10]
解决opencv在pycharm中代码提示失效
关于 安装Qt5.15.2启动QtCreator后“应用程序无法正常启动0xc0000022” 的解决方法