#!/bin/sh # DCS-2130 firmware build instrauctions V1.0 # http://www.hardwarefetish.com # Install some prereqs. to build firmware apt-get install tar gzip gcc wget liblzo2-dev bison flex mtd-utils # Prepare work environment mkdir ~/fwmod cd ~/fwmod # Fetch DCS-230 GPL firmware kindly provided by http://mart-e.be/post/dlink-viole-la-gpl # as D-Link download site is slow and download gets interrupted all the time # without the chance to resume the download... echo Fetching DCS-2130 GPL firmware... wget ftp://dotzero.me/DLink/DCS-2130_A1_FW_v1.00_GPL.tar.gz tar -xzvf DCS-2130_A1_FW_v1.00_GPL.tar.gz # Now follow the installation instructions from readme.txt to install the devkit: cd /opt tar -xzvf ~/fwmod/DCS-2130/mv_pro_5.0.tar.gz cd ~ mkdir gpl cd gpl tar -xzvf ~/fwmod/DCS-2130/DCS-2130_FW_v1.00_GPL.tar.gz cd ~/fwmod # mtdutils has some problems finding acl.h, therefore add -DWITHOUT_XATTR # to the CPPFLAGS im Makefile # Additionally there is a problem that the contents of the directory which # contain all the webserver stuff isn't copied recursively, so # add -r to cp in section www.7315 of ~/gpl/DCS-2130/apps/fs/Makefile wget http://dose.0wnz.at/ipcams/dcs2130.patch patch -N -p0