Image Flashing
Lyra series development boards support image flashing from Windows, Linux (x86_64), and macOS. Select the appropriate method for your host operating system.
| Host OS | Supported Storage Media | Flashing Tool |
|---|---|---|
| Windows | SPI Flash, eMMC, TF card | RKDevTool, balenaEtcher |
| Linux (x86_64) | SPI Flash, eMMC | Upgrade_Tool |
| macOS | SPI Flash, eMMC | upgrade_tool |
1. Flash an Image on Windows
-
Open the Rockchip flashing tool RKDevTool and make sure that the device is in MASKROM or LOADER mode. Click Firmware, browse to the system image, and open the
update.imgfile.
-
After the image has loaded, click Upgrade to begin flashing.

-
When flashing is complete, Download Successful appears in the application.

2. Flash an Image on Linux
Image flashing has currently been verified only on Ubuntu. Other Linux distributions have not been tested.
2.1 Enter Flashing Mode
Hold down BOOT while connecting the board to the host to enter flashing mode. Run lsusb and compare the detected device information with the examples below.
- Board in flashing mode:

- Board booted into the system:

If a virtual machine cannot detect the board, check the following:
- USB cable issue: If reconnecting the board causes no response and neither the operating system nor VMware displays a prompt, the data cable may be damaged or making poor contact. Replace the USB cable and try again.
- The VMware device assignment prompt timed out: When the device is connected, VMware asks whether it should connect to the host or the virtual machine. If no selection is made before the prompt disappears and no explicit automatic connection policy is configured, the device may remain unassigned. It will then be available to neither the host nor the virtual machine. Disconnect and reconnect the device so that it can be assigned again.
2.2 Flash a Standalone Image (SDK Not Required)
-
Download, extract, and install upgrade_tool:
sudo 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:
ubuntu@ubuntu:~$ sudo upgrade_tool -vUpgrade Tool v2.17 -
Flash the firmware:
luckfox@luckfox:~$ sudo upgrade_tool uf update.imgLoading firmware...Support Type:1106 FW Ver:0.0.00 FW Time:2023-11-16 16:24:18Loader ver:1.01 Loader Time:2023-11-16 16:22:58Start to upgrade firmware...Download Boot StartDownload Boot SuccessWait For Maskrom StartWait For Maskrom SuccessTest Device StartTest Device SuccessCheck Chip StartCheck Chip SuccessGet FlashInfo StartGet FlashInfo SuccessPrepare IDB StartPrepare IDB SuccessDownload IDB StartDownload IDB SuccessDownload Firmware StartDownload Image... (100%)Download Firmware SuccessUpgrade firmware ok. -
Expected result:

2.3 Flash an Image with the SDK Script
An update.img image must exist in the output/image directory. This directory is normally generated when the SDK is compiled. To download and extract the SDK, refer to Set Up the SDK Development Environment.
If you have not compiled the SDK, create the output/image directory manually, place the downloaded image in it, and rename the file to update.img.
-
Hold down BOOT while connecting the board to the host to enter flashing mode.
-
Run the script with administrator privileges.
$ sudo ./rkflash.sh update[sudo] password for ubuntu:Using /home/ubuntu/Luckfox/rk3506/luckfox-lyra-sdk/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/config.iniLoading firmware...Support Type:350F FW Ver:8.1.00 FW Time:2024-12-13 19:40:06Loader ver:1.01 Loader Time:2024-12-13 18:35:14Start to upgrade firmware...Test Device StartTest Device SuccessCheck Chip StartCheck Chip SuccessGet FlashInfo StartGet FlashInfo SuccessPrepare IDB StartPrepare IDB SuccessDownload IDB StartDownload IDB SuccessDownload Firmware StartDownload Image... (100%)Download Firmware SuccessUpgrade firmware ok. -
Expected result:

3. macOS
The upgrade_tool is available not only for Linux but also supports the macOS platform.
- Download and extract the appropriate version of the Upgrade Tool flashing utility according to your Mac’s processor architecture.
| OS Version | Upgrade Tool Version | Download |
|---|---|---|
| MacOS 12.7 | upgrade_tool_v2.25_for_mac.zip | Download |
| MacOS 26.1 | upgrade_tool_v2.44_for_mac.zip | Download |
-
Put the board into flashing mode using the method described at the beginning of the current product tutorial. For an enclosed Luckfox Pico 86-Panel that can boot normally, log in and run
reboot loader. -
Run the tool to flash the firmware:
The following command is only an example. Please modify the image file name and path according to the actual image file you are using.
cd upgrade_tool_v2.44_mac
sudo ./upgrade_tool uf Luckfox-xxx-xxx.img
- The result is shown below.

4. Erase an Image
-
To erase the data in eMMC, select the
update.imgfirmware and click Erase Flash:
5. Flash an Image to a TF Card
Use balenaEtcher to flash the TF card (MicroSD) image sd_update.img for your Lyra board model to the card.
-
Download and install the TF card formatting tool SD Card Formatter.
-
Insert the TF card into a card reader and connect it to the computer. Select the correct drive and click Format. Formatting erases the card's data, so back up any files first and remove other TF cards to avoid selecting the wrong one.

-
Download and install the balenaEtcher flashing tool.
-
Open balenaEtcher and click Flash from file.
-
Select the
sd_update.imgimage file and click Open.
-
If a Missing partition table warning appears, confirm that you selected the
sd_update.imgfile above, then click Continue.
-
Click Select target, identify the TF card in the card reader by its capacity and drive letter, and click Select 1 to confirm.
-
Click Flash to start flashing.
-
Wait for flashing to finish. Flash Completed indicates that the image has been flashed successfully.
