Diskussion:Backfire

Aus Freifunk Leipzig
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Asus WL-HDD

LAN vom Laptop auf 192.168.1.2, Kabel anschliessen, Reset Taste druekcen, gedrueckt halten, Asus-Gerät einschalten, Reset Taste erst loslassen, wenn lampe rechts oben im sekundenabstand blinkt....

ping 192.168.1.1

sollte nun funktionieren

Mac:_freifunk-rsl ufo$ tftp
tftp> bin
tftp> c
(to) 192.168.1.1.
^C
tftp> o
?Invalid command
tftp> c
(to) 192.168.1.1 
tftp> bin
tftp> get ASUSSPACELINK\x01\x01\xa8\xc0 /dev/null
tftp> put 234-2b-openwrt-brcm47xx-squashfs.trx ASUSSPACELINK
Sent 2887680 bytes in 10.0 seconds
tftp> quit
Mac:_freifunk-rsl ufo$ 

probleme nach dem flashen, scheint endlos-reboot. firmware via Firmware-Builder OHNE WIFI funktioniert allerdings problemlos.

Firmware-Builder

http://www.wgaugsburg.de/

Stat im AP Modus

root@OpenWrt:~# iwinfo ath0 assoclist

quickcam pro 5000

opkg list | grep uvc

quickcam silver

so wie http://wiki.leipzig.freifunk.net/Asus_WL-500GP und http://wireless.subsignal.org/index.php?title=Webcam-Howto

opkg update
opkg  install kmod-usb-core kmod-usb-uhci kmod-usb2 libpthread
opkg install kmod-video-pwc
opkg install motion

config /etc/motion.conf

vi /etc/motion.conf

#motion.conf

daemon on
quiet on

# You may very well need to change this (check with 'dmesg'
# after plugging in your webcam)
videodevice /dev/video0

# Image size in pixels (valid range is camera dependent)
width 320
height 240

quality 70
framerate 2
auto_brightness off

# Initial brightness, contrast, hue (NTSC), and saturation
# 0 = disabled (valid range 0-255)
brightness 0
contrast 0
saturation 0
hue 0

# ploetzlichen Lichteinfall daempfen
lightswitch 30

# Target base directory for pictures and films
# You should probably change this (create dir beforehand)
target_dir /tmp
jpeg_filename SpcaPict

# Speicherpause um das Geraet zu schonen
minimum_gap 30

low_cpu 1

# Define a port number (e.g. 8000) to enable the mini-http server
# 0 = disabled
webcam_port 8000

# Set to 'off' to allow anybody (not just localhost) to view the
# webcam via the mini-http server (http://hostname:port)
webcam_localhost off

webcam_quality 40
webcam_maxrate 1

# User defined text overlayed on each in the lower left corner
text_left  "Dave TV"

webcam

auch eine variante, beim komplizilieren vom firmware-image folgende pakete mit zu installieren:

horst kmod-usb-core kmod-usb-uhci kmod-usb2 libpthread kmod-video-pwc motion fswebcam

falls /opt verzeichnis existiert, siehe usb-stick

 ln -s  /opt/cam.jpg /www/luci-static/resources/cam.jpg 

zum ausführen vom einem bild jede minute:

fswebcam -F 10 -S 10 -r 640x480 --jpeg 95 --save /opt/cam.jpg
cd /opt
mkdir `date +%Y-%m-%d`
cp cam.jpg `date +%Y-%m-%d`/sublab-verschwommen-`date +%Y-%m-%d--%H-%M`.png

in /etc/crontabs/root ergänzen:

* * * * *    /opt/webcam

und die startseite (via web) umstellen, hier ergänzen:

<img src="/luci-static/resources/cam.jpg" />

horst auf linksys

da horst.sh noch nicht richtig funktioniert: bei Linksys WRT54G mit 2.6er Kernel und wl-treiber:

wlc monitor 1
horst -i prism0

und danach noch

wlc monitor 0

luci_statistics

opkg install luci-app-statistics collectd-mod-exec collectd-mod-interface collectd-mod-load collectd-mod-ping

braucht ca. 550kbyte/s


config 'statistics' 'rrdtool'
        option 'default_timespan' '4hours'
        option 'image_width' '720'
        option 'image_path' '/tmp/rrdimg'

config 'statistics' 'collectd'
        option 'BaseDir' '/var/run/collectd'
        option 'Include' '/etc/collectd/conf.d'
        option 'PIDFile' '/var/run/collectd.pid'
        option 'PluginDir' '/usr/lib/collectd'
        option 'TypesDB' '/usr/share/collectd/types.db'
        option 'Interval' '20'
        option 'ReadThreads' '2'

...

                                    
config 'statistics' 'collectd_rrdtool'
        option 'enable' '1'                 
        option 'DataDir' '/tmp'     
        option 'RRARows' '720'          
        option 'RRASingle' '1'   
        option 'RRATimespans' '4hours 1day 1week 1month 1year'

