1.VisionFive2星光板的硬件配置
VisionFive2星光板的正面布局和背面布局分别如图1和图2所示。
图1 VisionFive2星光板的正面布局
图1 VisionFive2星光板的正面布局

图2 VisionFive2星光板的背面布局
VisionFive2星光板一共有4个USB口、2个网口、40Pin的GPIO引脚、1个CSI摄像头接口、1个HDMI 2.0接口、1个MIPI DSI显示接口。其规格如图3所示。

图3 VisionFive2星光板的规格
2. 系统烧录
这里将采用将系统烧录到SD卡并启动的方式。首先在百度网盘网址(https://pan.baidu.com/s/146_K7BNT0cBfMUeTpvb3uA?pwd=csx2#list/path=%2F)下载系统镜像,最后能得到三种不同的镜像文件夹,如图4所示。

图4 下载好的系统镜像文件夹
我们选择sd/starfive-jh7110-202306-SD-minimal-desktop.img文件夹下的starfive-jh7110-202306-SD-minimal-desktop.img进行烧写。这里使用Win32DiskImager.exe这款软件将镜像写进SD卡中,如图5所示。

图5 Win32DiskImager烧写系统镜像
烧写完成后,将SD卡插入TF卡槽中,其位置如图6红色框所示。

图6 TF卡槽位置
在上电之前,先拨动模式选择开关使得板子上电时能从SD卡启动,模式选择开关如图7黄色框所示。

图7 模式选择开关位置
对应的模式选择如图8所示。

图8 启动模式设置
之后用一根网线连接笔记本和开发板的网口,然后用串口调试助手连接板子,连线方式如图9所示。

图9 串口调试助手连接示意图
最后使用5V/2A的电源进行上电。最后的连接图如图10所示。

图10 板子调试连接图
板子上电后,我们可以通过Xshell软件,通过串口登陆板子。首先需要查看“设备管理器”中的“端口”,确定串口登录的端口号,如图11所示。

图11 查看串口登录的端口号
登录板子后,输入用户名为“root”,密码为“starfive”,即可登录系统。
板子上电后,需要通过以太网来进行联网。通过在电脑上设置WLAN对以太网进行共享来实现,如图12所示。

图12 WLAN共享网络给以太网
通过命令ifconfig测试是否有分配IP地址,如果有分配,那就可以正常上网了,如图13所示。

图13 ifconfig返回结果
3. 换源
系统安装完成后,需要对系统的镜像源进行更换。先使用命令:
cat /etc/issue
查看Debian系统的发行版。由图14可知,该Debian系统的发行版本为bookworm或者sid。

图14 cat /etc/issue命令返回结果
之后进入清华大学开源软件镜像站(https://mirrors.tuna.tsinghua.edu.cn/help/debian/)找到对应的镜像源。这里使用Debian版本为sid,如图15所示。

图15 镜像源查询
使用命令:sudo vim /etc/apt/sources.list,编辑sources.list文件,将镜像源地址修改为
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ sid main contrib non-free non-free-firmware
之后保存,退出,然后运行命令:sudo apt-get update,进行更新。