Diskussion:Asus WL-HDD2.5

Aus Freifunk Leipzig
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

nvram check

irgendwann mal probiert:

root@12-14:~# nvram set wan_ifname=none
root@12-14:~# nvram set lan_ifname=eth1
root@12-14:~# nvram set lan_ifnames=eth1
root@12-14:~# nvram commit
nvram_commit(): start
nvram_commit(): end
root@12-14:~#

Openwrt als Ausgangspunkt

Dies war unser erster Versuch, direkt mit der openwrt-Firmware Mittlerweile ist klar, daß man den Asus direkt mit einer Freifunkfirmware (.trx) flashen kann. Auch die IPvergabe für Leipzig funktioniert. Anschließend besorgt man sich fehlende ipkgs und module bei den bekannten Quellen via ssh (usb und ide support).

Protokoll unseres ersten Versuches via OpenWRT:

Den Asus mit OpenWRT flashen und die Interfaces einrichten. Olsrd und weitere ipkgs installieren (ide unterstützung). Vorsicht mit den Netzwerk-Interfaces! keine gewähr! Nightly!

Entsprechende Werte der Netzwerk Interfaces für das WL-HDD Gerät sind in

/etc/init.d/S05nvram

(OpenWRT_FW - Zeile 102) zu finden und müssen justiert werden (Bridge rausnehmen):

lan_ifnames="eth1"
wifi_ifname="eth2"  ?

zu OpenWRT müssen zu IDE-Unterstützung folgende Pakete hinzu installiert werden:

kmod-ide
kmod-ext2
kmod-ext3
kmod-vfat
ip
wl

und in /etc/init.d/modules folgendes ergänzen:

et
ide-core
pdc202xx_old
ide-detect
ide-disk
jbd
ext2
ext3
wl

danach kopieren wir von einem eingerichteten Freifunk-Node (1.0.7) folgende Verzeichnisse auf den Asus:

/etc/init.d/
/www
/user/sbin/olsr*
/user/lib/olsr*

in /etc/init.d/S53olsrd müssen geändert werden:

zeile 10 WIFIDEV="eth2"
zeile 13ff incl. test -n löschen
zeile ?? mit "netparam" löschen bzw #

camsrv

root@12-15:~# /opt/bin/camsrv -h
camsrv v0.3.4
(c)2002 Matthew Painter

Usage: camsrv [options]

Example: camsrv -r VGA -d 100 -v --device /dev/video1
Example: camsrv -w 320 -h 240 -s --file cam.ppm
Example: camsrv --delay 10-2 --script upload.pl --file cam.jpg

General options:
-v --verbose              display verbose information (for debugging)
-V --version              display version and exit
-W --width NUM            width of captured image
-H --height NUM           height of captured image
-r --resmode MODE         use standard resolution (see below)
-f --file FILENAME        save PPM/JPG image of first frame captured and exit
-q --jpegquality NUM      JPEG image quality percentage (value between 0 and 100,
                          defaults to 75)
-p --script FILENAME      run FILENAME after each image is captured
-P --port PORT            port to run the camsrv server on
-d --delay NUM-NUM | NUM  delay (in seconds) between frames are captured
-e --capturedelay NUM     portion of delay where camera is enabled (for image stabilisation)
-l --loop                 loop still image capture. Enabled if streaming is
                          also enabled
-L --log FILENAME         log verbose output messages to FILENAME
-D --device PATH          path to video device to use (defaults to /dev/video0)
-S --stream               streams to java client. This is enabled by default
                          if --file is not used
-h --help                 display help

Philips specific options:
-F --framerate NUM    framerate of camera (integer between 4 to 30)
-c --compression NUM  camera compression (0..3)
-s --shutter NUM      shutter speed (0..65535) default: automatic
-g --agc NUM          automatic gain control override (0..65535)

Default resolution modes:

Mode            Resolution
sQCIF           128x96
QSIF            160x120
QCIF            176x144
SIF             320x240
CIF             352x288
VGA             640x480

