2013-03-11

Android-x86 -2

debug mode


1.
# uname -a
Linux localhost 3.8.0-android-x86+ #1 SMP PREEMPT Thu Feb 28 01:43:45 CST 2013 i686 GNU/Linux

2.
# dmesg | head -11
<6>[    0.000000] Initializing cgroup subsys cpu
<5>[    0.000000] Linux version 3.8.0-android-x86+ (cwhuang@fw.cwhuang.info) (gcc version 4.7.2 20120921 (Red Hat 4.7.2-2) (GCC) ) #1 SMP PREEMPT Thu Feb 28 01:43:45 CST 2013
<6>[    0.000000] KERNEL supported cpus:
<6>[    0.000000]   Intel GenuineIntel
<6>[    0.000000]   AMD AuthenticAMD
<6>[    0.000000]   NSC Geode by NSC
<6>[    0.000000]   Cyrix CyrixInstead
<6>[    0.000000]   Centaur CentaurHauls
<6>[    0.000000]   Transmeta GenuineTMx86
<6>[    0.000000]   Transmeta TransmetaCPU
<6>[    0.000000]   UMC UMC UMC UMC

3.
# free
             total         used         free       shared      buffers
Mem:       1031488       395000       636448            0         6232
-/+ buffers:             388768       642720
Swap:            0            0            0

4.
# cat /proc/cmdline
quiet root=/dev/ram0 androidboot.hardware=android_x86 video=-16 SRC=/android-4.2-test

5.
# cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 23
model name    : Pentium(R) Dual-Core  CPU      E6300  @ 2.80GHz
stepping    : 10
cpu MHz        : 2780.036
cache size    : 6144 KB
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 5
wp        : yes
flags        : fpu vme de pse tsc msr mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 constant_tsc pni monitor ssse3
bogomips    : 5560.07
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

Android-x86 4.2.2





android-x86-4.2-20130228.iso   197 MB

Key Features
http://www.android-x86.org/releases/build-20130228
The test build 20130228 is based on the latest Android 4.2.2 release (JB-MR1.1 branch). We have fixed and added x86 specified code to let the system runs smoothly on most x86 platforms, especially for tablets and netbooks. The key features in this release are

  •     Use the latest kernel 3.8.0 to support more drivers.
  •     OpenGL ES hardware acceleration for AMD Radeon and Intel chipsets (not included chips with PVR). You may disable it by adding HWACCEL=0 to the cmdline if you have trouble to use it.
  •     Support Multi-touch, Wifi, Audio, G-sensor, Camera and Backlight control.
  •     Simulate SDCard by internal storage.
  •     Auto mount usb driver and sdcard on plugging.
  •     Multi-user support (max 8).
  •     Support Ethernet (DHCP only).
  •     Support VM like Virtual Box.

2013-03-08

Slitaz -- TeamViewer/get-teamviewer -2




/etc/init.d/teamviewerd: No such file or directory

http://hg.slitaz.org/wok/file/7ae80fa5a40a/get-teamviewer/stuff/get-teamviewer
http://hg.slitaz.org/wok/diff/7ae80fa5a40a/get-teamviewer/stuff/get-teamviewer


1.
tux@slitaz:~$ sudo teamviewer --daemon start

/etc/init.d/teamviewerd start
/opt/teamviewer8/tv_bin/script/tvw_daemon: line 185: /etc/init.d/teamviewerd: No such file or directory
fail


2.
tux@slitaz:~$ ls -l /etc/init.d/team*
ls: /etc/init.d/team*: No such file or directory

tux@slitaz:~$ grep teamviewerd /var/lib/tazpkg/installed/teamviewer/files.list
/opt/teamviewer8/tv_bin/script/teamviewerd.service
/opt/teamviewer8/tv_bin/script/teamviewerdMint.conf
/opt/teamviewer8/tv_bin/script/teamviewerd.sysv
/opt/teamviewer8/tv_bin/script/teamviewerd.conf
/opt/teamviewer8/tv_bin/teamviewerd


3.
tux@slitaz:~$ sudo /opt/teamviewer8/tv_bin/script/teamviewerd.sysv start
Starting teamviewerd...

tux@slitaz:~$ netstat -tp
netstat: showing only processes with your user ID
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 192.168.0.100:37282     server15002.teamviewer.com:5938 ESTABLISHED -
tcp        0      0 192.168.0.100:60123     server1600.teamviewer.com:5938 TIME_WAIT   -
netstat: /proc/net/tcp6: No such file or directory

tux@slitaz:~$ ps ax | tail -6
 3117 ?        Sl     0:00 /opt/teamviewer8/tv_bin/teamviewerd -d
 3133 ?        Sl     0:00 c:\TeamViewer\TeamViewer.exe
 3156 ?        Ss     0:00 /opt/teamviewer8/tv_bin/wine/bin/wineserver
 3162 ?        Sl     0:00 C:\windows\system32\services.exe
 3180 pts/2    R+     0:00 ps ax
 3181 pts/2    S+     0:00 tail -6


4.
Applications -> Internet -> TeamViewe 8

tux@slitaz:~$ netstat -tp
netstat: showing only processes with your user ID
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 192.168.0.100:37282     server15002.teamviewer.com:5938 ESTABLISHED -
tcp        0      0 localhost:38060         localhost:60014         ESTABLISHED 3133/c:\TeamViewer\
tcp        0      0 localhost:49201         localhost:5939          ESTABLISHED 3133/c:\TeamViewer\
tcp        0      0 localhost:60014         localhost:38060         ESTABLISHED 3133/c:\TeamViewer\
tcp        0      0 localhost:5939          localhost:49201         ESTABLISHED -
netstat: /proc/net/tcp6: No such file or directory
tux@slitaz:~$


5.
http://hg.slitaz.org/wok/raw-rev/7ae80fa5a40a

diff -r 990f8bfa7b6d -r 7ae80fa5a40a get-teamviewer/stuff/get-teamviewer
--- a/get-teamviewer/stuff/get-teamviewer    Fri Mar 08 09:22:27 2013 +0100
+++ b/get-teamviewer/stuff/get-teamviewer    Fri Mar 08 11:32:57 2013 +0100
@@ -48,11 +48,12 @@
 mv $PACKAGE $PACKAGE-$VERSION

 cd $PACKAGE-$VERSION/fs
-ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE
+ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE 2> /dev/null || true
 mkdir -p usr/share/applications
 sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
-    < $(find opt | grep desktop.template) \
+    < $(find opt | grep -E '(desktop.template|\.desktop$)') \
     > usr/share/applications/$PACKAGE.desktop
+sed -i 's/readlink -e/readlink $0 || echo /' $(find opt | grep /$PACKAGE$)
 cd ../..

 cat > $PACKAGE-$VERSION/receipt <<EOT

2013-03-01

Slitaz -- udev

<30>udevd[706]: renamed network interface eth0 to eth1

ifconfig: SIOCGIFFLAGS: No such device
Starting udhcpc client on: eth1...
udhcpc: SIOCGIFINDEX: No such device


1.
tux@slitaz:~$ grep -e ifconfig -e udhcpc /var/log/boot.log
ifconfig: SIOCGIFFLAGS: No such device
Starting udhcpc client on: eth1...
udhcpc: SIOCGIFINDEX: No such device
tux@slitaz:~$

