Slug Menu

Openwrt NSLU2 (Slug) with HD webcam - with Python CGI website - running on internal flash

This site introduced me to the Slug serving pictures from a Logitech Quickcam Pro HD USB webcam with M-JPEG streamer
That system has been running for years and never seems to crash (Many thanks!)
A Debian Slug doing the same job has crashed enough times to be a problem but runs almost anything on the external USB drive.

So how to add a web server with cgi scripting to the download from John Arthur?
Unfortunately that runs a version of Openwrt for which the ipkg applications are no longer supported.

This page records my efforts to update the firmware and add features.

Running Openwrt 8.09 following instruction and links from here

All firmware is running on the internal flash memory - but an external USB flash mounts automatically and can be used for data.
I decided to move from Blassic basic to Python - "python-mini" is installed (only 1MByte) and is working well.
At the shallow level of my Python knowledge Python is very easy to understand
- almost as easy as basic - see the files in /www/cgi-bin
Websites at (index) and (M-JPEG streamer)
ftp using vsftpd
ssh for external terminal
httpd for the website
nano (text editing "for the rest of us")

To take a backup of the firmware I did -

do in sequence
dd if=/dev/mtdblock0 > /mnt/usbdrive/nslu2c_image.bin
dd if=/dev/mtdblock1 >> /mnt/usbdrive/nslu2c_image.bin
dd if=/dev/mtdblock2 >> /mnt/usbdrive/nslu2c_image.bin
dd if=/dev/mtdblock3 >> /mnt/usbdrive/nslu2c_image.bin
dd if=/dev/mtdblock4 >> /mnt/usbdrive/nslu2c_image.bin
dd if=/dev/mtdblock6 >> /mnt/usbdrive/nslu2c_image.bin

That image is here
- load it with upslug2 as noted in the original site

I have an old document scanner that has the original stepping motor plus a motor and gearbox from a toy car.
This scans a Logitech Quickcam Pro HD USB webcam across the surface of a glass walled beehive.
The image holds a website that lets me click on images to scan the camera across the hive face.

My earlier notes are here

scanner1 scanner2


some backup notes - personal use

In VMWare fusion use Debian5 for upslug - Mint upslug can't see the Slug for some reason

Upgrade mode

plug power in

press main button

then immediately press reset with bent paperclip

count to 11

see red/orange flashing Ready/Status LED

remove paperclip

stop pressing main button