mvc

root@12-15:~# /opt/bin/mvc -h
mvc version 0.8.9 - motion detection video capture program

Usage: mvc <options>

 -B picture brightness value.
 -C picture contrast value.
 -D run in daemon mode.
 -O Base directory for output images. default is current dir.
 -o Don't create sub-directories for output.
 -t Print timestamp on image.
 -d <device> video device (default:/dev/video0).
 -e <program> excute a external program while motion detected.
 -f {jpeg|png} set output file format. default is jpeg.
 -q <quality>               jpeg quality setting.
 -h print this help.
 -i <channel> which input channel to use, default is 1, or 0 if only 1 input.
 -m use mono color (grayscale) for capture.
 -n {pal|ntsc|secam|auto}    video norm to use, default: PAL
 -s XxY size of the output image, example: -s 640x480
 -a HxV block division number in Horizantal and Vertical. Ex: -a 16x8
 -b <diff_block_limit>      threshold of hot block number.
 -c <diff_color_limit>      threshold of block color difference.
 -w delay time for each capture(seconds), example: -w 0.5
 -l logfile used in daemon mode. default is null.
 -v increase verbose level for more details, can multiple applied.

cam-varianten:

/opt/bin/camsrv -r CIF -D /dev/v4l/video0 -d 1

/opt/bin/mvc -d /dev/v4l/video0 -w 2

root@12-15:/opt/smb/webcam2006# /opt/bin/mvc -d /dev/v4l/video0 -f jpg -w 2
MVC version 0.8.9

Press CTRL-Z to switch program to daemon mode.

Device NO RGB24 palette support, Using YUV420P instead.

Wrote: ./2006-04-02/18/img-18.44.32-0.jpg
Wrote: ./2006-04-02/18/img-18.44.35-0.jpg
Wrote: ./2006-04-02/18/img-18.44.38-0.jpg
Wrote: ./2006-04-02/18/img-18.44.51-0.jpg
Wrote: ./2006-04-02/18/img-18.44.55-0.jpg
Wrote: ./2006-04-02/18/img-18.45.04-0.jpg
Wrote: ./2006-04-02/18/img-18.45.07-0.jpg
Wrote: ./2006-04-02/18/img-18.45.20-0.jpg
Wrote: ./2006-04-02/18/img-18.45.23-0.jpg
Wrote: ./2006-04-02/18/img-18.45.41-0.jpg
Wrote: ./2006-04-02/18/img-18.45.50-0.jpg
Wrote: ./2006-04-02/18/img-18.45.52-0.jpg
Wrote: ./2006-04-02/18/img-18.45.55-0.jpg
Wrote: ./2006-04-02/18/img-18.45.57-0.jpg
Wrote: ./2006-04-02/18/img-18.46.28-0.jpg
Wrote: ./2006-04-02/18/img-18.46.31-0.jpg
Got SIGINT, Terminating programm...

camprogs

http://wl500g.info/showpost.php?p=8610&postcount=17

camsrv-livestream

camsrv -r CIF -d 100 -v --device=/dev/v4l/video0

Logitech Quickcam Messenger

Mar 28 18:57:32 (none) user.notice dhcpsplash: started.
Mar 28 18:58:14 (none) kern.info kernel: hub.c: new USB device 00:04.0-1, assigned address 3
Mar 28 18:58:14 (none) kern.info kernel: drivers/usb/spca5xx.c: USB SPCA5XX camera found. Logitech QC Messenger
Mar 28 18:58:14 (none) kern.info kernel: drivers/usb/spca5xx.c: [spca5xx_probe:5480] Camera type JPEG
Mar 28 18:58:15 (none) kern.info kernel: drivers/usb/zc3xx.h: [zc3xx_config:558] Find Sensor HV7131R(c)
Mar 28 18:58:15 (none) kern.info kernel: drivers/usb/spca5xx.c: [spca5xx_getcapability:1765] maxw 640 maxh 480 minw 176 minh 144