GithubHelp home page GithubHelp logo

axera-tech / ax650n_bsp_sdk Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 2.0 138.56 MB

linux bsp app & sample for axpi pro (ax650n)

License: Other

Makefile 0.37% Shell 0.07% HTML 0.01% JavaScript 1.57% C 87.64% C++ 9.71% Vue 0.64% CSS 0.01% Python 0.01% Awk 0.01%

ax650n_bsp_sdk's Introduction

ax650n_bsp_sdk

What is this?

this is a ax650 linux bsp sdk form AX650_SDK_V1.45.0_P1. currently it is application layer open source.

How to compile

prepare arm gcc

wget https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz
sudo tar -xvf gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz -C /opt/
export PATH="/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/:$PATH"

prepare compile files

git clone https://github.com/AXERA-TECH/ax650n_bsp_sdk.git
cd ax650n_bsp_sdk

Download the third-party zip file and decompress it into third-party dir

$ tree -L 2
.
├── LICENSE
├── README.md
├── app
│   ├── Makefile
│   └── demo
├── build
│   ├── Makefile
│   ├── axp_make.sh
│   ├── color.mk
│   ├── config.mak
│   ├── krules.mak
│   ├── make_ota_pkg.sh
│   ├── project.mak
│   ├── projects
│   ├── rules.mak
│   └── version.mak
├── msp
│   ├── component
│   ├── out
│   └── sample
└── third-party
    ├── Makefile
    ├── cmdline
    ├── opencv-4.5.5
    └── tinyalsa

compile app and samples

compile app demo

cd app
make p=AX650_pipro_box

compile samples

cd samples
make p=AX650_pipro_box

the result

ls msp/out/bin/
BoxDemo       sample_cipher  sample_dsp     sample_ives_s              sample_optee_hello_world  sample_pcie_icc_host   sample_pool_s               sample_uvc             sample_vin
FRTDemo       sample_cmm     sample_efuse   sample_ivps                sample_optee_sec_storage  sample_pcie_icc_slave  sample_pubkey_hash_write    sample_vdec            sample_vin_ivps_venc_rtsp
sample_adc    sample_cmm_s   sample_isp_3a  sample_npu_classification  sample_pcie_boot          sample_pcie_msg_host   sample_pubkey_hash_write_s  sample_vdec_ivps_venc  sample_vin_ivps_vo_venc
sample_audio  sample_dmadim  sample_ive     sample_npu_yolov5s         sample_pcie_dma_host      sample_pcie_msg_slave  sample_rtc                  sample_vdec_ivps_vo    sample_vin_vo
sample_avs    sample_dmaxor  sample_ives    sample_optee_aes           sample_pcie_dma_slave     sample_pool            sample_sysmap               sample_venc            sample_vo

ax650n_bsp_sdk's People

Contributors

bug1989 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ax650n_bsp_sdk's Issues

编译demo出错

提示
/home/ubuntu/maixbox/ax650n_bsp_sdk/app/demo/src/ppl/box/box_ppl/BoxBuilder.hpp:25:10: fatal error: linker.hpp: No such file or directory
25 | #include "linker.hpp"

关于demo操作

我按照网页和readme文档,下载SDK然后安装其他pkg等等。

现在情况呢出log如下的。

04-19 13:39:34:758 21929831481 5173 K: ============== APP(APP Ver: V1.45.0_P1_20230922094955, SDK Ver: V1.27.0_P3_20230627143603) Started Apr 18 2024 16:16:19 ==============

04-19 13:39:34:856 21929928533 5173 K BOX: stream 0: /root/boxvideos/01.mp4
04-19 13:39:34:857 21929929277 5173 N DISP: logo chn position: 0 0 1920 64 [1920 x 64]
04-19 13:39:34:936 21930008555 5173 E DISP: AX_VO_SetVideoLayerAttr(layer 12) fail, ret = 0x80038a81
04-19 13:39:35:088 21930160349 5173 E: DeInitSysMods: deinit module DISP fail, ret = 0x80038a80
root@maixbox:~/ax650n_bsp_sdk/msp/out/bin/BoxDemo#

有几个差别guide跟SDK

  1. 没有视频
    stream01 =/root/boxvideos/01.mp4
    #stream01 =/opt/data/box/person_test_ov2_1920x1080_30fps_gop60_4Mbps.mp4
  2. 没有model
    model path = /opt/etc/skelModels/part
    #model path = /opt/etc/skelModels/1024x576/part

请参考如上的,谢谢。

执行 AX650N 系统自带的sample_dsp 发生错误

操作系统 :
Ax_Version V1.45.0_P1_20230922094955
硬件版本:37653

