Melis @ YuzukiHD-Lizard Test Report

System Version

Status

CFI

Last Update

2025-03-24

Melis YouMuPI(Yuzuki)-Lizard Test Report

Test Environment

Operating System Information

Hardware Information

  • Yuzuki Lizard Development Board

Installation Steps

Environment setup

Use docker:

docker pull gloomyghost/yuzukilizard
docker run -it gloomyghost/yuzukilizard /bin/bash

Or download the SDK and set it up manually as follows:

cat tina-v853-open.tar.gz.* > tina-v853-open.tar.gz
tar -xzvf tina-v853-open.tar.gz
git clone https://github.com/DongshanPI/Yuzukilizard-v851s-TinaSDK
cp -rfvd Yuzukilizard-v851s-TinaSDK/* tina-v853-open/
mv tina-v853-open tina-v853-docker

System Configuration and Compilation

Configure the environment:

cd ~/tina-v853-docker
source build/envsetup.sh
lunch

Choose the appropriate scheme.

If you encounter issues, try using bash instead of zsh or other shell environments

Configure E907 to start RTOS:

cconfigs
cd ../default/
vim boot_package_nor.cfg
--- boot_package_nor.cfg.bak    2024-05-09 15:59:28.706860360 +0800
+++ boot_package_nor.cfg        2024-05-09 16:40:10.476852456 +0800
@@ -4,6 +4,7 @@
 item=optee,                  optee.fex
 item=u-boot,                        u-boot-spinor.fex
 item=dtb,                    sunxi.fex
+item=melis-elf,              riscv.fex
 ;item=logo,                   bootlogo.bmp.lzma
 ;item=shutdowncharge,         bempty.bmp.lzma
 ;item=androidcharge,          battery_charge.bmp.lzma
vim boot_package.cfg
--- boot_package.cfg.bak        2024-05-09 16:39:35.356852125 +0800
+++ boot_package.cfg    2024-05-09 16:40:01.263519036 +0800
@@ -4,6 +4,7 @@
 item=optee,                  optee.fex
 item=u-boot,                 u-boot.fex
 item=dtb,                    sunxi.fex
+item=melis-elf,              riscv.fex
 ;item=logo,                   bootlogo.bmp.lzma
 ;item=shutdowncharge,         bempty.bmp.lzma
 ;item=androidcharge,          battery_charge.bmp.lzma

Configure the kernel:

ckernel
m kernel_menuconfig

Include Device Drivers under Mailbox Hardware Support; Include Device Drivers → Mailbox Hardware Support under sunxi Mailbox and sunxi rv32 standby driver:

--- .config.old 2024-05-09 16:42:29.690187100 +0800
+++ .config     2024-05-09 16:45:57.840189075 +0800
@@ -3174,7 +3174,12 @@
 # CONFIG_SH_TIMER_MTU2 is not set
 # CONFIG_SH_TIMER_TMU is not set
 # CONFIG_EM_TIMER_STI is not set
-# CONFIG_MAILBOX is not set
+CONFIG_MAILBOX=y
+CONFIG_SUNXI_MBOX=y
+CONFIG_SUNXI_RV32_STANBY=y
+# CONFIG_PLATFORM_MHU is not set
+# CONFIG_ALTERA_MBOX is not set
+# CONFIG_MAILBOX_TEST is not set
 CONFIG_IOMMU_API=y
 CONFIG_IOMMU_SUPPORT=y
 
@@ -3192,6 +3197,7 @@
 # Remoteproc drivers
 #
 # CONFIG_STE_MODEM_RPROC is not set
+# CONFIG_SUNXI_RPROC is not set
 
 #
 # Rpmsg drivers
@@ -3304,6 +3310,7 @@
 # Firmware Drivers
 #
 CONFIG_ARM_PSCI_FW=y
+# CONFIG_ARM_SCPI_PROTOCOL is not set
 # CONFIG_FIRMWARE_MEMMAP is not set
 # CONFIG_FW_CFG_SYSFS is not set
 CONFIG_HAVE_ARM_SMCCC=y

Compile and pack Tina-Linux for the armv7 core:

make -j$(nproc)
p

If a linker error regarding yyloc redefinition occurs: This is due to GCC version being higher than 10. Change YYLTYPE yyloc to extern YYLTYPE yyloc in scripts/dtc/dtc-parser.tab.c

Configure E907 RTOS:

cd ~/e907_rtos/rtos/source
source melis-env.sh
lunch

Compile RTOS:

make menuconfig
make

The built RTOS firmware is at ekernel/melis30.bin

Logging into the System

Connect to UART3 to observe the serial port output.

Expected Results

The system should boot normally and provide serial port output.

Actual Results

CFI

A build of the Melis RTOS firmware for the E907 core could be obtained by following the steps in the official documentation. It is not possible however to pack it into the Tina-Linux image for the armv7 core due to lack of information in the documentation.

Boot Log

Test Criteria

Successful: The actual result matches the expected result.

Failed: The actual result does not match the expected result.

Test Conclusion

CFI