@whycanservice 灰常感谢!!!
最后尝试了一下成功了
make menuconfig下修改的选项和make kernel_menuconfig有点冲突
make menuconfig不需要做修改,只需要添加内核支持就可以了
---->make kernel_menuconfig
---->Device Drivers
---->Multimedia support
---->Media USB Adapters
cat /sys/devices/platform/soc/usbc0/usb_host
插上摄像头识别出来了
qlfylp 发布的最佳帖子
-
回复: V853可以使用usb摄像头吗?
qlfylp 发布的最新帖子
-
V853 编译MPP sample ,开发板运行报错
使用大佬给的mpp 编译示例代码
https://gitee.com/GloomyGhost/Yuzukilizard/tree/master/Software/sunxi-mpp
开发板烧录出厂固件,运行自己编译的sample_virvi2vo出现报错:
ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!运行结果:
root@TinaLinux:/# ./sample_virvi2vo WARNING: Logging before InitGoogleLogging() is written to STDERR I0102 01:03:18.723946 1133 dup2SeldomUsedFd.c:20] <dup2SeldomUsedFdInit> gFdLock init I0102 01:03:18.725167 1133 sample_virvi2vo.c:1013] <main> sample_virvi2vo running! I0102 01:03:18.726318 1133 sample_virvi2vo.c:108] <ParseCmdLine> sample_virvi2vo path:[./sample_virvi2vo], arg number is [1] I0102 01:03:18.726901 1133 sample_virvi2vo.c:208] <loadSampleVIRVI2VOConfig> user not set config file. use default test parameter! I0102 01:03:18.727514 1133 mpi_sys.c:840] <AW_MPI_SYS_SetConf> kfctmpdir is [/tmp] >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Media Process Platform<<<<<<<<<<<<<<<<<<<<<<<<<<<< modName : MPP-Platform tag : V1.0 Release branch: v5-dev commit: 4eed413532ad87725895a8cb1ba75e22fc328233 date : 20170725 author: jenkins iniparser: cannot open /etc/cedarx.conf iniparser: cannot open /vendor/etc/cedarx.conf I0102 01:03:18.732061 1133 mpi_sys.c:1280] <AW_MPI_SYS_Init> ISP init [ISP]>>>>>>>>>>>>>>>>>>>> ISP VERSION INFO <<<<<<<<<<<<<<<<<<< IPCORE: ISP600 branch: libisp-dev commit: 14df8348718d093707641fea73eba7db962885f5 date : Thu Jul 14 15:40:38 2022 +0800 author: <mayifei@allwinnertech.com> -------------------------------------------------------- I0102 01:03:18.733427 1133 mpi_sys.c:1282] <AW_MPI_SYS_Init> ISP init done INFO : cedarc <VeInitialize:1185>: *** ic_version = 0x1302000023010, I0102 01:03:18.743707 1133 hwdisplay.c:84] <hw_display_init> I0102 01:03:18.744235 1133 hwdisplay.c:993] <hwd_init> (hwd_init 993) I0102 01:03:18.744999 1133 hwdisplay.c:1048] <hwd_init> ret[0][2,0]ch[0]lyl[0] init: enable[0], screenwin[0,0, 0x0], zorder[0], alpha[mode:0, value:0] I0102 01:03:18.746042 1133 alsa_interface.c:701] <alsaOpenMixer> open mixer:hw:0 I0102 01:03:18.811126 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:ADC1 ADC2 swap I0102 01:03:18.811806 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:ADC1 volume I0102 01:03:18.812022 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:ADC2 volume I0102 01:03:18.812562 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:ADCDRC I0102 01:03:18.812770 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:ADCHPF I0102 01:03:18.813327 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:DAC volume I0102 01:03:18.813496 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:DACDRC I0102 01:03:18.814022 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:DACHPF I0102 01:03:18.814205 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEIN I0102 01:03:18.814854 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEINL gain volume I0102 01:03:18.815436 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEINR gain volume I0102 01:03:18.815982 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEOUT I0102 01:03:18.816185 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEOUT Output Select I0102 01:03:18.816871 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:LINEOUT volume I0102 01:03:18.817492 1133 alsa_interface.c:756] <alsaOpenMixer> set playback vol_val to value: 27 I0102 01:03:18.818067 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC1 I0102 01:03:18.818730 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC1 Input Select I0102 01:03:18.819352 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC1 gain volume I0102 01:03:18.819902 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC2 I0102 01:03:18.820447 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC2 Input Select I0102 01:03:18.820995 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:MIC2 gain volume I0102 01:03:18.821593 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:SPK I0102 01:03:18.822623 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:digital volume I0102 01:03:18.823215 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:rx sync mode I0102 01:03:18.824096 1133 alsa_interface.c:736] <alsaOpenMixer> alsa_elem:tx hub mode I0102 01:03:18.824821 1133 hwdisplay.c:1248] <hwd_get_disp_type> Current the disp_type:0x1 tv_mode:0x0 I0102 01:03:18.845957 1133 sample_virvi2vo.c:390] <CreateVIPP2VOLink> Vipp dev[0] vir_chn[0] [ISP]video device name is vin_video0 [ISP]open video device[0], detect isp0 success! I0102 01:03:18.847557 1133 media_debug.c:45] <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null) I0102 01:03:18.848756 1133 videoInputHw.c:942] <videoInputHw_SetChnAttr> ViCh[0] update width:480(480), height:270(272) [ISP]video0 fd[10] ve_online_en=0, dma_buf_num=0 [ISP]open isp device[0] success! [ISP_WARN]open /mnt/extsd/isp0_1920_1088_20_ctx_saved.bin failed, err:No such file or directory. [ISP]prefer isp config: [gc2053_mipi], 1920x1088, 20, 0, 0 [ISP]find gc2053_mipi_1920_1088_20_0 [gc2053_mipi_isp600_20220511_164617_vlc4_day] isp config [ISP]create isp0 server thread! I0102 01:03:19.138206 1133 mpi_vi.c:1018] <AW_MPI_VI_CreateVirChn> we allow to create virChn[0] in disable status of vipp[0] I0102 01:03:19.139041 1133 VideoVirVi_Component.c:1160] <VideoViComponentInit> VideoVirvi component Init! thread_id[0xb6b48d50] I0102 01:03:19.173482 1136 videoInputHw.c:4787] <VideoInputHw_CapThread> loop VideoInputHw_CapThread vipp_id = 0, buf_num=5. I0102 01:03:19.364667 1133 hwdisplay.c:1121] <hwd_layer_request_hlay> hlay:0, zorder=0, cnt:2 I0102 01:03:19.364933 1133 mpi_vo.c:1038] <AW_MPI_VO_SetVideoLayerAttr> ch[0]lyl[0]:dispRect changed, [0, 0, 320x240]->[0, 0, 480x800] I0102 01:03:19.365089 1133 hwdisplay.c:409] <hwd_layer_set_rect> ch[0]lyl[0]: screen_win[0,0, 480x800] I0102 01:03:19.365897 1133 sample_virvi2vo.c:507] <CreateVIPP2VOLink> create vo channel[0] success! [ISP]prefer isp config: [gc2053_mipi], 1920x1088, 20, 0, 0 [ISP]find gc2053_mipi_1920_1088_20_0 [gc2053_mipi_isp600_20220511_164617_vlc4_day] isp config I0102 01:03:19.382664 1133 sample_virvi2vo.c:384] <CreateVIPP2VOLink> do not need create link for idx[1] [ISP]prefer isp config: [gc2053_mipi], 1920x1088, 20, 0, 0 [ISP]find gc2053_mipi_1920_1088_20_0 [gc2053_mipi_isp600_20220511_164617_vlc4_day] isp config [ISP_ERR]isp_stat_process_buffer, line: 268,AEWB: stats error, skipping buffer. [ISP_WARN]gc2053_mipi get sensor_temp failed: Invalid argument (22). [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! I0102 01:03:19.589001 1137 video_render_linux.cpp:224] <vr4l_init> mDisplayFormat[0x11], new CedarXNativeRenderer W0102 01:03:19.589246 1137 CedarXNativeRenderer.cpp:161] <CedarXNativeRenderer> bufHeight[272]!=display_height[270] I0102 01:03:19.589389 1137 CedarXNativeRenderer.cpp:176] <CedarXNativeRenderer> hwc disp fmt[0x63], color space:260 I0102 01:03:19.589508 1137 hwdisplay.c:240] <hwd_layer_set_src> x: 0, y: 0, width: 0x1e0, height: 0x10e I0102 01:03:19.589613 1137 hwdisplay.c:247] <hwd_layer_set_src> width: 0x1e000000000, height: 0x10e00000000 I0102 01:03:19.589718 1137 hwdisplay.c:367] <hwd_layer_set_src> set fb.format 99 77, color_space 260 end, size0[480x272], size1[240x136] I0102 01:03:19.589875 1137 sample_virvi2vo.c:63] <SampleVIRVI2VO_VOCallbackWrapper> VO callback: VO Layer[0] chn[0] event:257 I0102 01:03:19.590001 1137 sample_virvi2vo.c:75] <SampleVIRVI2VO_VOCallbackWrapper> vo layer[0] report video display size[480x270] I0102 01:03:19.590707 1137 VideoRender_Component.c:2318] <VideoRender_ComponentThread> init video_render, param: displayRect[0,0][480x270], bufSize[480x272], vdecColorFormat[0x5] I0102 01:03:19.591332 1137 mpi_vo.c:508] <VideoRenderEventHandler> KeyFrameDecoded, pts[226784391]us I0102 01:03:19.603273 1137 sample_virvi2vo.c:63] <SampleVIRVI2VO_VOCallbackWrapper> VO callback: VO Layer[0] chn[0] event:258 I0102 01:03:19.603833 1137 sample_virvi2vo.c:80] <SampleVIRVI2VO_VOCallbackWrapper> vo layer[0] report rendering start [ISP]video device name is vin_video12 [ISP]open video device[12], detect isp0 success! [ISP]--------- LDCI Video12 Init OK --------- [ISP]--------- LDCI Video12 Streamon OK --------- [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! ^CI0102 01:03:21.801733 1133 sample_virvi2vo.c:310] <handle_exit> user want to exit! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! I0102 01:03:21.826665 1137 VideoRender_Component.c:1750] <VideoRender_ComponentThread> VideoLayer[0]: release [2]used inputFrame! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! [ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error! I0102 01:03:21.928916 1135 VideoVirVi_Component.c:1206] <Vi_ComponentThread> vipp[0]virChn[0]:begin to wait using frame return I0102 01:03:21.929676 1133 VideoVirVi_Component.c:1056] <VideoViComponentDeInit> VideoVirvi component exited! [ISP]save isp_ctx to /mnt/extsd/isp0_1920_1088_20_ctx_saved.bin success, data_len:24512!!! [ISP]--------- LDCI Video12 Stream Off --------- [ISP]--------- LDCI Video12 Exit OK --------- [ISP_ERR]isp_get_ev_lv_adj, line: 1439,isp0 device is NULL! I0102 01:03:22.022270 1133 sample_virvi2vo.c:598] <DestroyVIPP2VOLink> do not need destroy link for idx[1] I0102 01:03:22.042642 1133 alsa_interface.c:790] <alsaCloseMixer> close mixer I0102 01:03:22.043055 1133 hwdisplay.c:1062] <hwd_exit> (hwd_exit 1062) I0102 01:03:22.434626 1133 sample_virvi2vo.c:1114] <main> ./sample_virvi2vo test result: success I0102 01:03:22.435249 1133 dup2SeldomUsedFd.c:30] <dup2SeldomUsedFdExit> gFdLock destroy
运行官方的实例程序,运行结果:
root@TinaLinux:/# sample_virvi2vo WARNING: Logging before InitGoogleLogging() is written to STDERR I0102 01:06:04.542054 1138 dup2SeldomUsedFd.c:20] <dup2SeldomUsedFdInit> gFdLock init I0102 01:06:04.631996 1138 sample_virvi2vo.c:1017] <main> sample_virvi2vo running! I0102 01:06:04.632490 1138 sample_virvi2vo.c:108] <ParseCmdLine> sample_virvi2vo path:[sample_virvi2vo], arg number is [1] I0102 01:06:04.632623 1138 sample_virvi2vo.c:208] <loadSampleVIRVI2VOConfig> user not set config file. use default test parameter! I0102 01:06:04.632779 1138 mpi_sys.c:840] <AW_MPI_SYS_SetConf> kfctmpdir is [/tmp] >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Media Process Platform<<<<<<<<<<<<<<<<<<<<<<<<<<<< modName : MPP-Platform tag : V1.0 Release branch: v5-dev commit: 4eed413532ad87725895a8cb1ba75e22fc328233 date : 20170725 author: jenkins iniparser: cannot open /etc/cedarx.conf iniparser: cannot open /vendor/etc/cedarx.conf I0102 01:06:04.686075 1138 mpi_sys.c:1280] <AW_MPI_SYS_Init> ISP init [ISP]>>>>>>>>>>>>>>>>>>>> ISP VERSION INFO <<<<<<<<<<<<<<<<<<< IPCORE: ISP600 branch: libisp-dev commit: c154641862e08383b2fe850864fd334ead24d538 date : Tue May 31 15:09:49 2022 +0800 author: <mayifei@allwinnertech.com> -------------------------------------------------------- I0102 01:06:04.687489 1138 mpi_sys.c:1282] <AW_MPI_SYS_Init> ISP init done INFO : cedarc <VeInitialize:1183>: *** ic_version = 0x1302000023010, I0102 01:06:04.738570 1138 hwdisplay.c:84] <hw_display_init> I0102 01:06:04.738799 1138 hwdisplay.c:993] <hwd_init> (hwd_init 993) I0102 01:06:04.738983 1138 hwdisplay.c:1048] <hwd_init> ret[0][2,0]ch[2]lyl[0] init: enable[0], screenwin[0,0, 0x0], zorder[0], alpha[mode:0, value:0] I0102 01:06:04.739522 1138 alsa_interface.c:679] <alsaOpenMixer> open mixer:hw:0 I0102 01:06:04.745839 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:ADC1 ADC2 swap I0102 01:06:04.746406 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:ADC1 volume I0102 01:06:04.746612 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:ADC2 volume I0102 01:06:04.746761 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:ADCDRC I0102 01:06:04.746891 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:ADCHPF I0102 01:06:04.747460 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:DAC volume I0102 01:06:04.747625 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:DACDRC I0102 01:06:04.748160 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:DACHPF I0102 01:06:04.748326 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:LINEIN I0102 01:06:04.748972 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:LINEINL gain volume I0102 01:06:04.749522 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:LINEINR gain volume I0102 01:06:04.750062 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:LINEOUT I0102 01:06:04.750948 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:LINEOUT Output Select I0102 01:06:04.751540 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:LINEOUT volume I0102 01:06:04.752098 1138 alsa_interface.c:734] <alsaOpenMixer> set playback vol_val to value: 27 I0102 01:06:04.752645 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:MIC1 I0102 01:06:04.753192 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:MIC1 Input Select I0102 01:06:04.753727 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:MIC1 gain volume I0102 01:06:04.754256 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:MIC2 I0102 01:06:04.754950 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:MIC2 Input Select I0102 01:06:04.755498 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:MIC2 gain volume I0102 01:06:04.756371 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:SPK I0102 01:06:04.757207 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:digital volume I0102 01:06:04.757790 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:rx sync mode I0102 01:06:04.758879 1138 alsa_interface.c:714] <alsaOpenMixer> alsa_elem:tx hub mode I0102 01:06:04.759770 1138 hwdisplay.c:1248] <hwd_get_disp_type> Current the disp_type:0x0 tv_mode:0x0 I0102 01:06:04.780900 1138 mpi_vo.c:837] <AW_MPI_VO_SetPubAttr> vo interface changed, [0x0, 0x1]->[0x40, 0x1] I0102 01:06:04.781430 1138 hwdisplay.c:1486] <hwd_switch_vo_device> Current the disp_type:0x0 tv_mode:0x0 I0102 01:06:05.317599 1138 sample_virvi2vo.c:394] <CreateVIPP2VOLink> Vipp dev[0] vir_chn[0] [ISP]video device name is vin_video0 [ISP]open video device[0], detect isp0 success! I0102 01:06:05.319120 1138 videoInputHw.c:942] <videoInputHw_SetChnAttr> ViCh[0] update width:1920(1920), height:1080(1088) [ISP]video0 fd[10] ve_online_en=0, dma_buf_num=0 [ISP]open isp device[0] success! [ISP]get isp_ctx from /mnt/extsd/isp0_1920_1088_20_ctx_saved.bin success!!! [ISP]prefer isp config: [gc2053_mipi], 1920x1088, 20, 0, 0 [ISP]find gc2053_mipi_1920_1088_20_0 [gc2053_mipi_isp600_20220511_164617_vlc4_day] isp config [ISP]create isp0 server thread! I0102 01:06:05.605578 1138 mpi_vi.c:1018] <AW_MPI_VI_CreateVirChn> we allow to create virChn[0] in disable status of vipp[0] I0102 01:06:05.606430 1138 VideoVirVi_Component.c:1141] <VideoViComponentInit> VideoVirvi component Init! thread_id[0xb6b9dd50] I0102 01:06:05.654176 1141 videoInputHw.c:4785] <VideoInputHw_CapThread> loop VideoInputHw_CapThread vipp_id = 0, buf_num=5. I0102 01:06:05.844675 1138 hwdisplay.c:1121] <hwd_layer_request_hlay> hlay:0, zorder=0, cnt:2 I0102 01:06:05.844949 1138 mpi_vo.c:1038] <AW_MPI_VO_SetVideoLayerAttr> ch[0]lyl[0]:dispRect changed, [0, 0, 320x240]->[0, 0, 1280x720] I0102 01:06:05.845105 1138 hwdisplay.c:409] <hwd_layer_set_rect> ch[0]lyl[0]: screen_win[0,0, 1280x720] I0102 01:06:05.845876 1138 sample_virvi2vo.c:511] <CreateVIPP2VOLink> create vo channel[0] success! [ISP]prefer isp config: [gc2053_mipi], 1920x1088, 20, 0, 0 [ISP]find gc2053_mipi_1920_1088_20_0 [gc2053_mipi_isp600_20220511_164617_vlc4_day] isp config I0102 01:06:05.862427 1138 sample_virvi2vo.c:388] <CreateVIPP2VOLink> do not need create link for idx[1] [ISP]prefer isp config: [gc2053_mipi], 1920x1088, 20, 0, 0 [ISP]find gc2053_mipi_1920_1088_20_0 [gc2053_mipi_isp600_20220511_164617_vlc4_day] isp config [ISP_ERR]isp_stat_process_buffer, line: 268,AEWB: stats error, skipping buffer. [ISP_WARN]gc2053_mipi get sensor_temp failed: Invalid argument (22). I0102 01:06:06.069447 1142 video_render_linux.cpp:224] <vr4l_init> mDisplayFormat[0x11], new CedarXNativeRenderer I0102 01:06:06.069705 1142 CedarXNativeRenderer.cpp:176] <CedarXNativeRenderer> hwc disp fmt[0x63], color space:260 I0102 01:06:06.069852 1142 hwdisplay.c:240] <hwd_layer_set_src> x: 0, y: 0, width: 0x780, height: 0x440 I0102 01:06:06.069967 1142 hwdisplay.c:247] <hwd_layer_set_src> width: 0x78000000000, height: 0x44000000000 I0102 01:06:06.070076 1142 hwdisplay.c:367] <hwd_layer_set_src> set fb.format 99 77, color_space 260 end, size0[1920x1088], size1[960x544] I0102 01:06:06.070214 1142 sample_virvi2vo.c:63] <SampleVIRVI2VO_VOCallbackWrapper> VO callback: VO Layer[0] chn[0] event:257 I0102 01:06:06.070337 1142 sample_virvi2vo.c:75] <SampleVIRVI2VO_VOCallbackWrapper> vo layer[0] report video display size[1920x1088] I0102 01:06:06.070448 1142 VideoRender_Component.c:2318] <VideoRender_ComponentThread> init video_render, param: displayRect[0,0][1920x1088], bufSize[1920x1088], vdecColorFormat[0x5] I0102 01:06:06.070550 1142 mpi_vo.c:508] <VideoRenderEventHandler> KeyFrameDecoded, pts[393264784]us I0102 01:06:06.082078 1142 sample_virvi2vo.c:63] <SampleVIRVI2VO_VOCallbackWrapper> VO callback: VO Layer[0] chn[0] event:258 I0102 01:06:06.082635 1142 sample_virvi2vo.c:80] <SampleVIRVI2VO_VOCallbackWrapper> vo layer[0] report rendering start [ISP]video device name is vin_video12 [ISP]open video device[12], detect isp0 success! [ISP]--------- LDCI Video12 Init OK --------- [ISP]--------- LDCI Video12 Streamon OK --------- ^CI0102 01:06:09.403068 1138 sample_virvi2vo.c:310] <handle_exit> user want to exit! I0102 01:06:09.427467 1142 VideoRender_Component.c:1750] <VideoRender_ComponentThread> VideoLayer[0]: release [2]used inputFrame! I0102 01:06:09.534250 1140 VideoVirVi_Component.c:1187] <Vi_ComponentThread> vipp[0]virChn[0]:begin to wait using frame return I0102 01:06:09.535093 1138 VideoVirVi_Component.c:1037] <VideoViComponentDeInit> VideoVirvi component exited! [ISP]save isp_ctx to /mnt/extsd/isp0_1920_1088_20_ctx_saved.bin success, data_len:24512!!! [ISP]--------- LDCI Video12 Stream Off --------- [ISP]--------- LDCI Video12 Exit OK --------- [ISP_ERR]isp_get_ev_lv_adj, line: 1435,isp0 device is NULL! I0102 01:06:09.610904 1138 sample_virvi2vo.c:602] <DestroyVIPP2VOLink> do not need destroy link for idx[1] I0102 01:06:09.631278 1138 alsa_interface.c:768] <alsaCloseMixer> close mixer I0102 01:06:09.631685 1138 hwdisplay.c:1062] <hwd_exit> (hwd_exit 1062) I0102 01:06:10.024622 1138 sample_virvi2vo.c:1314] <main> sample_virvi2vo test result: success I0102 01:06:10.025248 1138 dup2SeldomUsedFd.c:30] <dup2SeldomUsedFdExit> gFdLock destroy
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
这个报错,我在运行自己其他的示例程序也会出现,但是它好像不影响运行的结果,但是这也是不正常的吧,我尝试修改了一部分代码,但是我不知道是什么地方导致了这个错误的发生,萌新求助,感谢大佬! -
回复: V853可以使用usb摄像头吗?
@whycanservice 灰常感谢!!!
最后尝试了一下成功了
make menuconfig下修改的选项和make kernel_menuconfig有点冲突
make menuconfig不需要做修改,只需要添加内核支持就可以了
---->make kernel_menuconfig
---->Device Drivers
---->Multimedia support
---->Media USB Adapters
cat /sys/devices/platform/soc/usbc0/usb_host
插上摄像头识别出来了
-
V853可以使用usb摄像头吗?
首先尝试了用cat /sys/devices/platform/soc/usbc0/usb_host后
插上USB摄像头
摄像头没有识别出来然后又尝试了make menuconfig后,修改了
----OpenWrt Configuration
---- Kernel modules
----Video Support
make -j1 V=s 后报错如下
-
qt5下怎么调用摄像头?
尝试使用V4L2来打开摄像头但失败了
qt5代码
int ret = init_camera("/dev/video0");
调试信息
是不能这么使用吗,还是要通过其他的方式来实现,还请各位大佬赐教