[yocto] adding a udev entry for a camera

Khem Raj raj.khem at gmail.com
Thu Oct 31 10:08:15 PDT 2013


On Thu, Oct 31, 2013 at 9:54 AM, Edward Vidal <vidal.develone at gmail.com> wrote:
> hello,
> I removed the bus
> udevadm test --action=add /usr/src/kernel/sysfs
>
> run_command: calling: test
> adm_test: version 182
> This program is for debugging only, it does not run any program,
> specified by a RUN key. It may show incorrect results, because
> some values may be different, or not available at a simulation run.
>
> builtin_kmod_init: load module index
> add_matching_files: unable to open '/var/run/udev/rules.d': No such file or
> directory
> parse_file: reading '/etc/udev/rules.d/10-c920.rules' as rules file
> still no /dev/video0
>
> cat /etc/udev/rules.d/10-c920.rules
> SUBSYSTEM=="video4linux",  ATTRS{idvendor}=="0x046d",
> ATTRS{idProduct}=="0x082d", NAME="video0", MODE:="0660", RUN="/bin/mknod
> /dev/video0 c 81 0"
> still no /dev/video0
> The camera is working correctly on my fedora 18 x86_64.

OK so atleast your rules file is correct syntax wise. Why not try the
3.8 kernel from meta-beagleboard ?

>
> Note:
> * Before camera connected
> ** After camera connected
> Linux sim4.swbell.net 3.9.2-200.fc18.x86_64 #1 SMP Mon May 13 13:59:47 UTC
> 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> Module                  Size  Used by
> **snd_usb_audio         145223  1
> **snd_usbmidi_lib        24713  1 snd_usb_audio
> **snd_rawmidi            29531  1 snd_usbmidi_lib
>
> *snd_hwdep              17650  1 snd_hda_codec
> **snd_hwdep              17650  2 snd_usb_audio,snd_hda_codec
>
> *snd_seq_device         14136  1 snd_seq
> **snd_seq_device         14136  2 snd_seq,snd_rawmidi
>
> *snd                    79379  19
> snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_hda_codec,snd_hda_intel,snd_seq_device
> **snd                    79379  24
> snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device
>
> *video                  18991  0
> **video                  18991  0
>
> This is the beagleboard
>  lsmod
> Module                  Size  Used by
> nls_iso8859_1           3673  1
> nls_cp437               5339  1
> I am going to be checking the video is a module or built into the kernel of
> the
>  uname -a
> Linux beagleboard 3.4.36-yocto-standard #1 Mon Oct 28 21:58:22 MDT 2013
> armv7l GNU/Linux
>
> Thanks
>
>
> On Thu, Oct 31, 2013 at 10:23 AM, Khem Raj <raj.khem at gmail.com> wrote:
>>
>> On Thu, Oct 31, 2013 at 8:45 AM, Edward Vidal <vidal.develone at gmail.com>
>> wrote:
>> >
>> > Do I add RUN+="/bin/mknod /dev/video0 c 81 0" see below new version of
>> > 1--c920.rules
>> > cat 10-c920.rules
>> > SUBSYSTEM=="video4linux", BUS=="usb", ATTRS{idvendor}=="0x046d",
>> > ATTRS{idProduct}=="0x082d", NAME="video0", MODE:="0660",
>> > RUN+="/bin/mknod
>> > /dev/video0 c 81 0"
>>
>> get rid of BUS construct there
>
>



More information about the yocto mailing list