2.
tux@slitaz:~$ dmesg | grep eth
tg3 0000:02:00.0: eth0: Tigon3 [partno(BCM95784m) rev 5784100] (PCI Express) MAC address 00:21:85:xx:xx:7b
tg3 0000:02:00.0: eth0: attached PHY is 5784 (10/100/1000Base-T Ethernet) (WireSpeed[1])
tg3 0000:02:00.0: eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
tg3 0000:02:00.0: eth0: dma_rwctrl[76180000] dma_mask[64-bit]
<30>udevd[706]: renamed network interface eth0 to eth1

3.
tux@slitaz:~$ ps ax | grep udevd
  643 ?        Ss     0:00 /sbin/udevd --daemon
 1089 ?        S      0:00 /sbin/udevd --daemon
 1090 ?        S      0:00 /sbin/udevd --daemon
 1495 pts/1    S+     0:00 grep udevd
tux@slitaz:~$

4.
tux@slitaz:~$ ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:21:85:xx:xx:7B 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17
tux@slitaz:~$

5.
tux@slitaz:~$ cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x14e4:0x1698 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:21:85:xx:xx:91", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x14e4:0x1698 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:21:85:xx:xx:7b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# USB device 0x0b05:0x1786 (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c8:60:00:xx:xx:22", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

# PCI device 0x11ab:0x4380 (sky2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:30:1b:xx:xx:fe", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

2013-02-27

Slitaz armhf -- Qt5 - qmake / qtfm


Qt5 - qmake / qtfm

qtFM is a small, lightweight file manager for Linux desktops based on pure Qt
and works great with minimal desktop environments like Openbox.
http://www.qtfm.org/

1.
root@slitaz:/tmp/qtfm-5.5# dmesg | grep Machine
[    0.000000] Machine: BCM2708

root@slitaz:/tmp/qtfm-5.5# ls
CHANGELOG      README         images         qtfm.pro       src
COPYING        build          qtfm.desktop   resources.qrc  translations


2.
root@slitaz:/tmp/qtfm-5.5# qmake qtfm.pro


3.
root@slitaz:/tmp/qtfm-5.5# ls -l Makefile
-rw-r--r--    1 root     root        232653 Jan 13 03:57 Makefile

root@slitaz:/tmp/qtfm-5.5# head -21 Makefile
#############################################################################
# Makefile for building: qtfm
# Generated by qmake (3.0) (Qt 5.0.0) on: Sun Jan 13 03:57:53 2013
# Project:  qtfm.pro
# Template: app
# Command: /usr/bin/qmake -o Makefile qtfm.pro
#############################################################################

MAKEFILE      = Makefile

####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       = -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB
CFLAGS        = -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -O2 -D_REENTRANT -w -fPIE $(DEFINES)
CXXFLAGS      = -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -O2 -D_REENTRANT -w -fPIE $(DEFINES)
INCPATH       = -I/usr/share/qt5/mkspecs/devices/linux-rasp-pi-g++ -I. -I. -Isrc -I/usr/include/qt5 -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -Ibuild -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
LINK          = g++
LFLAGS        = -Wl,-rpath-link,/opt/vc/lib -Wl,-O1
LIBS          = $(SUBLIBS) -L/opt/vc/lib -lmagic -lpthread -lQt5Network -lQt5Gui -lQt5Core -lGLESv2
root@slitaz:/tmp/qtfm-5.5#


4.
root@slitaz:/tmp/qtfm-5.5# ls -l /usr/share/qt5/mkspecs/devices/linux-rasp-pi-g\+\+/
total 15
-rw-r--r--    1 root     root         10245 Dec 21 10:58 qeglfshooks_pi.cpp
-rw-r--r--    1 root     root          1320 Dec 21 10:58 qmake.conf
-rw-r--r--    1 root     root          2009 Dec 21 10:58 qplatformdefs.h
root@slitaz:/tmp/qtfm-5.5#


5.
root@slitaz:/tmp/qtfm-5.5# cat /usr/share/qt5/mkspecs/devices/linux-rasp-pi-g\+\+/qmake.conf
#
# qmake configuration for Broadcom's Raspberry PI
# http://wiki.qt-project.org/Devices/RaspberryPi

include(../common/linux_device_pre.conf)

QT_QPA_DEFAULT_PLATFORM = wayland

QMAKE_LFLAGS            += -Wl,-rpath-link,$$[QT_SYSROOT]/opt/vc/lib

QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/opt/vc/lib
QMAKE_LIBDIR_EGL        = $$QMAKE_LIBDIR_OPENGL_ES2

QMAKE_INCDIR_EGL        = $$[QT_SYSROOT]/opt/vc/include $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads
QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}

QMAKE_LIBS_EGL          = -lEGL -lGLESv2

contains(DISTRO, squeeze) {               
    #Debian Squeeze: Legacy everything
    QMAKE_LIBS_OPENGL_ES2   = -lGLESv2 -lEGL
    QT_QPA_DEFAULT_PLATFORM = eglfs
} else:contains(DISTRO, arch) {
    #On principle: no wizardry required
} else {
    #This is not strictly necessary
    DISTRO_OPTS += deb-multi-arch
    DISTRO_OPTS += hard-float
}

QMAKE_CFLAGS            += \
                          -marm \
                          -mfpu=vfp \
                          -mtune=arm1176jzf-s \       
                          -march=armv6zk \       
                          -mabi=aapcs-linux       

QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS

EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_pi.cpp
EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host

include(../common/linux_device_post.conf)

load(qt_config)
root@slitaz:/tmp/qtfm-5.5#


Slitaz armhf -- TightVNC / Qt5


TightVNC / Qt5

1.
tux@slitaz:~$ uname -a
Linux slitaz 3.2.27-slitaz #1 PREEMPT Fri Dec 14 15:01:17 CST 2012 armv6l GNU/Linux
tux@slitaz:~$ date
Fri Jan 11 04:31:49 UTC 2013

2.
tux@slitaz:~$ sudo vcgencmd version
Oct 25 2012 16:37:21
Copyright (c) 2012 Broadcom
version 346337 (release)

3.
tux@slitaz:~$ fc-list
Fixed:style=SemiCondensed
micro.pcf:style=Regular
cursor.pcf:style=Regular
DejaVu Sans:style=Bold
DejaVu Sans:style=Book
DejaVu Sans Mono:style=Book

4.
tux@slitaz:~$ free -m
             total         used         free       shared      buffers
Mem:           184          105           79            0            4
-/+ buffers:                100           84
Swap:          127            0          127
tux@slitaz:~$

5.
tux@slitaz:~$ tazpkg list | grep qt
libqt5                  5.0.0-0rpi1       misc
libqt5-compositor       5.0.0~29-0rpi1    misc
libqt5-declarative      5.0.0-0rpi1       misc
libqt5-declarative-bin  5.0.0-0rpi1       misc
libqt5-dev-bin          5.0.0-0rpi1       misc
libqt5-graphicaleffects 5.0.0-0rpi1       misc
libqt5-multimedia       5.0.0-0rpi1       misc
libqt5-script           5.0.0-0rpi1       misc
libqt5-svg              5.0.0-0rpi1       misc
libqt5-tools            5.0.0-0rpi1       misc
libqt5-tools-bin        5.0.0-0rpi1       misc
libqt5-v8               5.0.0-0rpi1       misc
libqt5-xmlpatterns      5.0.0-0rpi1       misc
libqtwebkit5            5.0.0-0rpi1       misc
libqtwebkit5-bin        5.0.0-0rpi1       misc
qt5-demos-base          5                 misc
qt5-demos-compositor    5.0.0~29-0rpi1    misc
qt5-qmake               5.0.0-0rpi1       misc

