Zeile 71: |
Zeile 71: |
| USB Mass Storage support registered. | | USB Mass Storage support registered. |
| </pre> | | </pre> |
| + | |
| interessant ist für uns eigentlich nur "Gerät erkannt" | | interessant ist für uns eigentlich nur "Gerät erkannt" |
| + | |
| <pre> | | <pre> |
| Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 | | Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 |
Zeile 80: |
Zeile 82: |
| USB Mass Storage support registered. | | USB Mass Storage support registered. |
| </pre> | | </pre> |
| + | |
| na dann nur Mountpunkt anlegen und dann noch mounten (einhängen) | | na dann nur Mountpunkt anlegen und dann noch mounten (einhängen) |
| + | |
| <pre> | | <pre> |
| mkdir -p /mnt | | mkdir -p /mnt |
| mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt | | mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt |
| </pre> | | </pre> |
| + | |
| Eleganter ist es ein script zu erstellen um nicht jedesmal den mount-Befehl nach einem Neustart eingeben zu müssen. Dazu legt man in dem Startverzeichnis('''/etc/init.d''') eine Datei z.B. S95mount an | | Eleganter ist es ein script zu erstellen um nicht jedesmal den mount-Befehl nach einem Neustart eingeben zu müssen. Dazu legt man in dem Startverzeichnis('''/etc/init.d''') eine Datei z.B. S95mount an |
| + | |
| <pre> | | <pre> |
| cd /etc/init.d/ | | cd /etc/init.d/ |
Zeile 174: |
Zeile 180: |
| ipkg install kmod-videodev | | ipkg install kmod-videodev |
| </pre> | | </pre> |
| + | |
| + | danach Neustart.<br> |
| + | Die Module leider nicht beim Neustart selbstständig geladen. |
| + | Webcammodule laden mit |
| + | |
| + | <pre> |
| + | insmod videodev |
| + | insmod spca5xx oder insmod spca5xx_lite |
| + | </pre> |
| + | |
| + | mit dem Befehl: |
| + | |
| + | <pre> |
| + | lsmod |
| + | </pre> |
| + | |
| + | kannst du überprüfen welche module geladen sind. Jetzt noch überprüfen ob die Webcam erkannt wurde indem wir |
| + | |
| + | <pre> |
| + | dmesg |
| + | </pre> |
| + | |
| + | eigeben. Da sollte dann sowas stehen wie: |
| + | |
| + | <pre> |
| + | root@dave_yakumo:~# dmesg |
| + | Creating 5 MTD partitions on "Physically mapped flash": |
| + | 0x00000000-0x00040000 : "cfe" |
| + | 0x00040000-0x003f0000 : "linux" |
| + | 0x000b5fec-0x00180000 : "rootfs" |
| + | mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only |
| + | 0x003f0000-0x00400000 : "nvram" |
| + | 0x00180000-0x003f0000 : "OpenWrt" |
| + | diag boardtype: 0000041a |
| + | Probing device eth0: No Robo switch in managed mode found |
| + | Probing device eth1: No Robo switch in managed mode found |
| + | Probing device eth2: No such device |
| + | Probing device eth3: No such device |
| + | BFL_ENETADM not set in boardflags. Use force=1 to ignore. |
| + | eth2: Broadcom BCM4320 802.11 Wireless Controller 3.90.37.0 |
| + | usb.c: registered new driver usbdevfs |
| + | usb.c: registered new driver hub |
| + | usb-ohci.c: USB OHCI at membase 0xb8004000, IRQ 2 |
| + | usb-ohci.c: usb-00:04.0, PCI device 14e4:4715 |
| + | usb.c: new USB bus registered, assigned bus number 1 |
| + | hub.c: USB hub found |
| + | hub.c: 2 ports detected |
| + | SCSI subsystem driver Revision: 1.00 |
| + | Initializing USB Mass Storage driver... |
| + | usb.c: registered new driver usb-storage |
| + | USB Mass Storage support registered. |
| + | uhci.c: USB Universal Host Controller Interface driver v1.1 |
| + | Linux video capture interface: v1.00 |
| + | usb.c: registered new driver spca5xx |
| + | drivers/usb/spca5xx.c: spca5xx driver 00.57.07 registered |
| + | hub.c: new USB device 00:04.0-1, assigned address 2 |
| + | drivers/usb/spca5xx.c: USB SPCA5XX camera found. Qtec Webcam 100 Pac207-BCA |
| + | drivers/usb/spca5xx.c: [spca5xx_probe:8380] Camera type GBRG |
| + | drivers/usb/pac207.h: [pac207_config:148] Find Sensor PAC207 |
| + | drivers/usb/spca5xx.c: [spca5xx_getcapability:2207] maxw 352 maxh 288 minw 160 minh 120 |
| + | </pre> |
| + | |
| + | interessant ist für uns eigentlich nur "Gerät erkannt" |
| + | |
| + | <pre> |
| + | usb.c: registered new driver spca5xx |
| + | drivers/usb/spca5xx.c: spca5xx driver 00.57.07 registered |
| + | hub.c: new USB device 00:04.0-1, assigned address 2 |
| + | drivers/usb/spca5xx.c: USB SPCA5XX camera found. Qtec Webcam 100 Pac207-BCA |
| + | drivers/usb/spca5xx.c: [spca5xx_probe:8380] Camera type GBRG |
| + | drivers/usb/pac207.h: [pac207_config:148] Find Sensor PAC207 |
| + | drivers/usb/spca5xx.c: [spca5xx_getcapability:2207] maxw 352 maxh 288 minw 160 minh 120 |
| + | </pre> |
| + | |
| + | also Driver gefunden, Webcam erkannt. |
| + | Nun noch eine Datei anlegen für die webcam. |
| | | |
| webcam.html anlegen | | webcam.html anlegen |
Zeile 199: |
Zeile 281: |
| </pre> | | </pre> |
| | | |
| + | und noch einen Link zum Videodevice legen und spcacat starten. |
| + | |
| + | <pre> |
| + | ln -s /dev/v4l/video0 /dev/video0 |
| + | spcacat -d /dev/video0 -g -f jpg -p 10000 -o |
| + | </pre> |
| | | |
| * Projektseite: | | * Projektseite: |
| ** [http://mxhaard.free.fr/index.html http://mxhaard.free.fr/index.html] | | ** [http://mxhaard.free.fr/index.html http://mxhaard.free.fr/index.html] |