1

Temat: kamerka na openwrt

z cyklu "kolejny watek www2":

tak jak pisalem, mam kamerke na usb zgodna z sterownikiem spca5xx

http://eko.one.pl/?p=openwrt-webcam


sciagnale pakiet z tej strony - kmod-video-core


wget http://eko.one.pl/openwrt/kamikaze/8.09_rc1/spca5xx.o -P /lib/modules/2.4.35.4

to wywalalo bledy, wiec sciagnalem do tmp i przekopiowalem do /lib/modules/2.6.32.8# i  /lib/modules/2.6.32.9#

potem:
    insmod videodev
    insmod spca5xx

no i nic


root@OpenWrt:~# lsmod
Module                  Size  Used by    Not tainted
fuse                   46256  0
usb_storage            31920  1
nf_nat_tftp              432  0
nf_conntrack_tftp       2400  1 nf_nat_tftp
nf_nat_irc               816  0
nf_conntrack_irc        2512  1 nf_nat_irc
nf_nat_ftp              1328  0
nf_conntrack_ftp        4704  1 nf_nat_ftp
ipt_MASQUERADE           992  2
iptable_nat             2256  1
nf_nat                 10160  5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_NOTRACK               544  0
iptable_raw              656  1
xt_state                 768  3
nf_conntrack_ipv4       7408  6 iptable_nat,nf_nat
nf_defrag_ipv4           624  1 nf_conntrack_ipv4
nf_conntrack           37776 12 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_NOTRACK,xt_state,nf_conntrack_ipv4
ehci_hcd               31120  0
sd_mod                 21600  2
pppoe                   8304  0
pppox                   1216  1 pppoe
ipt_REJECT              1680  2
xt_TCPMSS               1856  2
ipt_LOG                 4176  0
xt_multiport            1792  0
xt_mac                   576  0
xt_limit                1008  1
iptable_mangle           992  0
iptable_filter           768  1
ip_tables               8480  4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp               1760  5
x_tables                9296 12 ipt_MASQUERADE,iptable_nat,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ext2                   42256  0
ext3                   91296  0
jbd                    31376  1 ext3
ppp_async               6400  0
ppp_generic            18848  3 pppoe,pppox,ppp_async
slhc                    4176  1 ppp_generic
vfat                    7696  1
fat                    42256  1 vfat
ath9k                  85920  0
ath9k_common            1920  1 ath9k
ath9k_hw              214560  2 ath9k,ath9k_common
ath                      880  3 ath9k,ath9k_common,ath9k_hw
nls_utf8                 816  0
nls_iso8859_1           2832  1
nls_cp437               4368  1
usbcore                97424  3 usb_storage,ehci_hcd
scsi_mod               68160  2 usb_storage,sd_mod
nls_base                4800  6 vfat,fat,nls_utf8,nls_iso8859_1,nls_cp437,usbcore
mac80211              184288  2 ath9k,ath9k_common
cfg80211              115488  3 ath9k,ath9k_common,mac80211
compat_firmware_class     5168  0
compat                   432  0
mbcache                 3920  0
crc_ccitt                976  1 ppp_async
arc4                     816  2
aes_generic            30256  0
deflate                 1360  0
ecb                     1328  2
cbc                     2016  0
leds_gpio               1456  0
button_hotplug          2560  0
gpio_buttons            1968  0
input_polldev           1360  1 gpio_buttons
input_core             16896  4 button_hotplug,gpio_buttons,input_polldev
root@OpenWrt:~#
root@OpenWrt:~# dmesg
Linux version 2.6.32.8 (cezary@eko.one.pl) (gcc version 4.3.3 (GCC) ) #5 Thu Feb 25 18:20:46 CET 2010
prom: fw_arg0=00000007, fw_arg1=a1f77fb0, fw_arg2=a1f78440, fw_arg3=00000008
MyLoader: sysp=00002000, boardp=01000000, parts=88000010
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 2, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802bb110, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=TL-WR1043ND
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29420k/32768k available (2026k kernel code, 3348k reserved, 388k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is TP-LINK TL-WR1043ND
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  Š 2001-2006 Red Hat, Inc.
yaffs Feb 24 2010 18:40:56 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: m25p64 (8192 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000160000 : "kernel"
0x000000160000-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=4D0000, len=320000
0x0000004d0000-0x0000007f0000 : "rootfs_data"
0x0000007f0000-0x000000800000 : "art"
0x000000020000-0x0000007f0000 : "firmware"
Realtek RTL8366RB ethernet switch driver version 0.2.0
rtl8366rb rtl8366rb: using GPIO pins 18 (SDA) and 19 (SCK)
rtl8366rb rtl8366rb: RTL5937 ver. 3 chip found
rtl8366-rtl: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
gpio-buttons driver version 0.1.2
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
ar71xx: pll_reg 0xb8050014: 0x1a000000
eth0: link up (1000Mbps/Full duplex)
Registered led device: tl-wr1043nd:green:usb
Registered led device: tl-wr1043nd:green:system
Registered led device: tl-wr1043nd:green:qss
Registered led device: tl-wr1043nd:green:wlan
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
eth0: link down
ar71xx: pll_reg 0xb8050014: 0x1a000000
eth0: link up (1000Mbps/Full duplex)
device eth0.1 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.1) entering forwarding state
Generic kernel compatibility enabled based on linux-next next-20100113
cfg80211: Calling CRDA to update world regulatory domain
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
usbcore: registered new device driver usb
phy0: Selected rate control algorithm 'ath9k_rate_control'
phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a2 mem=0xb80c0000, irq=2
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
nf_conntrack version 0.5.0 (462 buckets, 1848 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
usb 1-1: new high speed USB device using ar71xx-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1.4: new high speed USB device using ar71xx-ehci and address 3
fuse init (API version 7.13)
usb 1-1.4: configuration #1 chosen from 1 choice
hub 1-1.4:1.0: USB hub found
hub 1-1.4:1.0: 4 ports detected
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
ar71xx-wdt: enabling watchdog timer
usb 1-1.3: new high speed USB device using ar71xx-ehci and address 4
usb 1-1.3: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
usb 1-1.1: new full speed USB device using ar71xx-ehci and address 5
usb 1-1.1: configuration #1 chosen from 1 choice
scsi 0:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 0 CCS
usb-storage: device scan complete
sd 0:0:0:0: [sda] 15646720 512-byte logical blocks: (8.01 GB/7.46 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
usb 1-1.1: USB disconnect, address 5
usb 1-1.1: new full speed USB device using ar71xx-ehci and address 6
usb 1-1.1: configuration #1 chosen from 1 choice
usb 1-1.1: USB disconnect, address 6
usb 1-1.1: new full speed USB device using ar71xx-ehci and address 7
usb 1-1.1: configuration #1 chosen from 1 choice
root@OpenWrt:~#

jak cos innego pokazac to prosze o komendy wink

Wszystkie posty dotycza: TP-LINK TL-WR1043ND

Za pomoc Cezarego w poscie powyzej i ponizej dziekuje z gory :-)

2

Odp: kamerka na openwrt

Nie wiem czy zauważyłeś, ale ten driver jest od wersji 2.4 i to bardzo starej na dodatek. A spca5xx (a właściwie gspcav1) jest od dawna w jądrze 2.6 i po prostu instalujesz odpowiedni pakiet.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: kamerka na openwrt

No nie widzialem ;-)

Czyli co teraz musze zrobic?

bo nie mam urzadzenia ls -al /dev/v4l/* hmm

Wszystkie posty dotycza: TP-LINK TL-WR1043ND

Za pomoc Cezarego w poscie powyzej i ponizej dziekuje z gory :-)

4

Odp: kamerka na openwrt

Czyli musisz zainstalować kmod-video-core, kmod-video-gspca oraz jeden z driverów kmod-video-gspaca-* (lub wszystkie jeżeli nie wiesz który)

PS. Dziś rano właśnie zaktualizowałem repo, więc możesz się natknąć na problemy z kompatybilnością wersji.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: kamerka na openwrt

root@OpenWrt:/tmp/nas/sda1#
root@OpenWrt:/tmp/nas/sda1# opkg update
Downloading http://eko.one.pl/openwrt/kamikaze/trunk/tl-wr1043nd/packages/Packages.gz.
Inflating http://eko.one.pl/openwrt/kamikaze/trunk/tl-wr1043nd/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/obsy.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Inflating http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/snapshots.
root@OpenWrt:/tmp/nas/sda1# opkg install http://eko.one.pl/openwrt/kamikaze/trunk/tl-wr1043nd/packages/kmod-video-core_2.6.32.9-1_ar71xx.ipk
Downloading http://eko.one.pl/openwrt/kamikaze/trunk/tl-wr1043nd/packages/kmod-video-core_2.6.32.9-1_ar71xx.ipk.
Multiple packages (kmod-video-core and kmod-video-core) providing same name marked HOLD or PREFER. Using latest.
Installing kmod-video-core (2.6.32.9-1) to root...
Collected errors:
 * opkg_install_pkg: Package kmod-video-core md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
 * opkg_install_cmd: Cannot install package kmod-video-core.
root@OpenWrt:/tmp/nas/sda1# opkg update
Downloading http://eko.one.pl/openwrt/kamikaze/trunk/tl-wr1043nd/packages/Packages.gz.
Inflating http://eko.one.pl/openwrt/kamikaze/trunk/tl-wr1043nd/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/obsy.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Inflating http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/snapshots.
root@OpenWrt:/tmp/nas/sda1# opkg install http://eko.one.pl/openwrt/kamikaze/trunk/tl-wr1043nd/packages/kmod-video-core_2.6.32.9-1_ar71xx.ipk
Downloading http://eko.one.pl/openwrt/kamikaze/trunk/tl-wr1043nd/packages/kmod-video-core_2.6.32.9-1_ar71xx.ipk.
Multiple packages (kmod-video-core and kmod-video-core) providing same name marked HOLD or PREFER. Using latest.
Installing kmod-video-core (2.6.32.9-1) to root...
Collected errors:
 * opkg_install_pkg: Package kmod-video-core md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
 * opkg_install_cmd: Cannot install package kmod-video-core.
root@OpenWrt:/tmp/nas/sda1#

hmm... :]

Wszystkie posty dotycza: TP-LINK TL-WR1043ND

Za pomoc Cezarego w poscie powyzej i ponizej dziekuje z gory :-)

6

Odp: kamerka na openwrt

To samo - instalujesz pakiet który jest u mnie i który jest w oficjalnym repo. Mają te same numery ale inne sumy kontrolne i to sie buntuje. Na czas instalacji modułów musisz wyłączyć oficjalne repo.

I druga uwaga: używałeś jądra 2.6.32.8, a teraz jest 2.6.32.9. Moduły z tego drugiego nie będą działać na tym pierwszym. O czym pisałem wcześniej.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: kamerka na openwrt

Ojej... faktycznie jest nowy obraz i nowe pakiety

czyli http://eko.one.pl/openwrt/kamikaze/trun … pgrade.bin to wgrac i bedzie lepiej? ;-)

w nowym obrazie jest automontowanie napedow zewnetrznych tj. wczesniej? wink

Wszystkie posty dotycza: TP-LINK TL-WR1043ND

Za pomoc Cezarego w poscie powyzej i ponizej dziekuje z gory :-)

8

Odp: kamerka na openwrt

W nowym obrazie automontowanie jest, ale można teraz poszczególne punkty montowania przez /etc/config/fstab definiować.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: kamerka na openwrt

poinstalowalem wszystkie sterowniki i w koncu smile


root@OpenWrt:/etc/config# ls /dev/video0
/dev/video0
root@OpenWrt:/etc/config# opkg install http://eko.one.pl/openwrt/kamikaze/8.09_r
c1/mjpg-streamer_r68-1cj_mipsel.ipk
Downloading http://eko.one.pl/openwrt/kamikaze/8.09 … ipsel.ipk.
Collected errors:
* pkg_hash_fetch_best_installation_candidate: Packages for mjpg-streamer found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package mjpg-streamer.

tylko teraz poratuj ktory mjpg-streamer wrzucic i... no wlasnie co dalej z podgladem :-)

Wszystkie posty dotycza: TP-LINK TL-WR1043ND

Za pomoc Cezarego w poscie powyzej i ponizej dziekuje z gory :-)

10

Odp: kamerka na openwrt

Eh, zauważ że ten mjpeg-streamer był na inną architekture kompilowany. Normanie przez opkg install zainstaluj. O ile ta twoja kamera jest kompatybilna to powinno działać.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: kamerka na openwrt

zauwazylem, dlatego wkleilem wink

root@OpenWrt:~# opkg install mjpeg-streamer
Collected errors:
* opkg_install_cmd: Cannot install package mjpeg-streamer.
root@OpenWrt:~#

skad go sciagnac? i to wszystko wystarczy? bedzie po http czy jakos inaczej podglad? :>

Wszystkie posty dotycza: TP-LINK TL-WR1043ND

Za pomoc Cezarego w poscie powyzej i ponizej dziekuje z gory :-)

12

Odp: kamerka na openwrt

opkg install mjpg-streamer

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13 (edytowany przez www2 2010-03-15 12:06:48)

Odp: kamerka na openwrt

root@OpenWrt:/etc/init.d#     /etc/init.d/webcam enable
root@OpenWrt:/etc/init.d#     /etc/init.d/webcam start
ln: /dev/video0: File exists
root@OpenWrt:/etc/init.d#     /etc/init.d/webcam start
ln: /dev/video0: File exists
root@OpenWrt:/etc/init.d#



poza tym na porcie 8080 mam nas, wiec nie wiem czy to nie bedzie kolidowac

Wszystkie posty dotycza: TP-LINK TL-WR1043ND

Za pomoc Cezarego w poscie powyzej i ponizej dziekuje z gory :-)

14

Odp: kamerka na openwrt

Pewnie że będzie. Nie może chodzić na 8080.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

15

Odp: kamerka na openwrt

zmienilem port na 81 w mjpeg-streamer w /etc/config

i po wlaczeniu


root@OpenWrt:~# /etc/init.d/webcam restart
ln: /dev/video0: File exists
root@OpenWrt:~# /etc/init.d/webcam stop
root@OpenWrt:~# /etc/init.d/webcam start
ln: /dev/video0: File exists
root@OpenWrt:~#
root@OpenWrt:~# mjpg_streamer
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: MJPEG
 format asked unavailable get width 352 height 288
Unable to allocate buffers: Device or resource busy
 Init v4L2 failed !! exit fatal
 i: init_VideoIn failed
root@OpenWrt:~# mjpg_streamer
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: MJPEG
 format asked unavailable get width 352 height 288
 o: www-folder-path...: disabled
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled
bind: Address already in use
 o: server_thread(): bind(8080) failedroot@OpenWrt:~#

skad on bierze to 8080?

Wszystkie posty dotycza: TP-LINK TL-WR1043ND

Za pomoc Cezarego w poscie powyzej i ponizej dziekuje z gory :-)

16

Odp: kamerka na openwrt

Jak odpalasz z palca to de facto tak jak by bez konfiguracji.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

17 (edytowany przez www2 2010-03-15 19:45:22)

Odp: kamerka na openwrt

Ok,

root@OpenWrt:~# /etc/init.d/mjpg-streamer
Syntax: /etc/init.d/mjpg-streamer [command]

Available commands:
        start   Start the service
        stop    Stop the service
        restart Restart the service
        reload  Reload configuration files (or restart if that fails)
        enable  Enable service autostart
        disable Disable service autostart

root@OpenWrt:~# /etc/init.d/mjpg-streamer start
root@OpenWrt:~# MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: MJPEG
 format asked unavailable get width 352 height 288
 o: www-folder-path...: disabled
 o: HTTP TCP port.....: 81
 o: username:password.: disabled
 o: commands..........: enabled


config mjpg-streamer core
        option device           "/dev/video0"
        option resolution       "640x480"
        option fps              "5"
        option port             "81"
        option enabled          "true"
root@OpenWrt:~#

pod adresem :81 jest:

501: Not Implemented!
no www-folder configured
root@OpenWrt:~# /etc/init.d/webcam start
ln: /dev/video0: File exists

root@OpenWrt:~# /etc/init.d/mjpg-streamer
Syntax: /etc/init.d/mjpg-streamer [command]

Available commands:
        start   Start the service
        stop    Stop the service
        restart Restart the service
        reload  Reload configuration files (or restart if that fails)
        enable  Enable service autostart
        disable Disable service autostart

root@OpenWrt:~# /etc/init.d/mjpg-streamer start
root@OpenWrt:~# MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: MJPEG
 format asked unavailable get width 352 height 288
 o: www-folder-path...: disabled
 o: HTTP TCP port.....: 81
 o: username:password.: disabled
 o: commands..........: enabled

jak to mam uruchamiac? i gdzie ewentualnie to zmieniac? hmm

Wszystkie posty dotycza: TP-LINK TL-WR1043ND

Za pomoc Cezarego w poscie powyzej i ponizej dziekuje z gory :-)

18

Odp: kamerka na openwrt

Tam jeszcze pliki są potrzebne żeby to przez www działało. W mojej starej wersji były, teraz nawet nie wiem czy jest to dołączone do paczki.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

19

Odp: kamerka na openwrt

juz dziala wink wystarczylo ?action=stream i odpowiednia ilosc fps

dzieki za pomoc smile

Wszystkie posty dotycza: TP-LINK TL-WR1043ND

Za pomoc Cezarego w poscie powyzej i ponizej dziekuje z gory :-)