GithubHelp home page GithubHelp logo

axera-tech / ax620q_bsp_sdk Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 3.0 221.79 MB

Linux BSP APP & Samples for AXera Pi Zero(AX620Q)

License: Other

Makefile 0.48% C 84.59% C++ 12.88% HTML 0.01% JavaScript 0.04% Vue 1.37% CSS 0.01% Shell 0.16% Python 0.46% Awk 0.02%

ax620q_bsp_sdk's Introduction

ax620e_bsp_sdk

What is this?

This is a ax620e linux bsp sdk form AX620e_SDK_V2.0.0_P7. currently it is application layer open source.

Which target support

  • AX630C
  • AX620Q

How to compile

prepare arm gcc

AX630C

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"

AX620Q

Please get it from here

sudo tar -zxvf arm-AX620E-linux-uclibcgnueabihf_V3_20240320.tgz -C /opt/
export PATH="/opt/arm-AX620E-linux-uclibcgnueabihf/bin/:$PATH"

prepare compile files

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

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

$ tree -L 2
.
├── LICENSE
├── README.md
├── app
│   ├── Makefile
│   ├── component
│   └── demo
├── build
│   ├── Makefile
│   ├── axp_make.sh
│   ├── color.mk
│   ├── config.mak
│   ├── cross_arm_glibc.mak
│   ├── krules.mak
│   ├── out
│   ├── project.mak
│   ├── projects
│   ├── rules.mak
│   ├── tools
│   └── version.mak
├── msp
│   ├── Makefile
│   ├── component
│   ├── out
│   └── sample
└── third-party
    ├── Makefile
    ├── cmdline
    ├── drm
    ├── faac
    ├── fdk-aac
    ├── libsamplerate
    ├── live
    ├── mp4
    ├── opencv-4.5.5
    ├── openssl
    ├── opus
    ├── swupdate
    └── tinyalsa

compile app and samples

AX630C

compile app demo

cd app
make p=AX630C_emmc_arm64_k419 isntall

compile sample

cd msp/sample
make p=AX630C_emmc_arm64_k419 isntall

the result

ls msp/out/arm64_glibc/bin/
FRTDemo         sample_cipher_s  sample_gzipd_s  sample_ivps               sample_npu_classification    sample_rtc       sample_vdec              sample_venc                       sample_vin_ivps_vo_venc
sample_audio    sample_cmm       sample_isp_3a   sample_ivps_jenc_slice    sample_npu_classification_s  sample_rtc_s     sample_vdec_ivps_venc    sample_venc_s                     sample_vin_s
sample_audio_s  sample_cmm_s     sample_ive      sample_ivps_jenc_slice_s  sample_npu_yolov5s           sample_skel      sample_vdec_ivps_venc_s  sample_vin                        sample_vo
sample_avs      sample_dma       sample_ive_s    sample_ivps_s             sample_npu_yolov5s_s         sample_skel_s    sample_vdec_ivps_vo      sample_vin_ivps_skel_venc_rtsp    sample_vo_s
sample_avs_s    sample_dma_s     sample_ives     sample_ivps_venc          sample_pool                  sample_sysmap    sample_vdec_ivps_vo_s    sample_vin_ivps_skel_venc_rtsp_s
sample_cipher   sample_gzipd     sample_ives_s   sample_ivps_venc_s        sample_pool_s                sample_sysmap_s  sample_vdec_s            sample_vin_ivps_venc_rtsp

AX620Q

compile app demo

cd app
make p=AX620Q_nand_arm32_k419 install

compile sample

cd msp/sample
make p=AX620Q_nand_arm32_k419 install

the result

