Note

This is the documentation for the latest development branch and may refer to features that are not available in released versions. If you are looking for a specific release, use the drop-down menu on the left.

Frequently Asked Questions (FAQ)#

How to Force LCD or HDMI Display?#

Force LCD Display:

# Using the 01studio development board as an example
cd /boot
echo "k230-canmv-01studio-lcd.dtb" > force_dtb
sync
reboot

Force HDMI Display:

# Using the 01studio development board as an example
cd /boot
echo "k230-canmv-01studio.dtb" > force_dtb
sync
reboot

View the Current Display Configuration:

# Use fw_printenv to check whether the dtb environment variable contains the keyword lcd
[root@canaan ~ ]# fw_printenv dtb
dtb=k230-canmv-01studio.dtb
[root@canaan ~ ]#

# Decision rules:
# - Contains "lcd" → Currently using LCD display
# - Does not contain "lcd" → Currently using HDMI display

How to Connect to WiFi?#

Method 1: Configure via environment variables (automatically connect after reboot)

fw_setenv wlanssid H3C_wjx
fw_setenv wlanpass 12345678
reboot

Method 2: Use the sta.sh script (connect immediately without rebooting)

sta.sh wlan0 H3C_wjx 12345678

How to Read the Chip Unique Identifier?#

The PUF module of K230/K230D provides a chip unique identifier (32 bytes). In the Linux user space, it can be read using the following command:

devmem 0x91213300 32
devmem 0x91213304 32
devmem 0x91213308 32
devmem 0x9121330c 32
devmem 0x91213310 32
devmem 0x91213314 32
devmem 0x91213318 32
devmem 0x9121331c 32

How to Switch Camera Channels (CSI0/CSI1/CSI2)?#

The K230 Linux SDK currently supports single-camera mode only. To switch between different camera channels, please refer to:

K230 Camera Channel Switching Instructions


How to Enable the GDB Debugger?#

Enable via MenuConfig:

make menuconfig
# Path: Target packages → Debugging, profiling and benchmark → gdb → full debugger

Or directly modify the configuration file:

BR2_PACKAGE_GDB=y
BR2_PACKAGE_GDB_DEBUGGER=y

How to Quickly Update the Kernel and Device Tree?#

Directly replace the relevant files in the /boot directory:

ls -lh /boot/
# Output description:
# Image                          # Kernel image
# fw_jump_add_uboot_head.bin     # U-Boot boot image
# k.dtb                          # Device tree symbolic link
# k230-canmv-*.dtb                         # Specific device tree files
# nuttx-*.bin                    # NuttX firmware

How to Verify DDR Memory Stability?#

Run the following commands to generate DDR test images:

make ddr_test_img_128    # 128MB DDR test image
make ddr_test_img_512    # 512MB DDR test image
make ddr_test_img_1024   # 1024MB DDR test image
make ddr_test_img_2048   # 2048MB DDR test image

The generated images will automatically run the DDR stability test program (running continuously). During the test, serial port 0 will continuously output relevant information; if the test fails, serial port 0 will print error messages.


What Hardware Does the SDK Currently Support?#

Development Board

CPU

Configuration File

Notes

Banana Pi

k230d

BPI-CanMV-K230D-Zero_defconfig

64-bit

Banana Pi

k230d

BPI-CanMV-K230D-Zero_ilp32_defconfig

32-bit

k230d_canmv

k230d

k230d_canmv_defconfig

64-bit

01studio

k230

k230_canmv_01studio_defconfig

Dongshan Pi

k230

k230_canmv_dongshanpi_defconfig

JLCPCB

k230

k230_canmv_lckfb_defconfig

ChuangLebo

k230

k230_canmv_v3_defconfig

canmv1.0/1.1

k230

k230_canmv_defconfig

evb

k230

k230_evb_defconfig

lpddr3


What LCD Screens Does the Linux SDK Support?#

Driver Chip

Resolution

Applicable Development Boards

ST7701

480×640

01studio

ST7701

480×800

JLCPCB / 01studio / ChuangLebo

ILI9806

480×800

Dongshan Pi

HX8399

1080×1920

EVB


What Camera Modules Does the K230 Linux SDK Support?#

Model

Pixels

Notes

GC2093

2MP

OV5647

5MP

IMX335

5MP

Comments list
Comments
Log in