How to Flash Firmware#
This document assumes you have completed compilation and obtained the image files under output/<defconfig>/images/.
Common image file types:
*.kdimg: Recommended for K230BurningTool (USB)*.img: Recommended for SD card writing, and can also be used for some command-line flashing tools
K230 supports four boot media: EMMC, SD card, SPI Nor Flash, and SPI Nand Flash. Users can flash firmware through the following two methods:
USB flashing: Directly connect the device via USB to flash
SD card flashing: Use a PC tool to write the image to the SD card and then boot
Serial port and USB connection methods: K230 Development Boards, select the corresponding development board to jump to the board documentation link
Flashing via USB#
Three Methods to Enter Flashing Mode#
No valid firmware on the default boot medium
For example: EMMC that has never been flashed with firmware, or power on after removing the SD card.
Force switch boot mode
Press and hold the onboard Boot button before powering on, so that the chip cannot find a bootable medium.
Trigger via terminal command
Execute the following command in the RtSmart terminal:
reboot_to_upgrade
The device will automatically restart and enter flashing mode.
Notes If the flashing mode is not entered after executing
reboot_to_upgrade, you need to use the latest flashing tool to flash the following patch file: K230 Patch/K230D Patch
Using K230BurningTool (GUI Tool)#
Tool download: K230BurningTool
Features: Supports simultaneous flashing of multiple devices, with intuitive operation.
Steps:
Connect the device and enter flashing mode.
Select the firmware file (recommended
*.kdimg).Click Start Flashing, and manually click Confirm to continue after completion.
Using K230-Flash (Command-Line Tool)#
Tool installation:
pip install k230-flash
Features: Developed based on Kburn and Python, suitable for automated operations.
Usage example:
# 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
Flashing via SD Card#
Using Rufus or balenaEtcher#
Applicable Scenario: Flash the image file to an SD card and then boot the device.
Supported Formats: Raw image files (if in
.gzformat, decompress first).Recommended Tools:
Steps: Refer to 01Studio Firmware Flashing
Important Notice The
.kdimgformat file only supports burning with K230BurningTool, and cannot be written via SD card tools.
Summary#
USB burning: directly connect the device to quickly update firmware,
K230BurningToolis recommended, andK230-Flashcan also be usedSD card burning: for scenarios without a USB interface or for batch card writing,
RufusorbalenaEtcheris recommended
