CPU information

Processor information (cpu info): cat /proc/cpuinfo CPU count: wc -l /proc/net/softnet_stat Features: swp half thumb fastmult edsp /bin/dmesg | grep ‘ARM’ http://unix.stackexchange.com/questions/43539/what-do-the-flags-in-proc-cpuinfo-mean gcc -march=native -mtune=native -Q -O2 –help=target http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/javase-embedded-downloads-2209751.html ARMv5 Linux – Headless EABI, SoftFP ABI, Little Endian3 The MarvellĀ® […]

Compiling memcached

cd $HOME/compile wget http://memcached.org/files/memcached-1.4.21.tar.gz tar xvzf memcached-1.4.21.tar.gz cd $HOME/compile/memcached-1.4.21 #export PATH=/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin:/ffp/opt/ejre1.7.0_60/bin export LDFLAGS=”-L/ffp/lib -lintl” export CPPFLAGS=”-I/ffp/include -I/ffp/include/readline -DLINUX” export CXXFLAGS=”-I/ffp/include -I/ffp/include/readline” export CFLAGS=”-march=armv5te -mtune=xscale -mfloat-abi=soft -mabi=aapcs-linux -pthread -O2 -lintl -Wall” export LC_ALL=POSIX export PKG_CONFIG=/ffp/bin/pkg-config ./configure –help > configure.help.txt ./configure –prefix=/ffp […]

Compiling Apache 2.2.9

rm -r ~/compile/httpd-2.2.9-unpacked cd ~/compile && mkdir httpd-2.2.9-unpacked tar xvzf httpd-2.2.9.tar.gz -C ./httpd-2.2.9-unpacked cd ~/compile/httpd-2.2.9-unpacked/httpd-2.2.9 find . -type f ( -exec sed -i s/”\/usr\/bin\/bash”/”\/ffp\/bin\/bash”/ {} \; , -exec sed -i s/”\/usr\/bin\/sh”/”\/ffp\/bin\/sh”/ {} \; , -exec sed -i s/”\/usr\/bin\/env”/”\/ffp\/bin\/env”/ {} \; […]

Compiling uClibc toolchain 0.9.33.2

#The test suite will be installed into /root/uClibc directory. To run # x the test suite enter the /root/uClibc/test directory and type # x “make UCLIBC_ONLY=1 CC=/bin/true check”. # x See the /root/uClibc/test/README for additional information. export CFLAGS=”-march=armv5te -mtune=xscale -mfloat-abi=soft […]

Install & configure google’s mod_pagespeed for apache

#See https://adrhc.go.ro/blog/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. #mod_pagespeed (see depot_tools and modpagespeed-patch.sh below) rm -r ~/compile/mod_pagespeed mkdir ~/compile/mod_pagespeed cd ~/compile/mod_pagespeed #export PATH=/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin:/ffp/opt/ejre1.7.0_60/bin:/ffp/home/root/compile/depot_tools/ […]

How To Decompress Linux Archive Files

extract archive: unrar e rar-archive.rar unzip sqlite-amalgamation-3071501.zip unzip -uo ghost.zip -d ghost -> extract ghost.zip to ghost tar xvzf mkvtoolnix-6.5.0-arm-1.tgz tar xvzf mkvtoolnix-6.5.0-arm-1.tar.gz tar xvzf ffp_0.7_arm_003.zpkg tar xvfp wget-1.16.tar.xz tar xvfJ archive.txz tar jxf libebml-1.3.0.tar.bz2 gzip -cd aria2c.1.gz > […]

Compiling findutils

#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. #requires: pth-2.0.7-arm-1.txz, libiconv-1.14-arm-1.txz, texinfo-5.2-arm-1.txz cd ~/compile rm -r ~/compile/findutils #rel-4-4-fixes branch (stable) #git clone -q […]

Compiling diffutils

cd ~/compile wget http://ftp.gnu.org/gnu/diffutils/diffutils-3.3.tar.xz tar -xJf diffutils-3.3.tar.xz cd diffutils-3.3 ./configure –help > configure.help.txt export CFLAGS=”-march=armv5te -mtune=xscale -mfloat-abi=soft -mfpu=vfp -mabi=aapcs-linux -mthumb -O2 -Wall” export LDFLAGS=”-L/ffp/lib -lintl” export CPPFLAGS=”-I/ffp/include -I/ffp/include/readline” export CXXFLAGS=”-I/ffp/include -I/ffp/include/readline” ./configure –prefix=/ffp –with-libiconv-prefix=/ffp –with-libintl-prefix=/ffp nohup /ffp/bin/make V=1 & renice […]