H218N 刷 Tomato后 挂接301摄像头的教程
1:下载 extras-mips2.tar.gz (驱动包)
2:启用JFFS 并上传相应的文件到jffs
3:挂接opt
umount /opt
mount --bind /jffs/opt /opt
mount -o bind /jffs/opt /opt
4:安装301驱动
insmod /jffs/301/v4l2-common.ko
insmod /jffs/301/v4l2-int-device.ko
insmod /jffs/301/videodev.ko
insmod /jffs/301/gspca_main.ko
insmod /jffs/301/gspca_zc3xx.ko
5:安装 optware
cd /opt
wget http://bbs.dualwan.cn/downloads/optware-install.sh -O - | tr -d '\r' > optware-install.sh
sh optware-install.sh
/opt/bin/ipkg update
6;安装MJPG-streamer
ipkg install http://tomato.groov.pl/repo/mjpg-streamer_r138-6_mipsel.ipk
有可能需要装libjpeg,不是很确定,我装了。
ipkg install libjpeg
7:运行之MJPG-streamer
export LD_LIBRARY_PATH=/opt/lib/mjpg-streamer/
mjpg_streamer -i "input_uvc.so -r 640x480 -f 10 -l off " -o "output_http.so -p 8080 -c jinesc:778899 -w /opt/share/mjpg-streamer/www"
成功安装
发表评论