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
[..]

2010-03-29

SliTaz GNU/Linux 3.0 release


28 Mar 2010 - SliTaz GNU/Linux 3.0 release

All of the SliTaz team are proud to announce the release of the SliTaz GNU/Linux 3.0 operating system. It's simpler, faster, customizable, mightier and yet incredibly tiny. The new SliTaz stable version is now out after one year of development.

The core desktop provides a fully featured desktop powered by Xorg 7.4, Openbox, LXDE components and home made tools. It lets you easily connect to the Internet to surf the web with the Midori web browser, listen to music or manage your pictures.

The default core system fits into a 30 MB ISO image and LiveCD flavors start at 8 MB. This stable version has been built by a new toolchain including GCC 4.4.1 and uses the Linux kernel 2.6.30.6. You can read the full Releases Notes for more information and download a LiveCD image from the SliTaz mirrors.

http://www.slitaz.org/en/doc/releases/3.0/relnotes.en.htmlhttp://www.slitaz.org/en/doc/releases/3.0/relnotes.en.html

Releases notes

* Overview.
* Supported Hardware.
* LiveCD Flavors.
* Kernel and toolchain.
* UTF-8 support.
* Xorg server.
* HD Install and LiveUSB.
* Software Packages.
* Core Desktop.
* Security.
* From 2.0 to 3.0.
* People of the Project.

Overview

Welcome to SliTaz 3.0! Small, fast, easy to use and customize, the new SliTaz stable version is now out after one year of development.

* Boot scripts rewritten and faster (super-fast booting)
* All home-made boxes improved (tazctrlbox, tazhw, wifibox, burnbox, mountbox, netbox, serverbox, installer)
* Switch to Xorg from Xvesa
* Switch to Midori as the default web browser
* Better hardware support - wifi cards, webcams, 3G-modems, printers, scanners
* Better themes and desktop integration
* Faster virtualization with lguest
* SliTaz pro: OpenERP, LAMP, GLPI and more
* Easier to customize LiveCD and LiveUSB (tazlitobox and tazusbbox)
* Tazpkg supports new features including the conversion of deb/rpm/arch/slackware/ipk packages to Slitaz native format
* Packages are now automatically built by a build bot (Tazbb)
* More contributors and stronger community
* 900 packages added to the database and many updates
* More than 2800 commits by contributors

Technical support is provided to users via the mailing list and the official forum: forum.slitaz.org
Supported Hardware

SliTaz GNU/Linux supports all machines based on the i486 or x86 Intel compatible processors. A minimum 192MB of memory is recommended to use the core LiveCD. 80MB is needed for the "slitaz-loram" flavor and 16MB for the "slitaz-loram-cdrom" flavor.

With the slitaz-loram flavor, the system is less responsive, but allows you to graphically install SliTaz on very old machines with limited resources. Once installed, SliTaz works well with a minimum of 16MB memory, but forget about using Firefox to surf the web - you'll have to use the text based 'links' for example.

SliTaz 3.0 provides all needed drivers and tools such as 915resolution to have support for a wide range of netbooks (Eeepc, HP mini, Aspire One, etc).
LiveCD Flavors

SliTaz GNU/Linux is distributed as a bootable LiveCD. You can use the LiveCD as a normal system or you can graphically install Slitaz to the hard drive. Installing/upgrading Slitaz retains your previous system's settings, applications and documents.

The LiveCD can also be customised and easily rebuilt both graphically or from the command line. Install your own custom set of packages, or simply use one of the preset flavors on the mirror. Then simply generate your distribution with the "Tazlito" tool.

The ISO image now uses a 'hybrid' system: it can also be copied onto an USB stick without formating it (using dd).
Kernel and toolchain

SliTaz 3.0 comes with a new but very well tested 2.6.30.6 Linux kernel and a complete new build toolchain from which the whole system has been built. The 2.6.30.6 Linux kernel is separated into several linux-packages for supporting additional drivers and features. This time we have also built-in some more drivers to have a faster kernel boot.

