Lichee D1 DocK Pro Development Board Review

The Lichee RV Dock is a single-board computer launched by Allwinner Technology in collaboration with Shenzhen Sipeed Technology, based on the Zhuhai Allwinner D1 CPU. Its main control unit, the Allwinner D1, features a 64-bit RISC-V core, 512MB of RAM, an SD card slot for system boot, an HDMI video output interface, a USB interface, an onboard SDIO Wi-Fi module, an audio output (speaker), an LCD output interface, and 40 fully compatible 2.5mm pins with Raspberry Pi. It also has a USB 3.0 TYPE-C interface that supports serial port/download/power, making the development and usage methods almost identical to that of the Raspberry Pi.
This article is a review written by an engineer, providing some guidance for development based on this board. Your corrections are welcome!

Lichee D1 DocK Pro Development Board Review

The Lichee RV Dock is one of the designated development boards for the Chip Open Community & PingTouGe XuanTie Cup competition. The other board is the Allwinner D1 Nezha development board, and both have identical usage methods.

Since the development board requires an SD card to boot the file system, you need to burn the SD card image before powering it on. The download address is https://wiki.sipeed.com/hardware/zh/lichee/RV/flash.html:

Lichee D1 DocK Pro Development Board Review

Use Win32DiskImager for burning:

Lichee D1 DocK Pro Development Board Review

After burning, you need to use a virtual machine or other software that can read the ext4 file system to open and operate the rootfs partition:

Lichee D1 DocK Pro Development Board Review

Open /etc/ssh/sshd_config, uncomment and modify the following two lines:

PermitRootLogin yes

PermitEmptyPasswords yes

Lichee D1 DocK Pro Development Board Review

This allows remote hosts to log in to SSH as the root user without needing to set and enter a password, which is basic knowledge every embedded developer must master. Without SSH login, further development can be quite troublesome.

Then power on the development board and open the serial terminal:

Lichee D1 DocK Pro Development Board Review

Lichee D1 DocK Pro Development Board Review

If necessary, you can connect an HDMI display to view the graphical interface:

Lichee D1 DocK Pro Development Board Review

Lichee D1 DocK Pro Development Board Review

On the desktop, use the WLAN management tool to set up the connected Wi-Fi hotspot:

System Menu — Preferences — Connman Settings

Lichee D1 DocK Pro Development Board Review

Serial login username: sipeed Password: licheepi

Use ifconfig in the serial to check the IP address assigned to the Wi-Fi module:

Lichee D1 DocK Pro Development Board Review

Use the root user to log in remotely via SSH, IP 192.168.1.9:

Lichee D1 DocK Pro Development Board Review

After completing the SSH remote login, you still cannot use the apt tool to install software. This tool requires updating the key on the RISC-V system. Download the deb software compressed package from the website https://packages.debian.org/sid/all/debian-ports-archive-keyring/download:

Lichee D1 DocK Pro Development Board Review

Use the command

sudo dpkg -i debian-ports-archive-keyring_2022.02.15_all.deb

to install, and the apt tool can be used normally.

Using ffmpeg, you can play music or video on the HDMI screen. Here, I am playing music:

ffmpeg -i /home/shumabaobei1.mp3 -pix_fmt bgra -f fbdev /dev/fb0 -f alsa hw:2,0

Lichee D1 DocK Pro Development Board Review

The Lichee RV Dock single-board computer integrates a demo for an RGB LED light, controlled by the following files:

/sys/class/leds/sunxi_led0r/brightness
/sys/class/leds/sunxi_led0g/brightness
/sys/class/leds/sunxi_led0b/brightness

The value range is 0~255, corresponding to the brightness of the red/green/blue lights, controlled by PWM. It can also be controlled in a C program using the system() function:

echo 255 > /sys/class/leds/sunxi_led0r/brightness
echo 0 > /sys/class/leds/sunxi_led0g/brightness
echo 0 > /sys/class/leds/sunxi_led0b/brightness

Lichee D1 DocK Pro Development Board Review

echo 0 > /sys/class/leds/sunxi_led0r/brightness
echo 255 > /sys/class/leds/sunxi_led0g/brightness
echo 0 > /sys/class/leds/sunxi_led0b/brightness
Lichee D1 DocK Pro Development Board Review
echo 0 > /sys/class/leds/sunxi_led0r/brightness
echo 0 > /sys/class/leds/sunxi_led0g/brightness
echo 255 > /sys/class/leds/sunxi_led0b/brightness
Lichee D1 DocK Pro Development Board Review
echo 0 > /sys/class/leds/sunxi_led0r/brightness
echo 255 > /sys/class/leds/sunxi_led0g/brightness
echo 255 > /sys/class/leds/sunxi_led0b/brightness
Lichee D1 DocK Pro Development Board Review
echo 255 > /sys/class/leds/sunxi_led0r/brightness
echo 255 > /sys/class/leds/sunxi_led0g/brightness
echo 255 > /sys/class/leds/sunxi_led0b/brightness
Lichee D1 DocK Pro Development Board Review

I also tried some more advanced development attempts, such as porting QT5.12 programs to the development board. Here, I asked an expert to help me compile the relevant QT graphics library using the RISC-V cross-compilation toolchain:

Lichee D1 DocK Pro Development Board Review

Place these libraries in /home/qt_libs:

Lichee D1 DocK Pro Development Board Review

export LD_LIBRARY_PATH=/home/qt_libs/

Lichee D1 DocK Pro Development Board Review

There are also two framebuffer libraries related to the running platform:

Lichee D1 DocK Pro Development Board Review

These two libraries should be placed in the corresponding directory under /home/qt_plugins:

export QT_PLUGIN_PATH=/home/qt_plugins/

export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:size=1920×1080

Run a QT demo with just one button and one label:

Lichee D1 DocK Pro Development Board Review

The display effect is not very good:

Lichee D1 DocK Pro Development Board Review

Conclusion & Limitations

The Lichee RV Dock, as a commercial single-board computer, still has significant room for improvement, such as insufficient USB interfaces that limit the connection of more peripherals, lack of an RJ45 port for reliable and stable TCP/UDP network connections, no CPU heat dissipation module provided, and only 512MB of memory which is too little. I hope the manufacturers will launch improved models in the future, as the RISC-V solution represents a small step for domestic chip attempts and a significant step for the Chinese semiconductor market!

END
One-click Follow
Lichee D1 DocK Pro Development Board Review
Recommended Reading

It’s too harsh! The US plans to ban ASML from selling all types of lithography machines to China!

Parallel power connections have many benefits, but do you understand its risks?

“Huawei can make world-class products even in shoes and socks!” Why is Yu Chengdong so confident?

How to understand Huawei’s launch of the Huawei Imaging® XMAGE brand?

Samsung is the first to mass-produce 3nm technology, but experts from Taiwan’s Institute of Industrial Technology criticize it as fake mass production!

Good news! Weir Shares adopts BGI Jiutian Empyrean Polas® to ensure the reliability of chip design.

Lichee D1 DocK Pro Development Board Review

About Electronic Innovation Network

The Electronic Innovation Network timely publishes the latest global semiconductor industry information, updates on semiconductor suppliers, exhibition and seminar information, technical trend information, as well as interviews and other related news. Follow our official account for more information.

Lichee D1 DocK Pro Development Board Review

Leave a Comment