Openwrt NSLU2 (Slug) with HD webcam
- some random notes for my own backup
In order to automatically start the init script on boot, it must be installed into /etc/rc.d/ |
Openwrt toolchain notes to compile C code - Backfire failed with |
for MJPG-Streamer etc in /etc/done |
root@OpenWrt:~# df -h root@OpenWrt:~# free |
/etc/init.d/done START=95 # set leds to normal state |
upslug2 --image="/home/graham/openwrt_2011/openwrt-nslu2-squashfs.bin" set mac to 192.168.1.190 open web page 192.168.1.1 configure network interfaces LAN add gateway and additional field DNS server system-software update vsftpd opkg list_installed /etc/init.d/vsftpd enable /etc/init.d/vsftpd start ps to check opkg update opkg install mjpg-streamer see /webcam_www present opkg install kmod-video-core kmod-video-uvc kmod-usb-core kmod-usb2 |
root@OpenWrt:~# opkg list_installed Slug 50 Original JohnArthur slug |
Slug 51 Slug 50 Original JohnArthur slug root@Slug_50:/# lsmod |
Python Notes import subprocess /* https://dev.openwrt.org/wiki/GetSource bBeeCam notes byte_as_integer = int(PCF8574_byte_input) PCF8574_byte_input = os.popen('PCF8574_addr_read_slug_no_clear 39').read() =========================================================== % print "7/3 - print the remainder after a division - mod " , (7 % 3) Number Type Conversion: Python converts numbers internally in an expression containing mixed types to a common type for evaluation. ----------------------------------------------------- len lists #!/usr/bin/python This produces following result: Start : Tue Feb 17 10:19:18 2009 print "Good bye!" def hiThere(a, b): hiThere("Fred", "Jim") prints Hello Fred |