Zyxel NSA310 toolchain

Zyxel NSA310 toolchain & firmware sdk http://gpl.nas-central.org/ZYXEL/NSA310_GPL/FW4.40/ Zyxel NSA310 processor http://www.marvell.com/embedded-processors/kirkwood/ Marvell Kirkwood 88F6281 Processor information (cpu info) cat /proc/cpuinfo Features: swp half thumb fastmult edsp Hardware: Feroceon-KW -> means Feroceon Kirkwood /bin/dmesg | grep ‘ARM’

PyLoad setup

cd ~/compile rm -r ~/compile/pyload unzip pyload-src-v0.4.9.zip cd ~/compile/pyload find . -type f \( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/g {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/g {} \; , -exec sed -i s/”\/usr\/bin\/bash”/”\/ffp\/bin\/bash”/g {} \; , -exec sed -i s/”\/usr\/bin\/sh”/”\/ffp\/bin\/sh”/g {} […]

Compiling leptonica 1.69

#configuration for new package: NEW_BUILD_NAME=leptonica NEW_BUILD_VER=1.69 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~/compile/ wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz tar xvzf $NEW_BUILD_NAME_AND_VER.tar.gz cd ~/compile/$NEW_BUILD_NAME_AND_VER/ find . -type f \( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} […]

Compiling tesseract-ocr 3.02.02

#configuration for new package: NEW_BUILD_NAME=tesseract-ocr NEW_BUILD_VER=3.02.02 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~/compile/ wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz tar xvzf $NEW_BUILD_NAME_AND_VER.tar.gz cd ~/compile/$NEW_BUILD_NAME_AND_VER/ find . -type f \( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} […]

Compiling libev-4.19

#configuration for new package: NEW_BUILD_NAME=libev NEW_BUILD_VER=4.19 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~/compile/ wget http://dist.schmorp.de/libev/libev-4.19.tar.gz tar xvzf $NEW_BUILD_NAME_AND_VER.tar.gz cd ~/compile/$NEW_BUILD_NAME_AND_VER/ find . -type f \( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} […]

Compiling nspr-4.10.7

cd ~/compile/ wget http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.10.7/src/nspr-4.10.7.tar.gz tar xvzf nspr-4.10.7.tar.gz cd ~/compile/nspr-4.10.7/nspr find . -type f \( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} \; , -exec sed -i s/”\/usr\/bin\/bash”/”\/ffp\/bin\/bash”/ {} \; , -exec sed -i s/”\/usr\/bin\/sh”/”\/ffp\/bin\/sh”/ {} […]

Python 2.7.9 and pip commands

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. #Compiling python-2.7.9 NEW_BUILD_NAME=python NEW_BUILD_VER=2.7.9 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 #ERROR Failed to […]

Tomcat datasource in context.xml

<Resource name=”exifweb” auth=”Container” type=”javax.sql.DataSource” factory=”org.apache.tomcat.jdbc.pool.DataSourceFactory” testWhileIdle=”true” testOnBorrow=”true” testOnReturn=”false” validationQuery=”SELECT 1″ validationInterval=”30000″ timeBetweenEvictionRunsMillis=”30000″ maxActive=”10″ minIdle=”2″ maxIdle=”3″ maxWait=”5000″ initialSize=”1″ removeAbandonedTimeout=”60″ removeAbandoned=”false” logAbandoned=”false” minEvictableIdleTimeMillis=”30000″ jmxEnabled=”false” jdbcInterceptors=”org.apache.tomcat.jdbc.pool.interceptor.ConnectionState” username=”exifweb” password=”exifweb” driverClassName=”com.mysql.jdbc.Driver” url=”jdbc:mysql://localhost:3306/exifweb”/>

MetaRepository from mijzelf

cd /i-data/md0/admin/zy-pkgs wget http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/MetaRepository_20140529_arm_010.zpkg cd ~/temp wget http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/ZYPKGS #copy MetaRepository from ~/temp/ZYPKGS within /i-data/md0/admin/zy-pkgs/ZYPKGS #web_prefix: insert as first line “http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/NSA310/4.70/zypkg/” cd /usr/local/zy-pkgs/zypkg_conf touch status touch /i-data/md0/admin/zy-pkgs/ZYPKGS touch /i-data/md0/admin/zy-pkgs/web_prefix #go to Firmware/Packages (only press Package tab, don’t Retrieve List From Internet) […]

Compiling xorg util-macros-1.19.0

cd ~/compile/ rm -r ~/compile/util-macros-1.19.0 mkdir util-macros-1.19.0 cd ~/compile/util-macros-1.19.0 git clone -q -b util-macros-1.19.0 git://anongit.freedesktop.org/xorg/util/macros mv -v macros/* . rm -r macros find . -type f \( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} \; […]

Compiling m4-1.4.17

cd ~/compile/ wget http://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz tar xvzf m4-1.4.17.tar.gz cd ~/compile/m4-1.4.17 export BUILD_FLAGS=”-march=armv5te -mfloat-abi=soft -mabi=aapcs-linux -fno-stack-protector -pthread -O2 -Wall -I/ffp/include -I/ffp/opt/apache-2.2.29-worker/include” export LDFLAGS=”-L/ffp/lib” export LDFLAGS=”-L/ffp/lib -lintl -lpthread” export CPPFLAGS=”$BUILD_FLAGS” export CXXFLAGS=”$BUILD_FLAGS” export CFLAGS=”$BUILD_FLAGS” export LC_ALL=POSIX ./configure –prefix=/ffp –enable-dependency-tracking –enable-threads=posix –with-libsigsegv-prefix=/ffp –disable-assert –enable-c++ […]

Compiling libgd 2.1.0

export BUILD_FLAGS=”-march=armv5te -pthread -O2 -lintl -Wall -DNDEBUG -DLINUX -I/ffp/include” export LDFLAGS=”-L/ffp/lib -lintl” export CPPFLAGS=”$BUILD_FLAGS” export CXXFLAGS=”$BUILD_FLAGS” export CFLAGS=”$BUILD_FLAGS” export LC_ALL=POSIX cd ~/compile/libgd-2.1.0 ERROR1: ceva cu ceill (atentie, sunt 2x l la final) SOLUTION: find . -name gd_bmp.c -exec sed -i […]

Compiling MySql 5.6.21

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. cd $HOME/compile rm -r $HOME/compile/mysql-5.6.21 tar -xzvf mysql-5.6.21.tar.gz cd $HOME/compile/mysql-5.6.21 ~/x.sh ffpg NEW_BUILD_NAME=mysql NEW_BUILD_VER=5.6.21 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER […]

Install & configure pydio

cd $HOME #database mysql -p CREATE DATABASE pydio CHARACTER SET utf8; GRANT ALL ON pydio.* TO ‘pydio’@’%’ IDENTIFIED BY ‘pydio’ WITH GRANT OPTION; FLUSH PRIVILEGES; exit cd /i-data/60cb70cf/www/pages/ wget http://sourceforge.net/projects/ajaxplorer/files/pydio/stable-channel/5.2.5/pydio-core-5.2.5.tar.gz/download tar -xzvf pydio-core-5.2.5.tar.gz cd pydio-core-5.2.5 #go to https://adrhc.go.ro/pydio/ ./x.sh hstop […]