Install an Operating System
Luckfox Lyra PLC uses onboard eMMC by default and supports image flashing from Windows, Linux (x86_64), and macOS. Choose the flashing method that matches your host operating system.
| Host OS | Storage Medium | Flashing Tool | Download |
|---|---|---|---|
| Windows | eMMC | RKDevTool | Google Drive |
| Linux (x86_64) | eMMC | upgrade_tool | |
| macOS | eMMC | upgrade_tool |
1. Image Download
Download and extract the corresponding system image before flashing.
| Version | Description | Download |
|---|---|---|
| Debian 12 | System image for Luckfox Lyra PLC | Google Drive |
2. Install the Driver
-
Download the RK Driver Assistant.
-
Open RK Driver Assistant to install the USB driver. No device connection is required during installation. Restart the computer after the installation is complete.
3. Enter Loader Mode
Put the PLC into Loader mode when updating the system image.
-
Download and open RKDevTool.
-
Hold down the USER button while connecting the PLC to the computer through its USB-C port. Release the button when Found One LOADER Device appears in RKDevTool.

-
If RKDevTool does not detect a Loader device, open Device Manager and check whether Rockusb Device is present.

4. Flash an Image on Windows
-
Open RKDevTool and make sure that the PLC is in LOADER mode. Click Firmware, select the system image, and open it.

-
After the image has loaded, click Upgrade to begin flashing.

-
When flashing is complete, Download Successful appears in RKDevTool.

5. Flash an Image on Linux
Image flashing has currently been verified only on Ubuntu. Other Linux distributions have not been tested.
5.1 Enter Flashing Mode
Hold down the USER button while connecting the PLC to the host. Run lsusb and confirm that the Rockchip USB download device is detected.

If a virtual machine cannot detect the PLC, check the following:
- USB cable issue: If reconnecting the PLC causes no response and neither the operating system nor VMware displays a prompt, replace the USB data cable and try again.
- The VMware device assignment prompt timed out: Disconnect and reconnect the PLC, then select the virtual machine when VMware asks where to connect the device.
5.2 Flash a Standalone Image
-
Download, extract, and install upgrade_tool:
unzip upgrade_tool_v2.17.zipcd upgrade_tool_v2.17_for_linux/sudo cp upgrade_tool /usr/local/binsudo chmod +x /usr/local/bin/upgrade_tool -
Verify the installation:
sudo upgrade_tool -v -
Flash the firmware:
tipThe current image file is
Luckfox_Lyra_PLC_Debian12_eMMC_202609.img. Do not copy the following command directly. Replace the image file name and path according to the file you actually downloaded.sudo upgrade_tool uf Luckfox_Lyra_PLC_Debian12_eMMC_202609.img -
When
Upgrade firmware ok.appears, the image has been flashed successfully.
6. Flash an Image on macOS
-
Put the PLC into Loader mode as described above.
-
Run the tool to flash the firmware:
tipThe current image file is
Luckfox_Lyra_PLC_Debian12_eMMC_202609.img. Do not copy the following command directly. Replace the image file name and path according to the file you actually downloaded.cd upgrade_tool_v2.44_macsudo ./upgrade_tool uf Luckfox_Lyra_PLC_Debian12_eMMC_202609.img -
When
Upgrade firmware ok.appears, the image has been flashed successfully.
7. Erase the Image
To erase the data in eMMC, select the image in RKDevTool and click Erase Flash.