usb-sound

opkg install kmod-usb-core kmod-usb-uhci kmod-usb2 libpthread madplay kmod-usb-audio alsa-utils     

internetstream spielen

wget -O - http://streams.bigvibez.com:7000/ | madplay -o /dev/audio1 - 

liste der derzeit installierten pakete..

alsa-lib - 1.0.23-1
alsa-utils - 1.0.23-1
avahi-daemon - 0.6.28-1
base-files - 43.12-r25544
busybox - 1.15.3-2
dnsmasq - 2.55-6
dropbear - 0.52-4
firewall - 2-21
freifunk-firewall - 2
freifunk-watchdog - 7
horst - 2.0-rc1-2
hotplug2 - 1.0-beta-2
ip - 2.6.29-1-2
iptables - 1.4.6-2
iptables-mod-conntrack - 1.4.6-2
iptables-mod-ipopt - 1.4.6-2
iptables-mod-nat - 1.4.6-2
iptables-mod-nat-extra - 1.4.6-2
kernel - 2.6.32.27-1
kmod-brcm-wl-mini - 2.6.32.27+5.10.56.27.3-1
kmod-diag - 2.6.32.27-7.1
kmod-input-core - 2.6.32.27-1
kmod-ipt-conntrack - 2.6.32.27-1
kmod-ipt-core - 2.6.32.27-1
kmod-ipt-ipopt - 2.6.32.27-1
kmod-ipt-nat - 2.6.32.27-1
kmod-ipt-nat-extra - 2.6.32.27-1
kmod-ipt-nathelper - 2.6.32.27-1
kmod-nls-base - 2.6.32.27-1
kmod-sched - 2.6.32.27-1
kmod-sound-core - 2.6.32.27-1
kmod-sound-soc-core - 2.6.32.27-1
kmod-switch - 2.6.32.27-3
kmod-tun - 2.6.32.27-1
kmod-usb-audio - 2.6.32.27-1
kmod-usb-core - 2.6.32.27-1
kmod-usb-uhci - 2.6.32.27-1
kmod-usb2 - 2.6.32.27-1
libavahi - 0.6.28-1
libc - 0.9.30.1-43.12
libdaemon - 0.14-2
libexpat - 2.0.1-1
libgcc - 4.3.3+cs-43.12
libgdbm - 1.8.3-1
libid3tag - 0.15.1b-3
libiptc - 1.4.6-2
libiwinfo - 13
liblua - 5.1.4-7
libmad - 0.15.1b-3
libncurses - 5.7-2
libnl-tiny - 0.1-1
libpthread - 0.9.30.1-43.12
librt - 0.9.30.1-43.12
libuci - 12012009.6-3
libuci-lua - 12012009.6-3
libusb-1.0 - 1.0.8-1
libxtables - 1.4.6-2
lua - 5.1.4-7
luci - 0.10+svn-1
luci-app-ffwizard - 0.10+svn-1
luci-app-firewall - 0.10+svn-1
luci-app-initmgr - 0.10+svn-1
luci-app-olsr - 0.10+svn-1
luci-app-olsr-services - 0.10+svn-1
luci-app-splash - 0.10+svn-1
luci-app-upnp - 0.10+svn-1
luci-i18n-english - 0.10+svn-1
luci-i18n-german - 0.10+svn-1
luci-lib-core - 0.10+svn-1
luci-lib-ipkg - 0.10+svn-1
luci-lib-json - 0.10+svn-1
luci-lib-lmo - 0.10+svn-1
luci-lib-nixio - 0.10+svn-1
luci-lib-sys - 0.10+svn-1
luci-lib-web - 0.10+svn-1
luci-mod-admin-core - 0.10+svn-1
luci-mod-admin-full - 0.10+svn-1
luci-mod-freifunk - 0.10+svn-1
luci-mod-freifunk-community - 0.10+svn-1
luci-sgi-cgi - 0.10+svn-1
luci-theme-base - 0.10+svn-1
luci-theme-freifunk-generic - 0.10+svn-1
luci-theme-openwrt - 0.10+svn-1
madplay - 0.15.2b-3
miniupnpd - 1.5-5
mtd - 13
nvram - 7
olsrd - 0.6.1-3
olsrd-mod-dyn-gw-plain - 0.6.1-3
olsrd-mod-nameservice - 0.6.1-3
olsrd-mod-txtinfo - 0.6.1-3
olsrd-mod-watchdog - 0.6.1-3
opkg - 576-1
tc - 2.6.29-1-2
uci - 12012009.6-3
udevtrigger - 106-1
uhttpd - 22
usbutils - 001-1
wireless-tools - 29-4
wlc - 5.10.56.27.3-1
zlib - 1.2.3-5