LUCKFOX RV64GC VisionFive2 Quad Core 64 Bit SoC Instruction Manual

June 1, 2024
LUCKFOX

LUCKFOX-LOGO

LUCKFOX RV64GC VisionFive2 Quad Core 64 Bit SoC

LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-
PRODUCT

Specifications:

  • Processor: RISC-V U74 quad-core 64-bit V64GC ISA SoC @ 1.5GHz
  • CPU: MG BXE-4-32
  • GPU: IMG BXE-4-32
  • Memory: 4GB/8GB LPDDR4
  • Storage: External SD card/eMMC
  • Camera: Not specified
  • Display Port: HDMI
  • USB Host: USB 3.0
  • USB Device: USB 3.0
  • Networking: RJ45 Gigabit Ethernet port
  • Power Supply: Not specified
  • Dimensions: Not specified
  • Recommended Operating Ambient Temperature: Not specified

Product Usage Instructions

Install Debian System:

  1. Download, open SDFormatter, and format a TF card of 32GB or above.
  2. Download, open Win32DiskImager.zip, choose the corresponding image and disk, and click write.

Booting:

  1. Turn the two DIP switches on the board to the right (ON) position.
  2. Insert the TF card with the Debian image, connect the USB to TTL module to the PC.
  3. Open MobaXterm and follow the provided instructions to boot the system.

Check IP and Connect to SSH:

  1. To check IP, install net-tools using the command: apt-get install net-tools.
  2. To connect to SSH, edit the ssh configuration file by running: nano /etc/ssh/sshd_config.

Frequently Asked Questions (FAQ):

  • Q: What is the recommended memory card size for installing Debian?
    A: It is recommended to use a TF card of 32GB or above for installing Debian.

  • Q: Can the VisionFive2 board support OpenCL 3.0 and Vulkan 1.2?
    A: Yes, VisionFive2 supports OpenCL 3.0, OpenGL ES 3.2, and Vulkan 1.2.

  • Q: How do I enter the system after booting with the Debian image?
    A: Follow the provided commands in MobaXterm to enter the system after booting with the Debian image.

Overview

LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG-
\(1\)

  • Onboard RV64GC ISA Quad-core 64-bit SoC, operating frequency up to 1.5GHz, VisionFive 2 supports OpenCL 3.0, OpenGL ES 3.2, and Vulkan 1.2. It is available in 4GB/8GB LPDDR4 RAM options and an optional wireless module.
  • Also, it has multiple onboard interfaces, including M.2 / CSI / DSI / HDMI / eMMC / USB 3.0 / 40PIN GPIO / RJ45 Gigabit Ethernet port / TF card slot, etc. Supports 4K@60fps and H264/H265 multi-stream video decoding, 1080p@30fps and H265 multistream video encoding. Onboard 40PIN GPIO header,
  • VisionFive2 is compatible with Raspberry Pi series boards.
  • Provides wide software compatibility including support for Debian.

Parameters

LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG-
\(2\)

User Guide

As the Debian image is large, it is recommended to use a TF card of 32GB or above.

Install Debian System

  • Download, open SDFormatter F, and format the corresponding TF card.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(3\)
  • Download, open Win32DiskImager.zip e, choose the corresponding image and disk, and click “write”.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(4\)

Booting

  • Turn the two DIP switches on the board to the right (ON) position.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(5\)
  • Insert the TF card that burned the image, connect the USB to TTL module according to the figure, connect it to the PC, and check the port.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(6\)
  • Open MobaXterm and operate as shown below:LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(7\)LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(8\)
  • Connect the network cable and power supply, try to print the U-boot to the position shown in the picture, and press any key to switch to the device tree.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(9\)LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(10\)

Enter the following command (to be entered line by line):LUCKFOX-RV64GC-
VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(11\)

  • Wait a few seconds and it will automatically enter the system (if you have selected it before, you must select it before entering the system).LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(12\)

Enter the corresponding account and password:

  • Username: root
  • Password: starfiveLUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(13\)

Extended file system ensures that all storage on the memory card is available

Query memory space: df -h.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-
FIG- \(14\)
Enter the commands: fdisk /dev/mmcblk1.
Input according to the content shown in the picture, and press Enter directly at positions 5 and 6.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG-
\(15\)
Enter the command: resize2fs /dev/mmcblk1p3.LUCKFOX-RV64GC-VisionFive2-Quad-
Core-64-Bit-SoC-FIG- \(16\)
Then use df -h to view the size of the space.LUCKFOX-RV64GC-VisionFive2
-Quad-Core-64-Bit-SoC-FIG- \(17\)

Check IP

