2011-06-08

Slitaz -- qemu-arm / qt470 -2

1.
[root@FriendlyARM /]# cat /bin/qt4   
#!/bin/sh

if [ -e /etc/friendlyarm-ts-input.conf ] ; then
        . /etc/friendlyarm-ts-input.conf
fi
true    ${TSLIB_TSDEVICE:=/dev/touchscreen}

TSLIB_CONFFILE=/etc/ts.conf

export TSLIB_TSDEVICE
export TSLIB_CONFFILE

export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal

export QWS_DISPLAY=:1
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/bin

if [ -c /dev/touchscreen ]; then
        export QWS_MOUSE_PROTO="Tslib MouseMan:/dev/input/mice"
        if [ ! -s /etc/pointercal ] ; then
                rm /etc/pointercal
                /usr/bin/ts_calibrate
        fi
else
        export QWS_MOUSE_PROTO="MouseMan:/dev/input/mice"
fi

export QWS_KEYBOARD=TTY:/dev/tty1

export HOME=/root

cd /usr/local/Trolltech/QtEmbedded-4.7.0-arm/demos/embedded/fluidlauncher
./fluidlauncher -qws
hotplug


2.
[root@FriendlyARM /]# cat /opt/Qtopia/apps/FriendlyARM/qt4-starter.desktop
[Translation]
File=QtopiaSettings
Context=qt4-starter
Comment[Desktop Entry/Name]=Use soft hyphen (char U00AD) to indicate hyphenation
[Desktop Entry]
Exec=qt4-starter
Icon=qt4-starter
Type=Application
Name[]=Start Qt4.7.0
CanFastload=0

3.
[root@FriendlyARM /]# ls -l /opt/Qtopia/bin/qt4-starter
-rwxr-xr-x    1 root     root        30832 Aug 16  2010 /opt/Qtopia/bin/qt4-starter
[root@FriendlyARM /]#

4.
[root@FriendlyARM /]# cat /etc/init.d/rcS
#! /bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel

#
#       Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP
/bin/hostname FriendlyARM

/bin/mount -n -t proc none /proc
/bin/mount -n -t sysfs none /sys
/bin/mount -n -t usbfs none /proc/bus/usb
/bin/mount -t ramfs none /dev

echo /sbin/mdev > /proc/sys/kernel/hotplug
/sbin/mdev -s
/bin/hotplug
# mounting file system specified in /etc/fstab
mkdir -p /dev/pts
mkdir -p /dev/shm
/bin/mount -n -t devpts none /dev/pts -o mode=0622
/bin/mount -n -t tmpfs tmpfs /dev/shm
/bin/mount -n -t ramfs none /tmp
/bin/mount -n -t ramfs none /var
mkdir -p /var/empty
mkdir -p /var/log
mkdir -p /var/lock
mkdir -p /var/run
mkdir -p /var/tmp

/sbin/hwclock -s

syslogd
/etc/rc.d/init.d/netd start
echo "                        " > /dev/tty1
echo "Starting networking..." > /dev/tty1
sleep 1
/etc/rc.d/init.d/httpd start
echo "                        " > /dev/tty1
echo "Starting web server..." > /dev/tty1
sleep 1
/etc/rc.d/init.d/leds start
echo "                        " > /dev/tty1
echo "Starting leds service..." > /dev/tty1
echo "                        "
sleep 1

/sbin/ifconfig lo 127.0.0.1
/etc/init.d/ifconfig-eth0

/bin/qtopia &
echo "                                  " > /dev/tty1
echo "Starting Qtopia, please waiting..." > /dev/tty1

[root@FriendlyARM /]#

5.
00005a70  01 00 02 00 70 69 70 65  00 70 73 65 75 64 6f 20  |....pipe.pseudo |
00005a80  66 6f 72 6b 00 65 78 65  63 20 66 6f 72 6b 00 2f  |fork.exec fork./|
00005a90  62 69 6e 2f 71 74 34 00  68 6f 74 70 6c 75 67 00  |bin/qt4.hotplug.|
00005aa0  32 61 63 74 69 76 61 74  65 64 28 69 6e 74 29 00  |2activated(int).|
00005ab0  31 71 75 69 74 28 29 00  70 69 64 20 25 64 20 63  |1quit().pid %d c|
00005ac0  6c 65 61 6e 65 64 0a 00  62 61 64 20 63 68 69 6c  |leaned..bad chil|
00005ad0  64 20 73 69 67 6e 61 6c  3f 0a 00 51 57 69 64 67  |d signal?..QWidg|
00005ae0  65 74 00 31 52 65 70 61  69 6e 74 41 6c 6c 28 29  |et.1RepaintAll()|

00005b50  40 be 00 00 00 00 00 00  71 74 34 2d 73 74 61 72  |@.......qt4-star|
00005b60  74 65 72 00 73 65 74 44  6f 63 75 6d 65 6e 74 28  |ter.setDocument(|
00005b70  63 6f 6e 73 74 20 51 53  74 72 69 6e 67 26 29 00  |const QString&).|
00005b80  54 4d 61 69 6e 46 6f 72  6d 42 61 73 65 00 00 00  |TMainFormBase...|