The new toolchain comprises of: Binutils 2.19.1, GCC 4.4.1, Glibc 2.10.1
UTF-8 support
With this release, the Slitaz community can enjoy full UTF-8 support. SliTaz uses standard PO files for the translation of all SliTaz related tools, boxes and utilities. With better internationalization support (russian, portuguese, chinese, and many more), contributors can now use graphical tools such as poedit to make translations using GNU gettext standards. The labs also have an i18n project to easily upload files to be included in the distribution. The locale packs have more translated application messages for the core system and some extra packages for applications such as Gimp, Abiword, Gnumeric, etc.
Xorg server

SliTaz now uses the Xorg X window system (although we will always try to provide a Xvesa flavor). With the tazx utility you can reconfigure Xorg and select the correct driver for your card. The xorg server comes with the vesa driver by default which powers most cards; although you may still need to manually configure your xorg.conf to some degree if you install some of the other drivers.
HD install and LiveUSB

The installation is fully automated and can be done graphically or in text mode. The slitaz installer now lets you use a separate partition for /home, configure the root password and chose the default user login. The installer also now supports installation from a LiveUSB session.

Full USB install is also supported using rootdelay=10 as a kernel argument (in GRUB menu.lst). The root delay ensures the Kernel has detected the device before mounting it on / (root).
Software Packages

SliTaz 3.0 has around 2300 packages in the database. A wide variety of packages have been commited and the Tazpkg package manager can now convert deb/rpm/arch/slackware/ipk packages to Slitaz native format (.tazpkg). A lot of time was also spent maintaining professional grade software such as OpenERP, MySQL, GLPI.

On the update side, mostly all the packages have been updated, including the kernel, toolchain, Xorg (7.4), GTK and QT. The package format has also changed to support lzma for better compression and faster downloads. Packages are also checked by Tazwok to ensure the FHS is followed and packages are now built automatically by the SliTaz Build Bot: bb.slitaz.org
Core Desktop

A lot of attention has been paid the the core desktop. All applications are well integrated and a special SliTaz theme (icons, Openbox, GTK) has been created.

The core desktop provides a selection of multi-use packages for surfing the web, listening to music, audio editing, image manipulation and developing or burning to optical media. It's just one click in the application menu to find installed software by category.
Security

Slitaz is more secure and robust now and the firewall rules have been updated. A firewall can be installed using the graphical tazhw box, and serverbox can help to maintain the installed firewall. Mountbox can manage crypto devices with devmapper and the crypt setup tools allow encryption of block devices.
From 2.0 to 3.0

The SliTaz GNU/linux installer offers an update function allowing you to upgrade from a '2.0' to '3.0' version. To upgrade the system you first need to boot the 'Stable' LiveCD, launch the installer, select upgrade and then specify the partition containing the system that you want to update. The installer will then clean out the system and reinstall all the packages not present on the CD from the mirror. When this has finished you can reboot with your new version of SliTaz.

Note that the installer will keep a copy of the list of packages and a complete archive of the /etc directory (etc.tar.gz) in /var/lib/slitaz-install.

To upgrade a 2.0 to 3.0 it is also possible to use the package manager "Tazpkg" via the 'set-release' function, but beware this is not yet proven and may require some manual intervention. If you choose this method you must first install 'tazpkg' from 3.0, because the package format has changed.
People of the Project

SliTaz is proud to be an international community project. The people of the project are the ones who develop the distribution, correct the website, develop the HG repositories and write the official documentation. Passing through Switzerland, France, Brazil, Quebec, China, India, Russia, England, and the U.S.

* Christophe Lincoln
* Pascal Bellard
* Eric Joseph-Alexandre
* Paul Issott
* Julien Rabier
* Rohit Joshi
* Claudinei Pereira
* Dominique Corbex
* Mallory Mollo
* Mike D. Smith
* Allan Pinto
* Matthew Sheets
* Liu Peng
* Alice Ayanami
* F. Steiner
* Chen Yufei
* Jesse Lehman
* Bill Nagel
* Michael Dupont
* Franco Azzano
* Fabrice Thiroux
* Eduardo Suarez-Santana
* Tom Frankland
* Sandeep Srinivasa
* David Ozura
* Pierre Romillon
* ...

The project also wishes to thank all the reviewers, testers, hackers and users who have taken the time to help advance the distribution.

2010-03-09

Slitaz -- iasl / acpi=ht / early_ioremap_debug -8


tux@slitaz:~$ cat /proc/cmdline
root=/dev/sda1 acpi=ht early_ioremap_debug
tux@slitaz:~$ cat /var/log/dmesg.log
map+0x61/0x15b
[] early_ioremap+0xd/0xf
[] __acpi_map_table+0x14/0x16
[] acpi_os_map_memory+0x18/0x1a
[] acpi_tb_verify_table+0x20/0x49
[] acpi_get_table_with_size+0x53/0xa1
[] ? acpi_parse_mcfg+0x0/0xfa
[] ? generic_swap+0x0/0x27
[] acpi_table_parse+0x4a/0x6f
[] __pci_mmcfg_init+0x157/0x2e3
[] ? dmi_get_year+0x30/0x4e
[] ? pci_sanity_check+0x25/0x95
[] ? pci_arch_init+0x0/0x53
[] pci_mmcfg_early_init+0xd/0xf
[] pci_arch_init+0x19/0x53
[] do_one_initcall+0x4c/0x13a
[] kernel_init+0x106/0x157
[] ? kernel_init+0x0/0x157
[] kernel_thread_helper+0x7/0x10
00000400 + ffe00000
early_iounmap(ffe00400, 0000003c) [0]
Pid: 1, comm: swapper Not tainted 2.6.30.6-slitaz #1
Call Trace:
[] ? printk+0xf/0x11
[] early_iounmap+0x81/0x119
[] ? acpi_parse_mcfg+0x0/0xfa
[] ? generic_swap+0x0/0x27
[] __acpi_unmap_table+0x10/0x12
[] early_acpi_os_unmap_memory+0x11/0x13
[] acpi_table_parse+0x66/0x6f
[] __pci_mmcfg_init+0x157/0x2e3
[] ? dmi_get_year+0x30/0x4e
[] ? pci_sanity_check+0x25/0x95
[] ? pci_arch_init+0x0/0x53
[] pci_mmcfg_early_init+0xd/0xf
[] pci_arch_init+0x19/0x53
[] do_one_initcall+0x4c/0x13a
[] kernel_init+0x106/0x157
[] ? kernel_init+0x0/0x157
[] kernel_thread_helper+0x7/0x10
PCI: MCFG configuration 0: base e0000000 segment 0 buses 0 - 255
PCI: Not using MMCONFIG.
PCI: Using configuration type 1 for base access
bio: create slab at 0
ACPI: Interpreter disabled.
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
pci 0000:00:02.0: reg 10 64bit mmio: [0xfe400000-0xfe7fffff]
pci 0000:00:02.0: reg 18 64bit mmio: [0xd0000000-0xdfffffff]
pci 0000:00:02.0: reg 20 io port: [0xec00-0xec07]
pci 0000:00:1a.0: reg 20 io port: [0xe880-0xe89f]
pci 0000:00:1a.7: reg 10 32bit mmio: [0xfeafa000-0xfeafa3ff]
pci 0000:00:1a.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1a.7: PME# disabled
pci 0000:00:1b.0: reg 10 64bit mmio: [0xfeaf4000-0xfeaf7fff]
pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
pci 0000:00:1b.0: PME# disabled
pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.0: PME# disabled
pci 0000:00:1c.1: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.1: PME# disabled
pci 0000:00:1d.0: reg 20 io port: [0xe800-0xe81f]
pci 0000:00:1d.1: reg 20 io port: [0xe480-0xe49f]
pci 0000:00:1d.2: reg 20 io port: [0xe400-0xe41f]
pci 0000:00:1d.3: reg 20 io port: [0xe080-0xe09f]
pci 0000:00:1d.7: reg 10 32bit mmio: [0xfeaf8000-0xfeaf83ff]
pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1d.7: PME# disabled
pci 0000:00:1f.2: reg 10 io port: [0xe000-0xe007]
pci 0000:00:1f.2: reg 14 io port: [0xdc00-0xdc03]
pci 0000:00:1f.2: reg 18 io port: [0xd880-0xd887]
pci 0000:00:1f.2: reg 1c io port: [0xd800-0xd803]
pci 0000:00:1f.2: reg 20 io port: [0xd480-0xd48f]
pci 0000:00:1f.2: reg 24 io port: [0xd400-0xd40f]
pci 0000:00:1f.3: reg 10 64bit mmio: [0xfeaf2000-0xfeaf20ff]
pci 0000:00:1f.3: reg 20 io port: [0x400-0x41f]
pci 0000:02:00.0: reg 10 64bit mmio: [0xfebf0000-0xfebfffff]
pci 0000:02:00.0: PME# supported from D3hot D3cold
pci 0000:02:00.0: PME# disabled
pci 0000:00:1c.1: bridge 32bit mmio: [0xfeb00000-0xfebfffff]
pci 0000:00:1e.0: transparent bridge
pci 0000:00:1f.0: PIIX/ICH IRQ router [8086:3a18]
pci 0000:00:02.0: PCI->APIC IRQ transform: INT A -> IRQ 16
pci 0000:00:1a.0: PCI->APIC IRQ transform: INT A -> IRQ 16
pci 0000:00:1a.7: PCI->APIC IRQ transform: INT C -> IRQ 18
pci 0000:00:1b.0: PCI->APIC IRQ transform: INT A -> IRQ 22
pci 0000:00:1c.0: PCI->APIC IRQ transform: INT A -> IRQ 17
pci 0000:00:1c.1: PCI->APIC IRQ transform: INT B -> IRQ 16
pci 0000:00:1d.0: PCI->APIC IRQ transform: INT A -> IRQ 23
pci 0000:00:1d.1: PCI->APIC IRQ transform: INT B -> IRQ 19
pci 0000:00:1d.2: PCI->APIC IRQ transform: INT C -> IRQ 18
pci 0000:00:1d.3: PCI->APIC IRQ transform: INT D -> IRQ 16
pci 0000:00:1d.7: PCI->APIC IRQ transform: INT A -> IRQ 23
pci 0000:00:1f.2: PCI->APIC IRQ transform: INT B -> IRQ 19
pci 0000:00:1f.3: PCI->APIC IRQ transform: INT C -> IRQ 18
pci 0000:02:00.0: PCI->APIC IRQ transform: INT A -> IRQ 17
pnp: PnP ACPI: disabled
pci 0000:00:1c.0: PCI bridge, secondary bus 0000:01
pci 0000:00:1c.0: IO window: disabled
pci 0000:00:1c.0: MEM window: disabled
pci 0000:00:1c.0: PREFETCH window: disabled
pci 0000:00:1c.1: PCI bridge, secondary bus 0000:02
pci 0000:00:1c.1: IO window: disabled
pci 0000:00:1c.1: MEM window: 0xfeb00000-0xfebfffff
pci 0000:00:1c.1: PREFETCH window: disabled
pci 0000:00:1e.0: PCI bridge, secondary bus 0000:03
pci 0000:00:1e.0: IO window: disabled
pci 0000:00:1e.0: MEM window: disabled
pci 0000:00:1e.0: PREFETCH window: disabled
pci 0000:00:1c.0: setting latency timer to 64
pci 0000:00:1c.1: setting latency timer to 64
pci 0000:00:1e.0: setting latency timer to 64
pci_bus 0000:00: resource 0 io: [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffff]
pci_bus 0000:02: resource 1 mem: [0xfeb00000-0xfebfffff]
pci_bus 0000:03: resource 3 io: [0x00-0xffff]
pci_bus 0000:03: resource 4 mem: [0x000000-0xffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
platform rtc_cmos: registered platform RTC device (no PNP device found)
highmem bounce pool size: 64 pages
fuse init (API version 7.11)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1731
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
pci 0000:00:02.0: Boot video device
Switched to NOHz mode on CPU #1
Switched to NOHz mode on CPU #0
pci 0000:00:1d.7: EHCI: BIOS handoff failed (BIOS bug?) 01010001
pcieport-driver 0000:00:1c.0: setting latency timer to 64
pcieport-driver 0000:00:1c.1: setting latency timer to 64
early_ioremap(7dd90390, 0000006c) [0] => Pid: 1, comm: swapper Not tainted 2.6.3 .6-slitaz #1
Call Trace:
[] ? printk+0xf/0x11
[] __early_ioremap+0x61/0x15b
[] ? kobject_put+0x37/0x3c
[] early_ioremap+0xd/0xf
[] __acpi_map_table+0x14/0x16
[] acpi_os_map_memory+0x18/0x1a
[] acpi_tb_verify_table+0x20/0x49
[] acpi_get_table_with_size+0x53/0xa1
[] acpi_get_table+0x10/0x15
[] acpi_processor_init+0x26/0xe3
[] ? acpi_processor_init+0x0/0xe3
[] do_one_initcall+0x4c/0x13a
[] kernel_init+0x106/0x157
[] ? kernel_init+0x0/0x157
[] kernel_thread_helper+0x7/0x10
00000390 + ffe00000
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Non-volatile memory driver v1.3
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide_generic: please use "probe_mask=0x3f" module parameter for probing all legac ISA IDE ports
Probing IDE interface ide0...
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
ide1 at 0x170-0x177,0x376 on irq 15
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
ata_piix 0000:00:1f.2: version 2.13
ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
ata_piix 0000:00:1f.2: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: SATA max UDMA/133 cmd 0xe000 ctl 0xdc00 bmdma 0xd480 irq 19
ata2: SATA max UDMA/133 cmd 0xd880 ctl 0xd800 bmdma 0xd488 irq 19
e1000e: Intel(R) PRO/1000 Network Driver - 0.3.3.4-k4
e1000e: Copyright (c) 1999-2008 Intel Corporation.
pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
ThunderLAN driver v1.15a
TLAN: 0 devices installed, PCI: 0 EISA: 0
ns83820.c: National Semiconductor DP83820 10/100/1000 driver.
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky
dmfe: Davicom DM9xxx net driver, version 1.36.4 (2002-01-17)
winbond-840.c:v1.01-e (2.4 port) Sep-11-2006 Donald Becker
http://www.scyld.com/network/drivers.html
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:00:1a.7: setting latency timer to 64
ehci_hcd 0000:00:1a.7: EHCI Host Controller
ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1a.7: debug port 1
ehci_hcd 0000:00:1a.7: cache line size of 32 is not supported
ehci_hcd 0000:00:1a.7: irq 18, io mem 0xfeafa000
ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ehci_hcd 0000:00:1d.7: setting latency timer to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:1d.7: debug port 1
ehci_hcd 0000:00:1d.7: cache line size of 32 is not supported
ehci_hcd 0000:00:1d.7: irq 23, io mem 0xfeaf8000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:00:1a.0: setting latency timer to 64
uhci_hcd 0000:00:1a.0: UHCI Host Controller
uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1a.0: irq 16, io base 0x0000e880
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.0: setting latency timer to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1d.0: irq 23, io base 0x0000e800
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: setting latency timer to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.1: irq 19, io base 0x0000e480
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.2: setting latency timer to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 6
uhci_hcd 0000:00:1d.2: irq 18, io base 0x0000e400
usb usb6: configuration #1 chosen from 1 choice
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.3: setting latency timer to 64
uhci_hcd 0000:00:1d.3: UHCI Host Controller
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 7
uhci_hcd 0000:00:1d.3: irq 16, io base 0x0000e080
usb usb7: configuration #1 chosen from 1 choice
hub 7-0:1.0: USB hub found
hub 7-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: PC Speaker as /devices/platform/pcspkr/input/input0
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
Using IPI No-Shortcut mode
------------[ cut here ]------------
WARNING: at arch/x86/mm/ioremap.c:603 check_early_ioremap_leak+0x48/0x5c()
Hardware name: ValueStar
Debug warning: early ioremap leak of 1 areas detected.
Modules linked in:
Pid: 1, comm: swapper Not tainted 2.6.30.6-slitaz #1
Call Trace:
[] warn_slowpath_common+0x65/0x7c
[] ? check_early_ioremap_leak+0x48/0x5c
[] ? check_early_ioremap_leak+0x0/0x5c
[] warn_slowpath_fmt+0x24/0x27
[] check_early_ioremap_leak+0x48/0x5c
[] do_one_initcall+0x4c/0x13a
[] kernel_init+0x106/0x157
[] ? kernel_init+0x0/0x157
[] kernel_thread_helper+0x7/0x10
---[ end trace 426f01cc83ab8016 ]---
please boot with early_ioremap_debug and report the dmesg.
usb 4-1: new low speed USB device using uhci_hcd and address 2
usb 4-1: configuration #1 chosen from 1 choice
input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1. /input/input1
logitech 0003:046D:C517.0001: input: USB HID v1.10 Keyboard [Logitech USB Receiv r] on usb-0000:00:1d.0-1/input0
logitech 0003:046D:C517.0002: fixing up Logitech keyboard report descriptor
input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1. /input/input2
logitech 0003:046D:C517.0002: input,hiddev96: USB HID v1.10 Mouse [Logitech USB eceiver] on usb-0000:00:1d.0-1/input1
ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.01: SATA link down (SStatus 0 SControl 300)
ata1.00: ATA-7: ST3320620AS, 3.AAK, max UDMA/133
ata1.00: 625142448 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access ATA ST3320620AS 3.AA PQ: 0 ANSI: 5
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 625142448 512-byte hardware sectors: (320 GB/298 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 < sda5 sda6 > sda4
sd 0:0:0:0: [sda] Attached SCSI disk
ata2.00: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata2.01: SATA link down (SStatus 0 SControl 300)
ata2.00: ATAPI: ATAPI iHAS324 Y, BL1X, max UDMA/100
ata2.00: configured for UDMA/100
scsi 1:0:0:0: CD-ROM ATAPI iHAS324 Y BL1X PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
sr 1:0:0:0: Attached scsi generic sg1 type 5
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting. Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with writeback data mode.
VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
Freeing unused kernel memory: 328k freed
EXT3 FS on sda1, internal journal
tux@slitaz:~$

Slitaz -- iasl / acpi=ht -7


root=/dev/sda1 acpi=ht
please boot with early_ioremap_debug and report the dmesg.

/usr/src/linux-2.6.30.6-slitaz/arch/x86/mm/ioremap.c

[..]line#590
static int __init check_early_ioremap_leak(void)
{
int count = 0;
int i;

for (i = 0; i < FIX_BTMAPS_SLOTS; i++)
if (prev_map[i])
count++;

if (!count) return 0;
WARN(1, KERN_WARNING
"Debug warning: early ioremap leak of %d areas detected.\n",
count);
printk(KERN_WARNING
"please boot with early_ioremap_debug and report the dmesg.\n");

return 1;
}
late_initcall(check_early_ioremap_leak);
[..]


Extract From

http://ericxiao.cublog.cn/
linux引導分析
http://blog.chinaunix.net/u1/51562/showart_1018436.html

[.. #512]
Setup_arch() --à early_ioremap_init()代碼如下:

void __init early_ioremap_init(void)
{
pmd_t *pmd;

if (early_ioremap_debug)

printk(KERN_INFO "early_ioremap_init()\n");


pmd = early_ioremap_pmd(fix_to_virt(FIX_BTMAP_BEGIN));

/*在這裡會將FIX_BTMAP_BEGIN 段的頁面表固定使用bm_pte*/
memset(bm_pte, 0, sizeof(bm_pte));

pmd_populate_kernel(&init_mm, pmd, bm_pte);

/*

* The boot-ioremap range spans multiple pmds, for which
* we are not prepared:
*/

if (pmd != early_ioremap_pmd(fix_to_virt(FIX_BTMAP_END))) {
WARN_ON(1);

printk(KERN_WARNING "pmd %p != %p\n",

pmd, early_ioremap_pmd(fix_to_virt(FIX_BTMAP_END)));

printk(KERN_WARNING "fix_to_virt(FIX_BTMAP_BEGIN): %08lx\n",
fix_to_virt(FIX_BTMAP_BEGIN));

printk(KERN_WARNING "fix_to_virt(FIX_BTMAP_END): %08lx\n",
fix_to_virt(FIX_BTMAP_END));


printk(KERN_WARNING "FIX_BTMAP_END: %d\n", FIX_BTMAP_END);

printk(KERN_WARNING "FIX_BTMAP_BEGIN: %d\n",
FIX_BTMAP_BEGIN);
}
}
上面的這段代碼,使FIX_BTMAP_BEGIN為起始地址對應的一個PMD對應映射的地址區間.即固定映射到bm_pte.
細心的讀者可以發現了.從FIX_BTMAP_BEGIN開始的一個PMD映射區間對應就是永久內存映射的線性地址段.沒錯,就是它.
一般說來,永久內存映射地址段只在一個PMD範圍內.若有超出一個PMD.則打印出警告信息.
[..]