mllite / ml2cpp

Machine Learning Models Deployment using C++ Code Generation
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Experiments with Small Devices : Kendryte K210 #28

Open antoinecarme opened 4 years ago

antoinecarme commented 4 years ago

See #25

This is a place holder for all Kendryte K210 specific notes/ideas.

https://www.canaan.io/product/kendryteai

antoinecarme commented 4 years ago

K210 can run a small linux (no memory management unit).

image

https://www.cnx-software.com/2020/02/17/how-to-build-run-linux-on-kendryte-k210-risc-v-nommu-processor/

antoinecarme commented 4 years ago

Sipeed MAIX Dock K210 AI+lOT deep learning vision

image

antoinecarme commented 4 years ago

image

antoinecarme commented 4 years ago
>>> machine.reset()

[MAIXPY]Pll0:freq:832000000
[MAIXPY]Pll1:freq:398666666
[MAIXPY]Pll2:freq:45066666
[MAIXPY]cpu:freq:416000000
[MAIXPY]kpu:freq:398666666
[MAIXPY]Flash:0xc8:0x17
open second core...
gc heap=0x802ece50-0x8036ce50(524288)
[MaixPy] init end

 __  __              _____  __   __  _____   __     __
|  \/  |     /\     |_   _| \ \ / / |  __ \  \ \   / /
| \  / |    /  \      | |    \ V /  | |__) |  \ \_/ /
| |\/| |   / /\ \     | |     > <   |  ___/    \   /
| |  | |  / ____ \   _| |_   / . \  | |         | |
|_|  |_| /_/    \_\ |_____| /_/ \_\ |_|         |_|

Official Site : https://www.sipeed.com
Wiki          : https://maixpy.sipeed.com

MicroPython v0.4.0-87-g42e92b235-dirty on 2019-11-07; Sipeed_M1 with kendryte-k210
Type "help()" for more information.
>>> os.uname()
(sysname='MaixPy', nodename='MaixPy', release='0.4.0', version='v0.4.0-87-g42e92b235-dirty on 2019-11-07', machine='Sipeed_M1 with kendryte-k210')
>>> 
CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7.90 | VT102 | Offline | ttyUSB0                                       
antoinecarme commented 4 years ago

The goal is to replace stock K210 firmware with a custom firmware based on the model C++ code compiled using a gcc cross-compiler for riscv.

stock firmware (micropyhton):

https://maixpy.sipeed.com https://github.com/sipeed/MaixPy

cross compiler :

https://github.com/kendryte/kendryte-gnu-toolchain