Flash Luckfox Lyra Pi with mixed "Ubuntu" image
Posted: 2025-08-29 14:52
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
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
3. flash to Lyra Pi EMMC in loader mode using 'rkflash.sh' from SDK
4. copy 'luckfox-config' from new Lyra SDK 1.5 to booted up system on borad. for Pin diagram and DSI config
run on Lyra Pi:
After that, in "Ubuntu" system, I config a DSI for 5-DSI-TOUCH-A display, install Xfce desktop
If in the desktop rotate display left, rotate touch coordinate with command:
, by Crocodile
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=1760The simple suggestion is to replace the rootfs.img in the Lyra Pi image with the Ubuntu rootfs.img
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
Code: Select all
~/lyra_1.5$ ./rkflash.sh all
Code: Select all
~/lyra_1.5$scp output/buildroot/target/usr/bin/luckfox-config [email protected]:/home/lyra/
Code: Select all
lyra@luckfox:~$ sudo ./luckfox-config
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