It was a little challenge as there was no package available in the default package lists, also wviewmgmt (the web management interface) is not included in the openwrt packages compiled.
The router is a Lenova Newifi Y1 which has 16mb of flash on ebay for $50aud ! so after openwrt installation i had about 12 free, and now after installing wview / wviewmgmt and its dependencies (including php5) all on flash, (no usb storage for now but my set it up later) there is 3.6mb free.
https://wiki.openwrt.org/toh/lenovo/lenovo_y1_v1
I looked into and started the process of cross compiling wview under debian, but then worked out i could install a package from 14,07 and it worked.
So I installed with opkg this: (opkg install "package.ipk")
http://ftp.stw-bonn.de/pub/openwrt/barrier_breaker/14.07/ramips/mt7620a/packages/oldpackages/wview_5.19.0-jgoerzen-7bfac6c11e756290c38e7b5862a4c51b6bc6c51e-r2_ramips_24kec.ipk
http://ftp.stw-bonn.de/pub/openwrt/barrier_breaker/14.07/ramips/mt7620a/packages/oldpackages/radlib_2.12.0-1_ramips_24kec.ipk
opkg should install all needed dependencies
theres a nice little guide here that helped me too:
https://wiki.openwrt.org/doc/howto/wview
by default the wview package comes with some symlinks to usb for the img and database storage locations, you can keep them and mount a usb as described in that guide , or do it all on board like me. (though not sure how big the db will grow over time...)
This little command helped me see why dev node my usb device was on when i plugged it in or out:
dmesg | grep tty
I intially did config via the wviewconfig command and later got the web admin panel working, but you could just jump straight into the later.
To get the web admin panel working first you need the files from wview source of the same version as we installed:
https://downloads.openwrt.org/sources/wview-5.19.0-jgoerzen-7bfac6c11e756290c38e7b5862a4c51b6bc6c51e.tar.gz
Open it up and get the wviewmgmt folder and upload it to /www, then rename functions.php.sh file inside it to functions.php, then add this code to the top of it:
<?php
function GetConfigPrefix(){
return "/etc";
}
function GetDataPrefix(){
return "/var";
}
function GetBinaryPrefix(){
return "/usr";
}
now you also need these packages: php5 php5-cgi php5-mod-pdo php5-mod-pdo-sqlite zoneinfo-core
then to enable php in the default web server (uhttpd) add this line to /etc/config/uhttpd: (as the last 'list' directive)
list interpreter ".php=/usr/bin/php-cgi"
https://wiki.openwrt.org/doc/howto/php
https://wiki.openwrt.org/doc/uci/uhttpd#using_php5
you should be able to now view
http://192.168.1.1/wviewmgmt/system_status.php
the default password is wview , if you have trouble with that (mine was corrupt) you can disable the password check in the password_protect.php file change:
if ($dbpasswd != $md5pass)
to
if (0)
then you can login, use the web panel to change the password, then if wanted undo the change in password_protect.php to make it check again.
Another handy command in openwrt to see whats going on with wview when it starts up is (have this open in a second ssh window)
logread -f
See how you go or have gone, maybe i missed something or you have some different troubles, see if we can work it out.