Sipeed Lichee RV

From linux-sunxi.org
Jump to: navigation, search
Sipeed Lichee RV
Lichee-rv.jpeg
Manufacturer Sipeed
Dimensions 46.2mm x 25.0mm
Release Date November 2021
Website Product Page
Specifications
SoC D1 @ 1.0Ghz
DRAM 512MiB DDR3 @ 792MHz, 1×H5TQ4G63EFR
Power DC 5V @ 2A (via OTG Type-C connector)
Features
Video SPI LCD (optional); via expansion board: HDMI (Type A - full), LVDS
Audio via expansion board: audio, HDMI, I2S
Network via expansion board: Realtek RTL8723DS
Storage µSD
USB 1 USB Type-C OTG

This page needs to be properly filled according to the New Device Howto and the New Device Page guide.

The test pin near the power LED is RST (reset).

Fex and kernel

The Fex are not available in the sunxi-board for now. Sipeed give them on their download server.

Patched version of Linux Kernel for Nezha platform

FEL mode

The FEL button triggers FEL mode.

The xfel tool has support for the D1 chip. Currently sunxi-fel (from Sunxi-tools) lists the SoC as unknown.

UART

UART connectors holes at the left of the USB-C connector

The board has 4 pins holes at left of USB-C port for UART and is sold with the 4 pins to be soldered (not needed if you have the Dock). The pins name are wrote at the back of the board. from Top to bottom:

  • 5V
  • Ground
  • Rx
  • Tx

This board can be powered by UART, by plugin a 5V pin. See the UART Howto for general usage of UART.

The pins should be soldered with pins at top top still be accessible when using the LicheeRV Dock.

Board can be powered by UART alone or by USB-C port.

Pins

Pinout of the M.2 B-Key 67×2 pins connectors of the SoM is described in schematic file

User LED

The user LED on the bord can be controlled via GPIO65.

Optional screen

There is an optional 1.14" 135×240 SPI LCD screen coming with the board. It uses Sitronix ST7789V controller (Datasheets). A driver in included in Linux mainline in FBTFT for using RGB port.

There is also a TinyDRM version of the driver.

For information, the connector and driver are compatibles between Sipeed LicheeRV and Sipeed Longan Nano, just need to adapt the resolution. It can be helpful for tests in case of problem with screen.

Carrier Boards

Lichee RV Dock

Oreboot+RustSBI+LinuxBoot

This small board has a built-in mic, speaker port, reset button, one extra button, HDMI and USB ports, an FPC connector for a mic array, a 40 pin HAT style GPIO header, and an option for a Wi-Fi add-on SoM plus the corresponding antenna port.

The two pins at left are 5V. the most left pin of the lower row is 3.3V

The Dock has UART pins connected to the CPU (mirror) allowing to debug without soldering. For the upper row: 5V, 5V, GND, TX, RX, TP_RST, GND

There are solder pads for an optional SPI flash (NAND or NOR) below the module.

Lichee RV Dock Pro

The Pro variant of the Dock is a bit larger in height, with a 16MB SPI NOR flash included, display connectors instead of the mic array connector, and an extra USB-C port for debugging.

Behind the debug USB port sits a BL702, listed as 42bf:b210 Bouffalo C-Sky CKLink-Lite. It offers a ttyACM device on Linux to connect to via Minicom etc.

References: stock firmware boot log

Lichee RV 86 Panel

The Lichee RV 86 Panel is a box with a 480×480 or 720x720 LCD touchscreen panel, ethernet with power supply, optional Wi-Fi, a speaker, and GPIOs exposed at the back for adding a header.

Lichee RV 86 Panel

jeadock

This is a custom board, not officially for sale, but open hardware. For the board design and schematic, see repository, and read the blog post on the design process.

Boot and system support

Pre-made images

Login/pass: sipeed / licheepi; WiFi can be set up by Connman (there are reports of transient lock-ups on associating to encrypted WiFi)
16GB Image, if you use a larger microSD don't repair the GPT or you will not boot anymore!!!
The partition number 8 can be deleted with fdisk or parted, and then partition 7 grown with parted to the whole microSD card, and filesystem itself with resize2fs. System still boot and work after this modification.
sha256sum of the xz: cf73baf3ed67d480e7606c666ccb81fce21295ba8fbba10e0ad86939065be6ffw
Asciinema record of the boot sequence (on Asciinema) with LicheeRV Dock
  • Ubuntu image displays the TTY on the Lichee RV LCD screen, keyboard can be used on Dock USB port. Archive include a readme about how to make the microSD card. In some cases, 80MB (163840) should be used instead of 40MB (81920, as wrote on the README) as start of the primary partition.
Login/Pass: root / 2183abc
sha256sum of the tgz: 4a414a36ba5ae8000bd2f8ee088ea399b502527e1868662427bc00676d65ca79
asciinema record of the boot sequence (on Asciinema)
  • There is a working Debian image "RVBoards_D1_Debian_lxde_img_linux_v0.4.1.img.zip" that can be dd on a 32GB microSD card and boot on LicheeRV with several drivers working including the optional LCD screen (wait 2 or 3 minutes if you don't have serial), detect HDMI, WiFi, UVC Video of the Dock and wait for ethernet (to be investigated). It is mirrored here from here original source The 6.1 version need the PhoenixCard tool.
id/pass: root / rvboards
SHA256sum: bf3da52b179f03fd46c16d44d4f7ae71b53745ce4f260e13e03e48e1c626c461
kernel: Linux RVBoards 5.4.61 #12 PREEMPT Thu Jun 3 08:39:01 UTC 2021 riscv64 GNU/Linux config.gz
Asciinema record of the boot sequence (on Asciinema) with LicheeRV Dock
  • Minimal console-only (no hdmi due to closed-source kernel module) Debian ddimage with updated kernel/u-boot, wifi support, and a sane partition layout. Available here
Users: root / sunxi or user / sunxi
SHA256sum: e5254b7815516c10b59d54e5a9247241502e676014c506eb2cbf01b9f9b508cd
4GB image, compressed to 340MB, resizable with resize2fs
kernel 5.14.0-rc4-nezha from https://github.com/Cezarus27/linux/tree/riscv/d1-wip with the following patch and .config available in /lib/modules patch

Images builder

Building mainline kernel

The first script of Archlinux Image Builder create automatically the last patched Sameul kernel, with working WiFi, HDMI, usb ethernet dongles, and fully open source boot parts.

Sipeed Mirrors

Other Resources

Pictures