ls msp/out/arm_uclibc/bin/
FRTDemo         sample_cipher_s  sample_gzipd_s  sample_ivps               sample_npu_classification    sample_rtc       sample_vdec              sample_venc                       sample_vin_ivps_vo_venc
sample_audio    sample_cmm       sample_isp_3a   sample_ivps_jenc_slice    sample_npu_classification_s  sample_rtc_s     sample_vdec_ivps_venc    sample_venc_s                     sample_vin_s
sample_audio_s  sample_cmm_s     sample_ive      sample_ivps_jenc_slice_s  sample_npu_yolov5s           sample_skel      sample_vdec_ivps_venc_s  sample_vin                        sample_vo
sample_avs      sample_dma       sample_ive_s    sample_ivps_s             sample_npu_yolov5s_s         sample_skel_s    sample_vdec_ivps_vo      sample_vin_ivps_skel_venc_rtsp    sample_vo_s
sample_avs_s    sample_dma_s     sample_ives     sample_ivps_venc          sample_pool                  sample_sysmap    sample_vdec_ivps_vo_s    sample_vin_ivps_skel_venc_rtsp_s
sample_cipher   sample_gzipd     sample_ives_s   sample_ivps_venc_s        sample_pool_s                sample_sysmap_s  sample_vdec_s            sample_vin_ivps_venc_rtsp

ax620q_bsp_sdk's People

Contributors

bug1989 avatar

Stargazers

ExpertProgramme avatar  avatar 陈蓝度 avatar  avatar wuqingwei avatar  avatar

Watchers

 avatar  avatar bolide2006 avatar

ax620q_bsp_sdk's Issues

sample_vin running failed,I2C failed,also no video data received.

when running on Zero,it failed:
I2C failed,also no video data received.
/opt/bin # ./sample_vin -c 3
[COMM_ISP][main][ 1010] VIN Sample. Build at Apr 19 2024 02:22:56
[COMM_ISP][__sample_case_config][ 680] eSysCase 3, eSysMode 1, eHdrMode 1, bAiispEnable 0
[COMM_ISP][__sample_case_single_sc450ai][ 475] error sys mode : __sample_case_single_sc450ai
[COMM_ISP][__sample_case_single_sc450ai][ 481] error sys mode : COMMON_VIN_GetSnsConfig
AX_POOL_SetConfig success!
[COMM_SYS][ COMMON_SYS_Init][ 101] AX_POOL_Init success!
AX_VIN_SetPoolAttr success!
[COMM_ISP][COMMON_ISP_RegisterSns][ 196] set sensor bus idx 0
[COMM_ISP][COMMON_ISP_RegisterSns][ 208] set sensor slave addr 48
i2c_init: i2c device is /dev/i2c-0
i2c_read: Failed to read reg: Remote I/O error.!
i2c_read: Failed to read reg: Remote I/O error.!
i2c_write: Failed to write reg: Remote I/O error.!
i2c_write: Failed to write reg: Remote I/O error.!
i2c_write: Failed to write reg: Remote I/O error.!
i2c_write: Failed to write reg: Remote I/O error.!
Detect I2C is
/opt # i2cdetect -y 6
i2cdetect: warning: can't use SMBus quick write command, will skip some addresses
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10:
20:
30: 30 -- -- -- -- -- -- --
40:
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60:
70:

怎样使用isp clp模块进行图像处理

我需要把比较大的YUYV灰度图像进行伪彩着色,ISP CLP模块可以用来伪彩处理,我没有找到相关示例,尝试这样写:
AX_S32 clp_process(AX_U32 nCapturePipeId, const AX_IMG_INFO_T pImgInfo[])
{
AX_S32 axRet = 0;
AX_IMG_INFO_T capture_img_info = {0};
AX_U32 nRefPipeId = 0;
AX_ISP_IQ_CLP_PARAM_T pIspClpParam;
pIspClpParam.nClpEn= 1;
pIspClpParam.nColorPaletteId=0;
//pIspClpParam.nColorPaletteYuvLut=YUYV伪彩表
AX_ISP_IQ_SetClpParam(nCapturePipeId, &pIspClpParam);
/
1. first send raw frame*/
AX_ISP_RunOnce(nCapturePipeId);

axRet = AX_VIN_SendYuvFrame(nCapturePipeId, pImgInfo, 3000);
if (axRet != 0) {
    COMM_ISP_PRT("Send Pipe raw frame failed");
    return axRet;
}
/* The first frame data is invalid for the user */
axRet = AX_VIN_GetYuvFrame(nCapturePipeId, AX_VIN_CHN_ID_MAIN, &capture_img_info, 3000);
if (axRet != 0) {
    COMM_ISP_PRT("func:%s, return error!.\n", __func__);
    return axRet;
}
AX_VIN_ReleaseYuvFrame(nCapturePipeId, AX_VIN_CHN_ID_MAIN, &capture_img_info);

COMM_ISP_PRT("Capture Frame Proc success.\n");
return AX_SUCCESS;

}
我是UVC接入的YUYV数据,只想用CLP模块,不知道这个模块启动需要依赖那些模块,
不知道流程有没有问题。

