Android 上未创建 USB 摄像头节点

发布于 2024-12-28 21:55:49 字数 412 浏览 2 评论 0原文

当设备插入 Android 平板电脑时,谁(驱动程序或任何守护程序)如何以及谁(驱动程序或任何守护程序)创建节点?

当我将 USB 摄像头连接到 Acer Iconia 平板电脑时,会创建 /dev/video1,但不会在 Samsung Galaxy 选项卡中创建。

我的目标是在 Galaxy 选项卡上创建节点。我有源代码(基于从 opensource.samsung.com 下载的三星设备版本(GTP7510))。

为了了解需要做什么,我需要了解如何以及由谁创建节点。是创建节点的驱动程序还是创建节点的守护进程还是其他东西?请对此进行一些说明。

如果我不清楚我的要求,请评论,我会回复更多细节。

How and who(driver or any daemon) creates a node when a device is inserted in the Android tablet?

When I connect USB camera to Acer Iconia tablet, /dev/video1 is created, but it does not gets created in Samsung Galaxy tab.

My goal is to get the node created on galaxy tab. I have the source code (based on samsung device version(GTP7510) downloaded from opensource.samsung.com).

To understand what needs to be done, I need to understand how and who creates the node. Is it driver that creates the node or is it a daemon that creates the node or is it something else? Kindly throw some light on this.

If I am not clear on my requirement please comment, I will reply with more details.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一杆小烟枪 2025-01-04 21:55:49

我终于想通了。内置内核需要支持 USB 摄像头功能。您需要在内核中启用 UVC 和 V4l2 模块。进行 menuconfig,然后我必须标记 UVC 和 V4L2 支持,然后编译代码并将其闪存到设备上。最初,我遇到了问题,因为由于专有内容等原因,我无法在三星选项卡上闪烁。但是当我在 Panda 板上进行实验时。我能够创建节点。

I finally figured it out. The inbuilt kernel needs to have support for the USB camera stuff. You need to enable UVC and V4l2 modules inside the kernel. Do make menuconfig and then I had to mark UVC and V4L2 support and then compile the code and flash it on the device. Initially iIwas having problem coz i was not able to flash on the Samsung tabs because of proprietary stuff and all. But when I experimented it on Panda board. I was able to get the node created.

卖梦商人 2025-01-04 21:55:49

希望这能解决您的疑问

uvc_scan_device 扫描 uvc 兼容设备并调用函数 uvc_register_chains ,该函数在内部调用 uvc_register_video ,负责创建节点。

is_seclist是whitelist.h中的一个函数,在USB注册期间被调用,您应该得到一些日志,例如Device- ** &&&&不支持,因为由于某些安全原因,您的设备不支持 USB 注册,因此您可以尝试禁用 whilelist 功能或将您的设备添加到该列表中,正如我尝试过但没有找到方法在平板电脑中闪烁图像。

Hope this will resolve your doubts

uvc_scan_device scan the uvc compliant devices and calls a function uvc_register_chains , which internally calls uvc_register_video , which is responsible for creating the node.

is_seclist is a function in whitelist.h , which has been called during usb registration , you should get some logs like Device- ** &&&& is not supported , as usb registration has been not supported for your device , due to some security reasons , for this your may try to disable whilelist feature or add your device in that list , as i have tried but didn't find the way to flash the image in TABLET .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文