LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2013, 04:50 AM   #1
bomberb17
Member
 
Registered: Jul 2005
Posts: 71

Rep: Reputation: 0
No /dev/video0 for my web camera on raspberry pi


Hello, I am running Arch linux on my raspberry. I first ran the OS off the SD card, but I decided to move my OS to a USB thumb drive to prevent it from corruption. Before my web camera was working fine (I am using motion) but now it does not appear on /dev/video0. Can someone help?
My lsusb:
Code:
Bus 001 Device 005: ID 0951:1625 Kingston Technology DataTraveler 101 II
Bus 001 Device 009: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 008: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 007: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 012: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 011: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 010: ID 1871:0101 Aveo Technology Corp. UVC camera (Bresser microscope)
Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 004: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. LAN9500 Ethernet 10/100 Adapter / SMSC9512/9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
my ls /dev
Code:
autofs           loop4               ram13   tty0   tty29  tty49      uhid
block            loop5               ram14   tty1   tty3   tty5       urandom
bsg              loop6               ram15   tty10  tty30  tty50      vc-cma
bus              loop7               ram2    tty11  tty31  tty51      vc-mem
cachefiles       mapper              ram3    tty12  tty32  tty52      vchiq
char             md0                 ram4    tty13  tty33  tty53      vcs
console          mem                 ram5    tty14  tty34  tty54      vcs1
core             mmcblk0             ram6    tty15  tty35  tty55      vcs2
cpu_dma_latency  mmcblk0p1           ram7    tty16  tty36  tty56      vcs3
disk             mmcblk0p2           ram8    tty17  tty37  tty57      vcs4
fb0              mmcblk0p5           ram9    tty18  tty38  tty58      vcs5
fd               mqueue              random  tty19  tty39  tty59      vcs6
full             network_latency     raw     tty2   tty4   tty6       vcsa
initctl          network_throughput  rfkill  tty20  tty40  tty60      vcsa1
input            null                sda     tty21  tty41  tty61      vcsa2
kmsg             ptmx                sda1    tty22  tty42  tty62      vcsa3
log              pts                 sda2    tty23  tty43  tty63      vcsa4
loop-control     ram0                shm     tty24  tty44  tty7       vcsa5
loop0            ram1                stderr  tty25  tty45  tty8       vcsa6
loop1            ram10               stdin   tty26  tty46  tty9       zero
loop2            ram11               stdout  tty27  tty47  ttyAMA0    zram0
loop3            ram12               tty     tty28  tty48  ttyprintk
 
Old 12-17-2013, 05:22 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi

I don't use arch nor have RPi

can you show the results for
Code:
lsmod | grep uvc
if nothing try

Code:
sudo modprobe uvcvideo
and repeat command pls
 
Old 12-17-2013, 05:25 AM   #3
bomberb17
Member
 
Registered: Jul 2005
Posts: 71

Original Poster
Rep: Reputation: 0
Both commands return nothing..
 
Old 12-17-2013, 05:47 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
HMM

can you unplug the web cam...re-insert and show the snippet of your
/var/log/messages

2) does arch use udev or hal?
 
Old 12-17-2013, 08:35 AM   #5
bomberb17
Member
 
Registered: Jul 2005
Posts: 71

Original Poster
Rep: Reputation: 0
1) Ok I did unplug an replug my camera:
Code:
Dec 17 16:30:06 minepeon kernel: [ 1031.526430] usb 1-1.2.1.1: USB disconnect, device number 10
Dec 17 16:30:08 minepeon kernel: [ 1031.766471] usb 1-1.2.1.1: new high-speed USB device number 13 using dwc_otg
Dec 17 16:30:19 minepeon kernel: [ 1043.796537] usb 1-1.2.1.1: new high-speed USB device number 15 using dwc_otg
Dec 17 16:30:19 minepeon kernel: [ 1043.907231] usb 1-1.2.1.1: New USB device found, idVendor=1871, idProduct=0101
Dec 17 16:30:19 minepeon kernel: [ 1043.907266] usb 1-1.2.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 17 16:30:19 minepeon kernel: [ 1043.907285] usb 1-1.2.1.1: Product: USB2.0 Camera
Dec 17 16:30:19 minepeon kernel: [ 1043.907301] usb 1-1.2.1.1: Manufacturer: AVEO Technology Corp.
2) I'm not sure but check this out, it might help on your question
 
Old 12-17-2013, 06:22 PM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ok well that link looks like arch uses udev which is same for me.

2) let me show you what happens when I plug mine in ---snippet of /var/log/messages
Quote:
tail -n 14 messages
Dec 18 07:54:46 box kernel: usb 5-7: new high-speed USB device number 4 using ehci-pci
Dec 18 07:54:47 box kernel: usb 5-7: New USB device found, idVendor=046d, idProduct=0990
Dec 18 07:54:47 box kernel: usb 5-7: New USB device strings: Mfr=0, Product=0, SerialNumber=2
Dec 18 07:54:47 box kernel: usb 5-7: SerialNumber: 57061B1F
Dec 18 07:54:47 box mtp-probe: checking bus 5, device 4: "/sys/devices/pci0000:00/0000:00:1d.7/usb5/5-7"
Dec 18 07:54:47 box mtp-probe: bus: 5, device: 4 was not an MTP device
Dec 18 07:54:47 box kernel: media: Linux media interface: v0.10
Dec 18 07:54:47 box kernel: Linux video capture interface: v2.00
Dec 18 07:54:47 box kernel: uvcvideo: Found UVC 1.00 device <unnamed> (046d:0990)
Dec 18 07:54:47 box kernel: input: UVC Camera (046d:0990) as /devices/pci0000:00/0000:00:1d.7/usb5/5-7/5-7:1.0/input/input14
Dec 18 07:54:47 box kernel: usbcore: registered new interface driver uvcvideo
Dec 18 07:54:47 box kernel: USB Video Class driver (1.1.1)
Dec 18 07:54:47 box kernel: usb_audio: Warning! Unlikely big volume range (=3072), cval->res is probably wrong.
Dec 18 07:54:47 box kernel: usb_audio: [5] FU [Mic Capture Volume] ch = 1, val = 4608/7680/1<6>usbcore: registered new interface driver snd-usb-audio
2) now lets go back to your first post
Quote:
move my OS to a USB thumb drive
we know your usb is booting---which is excellent