sample_vin_ivps_venc_rtsp run wrong.Slave address is mistake.changed to 0x30,also failed.

/opt/bin # ./sample_vin_ivps_venc_rtsp -c 3 -r 1
INFO :[main:1213] VIN Sample. Build at Apr 24 2024 18:11:04
INFO :[__sample_case_config:362] eSysCase 3, eSysMode 1, eLoadRawNode -1, eHdrMode 1, bAiispEnable 0
[COMM_ISP][COMMON_ISP_GetSnsObj][ 127] open /opt/lib/libsns_sc450ai.so fail!zly ---(null)
AX_POOL_SetConfig success!
[COMM_SYS][ COMMON_SYS_Init][ 101] AX_POOL_Init success!
INFO :[SAMPLE_VENC_Init:630] VencChn 0:w:2688, h:1520, s:2688, rcType:0, payload:96
INFO :[SAMPLE_VENC_Init:630] VencChn 1:w:1920, h:1080, s:1920, rcType:0, payload:96
INFO :[SAMPLE_VENC_Init:630] VencChn 2:w:720, h:576, s:720, rcType:0, payload:96
AX_VIN_SetPoolAttr success!
[COMM_ISP][COMMON_ISP_RegisterSns][ 197] set sensor bus idx 6
[COMM_ISP][COMMON_ISP_RegisterSns][ 209] set sensor slave addr 0
i2c_init: i2c device is /dev/i2c-6
[COMM_ISP][COMMON_ISP_RegisterAeAlgLib][ 289] bUser3a 0
[COMM_CAM][COMMON_CAM_Open][ 352] camera 0 is open
[ COMM_NT][COMMON_NT_Init][ 28] Start the service on the tuning device side.
port = 6000, socketfd_listen = 30
port = 8082, socketfd_listen = 31
[ COMM_NT][COMMON_NT_Init][ 41] NT Stream Listen Port 6000.
[ COMM_NT][COMMON_NT_Init][ 42] NT Ctrl Listen Port 8082.
chn 0, src 2688x1520, img_fmt 80
INFO :[SampleRtspInit:988] RTSP pRtspHandle:0x14a870 nChnNum:3

change to 0x30

/opt/bin # ./sample_vin_ivps_venc_rtsp -c 3 -r 1
INFO :[main:1213] VIN Sample. Build at Apr 24 2024 18:11:04
INFO :[__sample_case_config:362] eSysCase 3, eSysMode 1, eLoadRawNode -1, eHdrMode 1, bAiispEnable 0
[COMM_ISP][COMMON_ISP_GetSnsObj][ 127] open /opt/lib/libsns_sc450ai.so fail!zly ---(null)
AX_POOL_SetConfig success!
[COMM_SYS][ COMMON_SYS_Init][ 101] AX_POOL_Init success!
INFO :[SAMPLE_VENC_Init:630] VencChn 0:w:2688, h:1520, s:2688, rcType:0, payload:96
INFO :[SAMPLE_VENC_Init:630] VencChn 1:w:1920, h:1080, s:1920, rcType:0, payload:96
INFO :[SAMPLE_VENC_Init:630] VencChn 2:w:720, h:576, s:720, rcType:0, payload:96
AX_VIN_SetPoolAttr success!
[COMM_ISP][COMMON_ISP_RegisterSns][ 197] set sensor bus idx 6
[COMM_ISP][COMMON_ISP_RegisterSns][ 210] set sensor slave addr 48
i2c_init: i2c device is /dev/i2c-6
[COMM_ISP][COMMON_ISP_RegisterAeAlgLib][ 290] bUser3a 0
[COMM_CAM][COMMON_CAM_Open][ 352] camera 0 is open

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.