The net-tools toolbox is not installed on the Debian system, so it needs to be installed manually.

Use command:

  • apt-get install net-tools

After the installation is complete, you can use the command ifconfig to view the IP of the corresponding network port.LUCKFOX-RV64GC-VisionFive2-Quad-
Core-64-Bit-SoC-FIG- \(18\)

Connect To SSH

The Debian system of VisionFive2 does not support the root user to use an ssh connection, so it needs to be set according to the following configuration.
Edit the ssh configuration file.

  • nano /etc/ssh/sshd_config

Add the following two sentences at the end of the file:

  • PasswordAuthentication yes
  • PermitRootLogin yes

Save, exit, and restart the ssh service. service sshd restart or systemctl restart sshd.service use MobaXterm software to ssh connection to VisionFive2, if the connection fails, restart VisionFive2.LUCKFOX-RV64GC-VisionFive2
-Quad-Core-64-Bit-SoC-FIG- \(21\)LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG-
\(22\)

Working with ECR660U-WiFi Module

This module is only available on 202302 and later Debian systems.

Preparation
Connect to the WiFi module; the serial port prints nothing.
Use ifconfig -a command, two devices starting with wi will show up to indicate a successful connection.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG-
\(23\)

Normally, wl is followed by the fixed MAC address of the WiFi, e.g:

However, before connecting to WiFi, visionfivez will randomly give a virtual MAC address to the device from time to time, at which point we can use the following actions to determine the real address of the module.

Install iw:

  • apt-get install iw
    View the device information:LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-
FIG- \(25\)

  • ip link

As shown in the picture, the above two are the real addresses of the modules.

If you don’t like the name, you can change it as follows:

Reinstall the WiFi module
After using the ifconfig -a command, you will see that the name of wixxxxxxx has been changed.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG-
\(26\)

Connect to WiFi

Enter mtui to access the graphical interface for network configuration:

Select the second option

Select the WiFi you want to connect to, the * sign at the end of the WiFi indicates the signal strength:LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-
SoC-FIG- \(29\)

Enter the password and press Enter.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64
-Bit-SoC-FIG- \(30\)

An * sign appears in front of the corresponding WiFi to indicate a successful connection.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG-
\(31\)

Press Esc to go back to the main screen and select the first option.

The name of the WiFi you just connected to appears as shown in the picture, which means that the system has remembered this WiFi and will try to connect to it automatically the next time you turn on your computer.

Go back to the terminal and enter the ifconfig command, you can see that the WiFi is getting the IP and displaying the real MAC address.LUCKFOX-RV64GC-
VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(34\)

Adapted Products

Audio

  • WM8960 Audio HAT ₫
  • USB TO AUDIO &

Sensor

  • Sense HAT (B) EF

LCD

  • 0.96inch LCD Module &
  • 1.14inch LCD Module &
  • 1.28inch LCD Module &
  • 1.3inch LCD Module E
  • 1.54inch LCD Module &
  • 1.8inch LCD Module &
  • Linch LCD Module &
  • 2.4inch LCD Module &

Motor

  • Motor Driver HAT &

Relay

  • RPi Relay Board &

Learning Module

  • Pioneer600 ₫

Resources

Schematic

  • Schematic

Official Resource/Forum Address

  • Resources E
  • Forum &

SDK

  • Github &

Debian Image

  • Official newest image t

Development Software

  • Win32DiskImager.zip g
  • SDFormatter &
  • MobaXterm Portable v22.0.zip €

FAQ

Question:202302 Introduction to Debian System Updates?
Answer: Official website introduction:
https://rvspace.org/en/project/VisionFive2_Debian_Wiki_202302_Release_Release.

Brief summary:

  1. Can use SD, eMMc boot mode to boot.
  2. Use Flash mode to boot, need to update Flash firmware.
  3. The image is greatly reduced to 2GB, if you need the full function, please use the following command after logging into the system.LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG- \(35\)

Question: image 69 The system cannot start?
Answer: There is a little problem with the system startup directory.
Solution: Enter the following document, follow the 4.4 section, and restore the Bootloader operation to operate.
https://doc.rvspace.org/VisionFive2/PDF/VisionFive2_QSG.pdf

Question: Obviously purchased 8G memory, but only 4G memory is checked by using the command?LUCKFOX-RV64GC-VisionFive2-Quad-Core-64-Bit-SoC-FIG-
\(36\)
Answer: The debian system version is too old, Flash firmware version is too old.
Solution: Download the latest Debian image.
Just follow #Update Onboard Flash Firmware.LUCKFOX-RV64GC-VisionFive2-Quad-
Core-64-Bit-SoC-FIG- \(37\)

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals