- 选上SDK里面的摄像头demo
make menuconfig --->
Allwinner --->
eyesee-mpp --->
[*] mpp sample virvi2vo
- 在sdk根目录下执行cmpp_p,然后打开Makefile,修改:
kunyao@AwExdroid89:~/workspace/a_tina/package/allwinner/eyesee-mpp/middleware$ git diff .
diff --git a/allwinner/eyesee-mpp/middleware/Makefile b/allwinner/eyesee-mpp/middleware/Makefile
index 37cb9be5e..454b9045d 100755
--- a/allwinner/eyesee-mpp/middleware/Makefile
b/allwinner/eyesee-mpp/middleware/Makefile
@@ -1405,6 1405,8 @@ define Package/$(PKG_NAME)/install
find $(SRC_COMPILE_DIR)/media -maxdepth 1 -name "libmedia_mpp.so" -exec $(CP) {} $(1)/usr/lib/eyesee-mpp ;
find $(SRC_COMPILE_DIR)/sample/configfileparser -maxdepth 1 -name "libsample_confparser.so" -exec $(CP) {} $(1)/usr/lib/eyesee-mpp ;
# $(INSTALL_BIN) $(SRC_COMPILE_DIR)/logcat/alogcat.sh $(1)/bin/alogcat
$(CP) $(SRC_COMPILE_DIR)/sample/sample_virvi2vo/sample_virvi2vo $(1)/usr/bin
$(CP) $(SRC_COMPILE_DIR)/sample/sample_virvi2vo/sample_virvi2vo.conf $(1)/usr
endef
#define Package/$(PKG_NAME)/InstallDev
- roofs改到,不然pack的时候会报错
tina/device/config/chips/v853/configs/vision/linux$ git diff .
diff --git a/configs/vision/linux/sys_partition.fex b/configs/vision/linux/sys_partition.fex
index c24583f..b258e87 100755
--- a/configs/vision/linux/sys_partition.fex
b/configs/vision/linux/sys_partition.fex
@@ -54,7 54,7 @@ size = 4096
[partition]
name = rootfs
- size = 34304
size = 68608
downloadfile = "rootfs.fex"
user_type = 0x8000
4.重新编译打包把固件烧到开发板里去
代码语言:javascript复制sample_virvi2vo /usr/sample_virvi2vo.conf
摄像头开启,屏幕显示实时预览
原贴链接:https://bbs.aw-ol.com/topic/1457/