你好:
我有下面几个问题想请教一下,谢谢!代码是EZSDK 5_05 硬件8168.
1: TI平台的V4L2是否支持,从应用层发送比如VIDIOC_QBUF的IOCTL的命令。来拿5158的数据。如果支持的话。为什么我第一次运行应用程序时都会出现如下错误(硬件寄存器都已经写进去了)。
————[ cut here ]———— WARNING: at kernel/softirq.c:159 local_bh_enable+0x54/0xc4() Modules linked in: ti81xxvin at24cxx bufferclass_ti omaplfb pvrsrvkm ipv6 ti81xxhdmi ti81xxfb vpss syslink Backtrace: [<c004acf8>] (dump_backtrace+0x0/0x110) from [<c039db20>] (dump_stack+0x18/0x1c) r7:00000000 r6:c0075204 r5:c0469249 r4:0000009f [<c039db08>] (dump_stack+0x0/0x1c) from [<c006fc88>] (warn_slowpath_common+0x54/0x6c) [<c006fc34>] (warn_slowpath_common+0x0/0x6c) from [<c006fcc4>] (warn_slowpath_null+0x24/0x2c) r9:c051aec4 r8:d308c780 r7:0000000d r6:d2626d00 r5:c04f4698 r4:c0546340 [<c006fca0>] (warn_slowpath_null+0x0/0x2c) from [<c0075204>] (local_bh_enable+0x54/0xc4) [<c00751b0>] (local_bh_enable+0x0/0xc4) from [<c0069b80>] (omap_mbox_msg_send+0xcc/0xdc) r5:c04f4698 r4:00000000 [<c0069ab4>] (omap_mbox_msg_send+0x0/0xdc) from [<c02dea3c>] (notify_shm_drv_send_event+0x1c8/0x208) r5:00000001 r4:00000000 [<c02de874>] (notify_shm_drv_send_event+0x0/0x208) from [<c02dc1cc>] (notify_send_event+0x114/0x26c) [<c02dc0b8>] (notify_send_event+0x0/0x26c) from [<bf149a08>] (vps_fvid2_queue+0xe4/0x21c [vpss]) [<bf149924>] (vps_fvid2_queue+0x0/0x21c [vpss]) from [<bf152cfc>] (capture_queue+0x50/0x64 [vpss]) r8:bf2184e4 r7:60000013 r6:d1f53900 r5:00000000 r4:d1c4b000 [<bf152cac>] (capture_queue+0x0/0x64 [vpss]) from [<bf21725c>] (ti81xxvin_buffer_queue+0x9c/0xe8 [ti81xxvin]) r5:d1e89c00 r4:d1c4b000 [<bf2171c0>] (ti81xxvin_buffer_queue+0x0/0xe8 [ti81xxvin]) from [<c02b59cc>] (videobuf_streamon+0x80/0xd0) r7:60000013 r6:d1e89dc4 r5:d1e89d04 r4:d1f53900 [<c02b594c>] (videobuf_streamon+0x0/0xd0) from [<bf216ca0>] (vidioc_streamon+0x25c/0x44c [ti81xxvin]) r7:d1f9b800 r6:00000001 r5:d1e89c00 r4:d1e89d04 [<bf216a44>] (vidioc_streamon+0x0/0x44c [ti81xxvin]) from [<c02ab2d4>] (__video_do_ioctl+0x1618/0x3f34) r6:40045612 r5:00000000 r4:00000001 [<c02a9cbc>] (__video_do_ioctl+0x0/0x3f34) from [<c02a9aac>] (__video_usercopy+0x2e4/0x428) [<c02a97c8>] (__video_usercopy+0x0/0x428) from [<c02a9c20>] (video_ioctl2+0x30/0x38) [<c02a9bf0>] (video_ioctl2+0x0/0x38) from [<c02a8c60>] (v4l2_ioctl+0xe8/0x11c) r5:d1f9b800 r4:d1f53b80 [<c02a8b78>] (v4l2_ioctl+0x0/0x11c) from [<c00d52a8>] (vfs_ioctl+0x28/0x44) r9:d1890000 r8:bedfbca0 r7:00000003 r6:00000003 r5:d1f53b80 r4:00000000 [<c00d5280>] (vfs_ioctl+0x0/0x44) from [<c00d59b8>] (do_vfs_ioctl+0x500/0x540) [<c00d54b8>] (do_vfs_ioctl+0x0/0x540) from [<c00d5a50>] (sys_ioctl+0x58/0x7c) [<c00d59f8>] (sys_ioctl+0x0/0x7c) from [<c0046f40>] (ret_fast_syscall+0x0/0x30) r8:c00470e8 r7:00000036 r6:000087b0 r5:00000000 r4:00009558 —[ end trace 6c690304808997be ]—
第二次运行就不出现这个错误了。
2: 我应用程序运行完streamon后在select时每次都是超时退出,拿不到数据(VPSS创建是成功的,中断等都已注册成功,我slaveloader M3 固件后也是会出现上面的错误)。
3: TI 的ti81xxvin模块的device端是否需要配置。如果需要配置的话该如何配置(我现在先配置单通道)。
Ternence_Hsu:
你好;
1、v4l2 是支持的
3、device 端是需要配置的