Skip to content

wangjianxin-canaan/k510_buildroot

 
 

Repository files navigation

Gitee repository GitHub release

K510 SDK

Kanzhi 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, which 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, support TOF depth camera access, support 2D/3D noise reduction, wide dynamic range (WDR), hardware 3A and other complete functions. 3D ISPs support depth camera TOF sensors. It 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 of K510 chip. Users can customize the 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 Kanchi Canaan Kanji official website
5 Developer community Canaan Kanchi 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. Support USB 2.0 OTG+PHY, Gigabit Ethernet port, 3xSDIO, 3xSPI and other high-speed communication interfaces, support 4xUART, GPIO, I2C and I2S and other low-speed communication interfaces. Simple to use, informative, can help customers quickly achieve creative evaluation, product prototype verification, shorten 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 can 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 the /app/mediactl_lib path on. 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 toCONSOLIDATING

Contact us

Beijing Canaan Jiesi Information Technology Co., Ltd
URL:canaan-creative.com
Business Enquiries:[email protected]

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

Packages

No packages published

Languages

  • C 61.3%
  • C++ 36.9%
  • Roff 0.7%
  • Makefile 0.6%
  • Shell 0.2%
  • CMake 0.1%
  • Other 0.2%