执行 AX650N 系统 /opt/bin 自带的sample_dsp 做DSP初期验证, 发生错误

root@maixbox:/opt/bin# ./sample_dsp ../data/dsp/itcm.bin ../data/dsp/sram.bin
itcm file path: ../data/dsp/itcm.bin, sram file path: ../data/dsp/sram.bin
phyAddr[0] = 0x290e69000, virt[0] = 0xffffaae59000
phyAddr[1] = 0x290e6a000, virt[1] = 0xffffaae58000
phyAddr[2] = 0x290e6b000, virt[2] = 0xffffaae57000
SAMPLE_DSP0_ArrayAddTest compare error 1, src0: 1, src1: 1, dst: 0
SAMPLE_DSP0_ArrayAddTest FAILED!
AX DSP0 arrayadd test error ffffffff
SAMPLE_DSP0_ArrayAddTest FAILED
phyAddr[0] = 0x290e69000, virt[0] = 0xffffaae59000
phyAddr[1] = 0x290e6a000, virt[1] = 0xffffaae58000
phyAddr[2] = 0x290e6b000, virt[2] = 0xffffaae57000
SAMPLE_DSP1_ArrayAddTest compare error 1, src0: 1, src1: 1, dst: 0
SAMPLE_DSP1_ArrayAddTest FAILED!
AX DSP1 arrayadd test error ffffffff
SAMPLE_DSP1_ArrayAddTest FAILED
SAMPLE_DSP0_GaussianBlurProc DSP cost time: usec: 218
SAMPLE_DSP0_GaussianBlur PASS
SAMPLE_DSP1_GaussianBlurProc DSP cost time: usec: 219
SAMPLE_DSP1_GaussianBlur PASS
SAMPLE_DSP0_TestCopy DSP cost time: usec: 1595
ret = 0
SAMPLE_DSP0_TestCopy PASS
SAMPLE_DSP1_TestCopy DSP cost time: usec: 1586
ret = 0
SAMPLE_DSP1_TestCopy PASS
0: 4096x2160 file /opt/data/dsp/resize/4096x2160.nv12.yuv load succ.
[ERR]AX_DSP_Algo_Resize fail, ret=0xfffffffe
SAMPLE_DSP0_TestResize FAILED
/opt/data/dsp/csc/3840x2160.nv12.yuv loaded!
SAMPLE_DSP_TestCvtColor PRC error fffffc1c
SAMPLE_DSP1_TestCvtColor FAILED
JointLR MASK DSP cost time: tv_usec: 599
Waiting...
r,g,b = 0x17, 0x75, 0x9
SAMPLE_DSP_TestCvtColor_KVM PRC error fffffc1c
SAMPLE_DSP1_TestCvtColor_KVM FAILED

编译app demo出错

root@maixbox:~/workspace/ax650n_bsp_sdk/app# make p=AX650_pipro_box

-e In subdir demo ...
make[1]: Entering directory '/root/workspace/ax650n_bsp_sdk/app/demo'

-e In subdir src/ppl/box ...
make[2]: Entering directory '/root/workspace/ax650n_bsp_sdk/app/demo/src/ppl/box'

-e In subdir box_ppl ...
make[3]: Entering directory '/root/workspace/ax650n_bsp_sdk/app/demo/src/ppl/box/box_ppl'
[CPP] /root/workspace/ax650n_bsp_sdk/app/demo/src/ppl/box/box_ppl/BoxAppSys.cpp
/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-g++: 1: Syntax error: "(" unexpected
make[3]: *** [/root/workspace/ax650n_bsp_sdk/build/rules.mak:106: /root/workspace/ax650n_bsp_sdk/build/out/AX650_pipro_box/objs/app/demo/src/ppl/box/box_ppl/obj//root/workspace/ax650n_bsp_sdk/app/demo/src/ppl/box/box_ppl/BoxAppSys.o] Error 2
make[3]: Leaving directory '/root/workspace/ax650n_bsp_sdk/app/demo/src/ppl/box/box_ppl'
make[2]: *** [Makefile:38: box_ppl] Error 2
make[2]: Leaving directory '/root/workspace/ax650n_bsp_sdk/app/demo/src/ppl/box'
make[1]: *** [Makefile:38: src/ppl/box] Error 2
make[1]: Leaving directory '/root/workspace/ax650n_bsp_sdk/app/demo'
make: *** [Makefile:38: demo] Error 2

Download of AX650_SDK_V1.45.0_P1

Dear Axera Team,
could you maybe provide some download for the complete SDK? I have a Sipeed M4n und would like to create some custom kernel.
Thanks for your support!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.