Commit ccf17abc authored by Feten Besbes's avatar Feten Besbes
Browse files

Add install document

parent 6fc252ed
sudo mkdir -p ~/icwmp_iop3
cd icwmp_iop3
-----------------------------------------------------------------------------
json-c
-----------------------------------------------------------------------------
git clone git://github.com/json-c/json-c.git
cd json-c/
Generate configuration files:
autoreconf -i
Configure:
./configure --prefix=/usr
Build:
make
Install:
sudo make install
sudo ln -sf /usr/include/json-c /usr/include/json
-----------------------------------------------------------------------------
libubox
-----------------------------------------------------------------------------
Get the sources:
git clone git://nbd.name/luci2/libubox.git
cd libubox/
Configure:
cmake CMakeLists.txt -DBUILD_LUA=OFF
Build:
make
Install:
sudo make install
sudo ln -sf /usr/local/lib/libubox.so /usr/lib/libubox.so
sudo mkdir -p /usr/share/libubox
sudo ln -sf /usr/local/share/libubox/jshn.sh /usr/share/libubox/jshn.sh
-----------------------------------------------------------------------------
uci
-----------------------------------------------------------------------------
Get the sources:
git clone git://nbd.name/uci.git
cd uci/
Configure:
cmake CMakeLists.txt -DBUILD_LUA=OFF
Build:
make
Install:
class="western"
sudo make install
sudo ln -sf /usr/local/bin/uci /sbin/uci
sudo ln -sf /usr/local/lib/libuci.so /usr/lib/libuci.so
-----------------------------------------------------------------------------
ubus
-----------------------------------------------------------------------------
Get the sources:
git clone git://nbd.name/luci2/ubus.git
cd ubus/
cmake CMakeLists.txt -DBUILD_LUA=OFF
make
sudo make install
sudo ln -sf /usr/local/sbin/ubusd /usr/sbin/ubusd
sudo ln -sf /usr/local/lib/libubus.so /usr/lib/libubus.so
-----------------------------------------------------------------------------
microxml
-----------------------------------------------------------------------------
git clone https://github.com/pivasoftware/microxml.git
cd microxml/
autoconf -i
./configure --prefix=/usr --enable-threads --enable-shared --enable-static
make
sudo make install
sudo ln -sf /usr/lib/libmicroxml.so.1.0 /lib/libmicroxml.so
sudo ln -sf /usr/lib/libmicroxml.so.1.0 /lib/libmicroxml.so.1
-----------------------------------------------------------------------------
+libubox :
-----------------------------------------------------------------------------
cd libubox
sudo ln -sf /usr/local/bin/jshn /usr/share/libubox/jshn
!! lready available under /usr/local/bin
-----------------------------------------------------------------------------
+jshn
-----------------------------------------------------------------------------
===> sudo ln -sf /usr/local/share/libubox/jshn.sh /usr/share/libubox/jshn.sh
-----------------------------------------------------------------------------
+libubus
-----------------------------------------------------------------------------
==> sudo ln -sf /usr/local/lib/libubus.so /usr/lib/libubus.so
-----------------------------------------------------------------------------
+libpthread
-----------------------------------------------------------------------------
dpkg -S libpthread
-----------------------------------------------------------------------------
+ubusd
-----------------------------------------------------------------------------
==> sudo ln -sf /usr/local/sbin/ubusd /usr/sbin/ubusd
-----------------------------------------------------------------------------
+shflags
-----------------------------------------------------------------------------
git clone https://github.com/kward/shflags.git
sudo mkdir -p /usr/share/shflags/
sudo cp shflags /usr/share/shflags/shflags.sh
-----------------------------------------------------------------------------
+getopt
-----------------------------------------------------------------------------
/usr/bin/getopt
dpkg -S getopt
-----------------------------------------------------------------------------
+zlib
-----------------------------------------------------------------------------
sudo apt-get install zlib1g-dbg zlib1g-dev zlibc zlib-gst
-----------------------------------------------------------------------------
+libexpat
-----------------------------------------------------------------------------
sudo apt-get install libexpat*
-----------------------------------------------------------------------------
+libstrophe
-----------------------------------------------------------------------------
sudo apt-get install libstrophe*
-----------------------------------------------------------------------------
+libtrace
-----------------------------------------------------------------------------
cp libpacket
-----------------------------------------------------------------------------
+ install libcurl-dev
-----------------------------------------------------------------------------
sudo apt-get install libcurl4-openssl-dev
-----------------------------------------------------------------------------
Install ICWMPD
-----------------------------------------------------------------------------
git clone git@dev.iopsys.eu:iopsys/icwmp.git
cd icwmp/src
sudo mkdir -p /usr/share/icwmp
sudo ln -sf ~/icwmp_iop3/icwmp/src/scripts/icwmp.sh /usr/sbin/icwmp
sudo cp -r scripts/functions/ /usr/share/icwmp/.
sudo chmod +x /usr/share/icwmp/functions/*
sudo cp -r scripts/defaults /usr/share/icwmp/.
sudo cp -r config /etc/
sudo mkdir -p /etc/icwmpd
sudo touch /etc/icwmpd/dmmap
./configure --enable-http=curl --enable-datamodel=tr098 --enable-debug
make clean && make
-----------------------------------------------------------------------------
RUN ICWMPD with valgrind
-----------------------------------------------------------------------------
==> you have to set these options in /etc/config/cwmp
option 'interface' 'eth0.1'
option 'default_wan_interface' 'wan'
sudo valgrind --leak-check=full ./bin/icwmpd -b
===> To get memory leak report you have to run in other terminal this cli:
sudo ubus call tr069 command '{"command":"exit"}'
==> If you back to previous terminal you will get the report.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment