Page 1 of 1

Flash Luckfox Lyra Pi with mixed "Ubuntu" image

Posted: 2025-08-29 14:52
by benfre
If you what to use a self made "Ubuntu" system on Lyra Pi, as the method as posted in /viewtopic.php?t=2069
, by Crocodile
The simple suggestion is to replace the rootfs.img in the Lyra Pi image with the Ubuntu rootfs.img
My test to flash Lyra Pi with mixed images from the one build from Lyra SDK and community "Ubuntu" image for Lyra_Ultra_eMMC: "Ubuntu_Luckfox_Lyra_Ultra_eMMC_250417.zip" as in post: /viewtopic.php?t=1760

Steps:
1. build from Lyra SDK for Lyra Pi EMMC (or Luckfox official image?, not tested)
2. extract "Ubuntu" image and copy 'rootfs.img' to replace the one by Lyra SDK

Code: Select all

~/lyra_1.5$ cp ubuntu_image/Ubuntu_Luckfox_Lyra_Ultra_eMMC_250417/rootfs.img buildroot/output/rockchip_rk3506_luckfox/images/rootfs.ext2
3. flash to Lyra Pi EMMC in loader mode using 'rkflash.sh' from SDK

Code: Select all

~/lyra_1.5$ ./rkflash.sh all
4. copy 'luckfox-config' from new Lyra SDK 1.5 to booted up system on borad. for Pin diagram and DSI config

Code: Select all

~/lyra_1.5$scp output/buildroot/target/usr/bin/luckfox-config [email protected]:/home/lyra/
run on Lyra Pi:

Code: Select all

lyra@luckfox:~$ sudo ./luckfox-config
After that, in "Ubuntu" system, I config a DSI for 5-DSI-TOUCH-A display, install Xfce desktop
IMG_20250829_212216.jpg
If in the desktop rotate display left, rotate touch coordinate with command:

Code: Select all

xinput set-prop 'pointer:2-005d Goodix Capacitive TouchScreen' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1