Sipeed Lichee RV

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
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: This board can be powered by UART, by plugin a 5V pin. See the UART Howto for general usage of UART.
 * 5V
 * Ground
 * Rx
 * Tx

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.

Lichee RV Dock
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 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. 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.



Images ready

 * A port of oreboot (Rust version of coreboot, so without C).
 * U-Boot (See also Allwinner Nezha)
 * XBoot https://github.com/xboot/xboot bare-metal multimedia system that manage most of peripherals.
 * RTOS based Tina, and Linux based Debian and Ubuntu images are available from Sipeed mirrors (Some Tutorials, in Chinese):
 * The vendor-provided Debian image can use HDMI, (requires OpenixCard, a clone of Windows only "PhoenixCard" tool to be written onto an SD card) volunteers have created such SD card and then saved its full contents into a raw-format image file, suitable for writing with dd: Mirror1 Mirror2
 * Login/pass:  /  ; 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:
 * 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:  /
 * 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:  /
 * SHA256sum:
 * 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:  /    or    /
 * 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

 * Arch linux: Arch Image Builder - Last mainline kernel with Sameul patch
 * Debian: Debian D1 build - Last mainline kernel with Sameul patch
 * NixOS: NixOS Image 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

 * pan.Baidu (提取码/password)：wbef
 * Mega.nz
 * Other mirror for the OS images

Other Resources

 * AllWinner D1 on Fedora Wiki
 * how to build neural network ncnn framwork on D1
 * Documentation Nezha D1 on RVBoards.org the author of the working Debian 11 image.