🛠 Tina Linux : l'OpenWrt vendor d'Allwinner pour le Lichee RV, installation et sysconfig

Sipeed Lichee RV Dock (Allwinner D1 / T-Head XuanTie C906) · intermediaire · Schéma : IMG-sipeed-lichee-rv-dock-intermediaire-2-licheerv-tina-linux.svg — choix d'image sur Lichee RV Dock : à gauche Tina Linux (OpenWrt 14.07 vendor, menu sysconfig, opkg, multimédia Cedar), à droite l'image mainline (Ubuntu 24.04 ou Buildroot, device tree amont sun20i-d1-lichee-rv-dock), le BROM Allwinner bootant SPL+OpenSBI+U-Boot depuis la microSD insérée

Objectives

There are two worlds for the D1: the vendor ecosystem (Tina Linux, Allwinner's OpenWrt 14.07 distribution provided with the Sipeed BSP SDK) and the mainline ecosystem (the board's device tree merged into the kernel for v6.3, Ubuntu 24.04/Buildroot images). This tutorial installs Tina Linux on a microSD card, explores its OpenWrt-style shell (UCI, sysconfig), and explains when to choose one over the other: Tina brings Sipeed documentation and the Cedar multimedia stack; mainline brings a recent kernel, T-Head errata fixes, and modern packages. By the end, you will flash both and switch between them by swapping the microSD card.

Hardware

Complete code

# 1) Récupérer l'image vendor (Tina ou Debian) depuis le wiki Sipeed, décompresser,
#    puis écrire sur microSD (VÉRIFIER sdX avec lsblk !) :
sudo dd if=tina-lichee-rv-dock.img of=/dev/sdX bs=4M status=progress conv=fsync
sync

# 2) Boot sur série 115200 : BROM -> U-Boot -> Tina (invite root sans mot de passe).
#    Inventaire façon OpenWrt :
cat /etc/openwrt_version 2>/dev/null ; cat /etc/tinaversion 2>/dev/null
uci show network 2>/dev/null | head
sysconfig 2>/dev/null | less      # menu de config vendor (board, dts, features)

# 3) Ce que dit la carte de sa chaîne de boot :
dmesg | grep -iE 'opensbi|machine'
cat /sys/firmware/devicetree/base/compatible   # allwinner,sun20i-d1 (vendor)

# 4) Retour au mainline : éteindre, écrire l'image Ubuntu/Buildroot sur une AUTRE
#    microSD, rebrancher — le BROM boote la carte insérée. Pas de dual boot
#    logiciel : c'est la carte physique qui choisit l'image.

Expected verification

Under Tina, the OpenWrt-style prompt root@(none):/# appears on the serial console and cat /etc/openwrt_version responds (base 14.07). Vendor tools (sysconfig) exist, but are absent from mainline images. When rebooting on the other card, /proc/device-tree/compatible displays sipeed,lichee-rv-dock (upstream device tree) instead of the vendor name — proof that the mainline kernel recognizes the board. Switching between Tina and mainline is done simply by swapping the microSD card.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials