2010-05-19

Slitaz -- virtualbox-3.1.8

Add Slitaz support to VirtualBox installer

root@slitaz:~# head -12 /home/slitaz/wok/get-virtualbox/stuff/installer.u
--- stuff/get-virtualbox Thu Jan 7 14:12:34 2010
+++ get-virtualbox Fri Jan 15 11:39:10 2010
@@ -57,6 +57,159 @@
cd install
[ -d /usr/share/VirtualBox ] && ./uninstall.sh
find /usr /etc /lib > ../before
+
+
+# Add Slitaz support to VirtualBox installer.
patch -p1 <<'EOT'
+--- install-ori/routines.sh Thu Dec 17 14:37:35 2009
++++ install/routines.sh Thu Dec 24 13:33:02 2009
root@slitaz:~#
root@slitaz:~# tazpkg info virtualbox

Tazpkg information
================================================================================
Package : virtualbox
Version : 3.1.8-61349_2.6.30.6
Category : non-free
Short desc : x86 virtualization.
Maintainer :
Depends : libsdl fontconfig gcc-lib-base glib libpng python udev libglu-mesa
Web site : http://www.virtualbox.org/
================================================================================

root@slitaz:~#
root@slitaz:~# tazpkg list | grep virtual
get-virtualbox 1.01 non-free
virtualbox 3.1.8-61349_2.6.3 non-free
root@slitaz:~# ps ax | grep Virtu
3962 root /usr/share/VirtualBox/VirtualBox
3988 root /usr/share/VirtualBox/VBoxXPCOMIPCD
4001 root /usr/share/VirtualBox/VBoxSVC --pipe 8 --auto-shutdown
4025 root /usr/share/VirtualBox/VirtualBox --comment slitaz --startvm d80162f7-9736-4e1b-99c1-b361431eb7e5
4993 root grep Virtu
root@slitaz:~# lsmod | grep vbox
vboxdrv 138232 1
root@slitaz:~# VirtualBox --help | head -6
Sun VirtualBox Graphical User Interface 3.1.8 (C) 2005-2010 Sun Microsystems, Inc. All rights reserved.
Usage: --startvm start a VM by specifying its UUID or name
root@slitaz:~#

root@slitaz:~# cat /var/lib/tazpkg/installed/virtualbox/receipt
# SliTaz package receipt.

PACKED_SIZE="40.4M"
UNPACKED_SIZE="103.2M"
PACKAGE="virtualbox"
VERSION="3.1.8-61349"
EXTRAVERSION=_2.6.30.6
CATEGORY="non-free"
SHORT_DESC="x86 virtualization."
WEB_SITE="http://www.virtualbox.org/"
DEPENDS="libsdl fontconfig gcc-lib-base glib libpng python udev libglu-mesa"

post_install()
{
udevadm trigger --subsystem-match=usb > /dev/null 2>&1
udevtrigger --subsystem-match=usb > /dev/null 2>&1
udevtrigger --subsystem-match=usb_device > /dev/null 2>&1
udevplug -Busb > /dev/null 2>&1
chroot "$1/" depmod -a 2.6.30.6-slitaz

# Add vboxusers group
if (! grep -q ^vboxusers /etc/group); then
addgroup vboxusers
fi
}
root@slitaz:~#
root@slitaz:~# cat /usr/bin/get-virtualbox
#!/bin/sh -e

ROOT="$1"
PACKAGE=${0#*get-}

if test $(id -u) != 0 ; then
echo -e "\nYou must be root to run `basename $0`."
echo -e "Please type 'su' and root password to become super-user.\n"
exit 0
fi

if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ]; then
[ -n "$ROOT" ] && exit 1
tazpkg remove $PACKAGE
[ -d /var/lib/tazpkg/installed/$PACKAGE ] && exit 1
fi
[ -d $ROOT/usr/share/$PACKAGE ] && rm -rf $ROOT/usr/share/$PACKAGE

WEB_SITE=http://www.virtualbox.org/
SHORT_DESC="x86 virtualization."
dl_url()
{
wget -O - ${WEB_SITE}wiki/Linux_Downloads 2> /dev/null | \
grep Linux_x86.run | sed 's|.*href="\(.*Linux_x86.run\).*|\1|'
}

TMP_DIR=/tmp/get-$PACKAGE-$$-$RANDOM
CUR_DIR=$(pwd)
mkdir -p $TMP_DIR && cd $TMP_DIR

url=$(dl_url)
TARBALL=$(basename $url)
wget $url

if [ ! -f "$TARBALL" ]; then
cd $CUR_DIR
rm -rf $TMP_DIR
echo "Could not download $TARBALL. Exiting."
exit 1
fi

VERSION=${TARBALL%-Linux_x86.run*}
VERSION=${VERSION#VirtualBox-}

sed -i 's/df -kP/df -k/' $TARBALL

# Extract
sh $TARBALL --noexec --keep

BUILD_DEPENDS="slitaz-toolchain bzip2 linux-source python python-dev"
for i in $BUILD_DEPENDS; do
[ -d /var/lib/tazpkg/installed/$i ] && continue
yes y | tazpkg get-install $i
done

# Install files
cd install
[ -d /usr/share/VirtualBox ] && ./uninstall.sh
find /usr /etc /lib > ../before


# Add Slitaz support to VirtualBox installer.
+patch -p1 <<'EOT'
--- install-ori/routines.sh Thu Dec 17 14:37:35 2009
+++ install/routines.sh Thu Dec 24 13:33:02 2009
@@ -207,6 +207,10 @@
ro_SYS_TYPE=unknown
ro_INIT_TYPE=bsd
ro_RC_LOCAL=/etc/rc.local
+ elif [ -f /etc/slitaz-release ]; then
+ ro_SYS_TYPE=slitaz
+ ro_INIT_TYPE=slitaz
+ ro_RC_LOCAL=/etc/rcS.conf
elif [ -d /etc/init.d ]; then
ro_SYS_TYPE=unknown
ro_INIT_TYPE=sysv
@@ -252,6 +256,9 @@
cp "$script" "/usr/sbin/$name" 2> /dev/null
chmod 755 "/usr/sbin/$name" 2> /dev/null
hav register $name System.Service $pardus_script
+ elif [ "$ro_INIT_TYPE" = "slitaz" ]; then
+ cp "$script" "/etc/init.d/$name" 2> /dev/null
+ chmod 755 "/etc/init.d/$name" 2> /dev/null
else
log "install_init_script: error: unknown init type"
return 1
@@ -279,6 +286,8 @@
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
hav remove $name
rm -f "/usr/sbin/$name" > /dev/null 2>&1
+ elif [ "$ro_INIT_TYPE" = "slitaz" ]; then
+ rm -f "/etc/init.d/$name" > /dev/null 2>&1
else
log "remove_init_script: error: unknown init type"
return 1
@@ -303,6 +312,8 @@
"/etc/rc.d/rc.$name" start >> $ro_LOG_FILE 2>&1
elif [ "$ro_INIT_TYPE" = "lfs" ]; then
"/etc/rc.d/init.d/$name" start >> $ro_LOG_FILE 2>&1
+ elif [ "$ro_INIT_TYPE" = "slitaz" ]; then
+ "/etc/init.d/$name" start >> $ro_LOG_FILE 2>&1
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
service $name on
else
@@ -328,6 +339,8 @@
"/etc/rc.d/rc.$name" stop >> $ro_LOG_FILE 2>&1
elif [ "$ro_INIT_TYPE" = "lfs" ]; then
"/etc/rc.d/init.d/$name" stop >> $ro_LOG_FILE 2>&1
+ elif [ "$ro_INIT_TYPE" = "slitaz" ]; then
+ "/etc/init.d/$name" stop >> $ro_LOG_FILE 2>&1
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
service $name off
else
@@ -425,6 +438,12 @@
echo "fi" >> $ro_RC_LOCAL
echo "" >> $ro_RC_LOCAL
fi
+ # Slitaz GNU/Linux use /etc/rcS.conf to start services.
+ elif [ "$ro_INIT_TYPE" = "slitaz" ]; then
+ if ! grep $1 $ro_RC_LOCAL
+ then
+ sed -i -e "s/RUN_DAEMONS=\"\(.*\)\"/RUN_DAEMONS=\"\1 $1\"/" $ro_RC_LOCAL
+ fi
# Probably most unknown Linux systems will be sysv type ones. These can theoretically
# be handled automatically if people give us information about them.
elif [ "$ro_INIT_TYPE" = "sysv" ]; then
@@ -484,6 +503,12 @@
rm "/etc/rc4.d/S??$1" > /dev/null 2>&1
rm "/etc/rc5.d/S??$1" > /dev/null 2>&1
rm "/etc/rc6.d/K??$1" > /dev/null 2>&1
+ # Slitaz GNU/Linux
+ elif [ "$ro_INIT_TYPE" = "slitaz" ]; then
+ if grep $1 $ro_RC_LOCAL
+ then
+ sed -i -e "s/$1//" $ro_RC_LOCAL
+ fi
# Unknown sysv-type system
elif [ "$ro_INIT_TYPE" = "sysv" ]; then
echo 1>&2 "Please remove remove references to the initialization script"
@@ -515,6 +540,8 @@
scriptname="/etc/rc.d/init.d/$name"
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
scriptname="/usr/sbin/$name"
+ elif [ "$ro_INIT_TYPE" = "slitaz" ]; then
+ scriptname="/etc/init.d/$name"
else
log "$self: error: unknown init type"
return 1
@@ -563,6 +590,8 @@
scriptname="/etc/rc.d/init.d/$name"
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
scriptname="/usr/sbin/$name"
+ elif [ "$ro_INIT_TYPE" = "slitaz" ]; then
+ scriptname="/etc/rc.d/init.d/$name"
else
log "$self: error: unknown init type"
return 1
--- install-ori/vboxdrv.sh Thu Dec 17 14:37:35 2009
+++ install/vboxdrv.sh Thu Dec 24 11:49:30 2009
@@ -63,6 +63,8 @@
system=suse
elif [ -f /etc/gentoo-release ]; then
system=gentoo
+ elif [ -f /etc/slitaz-release ]; then
+ system=slitaz
fi
fi

@@ -123,6 +125,19 @@
if [ "`which $0`" = "/sbin/rc" ]; then
shift
fi
+ elif [ "$system" = "slitaz" ]; then
+ if [ -f /etc/init.d/rc.functions ]; then
+ . /etc/init.d/rc.functions
+ fi
+ fail_msg() {
+ status
+ }
+ succ_msg() {
+ status "$?"
+ }
+ begin_msg() {
+ echo "$1"
+ }
else
fail_msg() {
echo " ...failed!"
@@ -132,6 +147,7 @@
echo " ...done."
}
fi
+
if [ "$system" != "gentoo" ]; then
begin_msg() {
[ -z "${1:-}" ] && return 1
@@ -169,7 +185,11 @@
if ! modprobe vboxdrv > /dev/null 2>&1; then
failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why"
fi
- sleep .2
+ if [ "$system" = "slitaz" ]; then
+ sleep 1
+ else
+ sleep .2
+ fi
fi
# ensure the character special exists
if [ ! -c $DEVICE ]; then

EOT

./install.sh install /usr/share/VirtualBox
cd ..
find /usr /etc /lib > after
sed -i 's/ps -U/ps | grep/' /usr/share/VirtualBox/VBox.sh
echo 'lsmod | grep -q vboxdrv || modprobe vboxdrv' >> /etc/vbox/vbox.cfg
mkdir -p $PACKAGE-$VERSION/fs
diff -U0 before after | grep ^+/ | sed 's|^\+/||' | \
( cd / ; cpio -o -H newc ) | ( cd $PACKAGE-$VERSION/fs ; cpio -idm )

# Create pseudo package
cat > $PACKAGE-$VERSION/receipt <# SliTaz package receipt.

PACKAGE="$PACKAGE"
VERSION="$VERSION"
EXTRAVERSION=_$(uname -r | sed 's/-slitaz//')
CATEGORY="non-free"
SHORT_DESC="$SHORT_DESC"
WEB_SITE="$WEB_SITE"
DEPENDS="libsdl fontconfig gcc-lib-base glib libpng python udev libglu-mesa"

post_install()
{
$(grep ' udev[atp]' install/install.sh)
chroot "\$1/" depmod -a $(uname -r)

# Add vboxusers group
if (! grep -q ^vboxusers /etc/group); then
addgroup vboxusers
fi
}
EOT

# Pack
tazpkg pack $PACKAGE-$VERSION

# Install pseudo package
tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT

# Clean
cd $CUR_DIR
rm -rf $TMP_DIR
.

2010-05-18

Slitaz -- setxkbmap

Ctrl+Alt+Backspace

http://doc.slitaz.org/en:guides:xorg-xvesa

The # sign means that you do this command as root on your console.

The default Slitaz-3.0.iso uses xorg 7.4 with the xorg-xf86-video-vesa 2.0.0 driver. This xvesa-driver can cause quite a few problems - it can result in a very low resolution or X does not start at all (falls back to slim or to the console). There are however some more possibilities:

  • check first, if you have enough Ram to run the default.iso - if not use the lowram.iso
  • you use the slitaz-3.0-xvesa.iso (TinyX)
  • you install the xorg video driver for your card
  • you can try to change your xorg.conf

Note: In Xorg versions up to 7.3, the Ctrl+Alt+Backspace key combination could be used to quit the X server. To enable it in version 7.4 and later, you can type the following command from any X terminal emulator:

setxkbmap -option terminate:ctrl_alt_bksp

Good introductions to Xorg Configuration: The FreeBSD Handbook and X Configuration from Ubuntu
[..]
root@slitaz-3:~# tazpkg info xorg-setxkbmap

Tazpkg information
================================================================================
Package : xorg-setxkbmap
Version : 1.0.4
Category : x-window
Short desc : Set the keyboard using the X Keyboard Extension.
Maintainer : pascal.bellard@slitaz.org
Depends : xorg xorg-libX11 xorg-xkeyboard-config xorg-libxkbfile
Web site : http://www.x.org/
================================================================================

root@slitaz-3:~# tazpkg list-files xorg-setxkbmap

Installed files with : xorg-setxkbmap
================================================================================
/usr/bin/setxkbmap
================================================================================
1 files installed with xorg-setxkbmap.

root@slitaz-3:~#
.

2010-05-12

Slitaz -- kernel -2

tazwok cook linux

Env:
http://hg.slitaz.org/wok-stable/raw-file/d4f3fe7e0dc0/linux/receipt

wok-stable-cd66133a1f46.tar.bz2

error: zlib.h: No such file or directory

tazpkg get-install zlib-dev
or
ln -s /home/slitaz/wok/linux/linux-2.6.30.6/include/linux/zlib.h /usr/include

root@slitaz:/home/slitaz/wok# tazwok cook linux
[..]
================================================================================
Package linux-wireless (2.6.30.6) generated.
Size : 1.4M /home/slitaz/packages/linux-wireless-2.6.30.6.tazpkg

tazwok cook aufs-utils
tazwok cook broadcom-wl
tazwok cook catalyst
tazwok cook compcache
tazwok cook dahdi-linux
tazwok cook fuse
tazwok cook gnu-efi
tazwok cook iptables
tazwok cook kqemu
tazwok cook libcap
tazwok cook linmodem-agrsm
tazwok cook linmodem-intel-536ep
tazwok cook linmodem-intel-537
tazwok cook linmodem-slmodem
tazwok cook ndiswrapper-driver
tazwok cook nvidia
tazwok cook open-iscsi
tazwok cook usbip
======================================================================
These modules selected in .config were not categorized in linux-* pkgs:
smsc9420.ko.gz : /home/slitaz/wok/linux/linux-2.6.30.6/_pkg/lib/modules/2.6.30.6-slitaz/kernel/drivers/net/smsc9420.ko.gz
dvb-core.ko.gz : /home/slitaz/wok/linux/linux-2.6.30.6/_pkg/lib/modules/2.6.30.6-slitaz/kernel/drivers/media/dvb/dvb-core/dvb-core.ko.gz
dlm.ko.gz : /home/slitaz/wok/linux/linux-2.6.30.6/_pkg/lib/modules/2.6.30.6-slitaz/kernel/fs/dlm/dlm.ko.gz
configfs.ko.gz : /home/slitaz/wok/linux/linux-2.6.30.6/_pkg/lib/modules/2.6.30.6-slitaz/kernel/fs/configfs/configfs.ko.gz
======================================================================

Executing strip on all files... [ OK ]
Copying the receipt... [ OK ]
Creating the list of files... [ OK ]
Creating md5sum of files... [ OK ]
Compressing the fs...
LZMA 4.57 Copyright (c) 1999-2007 Igor Pavlov 2007-12-06
8861 blocks
[ OK ]
Updating receipt sizes... [ OK ]
Creating full cpio archive... 6361 blocks
[ OK ]
Restoring original package tree... 8861 blocks
================================================================================
Package linux (2.6.30.6) generated.
Size : 3.1M /home/slitaz/packages/linux-2.6.30.6.tazpkg

root@slitaz:/home/slitaz/wok# tazwok stats

Tazwok configuration statistics
================================================================================
Wok directory : /home/slitaz/wok
Packages repository : /home/slitaz/packages
Sources repository : /home/slitaz/src
Packages in the wok : 2293
Cooked packages : 53
================================================================================

root@slitaz:/home/slitaz/wok# ls ../packages
lguest-2.6.30.6.tazpkg
linux-2.6.30.6.tazpkg
linux-acpi-2.6.30.6.tazpkg
linux-agp-2.6.30.6.tazpkg
linux-appletalk-2.6.30.6.tazpkg
linux-aufs-2.6.30.6.tazpkg
linux-bluetooth-2.6.30.6.tazpkg
linux-bridge-2.6.30.6.tazpkg
linux-btrfs-2.6.30.6.tazpkg
linux-cifs-2.6.30.6.tazpkg
linux-coda-2.6.30.6.tazpkg
linux-cpufreq-2.6.30.6.tazpkg
linux-cramfs-2.6.30.6.tazpkg
linux-crypto-2.6.30.6.tazpkg
linux-cryptoloop-2.6.30.6.tazpkg
linux-dialup-2.6.30.6.tazpkg
linux-drm-2.6.30.6.tazpkg
linux-ext4-2.6.30.6.tazpkg
linux-gfs2-2.6.30.6.tazpkg
linux-headers-2.6.30.6.tazpkg
linux-hfs-2.6.30.6.tazpkg
linux-hfsplus-2.6.30.6.tazpkg
linux-ieee1394-2.6.30.6.tazpkg
linux-input-misc-2.6.30.6.tazpkg
linux-input-tablet-2.6.30.6.tazpkg
linux-input-touchscreen-2.6.30.6.tazpkg
linux-ipv6-2.6.30.6.tazpkg
linux-irda-2.6.30.6.tazpkg
linux-isdn-2.6.30.6.tazpkg
linux-jfs-2.6.30.6.tazpkg
linux-joystick-2.6.30.6.tazpkg
linux-kvm-2.6.30.6.tazpkg
linux-md-2.6.30.6.tazpkg
linux-memstick-2.6.30.6.tazpkg
linux-minix-2.6.30.6.tazpkg
linux-mmc-2.6.30.6.tazpkg
linux-mwave-2.6.30.6.tazpkg
linux-ncpfs-2.6.30.6.tazpkg
linux-netfilter-2.6.30.6.tazpkg
linux-reiserfs-2.6.30.6.tazpkg
linux-sched-2.6.30.6.tazpkg
linux-scsi-2.6.30.6.tazpkg
linux-sound-2.6.30.6.tazpkg
linux-source-2.6.30.6.tazpkg
linux-squashfs-2.6.30.6.tazpkg
linux-udf-2.6.30.6.tazpkg
linux-usbdsl-2.6.30.6.tazpkg
linux-usbip-2.6.30.6.tazpkg
linux-usb-misc-2.6.30.6.tazpkg
linux-uwb-2.6.30.6.tazpkg
linux-video-2.6.30.6.tazpkg
linux-wimax-2.6.30.6.tazpkg
linux-wireless-2.6.30.6.tazpkg
root@slitaz:/home/slitaz/wok#

====
root@slitaz:/home/slitaz/wok# tazwok cook linux
[..]
patching file lib/Kconfig
patching file lib/decompress_bunzip2.c
patching file lib/decompress_inflate.c
patching file lib/decompress_unlzma.c
cc -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE lguest.c -lz -o lguest
lguest.c:34:18: error: zlib.h: No such file or directory
make: *** [lguest] Error 1

root@slitaz:/home/slitaz/wok# cat linux/receipt | grep -n lguest
59: cd Documentation/lguest
60: make lguest || return 1
root@slitaz:/home/slitaz/wok#
.

2010-05-11

Slitaz -- kernel

Build your own custom Linux Kernel for SliTaz
[http://doc.slitaz.org/en:guides:kernel]

1. tazpkg get-install slitaz-toolchain
2. tazpkg get-install linux-source


----
To modify the kernel configuration:
$ cd /usr/src/linux-2.6.30.6-slitaz
$ make menuconfig

To build the kernel and the modules:
$ cd /usr/src/linux-2.6.30.6-slitaz
$ make bzImage && make modules

To install the new kernel and the modules:
$ make modules_install
$ cp -a arch/x86/boot/bzImage /boot/vmlinuz-2.6.30.6-slitaz

To make a Slitaz package with the new kernel and the modules:
$ make tazpkg

See /usr/src/linux-2.6.30.6-slitaz/README
----
================================================================================
linux-source (2.6.30.6) is installed.

root@slitaz:~# gcc -v
Using built-in specs.
Target: i486-pc-linux-gnu
Configured with: ../gcc-4.4.1/configure --prefix=/usr --libexecdir=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls --enable-languages=c,c++,objc,fortran --enable-shared --with-system-zlib --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit --enable-threads=posix --with-tune=i486 i486-pc-linux-gnu
Thread model: posix
gcc version 4.4.1 (GCC)
root@slitaz:~#

root@slitaz:~# tazpkg info slitaz-toolchain

Tazpkg information
================================================================================
Package : slitaz-toolchain
Version : 1.0
Category : meta
Short desc : SliTaz toolchain meta package for devel.
Maintainer : pankso@slitaz.org
Depends : binutils linux-headers glibc-dev gcc make
Web site : http://www.slitaz.org/
================================================================================

root@slitaz:~# tazpkg info linux-source

Tazpkg information
================================================================================
Package : linux-source
Version : 2.6.30.6
Category : development
Short desc : The Linux kernel source files.
Maintainer : devel@slitaz.org
Depends : linux slitaz-toolchain ncurses-dev perl
Wanted src : linux
Web site : http://www.kernel.org/
================================================================================

root@slitaz:~# cat /var/log/tazpkg.log
2010-05-12 08:33:01 - Installed - binutils (2.19.1) - 3e0de34e007be29c0ebb6cbff43eba15
2010-05-12 08:33:01 - Installed - linux-headers (2.6.30.6) - f96101f9d3e1c29ff35edd54476e4577
2010-05-12 08:33:03 - Installed - bash (4.0) - 299bf79f5c8ea7b19715e9981a9419a8
2010-05-12 08:33:03 - Installed - libgd (2.0.35) - 539b6e178d8bcdbd7a0e4d4d97c0e04a
2010-05-12 08:33:04 - Installed - glibc-dev (2.10.1) - 1bfa095deffb35e64401b59856cf3ede
2010-05-12 08:33:05 - Installed - libgomp (4.4.1) - 2a1264d8e6daed0f6a0d51f30bdc6ede
2010-05-12 08:33:05 - Installed - make (3.81) - 6e37b7395ffa82c65ef5630c2e27dec2
2010-05-12 08:33:06 - Installed - gmp (4.2.2) - 549b48e2af6470f3babfcab6a407900c
2010-05-12 08:33:06 - Installed - mpfr (2.4.1) - 8af4c7df92b29ccf77d589a6e54001f6
2010-05-12 08:33:13 - Installed - gcc (4.4.1) - 3dd4b1be27a5a90f738c63f5654786c9
2010-05-12 08:33:13 - Installed - slitaz-toolchain (1.0) - dbf1a81f5e42e93b9f838b5e146c6783
2010-05-12 08:39:43 - Installed - ncursesw-dev (5.7) - 3a243df79f4ad2dfa1c1fc4c7981a0a9
2010-05-12 08:39:43 - Installed - ncurses-dev (5.7) - c7a96c4ae098b65809e2bd2165362a48
2010-05-12 08:39:43 - Installed - libdb (4.7.25) - 88b3fb91256dd36f1b8bd7d3aef73989
2010-05-12 08:39:43 - Installed - gdbm (1.8.3) - db31351e035c988201ab6a4f54582e96
2010-05-12 08:39:45 - Installed - perl (5.10.0) - 08a618230fbad37eaa63b7e4483eca80
2010-05-12 08:40:06 - Installed - patch (2.5.4) - 395aa6153644678ea3ff2512ac0bb8bb
2010-05-12 08:40:12 - Installed - linux-source (2.6.30.6) - 478e2bdb88dabc5ac32cd7781488305a
root@slitaz:~#

root@slitaz:~# ls -l /usr/src
lrwxrwxrwx 1 root root 21 May 12 08:39 linux -> linux-2.6.30.6-slitaz
drwxrwxr-x 24 root root 4096 May 12 08:40 linux-2.6.30.6-slitaz
-rwx------ 1 root root 59430223 Oct 14 2009 linux-2.6.30.6.tar.bz2
root@slitaz:~# ls -l /lib/modules/`uname -r`/ | grep linux
lrwxrwxrwx 1 root root 30 May 12 08:39 build -> /usr/src/linux-2.6.30.6-slitaz
lrwxrwxrwx 1 root root 30 May 12 08:39 source -> /usr/src/linux-2.6.30.6-slitaz
root@slitaz:~#
.

2010-05-10

Slitaz -- ldd

ldd :
LD_TRACE_LOADED_OBJECTS=1 /lib/ld*.so $@

root@slitaz:~# which ldd
/usr/bin/ldd
root@slitaz:~# cat /usr/bin/ldd
#!/bin/sh
#
# Tiny ldd fake.
# (c) 2010 SliTaz GNU/Linux.
#

echo ""
LD_TRACE_LOADED_OBJECTS=1 /lib/ld*.so $@
echo ""
root@slitaz:~# tazpkg search-pkgname ldd

Search result for file : ldd
================================================================================
asterisk
catalyst
glibc-dev
slitaz-base-files
zsh

================================================================================
5 pkg(s) found with file : ldd

root@slitaz:~# tazpkg list-files slitaz-base-files | grep ldd
/usr/bin/ldd
root@slitaz:~#
root@slitaz:~# ldd /bin/cpio

linux-gate.so.1 => (0xffffe000)
librt.so.1 => /lib/librt.so.1 (0xb8022000)
libc.so.6 => /lib/libc.so.6 (0xb7ebc000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7ea3000)
/lib/ld-linux.so.2 => /lib/ld-2.10.1.so (0xb802c000)

root@slitaz:~# LD_TRACE_LOADED_OBJECTS=1 /lib/ld*.so $@ /bin/cpio
linux-gate.so.1 => (0xffffe000)
librt.so.1 => /lib/librt.so.1 (0xb7f55000)
libc.so.6 => /lib/libc.so.6 (0xb7def000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7dd6000)
/lib/ld-linux.so.2 => /lib/ld-2.10.1.so (0xb7f5f000)

root@slitaz:~# LD_TRACE_LOADED_OBJECTS=1 /lib/ld*.so $@
Usage: ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...]
You have invoked `ld.so', the helper program for shared library executables.
This program usually lives in the file `/lib/ld.so', and special directives
in executable files using ELF shared libraries tell the system's program
loader to load the helper program from this file. This helper program loads
the shared libraries needed by the program executable, prepares the program
to run, and runs it. You may invoke this helper program directly from the
command line to load and run an ELF executable file; this is like executing
that file itself, but always uses this helper program from the file you
specified, instead of the helper program file specified in the executable
file you run. This is mostly of use for maintainers to test new versions
of this helper program; chances are you did not intend to run this program.

--list list all dependencies and how they are resolved
--verify verify that given object really is a dynamically linked
object we can handle
--library-path PATH use given PATH instead of content of the environment
variable LD_LIBRARY_PATH
--inhibit-rpath LIST ignore RUNPATH and RPATH information in object names
in LIST
--audit LIST use objects named in LIST as auditors
root@slitaz:~#

2010-05-09

Slitaz -- Desktop Wallpaper



Desktop Wallpaper

A.
menu --> preferences --> Desktop Wallpaper

B.
default:

root@slitaz:~# tail -5 ~/.config/openbox/autostart.sh
# Set a background image using hsetroot (depends on imlib2).
#hsetroot -fill /usr/share/images/slitaz-background.png &

# Background color with xsetroot.
#xsetroot -solid "#222222" &
root@slitaz-3:~# ls /usr/share/images/slitaz*
/usr/share/images/slitaz-background.jpg
root@slitaz:~#

1. enable hsetroot
vi ~/.config/openbox/autostart.sh

hsetroot -fill /usr/share/images/heron.jpg &

2. tazpkg get-install hsetroot
.

Slitaz -- numlock

numlock

vi /etc/slim.conf

numlock on

root@slitaz:~# cat /etc/slim.conf | grep numlock
# Activate numlock when slim starts. Valid values: on|off
# numlock on
root@slitaz:~#
.

Slitaz -- lighttpd




Lighttpd Enhanced Directory Listing Script

Env: packages-3.0.iso
lighttpd-1.4.26
php-5.2.11

root@slitaz:/var/www/packages/3.0# head index.php

$VERSION = "0.2-slitaz";

/* Lighttpd Enhanced Directory Listing Script
* ------------------------------------------
* Authors: Evan Fosmark ,
* Pascal Bellard
*
*

root@slitaz:/var/www/packages/3.0# tail -14 index.php

// Print ending stuff
print "



lighttpd (SliTaz GNU/Linux)





";
?>
root@slitaz:/var/www/packages/3.0#
.

2010-05-05

Slitaz -- firefox


Env: slitaz-3.0.iso
langpack: Traditional Chinese (zh-TW) Language Pack
[http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.5/linux-i686/xpi/zh-TW.xpi]

root@slitaz:~# file /tmp/zh-TW.xpi
/tmp/zh-TW.xpi: Zip archive data, at least v2.0 to extract
root@slitaz:~# unzip -l /tmp/zh-TW.xpi
Archive: /tmp/zh-TW.xpi
Length Date Time Name
-------- ---- ---- ----
876 03-15-10 09:10 install.rdf
467859 03-15-10 09:10 chrome/zh-TW.jar
1363 03-15-10 09:10 chrome.manifest
-------- -------
470098 3 files
root@slitaz:~#
root@slitaz:~# ls -lR /usr/lib/firefox-3.5.7/extensions/langpack-zh-TW@firefox.mo
zilla.org/
/usr/lib/firefox-3.5.7/extensions/langpack-zh-TW@firefox.mozilla.org/:
drwxr-xr-x 2 root root 60 May 5 19:43 chrome
-rw-r--r-- 1 root root 1363 Mar 15 09:10 chrome.manifest
-rw-r--r-- 1 root root 876 Mar 15 09:10 install.rdf

/usr/lib/firefox-3.5.7/extensions/langpack-zh-TW@firefox.mozilla.org/chrome:
-rw-r--r-- 1 root root 467859 Mar 15 09:10 zh-TW.jar
root@slitaz:~#

root@slitaz:~# cat /etc/firefox/pref/firefox-l10n.js
//@line 36 "/home/slitaz/wok/firefox/firefox-3.5.7/browser/locales/en-US/firefox-l10n.js"

//@line 38 "/home/slitaz/wok/firefox/firefox-3.5.7/browser/locales/en-US/firefox-l10n.js"

pref("general.useragent.locale", "zh-TW");

root@slitaz:~# cat /var/lib/tazpkg/installed/firefox/receipt
# SliTaz package receipt.

PACKAGE="firefox"
VERSION="3.5.7"
CATEGORY="network"
SHORT_DESC="User friendly, secure and fast web browser."
MAINTAINER="pankso@slitaz.org"
DEPENDS="gtk+ sqlite dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage alsa-lib xorg-libXt libfirefox"
BUILD_DEPENDS="xorg-dev gtk+-dev zip libIDL coreutils findutils xorg-libXft-dev \
dbus-dev dbus-glib-dev alsa-lib-dev"
TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
WEB_SITE="http://www.mozilla.org/"
WGET_URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL"
CONFIG_FILES="/etc/firefox"
TAGS="browser"

# Rules to configure and make the package.
#
# A long compile time... dont forget to build libidl before and check the
# .mozconfig file from the stuff and the stuff/README document.
#
compile_rules()
{
# Move the mozilla source tree to $PACKAGE-$VERSION to keep variables
# and to have a nice clean.
mv mozilla-* $PACKAGE-$VERSION 2>/dev/null
cp -a stuff/firefox.mozconfig $src/.mozconfig
cd $src
sed -i 's/xtype/type/' toolkit/mozapps/installer/packager.mk
./configure $CONFIGURE_ARGS &&
make &&
make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/usr/lib/$PACKAGE-$VERSION $fs/usr/share $fs/etc
cp -a $_pkg/usr/bin $fs/usr
cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib

# Home page, bookmarks file and branding.
cp -a stuff/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION
cp -a stuff/bookmarks.html \
$fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
cp -a stuff/firefox-branding.js \
$fs/usr/lib/$PACKAGE-$VERSION/defaults/pref/

# User preference.
cp -a stuff/prefs.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
cp -a stuff/userChrome.css \
$fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome

# Move default config to /etc/firefox (/usr maybe read-only)
for i in defaults browserconfig.properties ; do
mv -f $fs/usr/lib/$PACKAGE-$VERSION/$i $fs/etc/$PACKAGE
done
ln -s /etc/$PACKAGE/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION
ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults

# EULA is accepted by SliTaz project.
sed -i s:'pref("browser.EULA.3.accepted", false);':'pref("browser.EULA.3.accepted", true);': \
$fs/etc/firefox/pref/firefox.js

# Locale fr
tar xjf stuff/langpack-fr@firefox.mozilla.org.tar.bz2 \
-C $fs/usr/lib/$PACKAGE-$VERSION/extensions

#sed -i "s/maxVersion>3.0../maxVersion>$VERSION/" \
# $fs/usr/lib/$PACKAGE-$VERSION/extensions/langpack*/install.rdf

# Search Plugin (by: oddball)
cp -a stuff/searchplugins $fs/usr/lib/firefox-$VERSION/
chown -R root.root $fs

# Remove unnecessary files.
rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries/*
rm -rf $fs/usr/lib/$PACKAGE-$VERSION/icons
# split firefox libs
rm -rf $fs/usr/lib/$PACKAGE-$VERSION/*.so
#retain big firefox libs
cp $_pkg/usr/lib/$PACKAGE-$VERSION/libxul.so \
$_pkg/usr/lib/$PACKAGE-$VERSION/libmozjs.so \
$fs/usr/lib/$PACKAGE-$VERSION

}

# Pre - Post install command to set default locale.
pre_install()
{
local root
root=$1
# Get old plugins
mkdir /tmp/firefox-plugins-$$
cp -a $root/usr/lib/firefox-*/plugins/* /tmp/firefox-plugins-$$ 2> /dev/null
# Remove old libs and configs
rm -rf $root/usr/lib/firefox-*/plugins
rm -rf $root/usr/lib/firefox-*/dictionaries
rm -rf $root/etc/firefox
}
post_install()
{
local root
root=$1
if grep -q "fr_*" $root/etc/locale.conf 2>/dev/null; then
sed -i 's/en-US/fr/' \
$root/etc/firefox/pref/firefox-l10n.js

fi
for i in /tmp/firefox-plugins-$$/* ; do
[ -e $i ] || continue
[ -e /usr/lib/firefox-*/plugins/$(basename $i) ] && continue
cp -a $i /usr/lib/firefox-*/plugins/
done
rm -rf /tmp/firefox-plugins-$$
}
.

2010-05-01

Slitaz -- Gigabit Ethernet




Env: Gigabit Ethernet direct connection
server: pure-ftpd-1.0.27
client: gftp-2.0.19

54.60 Mbytes per second, 39.97 Mbytes per second

root@slitaz:~# tail ~/.gftp/gftp.log
PASV
227 Entering Passive Mode (192,168,1,37,170,149)
RETR /media/Audio1/slitaz/iso/packages-3.0.iso
150-Accepted data connection
150 1562624.0 kbytes to download
226-File successfully transferred
226 38.181 seconds (measured here), 39.97 Mbytes per second
Successfully transferred /media/Audio1/slitaz/iso/packages-3.0.iso at 40901.58 KB/s
Successfully changed mode of /media/video/packages-3.0.iso to 777
Successfully changed the time stamp of /media/video/packages-3.0.iso

root@slitaz:~# tail -94 ~/.gftp/gftp.log | head -8
RETR /media/Audio1/arm9/arm9home/arm-linux-gnueabi-4.2.4.tar.gz
150-Accepted data connection
150 70052.1 kbytes to download
226-File successfully transferred
226 1.253 seconds (measured here), 54.60 Mbytes per second
Successfully transferred /media/Audio1/arm9/arm9home/arm-linux-gnueabi-4.2.4.tar.gz at 55752.24 KB/s
Successfully changed mode of /root/arm-linux-gnueabi-4.2.4.tar.gz to 777
Successfully changed the time stamp of /root/arm-linux-gnueabi-4.2.4.tar.gz

root@slitaz:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr x:x:x:x:x:x
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49906 errors:0 dropped:0 overruns:0 frame:0
TX packets:15625 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:75058857 (71.5 MiB) TX bytes:1174623 (1.1 MiB)
Interrupt:20 Base address:0xc000
root@slitaz:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use If
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 et
root@slitaz:~# ssh root@192.168.1.37

Host '192.168.1.37' is not in the trusted hosts file.
(fingerprint md5 x:x:x:x:)
Do you want to continue connecting? (y/n) y

Secure login on SliTaz GNU/Linux powered by Dropbear SSH server.

root@192.168.1.37's password:


(°- { Documentation in /usr/share/doc. Use 'less -EM' to read files,
//\ become root with 'su' and edit using 'nano'.
v_/_ Type 'startx' to start a X window session. }

SliTaz GNU/Linux is distributed in the hope that it will be useful, but
with ABSOLUTELY NO WARRANTY.


root@slitaz-3:~# netstat -nlt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.37:43669 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
netstat: /proc/net/tcp6: No such file or directory
root@slitaz-3:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr x:x:x:x:x:x
inet addr:192.168.1.37 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5083790 errors:0 dropped:0 overruns:0 frame:0
TX packets:11132174 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:359400699 (342.7 MiB) TX bytes:4009240006 (3.7 GiB)
Interrupt:17

root@slitaz-3:~#
.

Slitaz -- fbreader


root@slitaz-3:~# tazpkg info fbreader

Tazpkg information
================================================================================
Package : fbreader
Version : 0.12.10
Category : utilities
Short desc : E-Book Reader. Supports many e-book formats.
Maintainer : devl547@gmail.com
Depends : expat liblinebreak curl fribidi bzip2 sqlite gtk+
Build deps : expat-dev liblinebreak-dev curl-dev fribidi-dev bzip2-dev sqlite-dev gtk+-dev
Web site : http://www.fbreader.org/
================================================================================

FBReader— e-book reader for Unix/Windows computers

[..]
Main features:

* Supported e-book formats are
o ePub, an international e-publishing standard.
o fb2, a Russian e-books standard de facto.
o plucker, one of the most popular Palm e-book format.
o Non-DRM'd version of Mobipocket, a popular commercial e-book format.
o More formats.
* Direct reading from tar, zip, gzip and bzip2 archives. (Multiple books in one archive are supported.)
* Automatic library building.
* Automatic language and character encoding detection is supported.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. The same algorithm is used in TeX, and TeX hyphenation patterns are used in FBReader. Patterns for Czech, English, Esperanto, Finnish, French, German, Italian, Norwegian, Portuguese, Russian, Spanish, Swedish and Ukrainian are included in the current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
[..]

Navit


navit planet extractor

Main Page [http://wiki.navit-project.org/index.php/Main_Page]

Navit is an open source (GPL) car navigation software for Linux systems. It will display your position on a map (in bird-view mode or as a 3D "visualization") from GPS sensor data, and can provide precise route calculation, touch screen functionality and supports Points of Interest (POI), which can be extended via an easy to use plugin system. Unlike other navigation systems, Navit maps are dynamically generated in real time from vector data.
[..]
Maps

The best navigation system is useless without maps. Navit supports these various map formats:

* OpenStreetMaps
o You can download pre-compiled (ready-to-use) maps using the OpenStreetMap-data from the the navit planet extractor ;-)]™ which allows you to select a region of OpenStreetMap to extract. This will give you a binary file that can be used directly by Navit without further processing. The planet extractor's map data is updated daily.
o Or you can download pre-processed Navit-compatible map packages from cloudmade.com
* Australian OSM extract
o Bigtincan maintains a regular extract for navit, which does support navigation and search of the Australian data.
* European maps
* Garmin maps
* US/Tiger maps
* Other maps or how you could display POI, tracks or routes from other sources
[..]

2010-04-21

Slitaz -- arm / kernel


Env:
gcc version 4.4.1 (Sourcery G++ 4.4-170)
linux-2.6.32.2-mini2440-20100113.tgz
1. tar xzvf linux-2.6.32.2-mini2440-20100113.tgz
cd linux-2.6.32.2/
2. cp config_mini2440_t35 .config
3. make xconfig
4. time make zImage
5. ls -l arch/arm/boot/zImage
-rwxrwxrwx 1 root root 2739608 Apr 21 16:46 arch/arm/boot/zImage

root@slitaz:/mnt/data/arm9/mini2440/linux-2.6.32.2# make xconfig
CHECK qt
sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
HOSTCC scripts/kconfig/kconfig_load.o
/usr/bin/moc -i scripts/kconfig/qconf.h -o scripts/kconfig/qconf.moc
HOSTCXX scripts/kconfig/qconf.o
HOSTLD scripts/kconfig/qconf
scripts/kconfig/qconf arch/arm/Kconfig

root@slitaz:/mnt/data/arm9/mini2440/linux-2.6.32.2# time make zImage
[..]
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready

real 6m14.729s
user 4m51.275s
sys 0m27.131s

root@slitaz:/mnt/data/arm9/mini2440/linux-2.6.32.2# ls -lh arch/arm/boot/zImage
-rwxrwxrwx 1 root root 2.6M Apr 21 16:46 arch/arm/boot/zImage
root@slitaz:/mnt/data/arm9/mini2440/linux-2.6.32.2# ls -l arch/arm/boot/zImage
-rwxrwxrwx 1 root root 2739608 Apr 21 16:46 arch/arm/boot/zImage

root@slitaz:/mnt/data/arm9/mini2440/linux-2.6.32.2# make help | tail -168
Architecture specific targets (arm):
* zImage - Compressed kernel image (arch/arm/boot/zImage)
Image - Uncompressed kernel image (arch/arm/boot/Image)
* xipImage - XIP kernel image, if configured (arch/arm/boot/xipImage)
uImage - U-Boot wrapped zImage
bootpImage - Combined zImage and initial RAM disk
(supply initrd image via make variable INITRD=)
install - Install uncompressed kernel
zinstall - Install compressed kernel
Install using (your) ~/bin/installkernel or
(distribution) /sbin/installkernel or
install to $(INSTALL_PATH) and run lilo

acs5k_defconfig - Build for acs5k
acs5k_tiny_defconfig - Build for acs5k_tiny
afeb9260_defconfig - Build for afeb9260
am200epdkit_defconfig - Build for am200epdkit
ams_delta_defconfig - Build for ams_delta
assabet_defconfig - Build for assabet
at91cap9adk_defconfig - Build for at91cap9adk
at91rm9200dk_defconfig - Build for at91rm9200dk
at91rm9200ek_defconfig - Build for at91rm9200ek
at91sam9260ek_defconfig - Build for at91sam9260ek
at91sam9261ek_defconfig - Build for at91sam9261ek
at91sam9263ek_defconfig - Build for at91sam9263ek
at91sam9g20ek_defconfig - Build for at91sam9g20ek
at91sam9rlek_defconfig - Build for at91sam9rlek
ateb9200_defconfig - Build for ateb9200
badge4_defconfig - Build for badge4
bcmring_defconfig - Build for bcmring
cam60_defconfig - Build for cam60
carmeva_defconfig - Build for carmeva
cerfcube_defconfig - Build for cerfcube
cm_x2xx_defconfig - Build for cm_x2xx
cm_x300_defconfig - Build for cm_x300
colibri_pxa270_defconfig - Build for colibri_pxa270
colibri_pxa300_defconfig - Build for colibri_pxa300
collie_defconfig - Build for collie
corgi_defconfig - Build for corgi
cpu9260_defconfig - Build for cpu9260
cpu9g20_defconfig - Build for cpu9g20
cpuat91_defconfig - Build for cpuat91
csb337_defconfig - Build for csb337
csb637_defconfig - Build for csb637
da830_omapl137_defconfig - Build for da830_omapl137
da850_omapl138_defconfig - Build for da850_omapl138
davinci_all_defconfig - Build for davinci_all
ebsa110_defconfig - Build for ebsa110
ecbat91_defconfig - Build for ecbat91
edb7211_defconfig - Build for edb7211
em_x270_defconfig - Build for em_x270
ep93xx_defconfig - Build for ep93xx
eseries_pxa_defconfig - Build for eseries_pxa
ezx_defconfig - Build for ezx
footbridge_defconfig - Build for footbridge
fortunet_defconfig - Build for fortunet
h3600_defconfig - Build for h3600
h5000_defconfig - Build for h5000
h7201_defconfig - Build for h7201
h7202_defconfig - Build for h7202
hackkit_defconfig - Build for hackkit
integrator_defconfig - Build for integrator
iop13xx_defconfig - Build for iop13xx
iop32x_defconfig - Build for iop32x
iop33x_defconfig - Build for iop33x
ixp2000_defconfig - Build for ixp2000
ixp23xx_defconfig - Build for ixp23xx
ixp4xx_defconfig - Build for ixp4xx
jornada720_defconfig - Build for jornada720
kafa_defconfig - Build for kafa
kb9202_defconfig - Build for kb9202
kirkwood_defconfig - Build for kirkwood
ks8695_defconfig - Build for ks8695
lart_defconfig - Build for lart
loki_defconfig - Build for loki
lpd270_defconfig - Build for lpd270
lpd7a400_defconfig - Build for lpd7a400
lpd7a404_defconfig - Build for lpd7a404
lubbock_defconfig - Build for lubbock
lusl7200_defconfig - Build for lusl7200
magician_defconfig - Build for magician
mainstone_defconfig - Build for mainstone
mini2440_defconfig - Build for mini2440
msm_defconfig - Build for msm
mv78xx0_defconfig - Build for mv78xx0
mx1ads_defconfig - Build for mx1ads
mx1_defconfig - Build for mx1
mx21_defconfig - Build for mx21
mx27_defconfig - Build for mx27
mx31pdk_defconfig - Build for mx31pdk
mx3_defconfig - Build for mx3
n770_defconfig - Build for n770
n8x0_defconfig - Build for n8x0
neocore926_defconfig - Build for neocore926
neponset_defconfig - Build for neponset
netwinder_defconfig - Build for netwinder
netx_defconfig - Build for netx
nhk8815_defconfig - Build for nhk8815
ns9xxx_defconfig - Build for ns9xxx
omap_2430sdp_defconfig - Build for omap_2430sdp
omap_3430sdp_defconfig - Build for omap_3430sdp
omap3_beagle_defconfig - Build for omap3_beagle
omap3_evm_defconfig - Build for omap3_evm
omap3_pandora_defconfig - Build for omap3_pandora
omap_4430sdp_defconfig - Build for omap_4430sdp
omap_apollon_2420_defconfig - Build for omap_apollon_2420
omap_generic_1510_defconfig - Build for omap_generic_1510
omap_generic_1610_defconfig - Build for omap_generic_1610
omap_generic_1710_defconfig - Build for omap_generic_1710
omap_generic_2420_defconfig - Build for omap_generic_2420
omap_h2_1610_defconfig - Build for omap_h2_1610
omap_h4_2420_defconfig - Build for omap_h4_2420
omap_innovator_1510_defconfig - Build for omap_innovator_1510
omap_innovator_1610_defconfig - Build for omap_innovator_1610
omap_ldp_defconfig - Build for omap_ldp
omap_osk_5912_defconfig - Build for omap_osk_5912
omap_perseus2_730_defconfig - Build for omap_perseus2_730
omap_zoom2_defconfig - Build for omap_zoom2
onearm_defconfig - Build for onearm
orion5x_defconfig - Build for orion5x
overo_defconfig - Build for overo
palmte_defconfig - Build for palmte
palmtt_defconfig - Build for palmtt
palmz71_defconfig - Build for palmz71
palmz72_defconfig - Build for palmz72
pcm027_defconfig - Build for pcm027
picotux200_defconfig - Build for picotux200
pleb_defconfig - Build for pleb
pnx4008_defconfig - Build for pnx4008
pxa168_defconfig - Build for pxa168
pxa255-idp_defconfig - Build for pxa255-idp
pxa3xx_defconfig - Build for pxa3xx
pxa910_defconfig - Build for pxa910
qil-a9260_defconfig - Build for qil-a9260
realview_defconfig - Build for realview
realview-smp_defconfig - Build for realview-smp
rpc_defconfig - Build for rpc
rx51_defconfig - Build for rx51
s3c2410_defconfig - Build for s3c2410
s3c6400_defconfig - Build for s3c6400
s5pc100_defconfig - Build for s5pc100
sam9_l9260_defconfig - Build for sam9_l9260
shannon_defconfig - Build for shannon
shark_defconfig - Build for shark
simpad_defconfig - Build for simpad
spitz_defconfig - Build for spitz
stmp378x_defconfig - Build for stmp378x
stmp37xx_defconfig - Build for stmp37xx
sx1_defconfig - Build for sx1
tct_hammer_defconfig - Build for tct_hammer
trizeps4_defconfig - Build for trizeps4
u300_defconfig - Build for u300
usb-a9260_defconfig - Build for usb-a9260
usb-a9263_defconfig - Build for usb-a9263
versatile_defconfig - Build for versatile
viper_defconfig - Build for viper
w90p910_defconfig - Build for w90p910
xcep_defconfig - Build for xcep
yl9200_defconfig - Build for yl9200

make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build
make V=2 [targets] 2 => give reason for rebuild of target
make O=dir [targets] Locate all output files in "dir", including .config
make C=1 [targets] Check all c source with $CHECK (sparse by default)
make C=2 [targets] Force check of all c source with $CHECK

Execute "make" or "make all" to build all targets marked with [*]
For further info see the ./README file
root@slitaz:/mnt/data/arm9/mini2440/linux-2.6.32.2#
.

Slitaz -- arm / uboot

1.Env:
gcc version 4.4.1 (Sourcery G++ 4.4-170)
bootloader.tgz / u-boot-1.1.6 (mini2440)
2.tar xzvf bootloader.tgz
cd bootloader/u-boot-1.1.6/
3.add include/configs/100ask24x0.h
4.vi u-boot-1.1.6/Makefile
5.make distclean
6.make open24x0_config
7.make

----
3.add include/configs/100ask24x0.h

#if0
#define CONFIG_DRIVER_CS8900 1
#define CS8900_BASE 0x19000300
#define CS8900_BUS16 1
#endif
#if!defined(CONFIF_DRIVER_CS8900)
#define CONFIG_DRIVER_DM9000 1
#define CONFIG_DM9000_USE_16BIT 1
#define CONFIG_DM9000_BASE 0x20000000
#define DM9000_IO 0x20000000
#define DM_9000_DATA 0x20000004
#endif

4.vi u-boot-1.1.6/Makefile

line #218 del -lc
crosstool:gcc version 4.4.1 (Sourcery G++ 4.4-170)

root@slitaz:/mnt/data/arm9/mini2440/bootloader/u-boot-1.1.6/# diff -U0 Makefile-orig Makefile
--- Makefile-orig Wed Apr 1 10:51:24 2009
+++ Makefile Wed Apr 21 14:04:42 2010
@@ -218 +218 @@
-PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lc -L/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/usr/lib
+PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -L/opt/sourcery/lib/gcc/arm-none-eabi/4.4.1/thumb

5. make distclean <== clean all && create .depend
6. make open24x0_config
Configuring for open24x0 board...

7. make
[..]
--start-group lib_generic/libgeneric.a board/open24x0/libopen24x0.a cpu/arm920t/libarm920t.a cpu/arm920t/s3c24x0/libs3c24x0.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/usb/libusb.a drivers/sk98lin/libsk98lin.a common/libcommon.a --end-group -L /opt/sourcery/bin/../lib/gcc/arm-none-eabi/4.4.1/thumb -lgcc -L/opt/sourcery/lib/gcc/arm-none-eabi/4.4.1/thumb \
-Map u-boot.map -o u-boot
arm-linux-objcopy --gap-fill=0xff -O srec u-boot u-boot.srec
arm-linux-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin
root@slitaz:/mnt/data/arm9/mini2440/bootloader/u-boot-1.1.6/# ls -l u-boot*
-rwxrwxrwx 1 root root 648704 Apr 21 14:05 u-boot
-rwxrwxrwx 1 root root 172028 Apr 21 14:05 u-boot.bin
-rwxrwxrwx 1 root root 148234 Apr 21 14:05 u-boot.map
-rwxrwxrwx 1 root root 516202 Apr 21 14:05 u-boot.srec
root@slitaz:/mnt/data/arm9/mini2440/bootloader/u-boot-1.1.6/# file u-boot
u-boot: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped
root@slitaz:/mnt/data/arm9/mini2440/bootloader/u-boot-1.1.6/# file u-boot.bin
u-boot.bin: data
root@slitaz:/mnt/data/arm9/mini2440/bootloader/u-boot-1.1.6/# file u-boot.map
u-boot.map: ASCII assembler program text
root@slitaz:/mnt/data/arm9/mini2440/bootloader/u-boot-1.1.6/# file u-boot.srec
u-boot.srec: Motorola S-Record; binary data in text format
root@slitaz:/mnt/data/arm9/mini2440/bootloader/u-boot-1.1.6/# arm-linux-gcc -v
Using built-in specs.
Target: arm-none-eabi
Configured with: /scratch/dan/eabi-stable-respin/src/gcc-4.4/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-eabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxx-multilibs --with-gnu-as --with-gnu-ld --with-specs='%{!fcommon:%{!fno-common:-fno-common}} %{O2:%{!fno-remove-local-statics: -fremove-local-statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-statics}}}' --enable-languages=c,c++ --disable-shared --disable-lto --with-newlib --with-pkgversion='Sourcery G++ 4.4-170' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-headers=yes --with-sysroot=/opt/codesourcery/arm-none-eabi --with-build-sysroot=/scratch/dan/eabi-stable-respin/install/arm-none-eabi --with-gmp=/scratch/dan/eabi-stable-respin/obj/host-libs-4.4-170-arm-none-eabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/dan/eabi-stable-respin/obj/host-libs-4.4-170-arm-none-eabi-i686-pc-linux-gnu/usr --with-ppl=/scratch/dan/eabi-stable-respin/obj/host-libs-4.4-170-arm-none-eabi-i686-pc-linux-gnu/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-cloog=/scratch/dan/eabi-stable-respin/obj/host-libs-4.4-170-arm-none-eabi-i686-pc-linux-gnu/usr --disable-libgomp --with-license=/scratch/dan/eabi-stable-respin/obj/host-libs-4.4-170-arm-none-eabi-i686-pc-linux-gnu/usr --with-csl-license-version=20100330 --with-csl-license-feature=gcc_ARM_EABI --enable-poison-system-directories --with-debug-prefix-map='/scratch/dan/eabi-stable-respin/install=/opt/codesourcery /scratch/dan/eabi-stable-respin/src/gcc-4.4=/opt/codesourcery/arm-none-eabi/src/gcc /scratch/dan/eabi-stable-respin/obj/gcc-4.4-170-arm-none-eabi-i686-pc-linux-gnu=/opt/codesourcery/arm-none-eabi/src/generated/gcc' --with-build-time-tools=/scratch/dan/eabi-stable-respin/install/arm-none-eabi/bin --with-build-time-tools=/scratch/dan/eabi-stable-respin/install/arm-none-eabi/bin
Thread model: single
gcc version 4.4.1 (Sourcery G++ 4.4-170)


Ref:
1. mini2440用戶手冊-2010-2-4.pdf
p388 ch-8.3 U-Boot

2. u-boot的Makefile分析
[http://blog.mcuol.com/User/lvembededsys/Article/4355_1.htm]

3. 逐行分析u-boot http://blog.csdn.net/huafulan/archive/2009/05/11/4169248.aspx

Slitaz -- arm / busybox


1.Env: arm-linux-gcc-4.3.2.tgz
busybox-1.13.3-mini2440.tgz
2.tar xzvf busybox-1.13.3-mini2440.tgz
cd busybox-1.13.3
3.cp fa.config .config
4.make gconfig
5.make

Trying libraries: crypt m
Library crypt is needed, can't exclude it (yet)
Library m is needed, can't exclude it (yet)
Final link with: crypt m


root@slitaz:~# arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2008q3-72' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)
root@slitaz:~#

root@slitaz:/mnt/data/arm9/mini2440/busybox-1.13.3# ls -l busybox*
-rwxrwxrwx 1 root root 634416 Apr 22 09:33 busybox
-rwxrwxrwx 1 root root 796307 Apr 22 09:33 busybox_unstripped
-rwxrwxrwx 1 root root 691492 Apr 22 09:33 busybox_unstripped.map
-rwxrwxrwx 1 root root 32926 Apr 22 09:33 busybox_unstripped.out
root@slitaz:/mnt/data/arm9/mini2440/busybox-1.13.3# file busybox
busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped
root@slitaz:/mnt/data/arm9/mini2440/busybox-1.13.3# file busybox_unstripped
busybox_unstripped: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
root@slitaz:/mnt/data/arm9/mini2440/busybox-1.13.3# file busybox_unstripped.map
busybox_unstripped.map: ASCII assembler program text
root@slitaz:/mnt/data/arm9/mini2440/busybox-1.13.3# file busybox_unstripped.out
busybox_unstripped.out: ASCII C program text, with very long lines

root@slitaz:/mnt/data/arm9/mini2440/busybox-1.13.3# ls -l /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/lib/libm*
-rwxr-xr-x 1 root root 743679 Nov 18 2008 /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/lib/libm-2.8.so
-rwxr-xr-x 1 root root 22825 Nov 18 2008 /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/lib/libmemusage.so
lrwxrwxrwx 1 root root 11 Apr 21 09:34 /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/lib/libm.so.6 -> libm-2.8.so
root@slitaz:/mnt/data/arm9/mini2440/busybox-1.13.3# ls -l /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/lib/libcrypt*
-rwxr-xr-x 1 root root 45563 Nov 18 2008 /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/lib/libcrypt-2.8.so
lrwxrwxrwx 1 root root 15 Apr 21 09:34 /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/lib/libcrypt.so.1 -> libcrypt-2.8.so
root@slitaz:/mnt/data/arm9/mini2440/busybox-1.13.3#

gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)
[..]
Library crypt is needed, can't exclude it (yet)

LD util-linux/volume_id/built-in.o
CC util-linux/volume_id/get_devname.o
CC util-linux/volume_id/util.o
CC util-linux/volume_id/volume_id.o
AR util-linux/volume_id/lib.a
LINK busybox_unstripped
Trying libraries: crypt m
Library crypt is needed, can't exclude it (yet)
Library m is needed, can't exclude it (yet)
Final link with: crypt m

real 1m1.509s
user 0m46.332s
sys 0m6.750s

2010-04-20

Slitaz -- arm / qemu



Extract from:
Tiny qemu arm system with a DirectFB interface
[http://free-electrons.com/community/demos/qemu-arm-directfb/]

A tiny embedded Linux system running on the qemu arm emulator, with a DirectFB interface, everything in 2.1 MB (including the kernel)!

Overview
This demo embedded Linux system has the following features:

* Very easy to run demo, just 1 file to download and 1 command line to type!
* Runs on qemu (easy to get for most GNU/Linux distributions), emulating an ARM Versatile PB board.
* Available through a single file (kernel and root filesystem), sizing only 2.1 MB!
* DirectFB graphical user interface.
* Demonstrates the capabilities of qemu, the Linux kernel, BusyBox, DirectFB, and shows the benefits of system size and boot time reduction techniques as advertised and supported by the CE Linux Forum.
* License: GNU GPL for root filesystem scripts. Each software component has its own license.
[..]

http://free-electrons.com/pub/qemu/demos/arm/directfb/1.0/vmlinuz-qemu-arm-2.6.20

root@slitaz:~/Downloads# date
二 4月 20 15:00:40 UTC 2010
root@slitaz:~/Downloads# ls -lh vmlinuz-qemu-arm-2.6.20
-rw-r--r-- 1 root root 2.1M Apr 20 08:54 vmlinuz-qemu-arm-2.6.20
root@slitaz:~/Downloads# ls -l /usr/bin/qemu-system-arm
-rwxr-xr-x 1 root root 2164440 Apr 20 11:08 /usr/bin/qemu-system-arm

root@slitaz:~/Downloads# tazpkg list-files qemu | head -8

Installed files with : qemu
================================================================================
/usr/bin/qemu
/usr/bin/qemu-img
/usr/bin/qemu-nbd
/usr/bin/qemu-system-x86_64
/usr/share/qemu/bamboo.dtb
root@slitaz:~/Downloads# ./run_qemu &
[1] 1684
root@slitaz:~/Downloads# ps ax | grep qemu
1685 root qemu-system-arm -M versatilepb -m 16 -kernel vmlinuz-qemu-arm-2.6.20 -append clocksource=pit quiet rw
root@slitaz:~/Downloads#
.

2010-04-15

Slitaz -- skyeye




root@slitaz:~# skyeye -h
SkyEye 1.3.0
Bug report: skyeye-simulator@googlegroups.com
Usage: skyeye [options] -e program [program args]
Default mode is STANDALONE mode
------------------------------------------------------------------
Options:
-e exec-file the (ELF executable format)kernel file name.
-l load_address,load_address_mask
Load ELF file to another address, not its entry.
-b specify the data type is big endian when non "-e" option.
-d in GDB Server mode (can be connected by GDB).
-c config-file the skyeye configure file name.
-h The SkyEye command options, and ARCHs and CPUs simulated.
------------------------------------------------------------------
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)help
No commands match ''. Possibilties are:
log-pc : record the every pc to log file.

disassemble : Disassemble the given address.

cov-state : show code coverage state.

cov-off : turn off code coverage switch.

cov-on : turn on code coverage switch.

pmon : enable the performance monitor.

delete-bp : List all the breakpoint.

list-bp : List all the breakpoint.

break : set breakpoint for an address.

show-step : Show the steps of current processor.

x : display memory value at the address.
info : show information for various objects.
load-conf : load a config file and parse it for SkyEye.
list-machines : List all the supported machines for SkyEye.
list-options : List all the available options for SkyEye.
show-map : Show the current memory map for the machine.
show-pref : Show the current preference for SkyEye.
list-modules : List all the loaded module.
start : start simulator.
stepi : step into .
continue : Continue the running of interrupted simulator.
stop : Stop the running of simulator.
run : Start the simulator.
q : Quit SkyEye
quit : Quit SkyEye
ls : Synonym for `list'
? : Synonym for `help'.

help : List all the category for the commands.

help : List all the category for the commands.

(skyeye)q
No valid arch option is provided.
Destroy threads.
Unload all modules.
exit.
root@slitaz:~#

====
root@slitaz:/tmp/skyeye-testsuite-1.3.0_rc1/uClinux/at91/uclinux_cs8900a# skyeye -e linux
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)start
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
In do_mach_option, mach info: name at91, mach_init addr 0xb5e2b770

ethmod num=1, mac addr=0:0:0:0:0:0, hostip=10.0.0.1
uart_mod:3, desc_in:, desc_out:, converter:
In create_uart_console
Warning: locale not supported by Xlib, locale set to C
Loaded ROM ./romfs.img
SKYEYE: use arm7100 mmu ops
exec file "linux"'s format is elf32-i386.
load section .init: addr = 0x01000000 size = 0x0000a000.
load section .text: addr = 0x0100a000 size = 0x000e1cd0.
load section .data: addr = 0x010ec000 size = 0x0000a434.
not load section .bss: addr = 0x010f6440 size = 0x000222c0 .
In SIM_start, Set PC to the address 0x1000000

(skyeye)run
(running)

====
Connecting to slitaz:56832
Linux version 2.4.27-uc1 (skyeyeuser@debian) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #3 Tue Aug 9 18:57:29 CST 2005
Processor: Atmel AT91M40xxx revision 0
Architecture: EB01
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 15.82 BogoMIPS
Memory: 4MB = 4MB total
Memory: 2916KB available (903K code, 178K data, 40K init)
Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 1400000-1512BFF [VIRTUAL 1400000-1512BFF] (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Cirrus Logic CS8900A driver for Linux (V0.02)
eth0: CS8900A rev D detected
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Shell invoked to run file: /etc/rc
Command: hostname GDB-ARMulator
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram0 /var
mount: /etc/mtab: Read-only file system
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: cat /etc/motd
Welcome to
          ____ _  _
/ __| ||_|
_ _| | | | _ ____ _ _ _ _
| | | | | | || | _ \| | | |\ \/ /
| |_| | |__| || | | | | |_| |/ \
| ___\____|_||_|_| |_|\____|\_/\_/
| |
|_|

GDB/ARMulator support by
For further information check:
http://www.uclinux.org/

Command: /bin/ifconfig eth0 up 10.0.0.2
Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> ls
bin
dev
etc
home
lib
mnt
proc
sbin
tmp
usr
var
/> help
cd [dirname]
sleep seconds
chgrp gid filename ...
chmod mode filename ...
chown uid filename ...
cmp filename1 filename2
cp srcname ... destname
df [file-system]
echo [args] ...
exec filename [args]
exit
free
help
hexdump [-s pos] filename
hostname [hostname]
kill [-sig] pid ...
ln [-s] srcname ... destname
ls [-lidC] filename ...
mkdir dirname ...
mknod filename type major minor
more filename ...
mount [-t type] devname dirname
mv srcname ... destname
printenv [name]
pwd
pid
quit
rm filename ...
rmdir dirname ...
setenv name value
source filename
sync
touch filename ...
umask [mask]
umount filename
ps
cat filename ...
date date [MMDDhhmm[YYYY]]
/> date
Thu Jan 1 00:01:54 1970

/> free
total: used: free: shared: buffers: cached:
Mem: 2985984 1077248 1908736 0 155648 266240
Swap: 0 0 0
/> df
Total Kbytes: 1096
Free Kbytes: 0
Total nodes: 0
Free nodes: 0
/>

2010-04-08

Slitaz -- roadmap / ARM port

Roadmap http://labs.slitaz.org/projects/roadmap/distro
4.0

Due in 351 days (03/26/2011)

SliTaz GNU/Linux 4.0

0%

0 closed (0%) 2 open (100%)
Roadmap 4.0

SliTaz roadmap to Stable Version 4.0 - Release Schedule: Spring 2011
Timeline

* April 2010 -> August 2010: Add well tested packages from wok-undigest, split existing packages, remove dependencies.
* ...

ARM port

SliTaz 4.0 will have an ARM port to target new ARM powered netbooks and other portable devices.
Gettext support in all SliTaz tools and utilities

All SliTaz related tools such as tazpkg, tazlito or GTK boxes will be gettextized and translated into as many languages as possible.
Related issues

* Task #301: Up gcc to 4.4.3 or higher (New toolchain)
* Task #305: xorg security vulnerability

----
http://forum.slitaz.org/index.php/discussion/918/slitaz-on-pda

English-General•? slitaz on pda ?

*
o lmart o April 4 o Permalink

Has anyone replaced WinCE on HP iPAQ h1910 with SliTaz?
*
o ernia o April 4 o Permalink

i don't think that slitaz works on arm architecture too...
i think that debian works on arm, search for debian armel
*
o monz o April 4 o Permalink

There was/is a project to put Linux on the HP iPAQ 1910:

http://www.handhelds.org/moin/moin.cgi/HpIpaqH1910

I have one too, and have wanted to try this but never got around to it, because it seems complicated enough (involves burning a new BIOS etc.) that i keep putting it off.
*
o jozee o April 5 o Permalink

Question asked at the right time :-)
We are working on porting SliTaz to arm. So, fun is about to begin.
http://forum.slitaz.org/index.php/discussion/comment/4662/#Comment_4662
.

Slitaz -- control box


root@slitaz:/home/tux# hwsetup usage

SliTaz Setup configuration

Usage: hwsetup [command] [--option]

Commands:
usage Print this short usage.
printer Paraller and USB Printer setup.
scanner USB Scanner setup.
webcam Integrated and USB webcam setup.
camera Digital Camera setup.
bluetooth Bluetooth setup.
3g-modem 3g-modem setup.
firewall start/stop firewall.
nvidia Nvidia (non-free/free) setup.
ati ATI (non-free/free) setup.

Options:
--non-free install non-free packages (nvidia, ati).
--suggested auto-install optional dependencies.
--confirm confirm before installing optional dependencies

root@slitaz:/home/tux#

http://labs.slitaz.org/wiki/setup
Hwsetup
Overview

This tool extends tazhw to make hardware setup easier. The following devices are considered: printer, scanner, camera, webcam, 3g-modem,bluetooth, firewall, nvidia and ati. Download here. Learn more

USAGE:
tazhw setup usage

For GUI use tazhwbox:
tazhw box

SYNTAX:
tazhw setup [device]

* To set up printer:
tazhw setup printer

* To set up scanner:
tazhw setup scanner

* To set up webcam:
tazhw setup webcam

* To set up digital camera:
tazhw setup camera

* To set up 3g-modem:
tazhw setup 3g-modem

* To set up bluetooth:
tazhw setup bluetooth

* To set up firewall:
tazhw setup firewall

* To set up nvidia (free drivers):
tazhw setup nvidia

* To set up nvidia (non-free drivers):
tazhw setup nvidia --non-free

* To set up ati radeon (free drivers):
tazhw setup ati

* To set up ati radeon (non-free catalyst drivers):
tazhw setup ati --non-free

* To auto-install all optional dependencies:
tazhw setup printer --suggested

* To confirm each optional dependency before installing:
tazhw setup printer --confirm

Slitaz -- slitaz-installer


slitaz-installer & menu.lst title

Env: slitaz-3.0.iso / slitaz-3.0-firefox.iso / packages.3.0.iso

root@slitaz:~# cat /boot/grub/menu.lst
# /boot/grub/menu.lst: GRUB boot loader configuration.
#

# By default, boot the first entry.
default 0

# Boot automatically after 8 secs.
timeout 8

# Change the colors.
color yellow/brown light-green/black

# For booting SliTaz from : /dev/hda2
#
title SliTaz GNU/Linux (cooking) (Kernel vmlinuz-2.6.30.6-slitaz)
root (hd0,1)
kernel /boot/vmlinuz-2.6.30.6-slitaz root=/dev/hda2

----
/usr/bin/slitaz-installer

line no. 596

title SliTaz GNU/Linux (cooking) (Kernel $KERNEL)


[..]
cat > $TARGET_ROOT/boot/grub/menu.lst << _EOF_
# /boot/grub/menu.lst: GRUB boot loader configuration.
#

# By default, boot the first entry.
default 0

# Boot automatically after 8 secs.
timeout 8

# Change the colors.
color yellow/brown light-green/black

# For booting SliTaz from : $TARGET_DEV
#
title SliTaz GNU/Linux (cooking) (Kernel $KERNEL)
root $GRUB_ROOT
[..]