Movidius CDK2开发

1.编译

git clone ssh://git@172.17.6.86:18822/root/CDK2.git

./build_ov5658.sh

cd mdk/examples/cdk/apps/arch/ma2x5x/cdk_FLIC_SrcIsp_1xOV5658

make debug MV_SOC_REV=ma2450

make all MV_SOC_REV=ma2450

make flash

WiPro

ssh://git@172.17.6.86:18822/root/wismart4.git

git checkout -b developing origin/developing

cd wismart4/qsdk

ln -s /home/share/IPQ4018/dl/ dl

./scripts/feeds update -a

./scripts/feeds install -a -f

git@172.17.200.215:mike/wios_app.git

cd qsdk/feeds/wios_app

git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"

git fetch origin

git checkout -b wismartpro origin/wismartpro

cp product/W1242/.config .config

make -j4 V=s

./get_img.sh

查看设备信息

mtdconfig show

固件路径

wismart4\qsdk\tftpimg

生成固件

./get_img.sh

qsdk/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/root-ipq806x

2.调试

Termal 1:

cd CDK2

. app.sh

sudo make start_server

Termal 2:

make debug MV_SOC_REV=ma2450

PC:

cd mdk/examples/cdk/apps/arch/ma2x5x/vsc_pc

sudo./main -g mobilenet.graph -y mobilenet-ssd.graph -w 1280 -h 960

halt -a

callstack

接口:

ssh://git@172.17.6.86:18822/langer/wiwide_camera_lib.git

make; make test_libusb; sudo ./test_libusb -m 2 -b graph-yolo-20180803

wismart4

wivideo -f

wicheckblob.sh

3.结构

 

N.关键路径

mdk/examples/cdk/apps/arch/ma2x5x/cdk_FLIC_SrcIsp_1xOV5658/leon

N.接口代码

//facecap

 FathomRunConfig config;
 config.fathomBSS = fathomBSS;
 config.fathomBSS_size = 1000;
 config.dmaLinkAgent = 0;
 config.dataPartitionNo = 0;
 config.instrPartitionNo = 1;
 config.dmaTransactions = &task[0];
 config.firstShave = 0;
 config.lastShave = 7;
 //bzero(fathomBSS, sizeof(fathomBSS));
 FathomRun(blob, (u32)FathomBlobSizeBytes, inTensor, fathomOutput, &config, timings, debugBuffer,
        cache_memory_size, scratch_memory_size, cache_memory, scratch_memory, 1, 1);

分区

loadfile ./output/cdk_FLIC_SrcIsp_1xOV5658.elf
Loading section <.lrt.cmx.opipe> start = 0x70120000 length = 480408 bytes.
Loading section <.ddr.xxdebug> start = 0x9E800000 length = 3520 bytes.
Loading section <dtp_data> start = 0x9E8011C0 length = 307200 bytes.
Loading section <.text> start = 0x9D000000 length = 860932 bytes.
Loading section <.text.eh_frame> start = 0x9D0D2310 length = 1480 bytes.
Loading section <.ctors> start = 0x9D0D28D8 length = 132 bytes.
Loading section <.dtors> start = 0x9D0D295C length = 8 bytes.
Loading section <.rodata> start = 0x9D0D2968 length = 57600 bytes.
Loading section <.init> start = 0x9D0E0A70 length = 32 bytes.
Loading section <.fini> start = 0x9D0E0A90 length = 24 bytes.
Loading section <.rtemsroset> start = 0x9D0E0AA8 length = 88 bytes.
Loading section <.data> start = 0x9D0E0B00 length = 252384 bytes.
Loading section <.lrt.text> start = 0x9E84D000 length = 1034096 bytes.
Loading section <.lrt.text.eh_frame> start = 0x9E949770 length = 176 bytes.
Loading section <.lrt.ctors> start = 0x9E949820 length = 24 bytes.
Loading section <.lrt.dtors> start = 0x9E949838 length = 8 bytes.
Loading section <.lrt.rodata> start = 0x9E949840 length = 238860 bytes.
Loading section <.lrt.init> start = 0x9E983D50 length = 32 bytes.
Loading section <.lrt.fini> start = 0x9E983D70 length = 24 bytes.
Loading section <.lrt.rtemsroset> start = 0x9E983D88 length = 88 bytes.
Loading section <.lrt.data> start = 0x9E983DE0 length = 314652 bytes.
Loading section <.lrt.jcr> start = 0x9E9D0AFC length = 4 bytes.
Loading section <.cmx.cdmaDescriptors> start = 0x701E0000 length = 105944 bytes.
Loading section <.ddr.data> start = 0x80180000 length = 120060 bytes.
Loading section <S.shvALL.shvX.ddr_cached.sections.text> start = 0x99890340 length = 317574 bytes.
Loading section <S.shvALL.shvX.ddr_cached.sections.data> start = 0x998DDBC8 length = 2480 bytes.
Loading section <S.shvALL.shvCOM.ddr_cached.sections.text> start = 0x998DE580 length = 34430 bytes.
Loading section <S.shvALL.shvCOM.ddr_cached.sections.data> start = 0x998E6C00 length = 664 bytes.
Loading section <.ddr_direct.data> start = 0x998E6EC0 length = 204880 bytes.
Loading section <.cmx.text> start = 0x701A0000 length = 64 bytes.
Loading section <.cmx.data> start = 0x701A0040 length = 6600 bytes.
Loading section <.cmx_direct.data> start = 0x701BAA40 length = 1216 bytes.
Loading section <.lrt.cmx_direct.data> start = 0x701BAF00 length = 21656 bytes.
Loading section <S.shvALL.shvX.cmx_uncached.sections.data> start = 0x701C0398 length = 3152 bytes.
Total bytes loaded = 4370492.

添加功能

YUV拷贝

memcpy(img_yuv, (void *)p->fbPtr[0], p->tSize[0]);
memcpy((u8 *)img_yuv+p->tSize[0], p->fbPtr[1], p->tSize[1]);

mdk\examples\cdk\apps\arch\ma2x5x\cdk_FLIC_SrcIsp_1xOV5658\shaveDynApps\

 

./usr/sbin/video_hard_reset.sh
./usr/sbin/video_soft_reset.sh

hard soft /etc/init.d/Wivideo restart

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值