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