6.tux@slitaz:~$ spk-ls qt5-demos-base | tail
/usr/lib/qt5/examples/widgets/widgets/windowflags/windowflags
/usr/lib/qt5/examples/widgets/widgets/mousebuttons/buttontester
/usr/lib/qt5/examples/widgets/widgets/scribble/scribble
/usr/lib/qt5/examples/widgets/widgets/groupbox/groupbox
/usr/lib/qt5/examples/widgets/widgets/calculator/calculator
/usr/share/doc/qt5-demos-base/changelog.gz
/usr/share/doc/qt5-demos-base/copyright
================================================================================
Installed files by qt5-demos-base: 32

tux@slitaz:~$ sudo /usr/lib/qt5/examples/widgets/widgets/calculator/calculator
This plugin does not support propagateSizeHints()
^Ctux@slitaz:~$
tux@slitaz:~$


SliTaz armhf: 46MB Linux Distribution for Raspberry Pi

SliTaz armhf: 46MB Linux Distribution for Raspberry Pi

http://www.cnx-software.com/2012/12/15/slitaz-armhf-46mb-linux-distribution-for-raspberry-pi

SliTaz armhf is a minimal Linux distribution based on SliTaz Linux, that uses the hard-float ABI for the Raspberry Pi. The compressed SD card image is 46M, the rootfs 18.6 MB, and Slitaz uses just about 7 MB RAM after boot.
...



CNXSoft – Embedded Software Development
Software development cycle, linux programming, hardware development…
http://www.cnx-software.com/






2013-02-24

Slitaz -- slitaz-rolling.iso




Env:
slitaz-rolling.iso   2013-Feb-22 21:51:05 41.0M

# sed -i 's/Exec=pcmanfm %F/Exec=dbus-launch pcmanfm/' /usr/share/applications/pcmanfm.desktop


1.
tux@slitaz:~$ uname -a
Linux slitaz 3.2-slitaz #4 SMP Fri Feb 22 20:21:20 CET 2013 i686 GNU/Linux


2.
tux@slitaz:~$ tazpkg info pcmanfm

Tazpkg information
================================================================================
Package    : pcmanfm
Version    : 1.1.0
Category   : system-tools
Short desc : Light and easy to use file manager.
Maintainer : pankso@slitaz.org
Depends    : glibc-base glib libgio util-linux-uuid libxcb xcb-util expat zlib fontconfig freetype gtk+ startup-notification dbus dbus-glib libfm gvfs
Build deps : gtk+-dev shared-mime-info intltool dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev libfm-dev menu-cache-dev expat-dev
Web site   : http://pcmanfm.sourceforge.net/
================================================================================


3.
tux@slitaz:~$ mount
rootfs on / type rootfs (rw)
tmpfs on /run type tmpfs (rw,relatime)
tmpfs on / type tmpfs (rw,relatime,size=2645304k)
proc on /proc type proc (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1450768k,nr_inodes=210150,mode=755)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
gvfs-fuse-daemon on /home/tux/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
/dev/sda9 on /run/media/tux/data-ln type ext3 (rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered)
/dev/sda3 on /run/media/tux/tank type ext3 (rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered)
/dev/sda1 on /run/media/tux/WINXP type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,errors=remount-ro)
/dev/sda5 on /run/media/tux/DATA type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,errors=remount-ro)
/dev/sda7 on /run/media/tux/slitaz-ff type ext3 (rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered)
/dev/sda8 on /run/media/tux/slitaz type ext3 (rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered)
/dev/sda2 on /run/media/tux/XPE type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,errors=remount-ro)
/dev/hdb on /media/cdrom type iso9660 (ro,nosuid,nodev,noexec,relatime)
tux@slitaz:~$



2013-02-21

Slitaz -- TeamViewer/get-teamviewer


 ln: usr/bin/teamviewer: File exists
root@slitaz:~# get-teamviewer
Connecting to www.teamviewer.com (46.163.100.220:80)
teamviewer_linux.deb 100% |*******************************| 17820k 00:00:00 ETA
ln: usr/bin/teamviewer: File exists
root@slitaz:~#

1.
tux@slitaz:~$ sudo get-teamviewer
Connecting to www.teamviewer.com (46.163.100.220:80)
teamviewer_linux.deb 100% |*******************************| 17820k 00:00:00 ETA

Packing : teamviewer-8.0.17147
================================================================================
Creating the list of files...                                        [ OK ]
Creating md5sum of files...                                          [ OK ]
Compressing the fs...                                                [ OK ]
Updating receipt sizes...                                            [ OK ]
Creating full cpio archive...                                        [ OK ]
Restoring original package tree...                                   [ OK ]
================================================================================
Package teamviewer-8.0.17147 compressed successfully.
Size : 11.9M    teamviewer-8.0.17147.tazpkg


Installation of : teamviewer
================================================================================
Copying teamviewer...                                                [ OK ]
Extracting teamviewer...                                             [ OK ]
Extracting the pseudo fs... (lzma)                                   [ OK ]
Installing teamviewer...                                             [ OK ]
Removing all tmp files...                                            [ OK ]

To start teamviewerd server you can run :
/etc/init.d/teamviewerd start
Or add teamviewerd to RUN_DAEMONS in /etc/rcS.conf

Web viewer (needs flash): https://go.teamviewer.com/v8/
================================================================================
teamviewer (8.0.17147) is installed.

tux@slitaz:~$


2.
tux@slitaz:~$ cat get-teamviewer.diff
--- get-teamviewer-orig
+++ get-teamviewer
@@ -3,7 +3,7 @@
 PACKAGE="teamviewer"
 WEB_SITE="http://www.$PACKAGE.com/"
 URL=${WEB_SITE}download/${PACKAGE}_linux.deb
-DEPENDS="bash alsa-lib zlib xorg-libXext"
+DEPENDS="bash alsa-lib zlib xorg-libXext coreutils-file-special"
 ROOT="$1"
 [ -d "$ROOT" ] || ROOT=""

@@ -48,11 +48,10 @@
 mv $PACKAGE $PACKAGE-$VERSION

 cd $PACKAGE-$VERSION/fs
-ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE
-mkdir -p usr/share/applications
-sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
-    < $(find opt | grep desktop.template) \
-    > usr/share/applications/$PACKAGE.desktop
+mkdir -p usr/share/applications usr/share/pixmaps etc/init.d
+cp -a opt/teamviewer8/tv_bin/desktop/*.png usr/share/pixmaps
+cp -a opt/teamviewer8/tv_bin/desktop/*.desktop usr/share/applications
+cp -a opt/teamviewer8/tv_bin/script/teamviewerd.sysv etc/init.d/teamviewerd
 cd ../..

 cat > $PACKAGE-$VERSION/receipt <<EOT
@@ -69,10 +68,16 @@
 post_install()
 {
     cat <<EOF
+
+To start ${PACKAGE}d server you can run :
+/etc/init.d/${PACKAGE}d start
+Or add ${PACKAGE}d to RUN_DAEMONS in /etc/rcS.conf
+
 Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/
 EOF
 }
 EOT
+

 # Pack
 tazpkg pack $PACKAGE-$VERSION
tux@slitaz:~$ 


3.
tux@slitaz:~$ tail /var/lib/tazpkg/installed/teamviewer/files.list
/usr/share/applications/teamviewer-teamviewer8.desktop
/usr/share/pixmaps/teamviewer.png
/etc/init.d/teamviewerd
/opt/teamviewer8/tv_bin/TeamViewer
/opt/teamviewer8/tv_bin/wine/lib/libwine.so
/opt/teamviewer8/tv_bin/wine/lib/libwine.so.1
/opt/teamviewer8/tv_bin/TeamViewer_Desktop
/usr/bin/teamviewer
/var/log/teamviewer
/etc/teamviewer
tux@slitaz:~$

2013-02-20

Slitaz -- TeamViewer







TeamViewer (Remote Control Application)

1.
tux@slitaz:~$ sudo tazpkg -i teamviewer-8.0.17147.tazpkg

Installation of : teamviewer
================================================================================
Copying teamviewer... [ OK ]
Extracting teamviewer... [ OK ]
Extracting the pseudo fs... (lzma) [ OK ]
Installing teamviewer... [ OK ]
Removing all tmp files... [ OK ]


To start teamviewerd server you can run :

/etc/init.d/teamviewerd start
Or add teamviewerd to RUN_DAEMONS in /etc/rcS.conf

Web viewer (needs flash): https://go.teamviewer.com/v8/

================================================================================
teamviewer (8.0.17147) is installed.


2.
tux@slitaz:~$ ps | tail -6
1757 root 0:00 /opt/teamviewer8/tv_bin/teamviewerd -d
1765 tux 0:03 c:\TeamViewer\TeamViewer.exe
1788 tux 0:03 /opt/teamviewer8/tv_bin/wine/bin/wineserver
1794 tux 0:00 C:\windows\system32\services.exe
1843 tux 0:00 ps
1844 tux 0:00 tail -6


3.
tux@slitaz:~$ netstat -tp
netstat: showing only processes with your user ID
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:39258 localhost:52129 ESTABLISHED 1765/c:\TeamViewer\
tcp 0 0 localhost:5939 localhost:40171 ESTABLISHED -
tcp 0 0 localhost:52129 localhost:39258 ESTABLISHED 1765/c:\TeamViewer\
tcp 0 0 192.168.0.100:55898 server6201.teamviewer.com:5938 ESTABLISHED -
tcp 0 0 localhost:40171 localhost:5939 ESTABLISHED 1765/c:\TeamViewer\
netstat: /proc/net/tcp6: No such file or directory
tux@slitaz:~$


4.
root@slitaz:~# get-teamviewer
Connecting to www.teamviewer.com (46.163.100.220:80)
teamviewer_linux.deb 100% |*******************************| 17820k 00:00:00 ETA
ln: usr/bin/teamviewer: File exists
root@slitaz:~#

/usr/bin/get-teamviewer
#no.50

cd $PACKAGE-$VERSION/fs
ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE
mkdir -p usr/share/applications
sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
< $(find opt | grep desktop.template) \ > usr/share/applications/$PACKAGE.desktop
cd ../..

2013-02-19

Slitaz -- SG41/intel-i915

LOAD_MODULES="i915 snd_hda_intel sky2"

Driver "intel"

Env:
slitaz-4.0-firefox.iso


1.
# tazpkg -gi sudo
# tazpkg -gi xarchive
# tazpkg -gi xorg-xf86-video-intel
# tazpkg -gi sakura
# tazpkg -gi wqy-microhei


2.
root@slitaz:~# visudo
tux ALL=NOPASSWD: ALL


3.
root@slitaz:~# sed -i s/vesa/intel/ /etc/X11/xorg.conf.d/60-Device.conf
root@slitaz:~# grep Driver /etc/X11/xorg.conf.d/60-Device.conf
### Available Driver options are:-
Driver "intel"

root@slitaz:~# nano /etc/X11/xorg.conf.d/70-Screen.conf
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x1024" "1024x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768"
EndSubSection
EndSection


4.
root@slitaz:~# nano /etc/rcS.conf

LOAD_MODULES="i915 snd_hda_intel sky2"

RUN_DAEMONS="dbus hald slim firewall httpd dropbear"


5.
root@slitaz:~# dmesg | grep -e intel -e i915
intel_rng: FWH not detected
agpgart-intel 0000:00:00.0: Intel G41 Chipset
agpgart-intel 0000:00:00.0: detected gtt size: 524288K total, 262144K mappable
agpgart-intel 0000:00:00.0: detected 131072K stolen memory, trimming to 32768K
agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xd0000000
i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
i915 0000:00:02.0: setting latency timer to 64
fb0: inteldrmfb frame buffer device
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
root@slitaz:~#

root@slitaz:~# grep -e intel_ -e G41 -e GLX /var/log/Xorg.0.log
[ 11.677] (==) AIGLX enabled
[ 11.677] (II) Loading extension GLX
[ 11.719] (II) Loading /usr/lib/X11/modules/drivers/intel_drv.so
4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
[ 11.782] (II) intel(0): Integrated Graphics Chipset: Intel(R) G41
[ 11.782] (--) intel(0): Chipset: "G41"
[ 12.126] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 12.126] (II) AIGLX: enabled GLX_INTEL_swap_event
[ 12.126] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[ 12.126] (II) AIGLX: enabled GLX_SGI_make_current_read
[ 12.126] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[ 12.126] (II) AIGLX: Loaded and initialized /usr/lib/dri/i965_dri.so
[ 12.126] (II) GLX: Initialized DRI2 GL provider for screen 0
root@slitaz:~#


6.
root@slitaz:~# cat /var/log/tazpkg.log | cut -d ' ' -f 6-7
sudo (1.8.4)
xarchive (0.2.8-6)
xorg-libXv (1.0.6)
xorg-libXvMC (1.0.6)
mesa (7.10.2)
mesa-dri (7.10.2)
libdrm-intel (2.4.25)
mesa-dri-intel (7.10.2)
xorg-xf86-video-intel (2.15.0)
vte (0.28.2)
sakura (2.3.8)
wqy-microhei (0.2.0-beta)
root@slitaz:~#

2013-02-18

Slitaz -- SG41/glx

vblank_mode=0 glxgears

-Display-
Resolution : 1280x1024 pixels
OpenGL Renderer : Mesa DRI Intel(R) G41 x86/MMX/SSE2


1.
tux@slitaz:~$ glxinfo | grep -e render -e version
direct rendering: Yes
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL renderer string: Mesa DRI Intel(R) G41 x86/MMX/SSE2
OpenGL version string: 2.1 Mesa 7.10.2
OpenGL shading language version string: 1.20

2.
tux@slitaz:~$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
303 frames in 5.0 seconds = 60.429 FPS
301 frames in 5.0 seconds = 60.028 FPS

3.
tux@slitaz:~$ vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
6263 frames in 5.0 seconds = 1252.534 FPS
6294 frames in 5.0 seconds = 1258.668 FPS
6293 frames in 5.0 seconds = 1258.560 FPS
6294 frames in 5.0 seconds = 1258.775 FPS
tux@slitaz:~$

Slitaz -- SG41/IT8758E



-Cooling Fans-
fan1 : 915RPM
fan2 : 0RPM
fan3 : 0RPM
-Temperatures-
temp1 : 34.00°C
temp2 : 39.00°C
temp3 : -8.00°C
temp1 : 34.00°C
temp1 : 34.00°C
-Voltage Values-
in0 : 3.060V
in1 : 2.880V
in2 : 2.232V
in3 : 2.760V
in4 : 1.176V
in5 : 1.548V
in6 : 2.916V
in7 : 3.288V
in8 : 3.264V


1.
General informations
http://cateee.net/lkddb/web-lkddb/SENSORS_IT87.html
[..]
If you say yes here you get support for ITE IT8705F, IT8712F, IT8716F, IT8718F, IT8720F, IT8721F, IT8726F, IT8728F, IT8758E, IT8782F, and IT8783E/F sensor chips, and the SiS950 clone.

This driver can also be built as a module. If so, the module will be called it87.


2.
tux@slitaz:~$ zcat /proc/config.gz | grep IT87
# CONFIG_GPIO_IT8761E is not set
CONFIG_SENSORS_IT87=m
# CONFIG_IT8712F_WDT is not set
# CONFIG_IT87_WDT is not set
tux@slitaz:~$


3.
tux@slitaz:~$ sudo tazpkg -gi linux-hwmon
tux@slitaz:~$ sudo modprobe it87
tux@slitaz:~$ sudo modprobe coretemp
tux@slitaz:~$ lsmod
Module Size Used by Not tainted
coretemp 3874 0
it87 15720 0
hwmon_vid 1492 1 it87
hwmon 993 2 coretemp,it87
sky2 32696 0
snd_hda_codec_idt 36872 1
snd_hda_intel 15886 1
snd_hda_codec 45027 2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep 3808 1 snd_hda_codec
snd_pcm 43737 2 snd_hda_intel,snd_hda_codec
snd_timer 12515 1 snd_pcm
snd 33394 8 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore 3357 1 snd
snd_page_alloc 4853 2 snd_hda_intel,snd_pcm
i915 254040 2
drm_kms_helper 18798 1 i915
drm 111992 3 i915,drm_kms_helper
i2c_algo_bit 3479 1 i915
button 3602 1 i915
i2c_core 12192 4 i915,drm_kms_helper,drm,i2c_algo_bit
video 9783 1 i915
output 1144 1 video
intel_agp 7908 1 i915
intel_gtt 9214 3 i915,intel_agp
agpgart 18221 3 drm,intel_agp,intel_gtt
tux@slitaz:~$


4.
-Computer-
Processor : 2x Pentium(R) Dual-Core CPU E6500 @ 2.93GHz
Memory : 2981MB (230MB used)
Operating System : Slitaz GNU/Linux 4.0
User Name : tux (Linux User)
Date/Time : Tue 19 Feb 2013 11:07:53 AM UTC
-Display-
Resolution : 1280x1024 pixels
OpenGL Renderer : Mesa DRI Intel(R) G41 x86/MMX/SSE2
X11 Vendor : (null)
-Multimedia-
Audio Adapter : HDA-Intel - HDA Intel
-Input Devices-
PC Speaker
Logitech USB Receiver
Logitech USB Receiver
Power Button
Power Button
-Printers-
No suitable CUPS library found
-IDE Disks-
Maxtor 6Y080L0

-Version-
Kernel : Linux 2.6.37-slitaz (i686)
Compiled : #2 SMP Wed Mar 7 10:36:39 CET 2012
C Library : GNU C Library version 2.13 (stable)
Default C Compiler : Unknown
Distribution : Slitaz GNU/Linux 4.0
-Current Session-
Computer Name : slitaz
User Name : tux (Linux User)
Home Directory : /home/tux
Desktop Environment : Unknown (Window Manager: Openbox)
-Misc-
Uptime : 1 hour, 46 minutes
Load Average : 0.00, 0.01, 0.05

-BIOS-
Date : 10/06/2011
Vendor : American Megatrends Inc. (www.ami.com)
Version : 080015
-Board-
Name : FG41
Vendor : Shuttle Inc

http://global.shuttle.com/main/productsSpec?productId=1383

2012-12-28

SliTaz armhf -- LXDE



root@slitaz:~# uname -a
Linux slitaz 3.2.27-slitaz #1 PREEMPT Fri Dec 14 15:01:17 CST 2012 armv6l GNU/Linux
root@slitaz:~# dmesg | grep Machine
[ 0.000000] Machine: BCM2708
root@slitaz:~# ps | tail -23
13367 root 0:04 /usr/bin/slim -d
13373 root 1:48 /usr/bin/Xorg -nolisten tcp -auth /var/run/slim.auth vt07
13378 tux 0:05 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX
13397 tux 0:00 xterm
13405 tux 0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
13406 tux 0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
13408 tux 0:00 sh
13414 tux 0:23 lxpanel
13416 tux 0:00 /usr/lib/menu-cache/menu-cached
13422 tux 0:06 obconf
13425 tux 0:05 leafpad /home/tux/.config/openbox/menu.xml
13427 tux 0:00 {bootlog} /bin/sh /usr/bin/bootlog box
13430 tux 0:07 yad --text-info --title=Boot Log --window-icon=text-plain --width=600 --height=400 --button=gtk-close:0
13434 tux 4:59 gtk-demo
13439 tux 0:03 mtpaint
13739 root 0:00 pure-ftpd (SERVER)
13784 tux 0:03 lxappearance
13812 root 0:00 [kworker/0:1]
13832 root 0:00 /usr/sbin/dropbear -b /etc/dropbear/banner
13855 root 0:01 /usr/sbin/dropbear -b /etc/dropbear/banner
13856 root 0:00 -sh
13887 root 0:00 ps
13888 root 0:00 tail -23
root@slitaz:~#

2012-12-23

SliTaz armhf -- Xorg


root@slitaz:~# uname -a
Linux slitaz 3.2.27-slitaz #1 PREEMPT Fri Dec 14 15:01:17 CST 2012 armv6l GNU/Linux

root@slitaz:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 433.0M 83.7M 326.9M 20% /
tmpfs 92.3M 136.0K 92.2M 0% /run
devtmpfs 92.2M 0 92.2M 0% /dev
tmpfs 92.3M 0 92.3M 0% /dev/shm

root@slitaz:~# X -version

X.Org X Server 1.12.1
Release Date: 2012-04-13
X Protocol Version 11, Revision 0
Build Operating System: SliTaz-ARM GNU/Linux
Current Operating System: Linux slitaz 3.2.27-slitaz #1 PREEMPT Fri Dec 14 15:01:17 CST 2012 armv6l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1680 bcm2708_fb.fbheight=1050 bcm2708.boardrev=0x2 bcm2708.serial=0x7b32f4ce smsc95xx.macaddr=B8:27:EB:32:F4:CE sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0xc000000 vc_mem.mem_size=0x10000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait devtmpfs.mount=0
Build Date: 19 December 2012 10:40:53AM

Current version of pixman: 0.26.0
Before reporting problems, check http://www.slitaz.org/
to make sure that you have the latest version.

root@slitaz:~# ps | tail -25
124 root 0:00 [bcm2708_spi.0]
179 root 0:00 udevd --daemon
215 root 0:00 [kworker/0:2]
221 root 0:00 /sbin/udhcpc -b -T 1 -A 12 -i eth0 -p /var/run/udhcpc.eth0.pid
231 messageb 0:00 /usr/bin/dbus-daemon --system
244 haldaemo 0:00 /usr/sbin/hald --daemon=yes
245 root 0:00 hald-runner
249 root 0:00 {hald-addon-inpu} hald-addon-input: Listening on /dev/input/event1 /dev/input/event0
269 root 0:03 /usr/bin/slim -d
276 root 0:01 /usr/bin/Xorg -nolisten tcp -auth /var/run/slim.auth vt07
285 root 0:00 /usr/sbin/dropbear -b /etc/dropbear/banner
297 root 0:00 -sh
298 root 0:00 /sbin/getty 38400 tty2
299 root 0:00 /sbin/getty 38400 tty3
300 tux 0:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX
316 tux 0:00 xterm
334 tux 0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
335 tux 0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
338 tux 0:00 sh
363 root 0:00 [kworker/0:0]
374 root 0:00 udevd --daemon
375 root 0:00 /usr/sbin/dropbear -b /etc/dropbear/banner
376 root 0:00 -sh
392 root 0:00 ps
393 root 0:00 tail -25
root@slitaz:~#

2012-12-15

SliTaz armhf -- 20121214


slitaz-armhf-mini-2012-12-14.zip 46M

Changelog
2012-12-14
- update kernel-3.2.27
- update firmware-2012-10-25 17c8799375
- adding support for the 512MB Model B

SliTaz armhf: 46MB Linux Distribution for Raspberry Pi

root@slitaz:~# zcat /proc/config.gz | grep TMPFS
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y
root@slitaz:~# cat /proc/cmdline
dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1680 bcm2708_fb.fbheight=1050 bcm2708.boardrev=0x2 bcm2708.serial=0x7b32f4ce smsc95xx.macaddr=B8:27:EB:32:F4:CE sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0xf000000 vc_mem.mem_size=0x10000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait devtmpfs.mount=0

root@slitaz:~# tail -5 /boot/config.txt
# Amount of memory to use for the GPU
gpu_mem=32

# for more options see http://elinux.org/RPi_config.txt


2012-12-04

SliTaz armhf







Update 20121214
slitaz-armhf-mini-2012-12-14.zip 46M

SliTaz armhf

SliTaz armhf is based on SliTaz Linux, which uses the hard-float ABI for the Raspberry Pi.

Given the preponderance of hardfp performance over its register ignorant peers,
this will be useful in eking every last drop of performance out of the hardware. -- QtonPi wiki

Default login Username: root Password: root


RPi_Easy_SD_Card_Setup
===============================================================================
Manually resizing the SD card partitions (Optional)
http://elinux.org/RPi_Easy_SD_Card_Setup


/etc/init.d/README for SliTaz init boot scripts.
===============================================================================
SliTaz doesn't use runlevels; inittab starts /etc/init.d/rcS, which uses the
config file /etc/rcS.conf to run all scripts specified with $RUN_SCRIPTS, and
then starts all daemons specified with $RUN_DAEMONS. The idea is to centralize
the main system boot initialization in one configuration file. Init scripts can
use the rc.functions file (part of the base-files) to call for the status
function. Daemons can use /etc/daemons.conf to call for default options; in
this way users/admins don't need to edit the daemon init script located
in the /etc/init.d directory.
===============================================================================
http://www.slitaz.org/


# /etc/network.conf: SliTaz system wide networking configuration.
# Config file used by: /etc/init.d/network.sh
#


Tazpkg - Tiny autonomous zone packages manager.
===============================================================================
#!/bin/sh
# Tazpkg - Tiny autonomous zone packages manager.
#
# This is a lightwight packages manager for *.tazpkg files written in
# SHell script. It works well with Busybox ash shell and bash. Tazpkg lets you
# list, install, remove, download or get information about a package. You can
# use 'tazpkg usage' to get a list of commands with short descriptions. Tazpkg
# also resolves dependencies and can upgrade packages from a mirror. I18n is
# done using gettext and eval_gettext, ex:
# gettext "displayed text"; echo
# eval_gettext "display \$VARIABLE"; echo
#
# (C) 2007-2012 SliTaz - GNU General Public License v3.
#
# Authors : See AUTHORS files


Mirror

This site provides SliTaz GNU/Linux official and community documentation.

Raspberry Pi wiki


2012-11-19

Raspi -- hardfloat - 4

Boot Raspberry Pi
Broadcom BCM2835 ARMv6

# spk-add mc
Midnight Commander - ncurses based file manager.


1.
root@slitaz:~# uname -a
Linux slitaz 3.2.14-slitaz #1 PREEMPT Wed Oct 31 14:55:53 CST 2012 armv6l GNU/Linux

2.
root@slitaz:~# dmesg | head -5
Initializing cgroup subsys cpu
Linux version 3.2.14-slitaz (root@slitaz) (gcc version 4.6.3 (SliTaz) ) #1 PREEMPT Wed Oct 31 14:55:53 CST 2012
CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: BCM2708


3.
root@slitaz:~# spk info

Spk info
================================================================================
Architecture : arm
Database : /var/lib/tazpkg/installed
Cache info : 4.0K /var/cache/tazpkg
Mirror URL : http://192.168.1.37/cross/armhf/packages/
Extra mirrors : 0
Installed : 17
================================================================================

root@slitaz:~#


4.
root@slitaz:~# spk-add mc

Using official mirror: mc-4.8.3-armhf.tazpkg
Connecting to 192.168.1.37 (192.168.1.37:80)
mc-4.8.3-armhf.tazpk 100% |*******************************| 683k 0:00:00 ETA
Missing: glib
Missing: e2fsprogs
Missing dependencies: 2

Using official mirror: glib-2.32.1-armhf.tazpkg
Connecting to 192.168.1.37 (192.168.1.37:80)
glib-2.32.1-armhf.ta 100% |*******************************| 388k 0:00:00 ETA
Missing: pcre
Missing: libffi
Missing: libxml2
Missing: elfutils
Missing dependencies: 4

Using official mirror: pcre-8.30-armhf.tazpkg
Connecting to 192.168.1.37 (192.168.1.37:80)
pcre-8.30-armhf.tazp 100% |*******************************| 79044 0:00:00 ETA
Missing dependencies: 0

Adding pcre
================================================================================
Copying package... [ Done ]
Extracting archive: 80.0K [ Done ]
Installing files: 9 [ Done ]
================================================================================
pcre 8.30 is installed

Using official mirror: libffi-3.0.11-armhf.tazpkg
Connecting to 192.168.1.37 (192.168.1.37:80)
libffi-3.0.11-armhf. 100% |*******************************| 12316 0:00:00 ETA
Missing dependencies: 0

Adding libffi
================================================================================
Copying package... [ Done ]
Extracting archive: 16.0K [ Done ]
Installing files: 3 [ Done ]
================================================================================
libffi 3.0.11 is installed


Using official mirror: libxml2-2.8.0-armhf.tazpkg
Connecting to 192.168.1.37 (192.168.1.37:80)
libxml2-2.8.0-armhf. 100% |*******************************| 385k 0:00:00 ETA
Missing dependencies: 0

Adding libxml2
================================================================================
Copying package... [ Done ]
Extracting archive: 388.0K [ Done ]
Installing files: 3 [ Done ]
================================================================================
libxml2 2.8.0 is installed


Using official mirror: elfutils-0.153-armhf.tazpkg
Connecting to 192.168.1.37 (192.168.1.37:80)
elfutils-0.153-armhf 100% |*******************************| 174k 0:00:00 ETA
Missing dependencies: 0

Adding elfutils
================================================================================
Copying package... [ Done ]
Extracting archive: 176.0K [ Done ]
Installing files: 32 [ Done ]
================================================================================
elfutils 0.153 is installed

Adding glib
================================================================================
Copying package... [ Done ]
Extracting archive: 392.0K [ Done ]
Installing files: 21 [ Done ]
================================================================================
glib 2.32.1 is installed

Adding e2fsprogs
================================================================================
Copying package... [ Done ]
Extracting archive: 292.0K [ Done ]
Modified package: busybox
Overwriting file: /sbin/tune2fs
Modified package: busybox
Overwriting file: /sbin/findfs
Installing files: 34 [ Done ]
================================================================================
e2fsprogs 1.42.3 is installed

Adding mc
================================================================================
Copying package... [ Done ]
Extracting archive: 684.0K [ Done ]
Installing files: 182 [ Done ]
================================================================================
mc 4.8.3 is installed


5.
root@slitaz:~# mc -V
GNU Midnight Commander 4.8.3
Built with GLib 2.32.4
Using the ncurses library
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64;
root@slitaz:~#


6.
root@slitaz:~# readelf -A /usr/bin/mc
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "6"
Tag_CPU_arch: v6
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_FP_arch: VFPv2
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int
Tag_ABI_HardFP_use: SP and DP
Tag_ABI_VFP_args: VFP registers
Tag_DIV_use: Not allowed
root@slitaz:~#


7.
root@slitaz:~# slitaz

SliTaz GNU/Linux
================================================================================
Release : cooking
Architecture : arm
Kernel : 3.2.14-slitaz
Boot options : dma.dmachans=0x3c bcm2708_fb.fbwidth=644 bcm2708_fb.fbheight=448 bcm2708.boardrev=0x2 bcm2708.serial=0x7b32f4ce smsc95xx.macaddr=B8:27:EB:32:F4:CE dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
Home path : /home/slitaz
Configs : /etc/slitaz
Log files : /var/log/slitaz
Packages DB : /var/lib/tazpkg
Installed : 27 packages
Mirror : http://192.168.1.37/cross/armhf/packages/
================================================================================
Config file: /etc/slitaz/slitaz.conf
.

2012-11-18

Avoiding libtool minefields when cross-compiling


Avoiding libtool minefields when cross-compiling
http://www.metastatic.org/text/libtool.html

If you've ever tried to cross-compile a free software project for a different architecture on GNU/Linux, you may well have run into the situation where you compile a library with your cross toolchain, install it in a “staging” directory that will hold your root filesystem (for example, you compile the library to go into /usr/lib, but you install it in /tmp/rootfs/usr/lib, because that's where you're building your new root filesystem. You do this correctly: specify your --prefix=/usr when you configure, but provide DESTDIR=/tmp/rootfs when you make install), and you try to compile another library that links against that library. Everything goes fine (the author of the program may have even written his configure script properly, so you can configure it to use the correct toolchain), but at the link step, you get this:

/bin/sh libtool --mode=link target-gcc -c -O2 -o libbar.so ... -lfoo
target-gcc -c -O2 -o libbar.so ... /usr/lib/libfoo.so
/usr/lib/libfoo.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

Now, why is the command trying to link against /usr/lib/libfoo.so, which is your system's version of libfoo, and not /tmp/rootfs/usr/lib/libfoo.so? You might play with compiler and linker flags, try to hack and understand the libtool shell script (best of luck if you can decipher it), and end up cursing the ancestors of those who ever came up with such a dumb system.

The problem turns out to be that libfoo and libbar in this example both use libtool, and that the prefix happens to conflict with the system's library locations; when libtool installs a library, you'll see it installs libfoo.la.

What's with that file? You may, reasonably, expect to see one or two different kinds of library file: libfoo.a, which is just an archive of object files, and which you can statically link into your program; and libfoo.so, a dynamically loadable, sharable library. What's a .la? Just cat one, and you'll see:

$ cat /usr/lib/libesd.la
# libesd.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.95 2004/04/11 05:50:42) Debian: 224 $
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libesd.so.0'

# Names of this library.
library_names='libesd.so.0.2.36 libesd.so.0 libesd.so'

# The name of the static archive.
old_library='libesd.a'

# Libraries that this one depends upon.
dependency_libs=' -L/usr/lib /usr/lib/libaudiofile.la -lm'

# Version information for libesd.
current=2
age=2
revision=36

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib'

Notice the last line? It says that libesd is installed in /usr/lib, so when libtool finds your libfoo.la in your temporary root filesystem tree, that file tells it to go look in /usr/lib. So, you have to prevent the libtool file from confusing the libtool script at link time.

You can probably just remove the libtool library file, and rely on your linker to figure out what you mean by -lfoo (even though the .la strongly admonishes you not to delete it), but perhaps better is to just update libdir in this file to point to where your library is temporarily installed. Using GNU sed you can do this:

sed -i~ -e "s;/usr;/tmp/rootfs/usr;" /tmp/rootfs/usr/lib/libfoo.la

I do this just after installing the cross-compiled library into my temporary root filesystem tree.

You likely won't need the libtool files any more when you install (if you're targeting an embedded Linux system), so you don't care if those files are correct once installed on the target. You'll probably just remove them from the final image, anyway.

I wrote this because I spent a long night of fighting libtool, Googling for help and finding none, and finally figuring this out. This is the second time I've even figured this out, having forgotten the solution the first time. Hopefully, this will help you out if you encounter this issue.
The wrong-gcc problem

For some packages, you seem to also run into trouble where libtool can't figure out what you're doing:

$ libtool --mode=compile target-gcc -g -O2 -c foo.c
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'

OK, so it couldn't figure out that we're compiling C code. No problem, just add the tag --tag=CC. Works when we compile:

$ libtool --tag=CC --mode=compile target-gcc -g -O2 -c foo.c
target-gcc -g -O2 -c foo.c -fPIC -DPIC -o .libs/foo.o
target-gcc -g -O2 -c foo.c -o foo.o >/dev/null 2>&1

But when we link, libtool tries to call the native gcc:

$ libtool --tag=CC --mode=link target-gcc -rpath /usr/lib -o libfoo.la foo.lo
gcc -shared .libs/foo.o -Wl,-soname -Wl,libfoo.so.0 -o .libs/libfoo.so.0.0.0
/usr/bin/ld: .libs/foo.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/foo.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/foo.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/foo.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/foo.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/foo.o: Relocations in generic ELF (EM: 40)
.libs/foo.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

One rumored workaround (I haven't tried this, since I haven't had to cross compile anything in a while) is to specify a proper rpath in LDFLAGS:

-Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,${STAGING_DIR}/usr/lib -L${STAGING_DIR}/lib -L${STAGING_DIR}/usr/lib

Thanks to Waldemar Brodkorb for this workaround. Let me know if this works for you.

Another solution to this problem is to just install a cross libtool, which you'll use in preference to your system's libtool. It's easy enough to do; go grab the distribution, unpack it, and install it with:

$ tar xzf libtool-1.5.22.tar.gz
$ cd libtool-1.5.22
libtool-1.5.22 $ ./configure --prefix=/opt/Toolchain --host=target --program-prefix=target-
configure output...
libtool-1.5.22 $ make
make output...
libtool-1.5.22 $ sudo make install

Then, you can just use target-libtool when cross compiling. That libtool (which is still just a shell script, so you needn't worry about running it on the host) will be set up properly for using your target-gcc. You usually just have to add an environment variable LIBTOOL=target-libtool when you configure your package.

Happy Hacking.

Copyright © 2007, 2009 Casey Marshall
casey dot s dot marshall at gmail dot com

This is the version of March 7, 2009.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 United States License.

2012-11-10

raspi - hardfloat-3

ArmHardFloatPort
This page gathers thoughts and ideas around a new hard-float ABI ARM port for Debian, hopefully to be released for the the first time with Wheezy (7.0).

Contents

Current Status
Rationale
Supported devices
Background information
VFP
ARM EABI
GCC floating-point options
ld.so hwcaps
Endianess, architecture level, CPU, VFP level
Name of the port
Triplet
Performance improvements and benchmarks
NEON
Hardware
Task List
Partial reference of SoC and supported ISAs
Port naming debate notes
Compiler
Minimum CPU & FPU
Summary of Benefits

[..]
Background information

This section provides some background information on FPUs, ARM EABI, GCC floating-point ABIs, hwcaps...

Raspbian Benchmarking – armel vs armhf
Softfp and Hardfp

For ARM there are two different ABIs (Application Binary Interfaces), soft/softfp and hard. ‘soft’ doesn’t use the FPU at all and uses gcc maths replacement functions to emulate floating point arithmetic. ‘softfp’ uses the FPU but arguments to functions are passed through the integer registers and then passed to the floating point unit. ‘hard’ is using the FPU directly with data passed directly to the floating point unit registers. While soft/softfp are forwards compatible, ie. a ‘soft’ app can run on a softfp system, but not vice-versa, a ‘hardfloat’ application can run on neither of those systems. This means that in order to use hardfloat the system has to be completely recompiled for the hardfloat ABI, down to the last library and program.


Ref:
http://alanyih.blogspot.tw/2012/07/raspi-hardfloat.html
.

2012-11-07

raspi -- hardfloat / readelf

readelf -A

Tag_FP_arch: VFPv2
Tag_ABI_HardFP_use: SP and DP
Tag_ABI_VFP_args: VFP registers


softfloat
root@slitaz:~# readelf -A /home/slitaz-arm/distro/lib/libc-2.13.so
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "6"
Tag_CPU_arch: v6
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int
Tag_DIV_use: Not allowed
root@slitaz:~#


VS.


hardfloat
ref: http://alanyih.blogspot.tw/2012/11/slitaz-cross-testsuite.html
[CHECKING] readelf -A test.out
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "6"
Tag_CPU_arch: v6
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_FP_arch: VFPv2
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int
Tag_ABI_HardFP_use: SP and DP
Tag_ABI_VFP_args: VFP registers
Tag_DIV_use: Not allowed

2012-11-04

Slitaz -- cross

cross

root@slitaz:/# cross info
Tools prefix : --prefix=/cross/arm/tools
Target sysroot : --with-sysroot=/cross/arm/sysroot

Cross Toolchain information
================================================================================
Target arch : arm
C Compiler : arm-slitaz-linux-gnueabi-gcc
Build directory : /cross/arm
Tools prefix : /cross/arm/tools/bin
Arch sysroot : /cross/arm/sysroot
================================================================================

GCC version
================================================================================
Using built-in specs.
COLLECT_GCC=arm-slitaz-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/lto-wrapper
Target: arm-slitaz-linux-gnueabi
Configured with: ../gcc-4.6.3/configure --prefix=/cross/arm/tools --libexec=/cross/arm/tools/lib --target=arm-slitaz-linux-gnueabi --enable-shared --enable-c99 --enable-long-long --enable-__cxa_atexit --with-system-zlib --enable-plugin --disable-multilib --disable-libssp --disable-checking --disable-werror --with-pkgversion=SliTaz --with-bugurl=https://bugs.slitaz.org/ --with-sysroot=/cross/arm/sysroot --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-languages=c,c++
Thread model: posix
gcc version 4.6.3 (SliTaz)
================================================================================

root@slitaz:/#

Slitaz -- cross testsuite

cross testsuite

[CHECKING] file test.out
test.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped


root@slitaz:/# cross testsuite
Tools prefix : --prefix=/cross/arm/tools
Target sysroot : --with-sysroot=/cross/arm/sysroot
[COMPILING] arm-slitaz-linux-gnueabi-gcc -v -Wall -o test.out test.c
Using built-in specs.
COLLECT_GCC=arm-slitaz-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/lto-wrapper
Target: arm-slitaz-linux-gnueabi
Configured with: ../gcc-4.6.3/configure --prefix=/cross/arm/tools --libexec=/cross/arm/tools/lib --target=arm-slitaz-linux-gnueabi --enable-shared --enable-c99 --enable-long-long --enable-__cxa_atexit --with-system-zlib --enable-plugin --disable-multilib --disable-libssp --disable-checking --disable-werror --with-pkgversion=SliTaz --with-bugurl=https://bugs.slitaz.org/ --with-sysroot=/cross/arm/sysroot --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-languages=c,c++
Thread model: posix
gcc version 4.6.3 (SliTaz)
COLLECT_GCC_OPTIONS='-v' '-Wall' '-o' 'test.out' '-march=armv6' '-mfloat-abi=hard' '-mfpu=vfp'
/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/cc1 -quiet -v test.c -quiet -dumpbase test.c -march=armv6 -mfloat-abi=hard -mfpu=vfp -auxbase test -Wall -version -o /tmp/ccDffF34.s
GNU C (SliTaz) version 4.6.3 (arm-slitaz-linux-gnueabi)
compiled by GNU C version 4.6.3, GMP version 5.0.4, MPFR version 3.1.0-p4, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=65536
ignoring nonexistent directory "/cross/arm/sysroot/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/include
/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/include-fixed
/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/../../../../arm-slitaz-linux-gnueabi/include
/cross/arm/sysroot/usr/include
End of search list.
GNU C (SliTaz) version 4.6.3 (arm-slitaz-linux-gnueabi)
compiled by GNU C version 4.6.3, GMP version 5.0.4, MPFR version 3.1.0-p4, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=65536
Compiler executable checksum: c79421fa632f9d876a099c488d2165db
COLLECT_GCC_OPTIONS='-v' '-Wall' '-o' 'test.out' '-march=armv6' '-mfloat-abi=hard' '-mfpu=vfp'
/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/../../../../arm-slitaz-linux-gnueabi/bin/as -march=armv6 -mfloat-abi=hard -mfpu=vfp -meabi=5 -o /tmp/cctOLj6s.o /tmp/ccDffF34.s
COMPILER_PATH=/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/:/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/:/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/:/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/:/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/:/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/../../../../arm-slitaz-linux-gnueabi/bin/
LIBRARY_PATH=/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/:/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/../../../../arm-slitaz-linux-gnueabi/lib/:/cross/arm/sysroot/lib/:/cross/arm/sysroot/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-Wall' '-o' 'test.out' '-march=armv6' '-mfloat-abi=hard' '-mfpu=vfp'
/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/collect2 --sysroot=/cross/arm/sysroot --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.3 -X -m armelf_linux_eabi -o test.out /cross/arm/sysroot/usr/lib/crt1.o /cross/arm/sysroot/usr/lib/crti.o /cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/crtbegin.o -L/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3 -L/cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/../../../../arm-slitaz-linux-gnueabi/lib -L/cross/arm/sysroot/lib -L/cross/arm/sysroot/usr/lib /tmp/cctOLj6s.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /cross/arm/tools/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/crtend.o /cross/arm/sysroot/usr/lib/crtn.o

[CHECKING] file test.out
test.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped

[CHECKING] readelf -A test.out
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "6"
Tag_CPU_arch: v6
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_FP_arch: VFPv2
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int
Tag_ABI_HardFP_use: SP and DP
Tag_ABI_VFP_args: VFP registers
Tag_DIV_use: Not allowed
root@slitaz:/#