Skip to content

xubaikun/k510_buildroot

 
 

Repository files navigation

Gitee repository GitHub release

K510 SDK

Kendryte K510 is the second generation of AI edge-side inference chips launched by Canaan, which provides high-performance image and speech processing capabilities for AI applications. The K510 is equipped with the self-developed second-generation neural network processor KPU2.0, which adopts the original computing data flow technology, that increases the computing power by 3 times compared with the previous generation and reduces power consumption. Integrated with the latest generation of image processor ISP. It supports TOF depth camera access, 2D/3D noise reduction, wide dynamic range (WDR), hardware 3A, and other complete functions. The 3D ISPs support depth camera TOF sensors, and can be widely used in different application fields such as unmanned aerial vehicles, high-definition aerial photography, professional cameras, video conferencing, intelligent robots, educational STEAM, and automatic assisted driving.

K510 SDK is a software development kit provided by Canaan for K510 chip application development. Its default configuration is based on K510 CRB (customer reference platform). The warehouse content includes the toolchain software, PC toolkit, Linux code, bootloader, bbl, buildroot build system software, and related hardware resource documents that users may use in the development with K510 chip. Users can customize and change development according to their own needs based on this set of software code base, and finally build and compile the image file used for deployment.

Descriptions of material content and links to reference resources

No Link address illustrate
1 / The code compiles the working directory
2 docs/ K510 system compilation and application development documentation; Hardware resource introduction documentation
3 package/ Provide Linux system peripheral development application examples; Various AI demo application source code
4 Canaan Kendryte Canaan Kendryte official website
5 Developer community Canaan Kendryte Forum
6 Demo video K510 development board out-of-the-box video and multiple AI application demonstration videos
7 K510 CRB-KIT K510 Board Kit Online Purchase Link
8 Instant communication Community Mutual Aid QQ Group: 790699378
Telegram: nncase community

Introduction to the K510 CRB Developer Suite

K510 CRB-KIT is a developer suite based on the K510 chip development, which adopts a hierarchical design, based on the K510 core module, with rich peripherals and easy to expand. It supports USB 2.0 OTG+PHY, Gigabit Ethernet port, 3xSDIO, 3xSPI and other high-speed communication interfaces. In addition, it supports 4xUART, GPIO, I2C and I2S and other low-speed communication interfaces. It is simple to use, informative and can help customers quickly achieve creative evaluation and product prototype verification. It shortens the product design cycle. Canaan-board .png

K510 CRB front photo

image-hw_1_3.png

K510 system block diagram

image-hw_3_1.png

K510 core board module diagram

Getting started with K510 software development

Set up a software development environment

K510 software development is based on a Linux environment. Users need to prepare a host with a Linux operating system for software compilation and deployment, and if you are working under Windows, it is recommended to install Windows WSL for software development work.

Source code download

git clone https://github.com/kendryte/k510_buildroot.git

Start Docker

sh k510_buildroot/tools/docker/run_k510_docker.sh

Compile the code base

After entering the docker environment, enter the following command to compile the system.

make dl
make

make dlOptional step to speed up source code downloads. The first new system takes a long time to compile, so be patient (time is related to the performance of the host CPU and the speed of network downloads).

Flash the image file

The K510 supports sdcard and eMMC boot modes, and users can switch between different boot modes by changing the settings of the SW1 pull switch on the open board.
The factory default is to boot from emmc. For ease of development, it is recommended that you prepare a TF card and switch the code switch to the SD card boot mode, and then consider curing the image file into emmc.
Whether you work on Linux or Windows, you can download the Etcher tool to burn the compiled image file (k510_buildroot/k510_crb_lp3_v1_2_defconfig/image/sysimage-sdcard.img) to your TF card. balenaetcher.png

Power-on operation

Confirm that the SW1 switch is selected in SD card boot mode, insert the burned TF card into the open board card slot, and then unplug the power switch K1 to the ON position, and The system should power up.. You will see the screen display the CANAAN logo screen. If you have a connected serial port, you can see the boot log output in the serial port. k510_boot.png

Change the default startup program

By default, the system automatically runs the sample program (v4l2_drm.out) under path /app/mediactl_lib. You can also manually change the configuration program to run other demo programs instead. Here's how to change it:

vi /etc/init.d/rc.sysinit
修改以下位置
cd /app/mediactl_lib/
./v4l2_drm.out -f video_drm_1080x1920.conf &
cd /
改为你想运行的 APP,例如改成人脸检测演示应用,可以改成:
/app/ai/shell/face_detect.sh &

Contribution Guide

If you are interested in this project and would like feedback on a problem or submit code, please refer to CONSOLIDATING

Contact us

Canaan Inc.
URL:canaan-creative.com
Business Enquiries:salesAI@canaan-creative.com

Translation Disclaimer
For the convenience of customers, Canaan uses an AI translator to translate text into multiple languages, which may contain errors. We do not guarantee the accuracy, reliability or timeliness of the translations provided. Canaan shall not be liable for any loss or damage caused by reliance on the accuracy or reliability of the translated information. If there is a content difference between the translations in different languages, the Chinese Simplified version shall prevail.

If you would like to report a translation error or inaccuracy, please feel free to contact us by mail.

About

Kendryte K510 SDK

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 61.7%
  • C++ 36.5%
  • Roff 0.7%
  • Makefile 0.6%
  • Shell 0.2%
  • CMake 0.1%
  • Other 0.2%