3) but what other changes did you make?

can you post the output to your /etc/fstab and depending on your output vary the next command
--if you see UUID in fstab then command
Code:
ls -al /dev/disk/by-uuid
if labels change uuid to labels and you may also use the olde /dev/sdxn structure

4) I am sure you didn't, but did you change your kernel

5) but I am now thinking you probably did not update your initrd

don't do yet, as your fstab may be wrong but here is the command but you change yours

first find out the full name of your kernel

Code:
uname -r
next not sure if you use su or sudo?

Code:
su
update-initramfs -ck <kernel from uname -r>
now coders will tell you that you can use ` or $ have combine into one command but I want to see your output
 
Old 12-17-2013, 06:33 PM   #7
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
separate post for separate theme

I use a debian liquorix kernel and notice arch is also available

https://aur.archlinux.org/packages.php?ID=51332

it might be easier for you to install this kernel ---I don't use arch so hope in doing so you may need to ask for help in the arch forum or the liq forum
http://techpatterns.com/forums/forum-34.html

good luck
 
Old 12-19-2013, 03:35 PM   #8
bomberb17
Member
 
Registered: Jul 2005
Posts: 71

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
ok well that link looks like arch uses udev which is same for me.

2) let me show you what happens when I plug mine in ---snippet of /var/log/messages


2) now lets go back to your first post


we know your usb is booting---which is excellent

3) but what other changes did you make?

can you post the output to your /etc/fstab and depending on your output vary the next command
--if you see UUID in fstab then command
Code:
ls -al /dev/disk/by-uuid
if labels change uuid to labels and you may also use the olde /dev/sdxn structure

4) I am sure you didn't, but did you change your kernel

5) but I am now thinking you probably did not update your initrd

don't do yet, as your fstab may be wrong but here is the command but you change yours

first find out the full name of your kernel

Code:
uname -r
next not sure if you use su or sudo?

Code:
su
update-initramfs -ck <kernel from uname -r>
now coders will tell you that you can use ` or $ have combine into one command but I want to see your output

3) /etc/fstab:
Code:
#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
/dev/mmcblk0p1  /boot           vfat    defaults        0       0
ls -al /dev/disk/by-uuid:
Code:
drwxr-xr-x 2 root root 120 Jan  1  1970 .
drwxr-xr-x 5 root root 100 Jan  1  1970 ..
lrwxrwxrwx 1 root root  15 Jan  1  1970 9CA5-384C -> ../../mmcblk0p1
lrwxrwxrwx 1 root root  10 Jan  1  1970 A697-C157 -> ../../sda1
lrwxrwxrwx 1 root root  15 Jan  1  1970 e06c801a-90c3-474c-8484-8ac426b4f92b -> ../../mmcblk0p5
lrwxrwxrwx 1 root root  10 Jan  1  1970 f9e11351-e87a-4df2-a9be-27f03d215329 -> ../../sda2
4) No I didn't change the kernel (at least I didn't change it willingly, I don't know what could have happened in the background)
5)uname -r:
Code:
3.6.11-18-ARCH+
and sudo update-initramfs -ck 3.6.11-18-ARCH+ :
Code:
sudo: update-initramfs: command not found
Thanks for your help!
 
Old 12-19-2013, 04:57 PM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
just to repeat I don't have RPi

but is that fstab correct?

its only got one entrant and me thinks you should have 2?

http://elinux.org/ArchLinux_Install_Guide

Quote:
The image creates two partitions, which will be available as /dev/mmcblk0p1 and /dev/mmcblk0p2 when you boot up your Raspberry Pi. The first partition (100 MB) is mounted to /boot, and the second (1.7 GB by default) is mounted to the root directory /. Leave the first partition as it is, and expand the second to as large as you desire within the space available on your card. You may also consider creating a third or even fourth partition for /home and/or swap if desired. Neither is necessary, and the two partitions alone are all that are necessary.
maybe if you have only recently installed, you could consider following a different setup guide?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/video0 is gone darvish Linux - Hardware 3 03-23-2013 04:30 AM
[SOLVED] V4L - 2 capture cards result in fuzzy /dev/video0 and /dev/video1 output d_t_baker Linux - Software 1 10-03-2010 06:50 PM
webcam not found under /dev/video or /dev/video0/.. superevilspacemonkey Linux - Hardware 1 11-14-2008 03:56 PM
/dev/video0 Tuttle Slackware 10 07-23-2003 03:39 AM
Two Video Devices - /dev/video0 & /dev/video1 liguorir Linux - Software 1 07-21-2003 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration