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Ā® […]
Linux
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 […]
Compute linux version code
Linux version.h: LINUX_VERSION_CODE is X65536 + Y256 + Z e.g. Linux 2.6.31.8: LINUX_VERSION_CODE = 265536 + 6256 + 31 = 132639 root@nsa310:~# cat /ffp/include/linux/version.h #define LINUX_VERSION_CODE 132639 #define KERNEL_VERSION(a,b,c) (((a)
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”/ {} \; […]
Library rpath si Library runpath
ATENTIE, am manarit referintele la librarii (vezi /etc/ld.so.conf). Vezi Library rpath si Library runpath cu: readelf -d /usr/sbin/httpd http://en.wikipedia.org/wiki/Rpath: At run time, if the dynamic linker finds a DT_RUNPATH attribute, it ignores the value of the DT_RPATH attribute, with the […]
C++ programming on linux
Info despre configuratia de la build gcc gcc -v Paths http://en.wikipedia.org/wiki/Rpath http://man7.org/linux/man-pages/man8/ld.so.8.html A sure-fire way to determine the name of the dynamic linker is to inspect a random binary from the host system by running: readelf -l /ffp/bin/find | grep […]
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 […]
FFP 0.7 NSA310 packages
All packages here (when you’re in trouble don’t miss the details/readme below the packages list) root@nsa310:~# uname -a Linux nsa310 2.6.31.8 #2 Fri Aug 2 11:21:44 CST 2013 armv5tel GNU/Linux I’m successfully using (or used) all these packages with my […]
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/ […]
Compiling findutils
mkdir -p ~/temp/findutils make install DESTDIR=/ffp/home/gigi/temp/findutils/ cd ~/temp/findutils rm /tmp/findutils-4.5.15-arm-1.txz #makepkg findutils version buildnumber makepkg findutils 4.5.15 1 cp /tmp/findutils-4.5.15-arm-1.txz /usr/local/zy-pkgs/gui/ffp_0.7_armv5
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 […]
Using PECL
#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. #BEFORE RUNNING any “php peclcmd.php install xxx” these also have to be set: export PKG_CONFIG=/ffp/bin/pkg-config […]
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 […]