How to Flash Firmware#
This document assumes you have completed compilation and obtained image files in output/<defconfig>/images/.
Common Image File Types#
*.kdimg- recommended for K230BurningTool (USB)*.img- recommended for SD card writing and some command-line flashing tools
K230 supports four boot media: eMMC, SD card, SPI Nor Flash, and SPI Nand Flash. Firmware can be flashed using two methods:
USB flashing - direct USB connection to the device
SD card flashing - write image to SD card and boot from it
For serial and USB connection, refer to the K230 Development Board documentation.
USB Flashing#
Three Methods to Enter Flashing Mode#
No valid firmware on default boot media
Example: fresh eMMC with no prior firmware, or SD card removed
Force boot mode via Boot button
Hold the board’s Boot button while powering on to force flashing mode
Trigger via terminal command
Run on an already-booted RtSmart terminal:
reboot_to_upgrade
The device will automatically reboot into flashing mode
Note If
reboot_to_upgradedoes not enter flashing mode, use the latest flashing tool to flash the patch file: K230 Patch/K230D Patch
Using K230BurningTool (GUI Tool)#
Download: K230BurningTool
Features: supports multi-device flashing with intuitive interface
Steps:
Connect device and enter flashing mode
Select firmware file (recommended
*.kdimg)Click Start Flashing; after completion, click Confirm to proceed
Using K230-Flash (Command-line Tool)#
Installation:
pip install k230-flash
Features: based on Kburn and Python, suitable for automated operations
Example usage:
# Linux / macOS k230_flash -m EMMC 0 output/<defconfig>/images/<your_image>.img # Windows k230_flash.exe -m EMMC 0 output\<defconfig>\images\<your_image>.img
SD Card Flashing#
Using Rufus or balenaEtcher#
Use case: write image to SD card and boot the device
Supported formats: raw image files (decompress
.gzformat first)Tools:
Steps: refer to 01Studio Firmware Flashing Guide
Important
.kdimgformat only supports K230BurningTool and cannot be written via SD card tools.
Summary#
USB flashing: quick device update, recommended
K230BurningToolorK230-FlashSD card flashing: for devices without USB or bulk writing scenarios, use
RufusorbalenaEtcher
