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.

SDK Build Instructions#

This SDK is built based on buildroot version 2025.02.

k230_linux_sdk Directory Structure#

k230_linux_sdk/
├── buildroot-overlay  #Modified buildroot files, this directory will be used to overwrite the original buildroot directory.
│   ├── board
│   │   └── canaan  #Canaan k230 board-related private scripts, configuration files, etc.
│   ├── boot
│   │   ├── opensbi  #Modified opensbi files
│   │   └── uboot  #Modified uboot files
│   ├── configs
│   │   ├── k230d_canmv_defconfig  #k230d canmv board configuration file
│   │   ├── k230_canmv_defconfig  #k230 canmv board configuration file
│   │   ├── k230_canmv_v3_defconfig  #k230 canmv v3 board configuration file
│   │   ├── k230d_canmv_01studio_defconfig  #k230d 01studio canmv board configuration file
│   │   ├── k230_canmv_lckfb_defconfig  #k230 canmv LushanPi board configuration file
│   │   ├── k230_canmv_dongshanpi_defconfig  #k230 canmv DongshanPi board configuration file
│   │   ├── BPI-CanMV-K230D-Zero_defconfig  #BPI-CanMV-K230D-Zero board configuration file
│   │   └── ... # Other board configuration files
│   └── package
│       ├── ai_demo  #ai_demo provides rich AI applications
│       ├── ai2d_kpu  #ai2d_kpu provides kpu-related applications
│       ├── audio_demo  #audio_demo provides audio playback, recording and other applications
│       ├── audio_play_rec  #audio_play_rec provides audio playback, recording and other applications
│       ├── camera_rtsp_demo  #camera_rtsp_demo provides rtsp video stream playback and other applications
│       ├── face_detect  #face_detect provides face detection example applications
│       ├── display  #display provides display-related applications
│       ├── k230_assistant  #k230_assistant k230 webrtc voice assistant application
│       ├── cloudplat_deploy_code_linux  #cloudplat_deploy_code_linux cloud platform deployment code
│       ├── usage_ai2d  #usage_ai2d provides ai2d usage examples
│       ├── yolo  #yolo provides yolo model deployment code
│       ├── libdrm  #Modified libdrm files
│       ├── lvgl  #Modified lvgl files
│       ├── vg_lite
│       └── vvcam
├── docs  #Documentation directory
├── output   #Output directory, containing the final source code and all output files
│   ├── buildroot-2024.02.1  #Final buildroot directory used
│   └── k230d_canmv_defconfig  #Compilation output directory, all source code and compilation output files
├── Makefile  #Main makefile file
├── README.md  #readme file
└── tools  #Some script tools

SDK Build Process Overview#

This section takes the execution process of the make CONF=k230d_canmv_defconfig command as an example.

  1. Download the buildroot-2025.02.1.gz archive from the buildroot official website, and extract it to output/buildroot-2025.02.1/

  2. Use the buildroot-overlay directory to overwrite the output/buildroot-2025.02.1/ directory

    rsync -a  buildroot-overlay/ output/buildroot-2025.02.1/
    
  3. Enter the output/buildroot-2025.02.1/ directory, use k230d_canmv_defconfig to configure buildroot, and specify the output directory as output/k230d_canmv_defconfig

    make -C output/buildroot-2025.02.1 k230d_canmv_defconfig O=/home/wangjianxin/k230_linux_sdk/output/k230d_canmv_defconfig
    
  4. Enter the output/k230d_canmv_defconfig directory and compile

    make -C /home/wangjianxin/k230_linux_sdk/output/k230d_canmv_defconfig all
    

For more build instructions, please refer to https://buildroot.org/downloads/manual/manual.html

Comments list
Comments
Log in