2013-08-31
Slitaz -- weiyun 10T
anytime . anywhere 10T
http://www.weiyun.com/
http://www.weiyun.com/act/10t.html?WYTAG=weiyun.app.web.disk
2013-08-23
Slitaz -- tazusb
mount: mounting tmpfs on /run failed: No such file or directory
/init: line 119: can't creat /run/ini: nonexistent directory
tee: /run/boot.log: No suche file or directory
....
mount: mounting /run on /mnt/run failed: no such file or directory
/init: line 179, can't create /run/init: nonexistent directory
/init: .: line 119: can't open '/run/init'
Kernel panic - not syncing: Attempted to kill init !
Pid: 1, comm: init Not tainted 3.2-slitaz #4
Call trace
boot and autologin OK.
--- tazusb-orig
+++ tazusb
@@ -457,9 +457,9 @@
status
# Create list of files
- find /bin /etc /init /sbin /var /dev /lib /root /usr >/tmp/list
+ find /bin /etc /home /init /sbin /var /dev /lib /root /usr >/tmp/list
- for dir in /home /proc /sys /tmp /mnt /media /media/cdrom /media/flash /media/usbdisk
+ for dir in /run /proc /sys /tmp /mnt /media /media/cdrom /media/flash /media/usbdisk
do
echo $dir >>/tmp/list
done
2013-08-22
Slitaz -- nfs
1.
root@slitaz:~# cat /etc/exports
/home/nfs *(rw,subtree_check,fsid=0)
/media/data-ln/armhf *(rw,subtree_check)
2.
root@slitaz:~# netstat -nltup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:58767 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 3270/rpcbind
tcp 0 0 0.0.0.0:33617 0.0.0.0:* LISTEN 3281/rpc.mountd
tcp 0 0 :::111 :::* LISTEN 3270/rpcbind
tcp 0 0 :::80 :::* LISTEN 1039/httpd
tcp 0 0 :::82 :::* LISTEN 979/httpd
tcp 0 0 :::56852 :::* LISTEN -
udp 0 0 0.0.0.0:2049 0.0.0.0:* -
udp 0 0 0.0.0.0:111 0.0.0.0:* 3270/rpcbind
udp 0 0 0.0.0.0:51862 0.0.0.0:* -
udp 0 0 0.0.0.0:49840 0.0.0.0:* 3281/rpc.mountd
udp 0 0 0.0.0.0:901 0.0.0.0:* 3270/rpcbind
udp 0 0 :::111 :::* 3270/rpcbind
udp 0 0 :::53927 :::* -
udp 0 0 :::901 :::* 3270/rpcbind
3.
root@slitaz:~# showmount -a
All mount points on slitaz:
192.168.0.102:/home/nfs
192.168.0.102:/media/data-ln/armhf
4.
root@slitaz:~# mount | tail -4
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda9 on /media/data-ln type ext3 (rw,nosuid,nodev,noexec,noatime,errors=continue,barrier=1,data=ordered)
192.168.00.102:/media/data-ln/armhf on /mnt/armhf type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=192.168.0.102)
192.168.0.102:/home/nfs on /mnt/nfs/home type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=192.168.0.102)
root@slitaz:~#
5.
root@slitaz:~# ls -l /mnt/nfs/home
total 8
-rw-r--r-- 1 root root 869 Aug 22 22:43 nfs-segfault
-rw-r--r-- 1 root root 75 Aug 22 22:42 uname-a
root@slitaz:~# mount > /mnt/nfs/home/nfs-mount
root@slitaz:~# ls -l /mnt/nfs/home
total 12
-rw-r--r-- 1 65534 65534 986 Aug 22 22:48 nfs-mount
-rw-r--r-- 1 root root 869 Aug 22 22:43 nfs-segfault
-rw-r--r-- 1 root root 75 Aug 22 22:42 uname-a
root@slitaz:~# cat /mnt/nfs/home/nfs-mount
rootfs on / type rootfs (rw)
tmpfs on /run type tmpfs (rw,relatime)
tmpfs on / type tmpfs (rw,relatime,size=3004872k)
proc on /proc type proc (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1633896k,nr_inodes=201123,mode=755)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda9 on /media/data-ln type ext3 (rw,nosuid,nodev,noexec,noatime,errors=continue,barrier=1,data=ordered)
192.168.00.102:/media/data-ln/armhf on /mnt/armhf type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=192.168.0.102)
192.168.0.102:/home/nfs on /mnt/nfs/home type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=192.168.0.102)
root@slitaz:~#
2013-08-06
Slitaz -- guvcview
A simple GTK interface for capturing and viewing video from webcams.
Bus 002 Device 004: ID 1b3f:2002 Generalplus Technology Inc.
1.
root@slitaz:~# tazpkg -gi linux-media
root@slitaz:~# tazpkg -gi guvcview
2.
root@slitaz:~# tazpkg info guvcview
Tazpkg information
===========================================================================
Package : guvcview
Version : 1.6.1
Category : multimedia
Short desc : A simple GTK interface for capturing and viewing video from webcams.
Maintainer : claudinei@slitaz.org
Depends : gtk+3 portaudio ffmpeg libsdl libv4l libgudev
Build deps : gtk+3-dev portaudio-dev ffmpeg-dev libsdl-dev libv4l-dev libgudev-dev
Web site : http://guvcview.sourceforge.net
===========================================================================
3.
root@slitaz:~# modprobe uvcvideo
root@slitaz:~# lsmod | head -4
Module Size Used by Not tainted
uvcvideo 47186 0
videodev 57227 1 uvcvideo
media 6773 2 uvcvideo,videodev
4.
root@slitaz:~# dmesg | tail -12
Linux media interface: v0.10
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
hub 2-0:1.0: unable to enumerate USB device on port 3
hub 2-0:1.0: unable to enumerate USB device on port 3
usb 2-3: new high-speed USB device number 5 using ehci_hcd
uvcvideo: Found UVC 1.00 device GENERAL - UVC (1b3f:2002)
uvcvideo: Forcing device quirks to 0x2 by module parameter for testing purpose.
uvcvideo: Please report required quirks to the linux-uvc-devel mailing list.
uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
input: GENERAL - UVC as /devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3:1.0/input/input3
root@slitaz:~# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 003 Device 001: ID 1d6b:0001
Bus 004 Device 001: ID 1d6b:0001
Bus 005 Device 001: ID 1d6b:0001
Bus 006 Device 001: ID 1d6b:0001
Bus 007 Device 001: ID 1d6b:0001
Bus 004 Device 002: ID 046d:c517
Bus 002 Device 005: ID 1b3f:2002
5.
Applications --> Multimedia --> guvcview
Ref:
https://wiki.archlinux.org/index.php/Webcam_Setup
32630-198HDMI-V2 2012.04.24 | |||
| Считана: | MiniProg TL866A | ||
| CPU / MCU: | GPCV3212 A-003A-QL091-1222 MASLPO | ||
| EEPROM / FLASH: | HY57V641620HG / GD25Q80BSIG | ||
2013-07-14
Slitaz -- MI2S / ftp


gftp: Small and fast FTP client.
# tazpkg -gi gftp
Looking up 192.168.1.30
Trying 192.168.1.30:2121
Connected to 192.168.1.30:2121
220 SwiFTP 0.1 ready
USER xxxx
331 Send password
PASS xxxx
230 Access granted
SYST
215 UNIX Type: L8
TYPE I
200 Binary type set
PWD
257 "/"
Loading directory listing / from server (LC_TIME=en_US)
PASV
227 Entering Passive Mode (192,168,1,30,220,186).
LIST -aL
150 Opening BINARY mode data connection for file list
226 Data transmission OK
[..]
Loading directory listing /temp from cache (LC_TIME=en_US)
Successfully changed local directory to /mnt/data/naviking
PASV
227 Entering Passive Mode (192,168,1,30,142,194).
STOR /temp/NaviKingMap201305.zip
150 Data socket ready
226 Transmission complete
Successfully transferred /mnt/data/naviking/NaviKingMap201305.zip at 2611.66 KB/s
SITE CHMOD 644 /temp/NaviKingMap201305.zip
2013-07-10
2013-07-05
Slitaz -- MI2S / mtp
FUSE filesystem that supports reading and writing from any MTP device
1.
root@slitaz:~# tazpkg -gi mtpfs
root@slitaz:~# tazpkg info mtpfs
Tazpkg information
================================================================================
Package : mtpfs
Version : 0.9
Category : multimedia
Short desc : FUSE filesystem that supports reading and writing from any MTP device
Maintainer : keupont@no-log.org
Depends : libmtp libnjb libid3tag libmad fuse glib
Build deps : libnjb-dev libid3tag-dev libmtp-dev fuse fuse-dev glib-dev libmad-dev libusb-compat-dev
Web site : http://www.adebenham.com/mtpfs/
================================================================================
2.
root@slitaz:~# mtpfs /mnt/mtp
root@slitaz:~# ls -l /mnt/mtp
total 0
drwxrwxrwx 2 root root 0 Jan 1 1970 Android
drwxrwxrwx 2 root root 0 Jan 1 1970 DCIM
drwxrwxrwx 2 root root 0 Jan 1 1970 lost+found
drwxrwxrwx 2 root root 0 Jan 1 1970 miliao
drwxrwxrwx 2 root root 0 Jan 1 1970 MIUI
drwxrwxrwx 2 root root 0 Jan 1 1970 Notifications
drwxrwxrwx 2 root root 0 Jan 1 1970 Playlists
drwxrwxrwx 2 root root 0 Jan 1 1970 ramdump
drwxrwxrwx 2 root root 0 Jan 1 1970 TouchPalv5
3.
root@slitaz:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,relatime,barrier=1,data=ordered)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
mtpfs on /mnt/mtp type fuse.mtpfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
4.
root@slitaz:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 27.5G 21.0G 5.1G 81% /
tmpfs 1.6G 0 1.6G 0% /dev/shm
mtpfs 23.6G 164.8M 23.5G 1% /mnt/mtp
5.
root@slitaz:~# dmesg | tail -14
usb 2-3: new high speed USB device using ehci_hcd and address 3
scsi2 : usb-storage 2-3:1.1
scsi 2:0:0:0: Direct-Access Linux File-Stor Gadget 0000 PQ: 0 ANSI: 2
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] 23377 2048-byte logical blocks: (47.8 MB/45.6 MiB)
sd 2:0:0:0: [sdb] Write Protect is on
sd 2:0:0:0: [sdb] Mode Sense: 0f 00 80 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 23377 2048-byte logical blocks: (47.8 MB/45.6 MiB)
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: unknown partition table
sd 2:0:0:0: [sdb] 23377 2048-byte logical blocks: (47.8 MB/45.6 MiB)
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
root@slitaz:~#
Ref:
ubuntu-automount-nexus7-mtp
http://bernaerts.dyndns.org/linux/247-ubuntu-automount-nexus7-mtp
Working MTP on Ubuntu for Galaxy Nexus, Nexus 7 and Acer A500
http://www.winters.org.nz/android-hints-tips-stuff/working-mtp-on-ubuntu
1.
root@slitaz:~# tazpkg -gi mtpfs
root@slitaz:~# tazpkg info mtpfs
Tazpkg information
================================================================================
Package : mtpfs
Version : 0.9
Category : multimedia
Short desc : FUSE filesystem that supports reading and writing from any MTP device
Maintainer : keupont@no-log.org
Depends : libmtp libnjb libid3tag libmad fuse glib
Build deps : libnjb-dev libid3tag-dev libmtp-dev fuse fuse-dev glib-dev libmad-dev libusb-compat-dev
Web site : http://www.adebenham.com/mtpfs/
================================================================================
2.
root@slitaz:~# mtpfs /mnt/mtp
root@slitaz:~# ls -l /mnt/mtp
total 0
drwxrwxrwx 2 root root 0 Jan 1 1970 Android
drwxrwxrwx 2 root root 0 Jan 1 1970 DCIM
drwxrwxrwx 2 root root 0 Jan 1 1970 lost+found
drwxrwxrwx 2 root root 0 Jan 1 1970 miliao
drwxrwxrwx 2 root root 0 Jan 1 1970 MIUI
drwxrwxrwx 2 root root 0 Jan 1 1970 Notifications
drwxrwxrwx 2 root root 0 Jan 1 1970 Playlists
drwxrwxrwx 2 root root 0 Jan 1 1970 ramdump
drwxrwxrwx 2 root root 0 Jan 1 1970 TouchPalv5
3.
root@slitaz:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,relatime,barrier=1,data=ordered)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
mtpfs on /mnt/mtp type fuse.mtpfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
4.
root@slitaz:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 27.5G 21.0G 5.1G 81% /
tmpfs 1.6G 0 1.6G 0% /dev/shm
mtpfs 23.6G 164.8M 23.5G 1% /mnt/mtp
5.
root@slitaz:~# dmesg | tail -14
usb 2-3: new high speed USB device using ehci_hcd and address 3
scsi2 : usb-storage 2-3:1.1
scsi 2:0:0:0: Direct-Access Linux File-Stor Gadget 0000 PQ: 0 ANSI: 2
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] 23377 2048-byte logical blocks: (47.8 MB/45.6 MiB)
sd 2:0:0:0: [sdb] Write Protect is on
sd 2:0:0:0: [sdb] Mode Sense: 0f 00 80 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 23377 2048-byte logical blocks: (47.8 MB/45.6 MiB)
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: unknown partition table
sd 2:0:0:0: [sdb] 23377 2048-byte logical blocks: (47.8 MB/45.6 MiB)
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
root@slitaz:~#
Ref:
ubuntu-automount-nexus7-mtp
http://bernaerts.dyndns.org/linux/247-ubuntu-automount-nexus7-mtp
Working MTP on Ubuntu for Galaxy Nexus, Nexus 7 and Acer A500
http://www.winters.org.nz/android-hints-tips-stuff/working-mtp-on-ubuntu
Slitaz -- meld
Visual diff and merge tool for GNOME.
root@slitaz:~# tazpkg info meld
Tazpkg information
================================================================================
Package : meld
Version : 1.4.0
Category : development
Short desc : Visual diff and merge tool for GNOME.
Maintainer : slaxemulator@gmail.com
Depends : pygtk rarian
Build deps : pygtk-dev rarian-dev gnome-doc-utils intltool pkg-config util-linux-ng-getopt
Web site : http://meld.sourceforge.net/
================================================================================
root@slitaz:~#
MI2S -- order
溫馨提示: 小米(台灣)站所有未付款訂單將在24小時後自動關閉。
訂單號:51306062990082XX
下單 付款 出庫 交易成功
2013-06-06 2013-06-26 2013-06-28 2013-07-01
12:06:57 17:39:58 10:59:09 09:59:00
2013-07-04
MI2s 32G
Specifications
| Basic Information | |
| Brand | Xiaomi |
| Model | M2S / MI2S (MiTwoS) |
| Released | 2013, April |
| Color | black, colorful back covers |
| CPU model | Qualcomm APQ8064T Snapdragon 600 |
| Construction | touchscreen multimedia phone |
| Operating System | MIUI, Android OS, v4.1 (Jelly Bean) |
| CPU | Quad-core 1.7 GHz Krait 300 |
| GPU | Adreno 320 |
| Keyboard | virtual QWERTY keyboard |
| Dimensions | 126 x 62 x 10,2 mm (4.96 x 2.44 x 0.40 in) |
| Weight | 145g (5.11 oz) |
| Telephony, connectivity and GPS | |
| Network | WCDMA / GSM |
| Frequency | 2G: GSM 850 / 900 / 1800 / 1900MHz |
| 3G:WCDMA 850, 1900, 2100MHz | |
| Data | GPRS / EDGE / HSPA+ (42Mbps) |
| Bluetooth | Bluetooth 4.0, Bluetooth HID |
| Wi-Fi | WLan | yes / Wi-Fi IEEE 802.11 b/g/n, Wi-Fi hotspot |
| GPS | yes / both type, i.e. GPS and GLONASS AGPS |
| USB | microUSB | 3.5mm jack | yes |
| Memory | |
| Internal | 2GB RAM + 32GB |
| Card slot | no |
| Display | |
| Display Size | 4.3" |
| Screen Color | 16M colors |
| Type | IPS LCD Capacitive touch screen |
| Resolution | 1280 x 720 px (342 ppi) |
| Touchscreen | yes, (multi-touch) |
| Gyro | yes |
| Light Sensor | yes |
| Proximity sensor | yes |
| Compass | yes |
| 3D accelerometer | yes |
| Entertainment / Multimedia | |
| Audio player | yes |
| Audio format | mp3 / acc / amr / ogg / m4a / mid / wma / flac / ape / aac / wav |
| Video player | yes |
| Video format | avi / mp4 / h.263 / h.264 / rmvb / flv720 / 3gp / mov / mkv / flv |
| JAVA | yes |
| Ebook | yes |
| FM radio | yes |
| MMS | yes |
| Ringtones | polyphonic / real music ringtones MP3, WAV |
| Loudspeaker | yes |
| Internet browser | yes, HTML, HTML5 |
| Camera | |
| Back camera | yes, resolution 13 MPx |
| Front camera | yes, resolution 2 MPx |
| Sensor type | CMOS |
| Flash | LED |
| Focal lenght | 28mm |
| Aperture | f/2.2 |
| Video | 1080p (1920x1080, 30 fps) video recording |
| 720p (1280x720, 90 fps) high-speed video recording | |
| 1080p (1920x1080, 30 fps) video playback | |
| Continuous shooting mode | yes |
| ISO sensitivity | yes |
| White balance | yes |
| Autofocus | yes |
| Panorama mode | yes |
| Photo resolution | 3264x2448 pixels |
| Other Features | geo-tagging, image stabilization, face and smile detection, HDR, contrast / saturation, touch focus |
| Battery | |
| Battery | Li-on, 2000mAh |
2013-06-22
Slitaz -- Compiling with qemu-arm-static chroot
Compiling with qemu-arm-static chroot
Target: arm-slitaz-linux-gnueabi
--with-arch=armv6 --with-fpu=vfp --with-float=hard --with-pkgversion=SliTaz
--build=arm-slitaz-linux-gnueabi --host=arm-slitaz-linux-gnueabi
1.
root@slitaz:~# uname -a
Linux slitaz 2.6.37-slitaz #1 SMP Fri May 10 17:42:01 CST 2013 i686 GNU/Linux
2.
root@slitaz:~# tazdev -c /opt/rootfs-armhf
Mounting virtual filesystems... [ Done ]
Chrooting to: /opt/rootfs-armhf
3.
root@slitaz:/# gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/lto-wrapper
Target: arm-slitaz-linux-gnueabi
Configured with: /home/slitaz/wok/gcc/source/gcc-4.6.3/configure --prefix=/usr --libexecdir=/usr/lib --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long --enable-__cxa_atexit --with-system-zlib --enable-plugin --disable-multilib --disable-libssp --disable-checking --disable-werror --disable-bootstrap --enable-clocale=gnu --enable-lto --enable-threads=posix --with-arch=armv6 --with-fpu=vfp --with-float=hard --with-pkgversion=SliTaz --build=arm-slitaz-linux-gnueabi --host=arm-slitaz-linux-gnueabi
Thread model: posix
gcc version 4.6.3 (SliTaz)
4.
root@slitaz:/# echo 'int main() { return 0; }' > test.c
root@slitaz:/# gcc -o test.o test.c
root@slitaz:/# ls -l test*
-rw-r--r-- 1 root root 25 Jun 9 13:59 test.c
-rwxr-xr-x 1 root root 6790 Jun 9 13:59 test.o
5.
root@slitaz:/# file test.o
test.o: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped
root@slitaz:/# readelf -A test.o
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "6"
Tag_CPU_arch: v6
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_FP_arch: VFPv2
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int
Tag_ABI_HardFP_use: SP and DP
Tag_ABI_VFP_args: VFP registers
Tag_DIV_use: Not allowed
root@slitaz:/#
Target: arm-slitaz-linux-gnueabi
--with-arch=armv6 --with-fpu=vfp --with-float=hard --with-pkgversion=SliTaz
--build=arm-slitaz-linux-gnueabi --host=arm-slitaz-linux-gnueabi
1.
root@slitaz:~# uname -a
Linux slitaz 2.6.37-slitaz #1 SMP Fri May 10 17:42:01 CST 2013 i686 GNU/Linux
2.
root@slitaz:~# tazdev -c /opt/rootfs-armhf
Mounting virtual filesystems... [ Done ]
Chrooting to: /opt/rootfs-armhf
3.
root@slitaz:/# gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-slitaz-linux-gnueabi/4.6.3/lto-wrapper
Target: arm-slitaz-linux-gnueabi
Configured with: /home/slitaz/wok/gcc/source/gcc-4.6.3/configure --prefix=/usr --libexecdir=/usr/lib --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long --enable-__cxa_atexit --with-system-zlib --enable-plugin --disable-multilib --disable-libssp --disable-checking --disable-werror --disable-bootstrap --enable-clocale=gnu --enable-lto --enable-threads=posix --with-arch=armv6 --with-fpu=vfp --with-float=hard --with-pkgversion=SliTaz --build=arm-slitaz-linux-gnueabi --host=arm-slitaz-linux-gnueabi
Thread model: posix
gcc version 4.6.3 (SliTaz)
4.
root@slitaz:/# echo 'int main() { return 0; }' > test.c
root@slitaz:/# gcc -o test.o test.c
root@slitaz:/# ls -l test*
-rw-r--r-- 1 root root 25 Jun 9 13:59 test.c
-rwxr-xr-x 1 root root 6790 Jun 9 13:59 test.o
5.
root@slitaz:/# file test.o
test.o: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped
root@slitaz:/# readelf -A test.o
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "6"
Tag_CPU_arch: v6
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_FP_arch: VFPv2
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int
Tag_ABI_HardFP_use: SP and DP
Tag_ABI_VFP_args: VFP registers
Tag_DIV_use: Not allowed
root@slitaz:/#
Slitaz -- glibc / eglibc
GNU C Library (EGLIBC) stable release version 2.13,
GNU C Library stable release version 2.13,
1. slitaz-armhf: eglibc-2.13
root@slitaz:/# file /lib/libc-2.13.so
/lib/libc-2.13.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped
root@slitaz:/#
root@slitaz:/# /lib/libc-2.13.so
GNU C Library (EGLIBC) stable release version 2.13, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.6.3.
Compiled on a Linux 3.2.14 system on 2012-06-30.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
Support for some architectures added on, not maintained in glibc core.
BIND-8.2.3-T5B
libc ABIs: UNIQUE
For bug reporting instructions, please see:
<http://www.eglibc.org/issues/>.
2.
root@slitaz:/# exit
Unmounting virtual filesystems... [ Done ]
3. slitaz-4.0: glibc-2.13
root@slitaz:~# uname -a
Linux slitaz 2.6.37-slitaz #1 SMP Fri May 10 17:42:01 CST 2013 i686 GNU/Linux
root@slitaz:~# file /lib/libc-2.13.so
/lib/libc-2.13.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.30, stripped
root@slitaz:~# /lib/libc-2.13.so
GNU C Library stable release version 2.13, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.5.2.
Compiled on a Linux 2.6.37 system on 2012-03-13.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
root@slitaz:~#
GNU C Library stable release version 2.13,
root@slitaz:~# file /opt/rootfs-armhf/lib/libc-2.13.so
/opt/rootfs-armhf/lib/libc-2.13.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped
1. slitaz-armhf: eglibc-2.13
root@slitaz:/# file /lib/libc-2.13.so
/lib/libc-2.13.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped
root@slitaz:/#
root@slitaz:/# /lib/libc-2.13.so
GNU C Library (EGLIBC) stable release version 2.13, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.6.3.
Compiled on a Linux 3.2.14 system on 2012-06-30.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
Support for some architectures added on, not maintained in glibc core.
BIND-8.2.3-T5B
libc ABIs: UNIQUE
For bug reporting instructions, please see:
<http://www.eglibc.org/issues/>.
2.
root@slitaz:/# exit
Unmounting virtual filesystems... [ Done ]
3. slitaz-4.0: glibc-2.13
root@slitaz:~# uname -a
Linux slitaz 2.6.37-slitaz #1 SMP Fri May 10 17:42:01 CST 2013 i686 GNU/Linux
root@slitaz:~# file /lib/libc-2.13.so
/lib/libc-2.13.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.30, stripped
root@slitaz:~# /lib/libc-2.13.so
GNU C Library stable release version 2.13, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.5.2.
Compiled on a Linux 2.6.37 system on 2012-03-13.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
root@slitaz:~#
2013-06-20
Slitaz -- qemu-arm-static chroot-2
Chrooting to: /opt/rootfs-armhf/
1. download qemu-arm-static-1.1.2.tazpkg
http://tiny.cc/rh7wyw
# tazpkg -i qemu-arm-static-1.1.2.tazpkg
2. copy qemu-arm-static to rootfs-armhf
# cp /usr/bin/qemu-arm-static /opt/rootfs-armhf/usr/bin
3. Mount the binfmt_misc handler
# modprobe binfmt_misc
# mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
4. register our format with the kernel via the procfs
root@slitaz:~# echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x00\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register
5. check register
root@slitaz:~# cat /proc/sys/fs/binfmt_misc/arm
enabled
interpreter /usr/bin/qemu-arm-static
flags:
offset 0
magic 7f454c4601010100000000000000000002002800
mask ffffffffffffff00ffffffffffff00fffeffffff
6. chroot rootfs-armhf
root@slitaz:~# tazdev -c /opt/rootfs-armhf/
Mounting virtual filesystems... [ Done ]
Chrooting to: /opt/rootfs-armhf/
7.
root@slitaz:/# uname -m
armv6l
8.
root@slitaz:/# echo -e 'nameserver 8.8.8.8\n' > /etc/resolv.conf
root@slitaz:/# nslookup www.slitaz.org
Server: 8.8.8.8
Address 1: 8.8.8.8 google-public-dns-a.google.com
Name: www.slitaz.org
Address 1: 94.23.61.29 pangolin.pimentvert.com
Address 2: 91.121.171.224 ks362096.kimsufi.com
root@slitaz:/#
root@slitaz:~# ls -l /opt/rootfs-armhf
1. download qemu-arm-static-1.1.2.tazpkg
http://tiny.cc/rh7wyw
# tazpkg -i qemu-arm-static-1.1.2.tazpkg
2. copy qemu-arm-static to rootfs-armhf
# cp /usr/bin/qemu-arm-static /opt/rootfs-armhf/usr/bin
3. Mount the binfmt_misc handler
# modprobe binfmt_misc
# mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
4. register our format with the kernel via the procfs
root@slitaz:~# echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x00\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register
5. check register
root@slitaz:~# cat /proc/sys/fs/binfmt_misc/arm
enabled
interpreter /usr/bin/qemu-arm-static
flags:
offset 0
magic 7f454c4601010100000000000000000002002800
mask ffffffffffffff00ffffffffffff00fffeffffff
6. chroot rootfs-armhf
root@slitaz:~# tazdev -c /opt/rootfs-armhf/
Mounting virtual filesystems... [ Done ]
Chrooting to: /opt/rootfs-armhf/
7.
root@slitaz:/# uname -m
armv6l
8.
root@slitaz:/# echo -e 'nameserver 8.8.8.8\n' > /etc/resolv.conf
root@slitaz:/# nslookup www.slitaz.org
Server: 8.8.8.8
Address 1: 8.8.8.8 google-public-dns-a.google.com
Name: www.slitaz.org
Address 1: 94.23.61.29 pangolin.pimentvert.com
Address 2: 91.121.171.224 ks362096.kimsufi.com
root@slitaz:/#
Slitaz -- rootfs-armhf
rootfs-armhf
1.
# wget http://mirror.slitaz.org/packages/cooking/util-linux-mount-2.21.1.tazpkg
# tazpkg -i util-linux-mount-2.21.1.tazpkg
download slitaz-armhf-mini-2012-12-14.zip and extract it
# wget http://arm.balinor.net/slitaz/armhf/slitaz-armhf-mini-2012-12-14.zip
# unzip slitaz-armhf-mini-2012-12-14.zip
2.
root@slitaz:~# file slitaz-armhf-mini-2012-12-14.img
slitaz-armhf-mini-2012-12-14.img: x86 boot sector; partition 1: ID=0x6, starthead 1, startsector 63, 48132 sectors; partition 2: ID=0x83, starthead 0, startsector 48195, 915705 sectors, code offset 0xb8
root@slitaz:~# fdisk -lu slitaz-armhf-mini-2012-12-14.img
Disk slitaz-armhf-mini-2012-12-14.img: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders, total 1048576 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
slitaz-armhf-mini-2012-12-14.img1 63 48194 24066 6 FAT16
slitaz-armhf-mini-2012-12-14.img2 48195 963899 457852+ 83 Linux
root@slitaz:~#
3.
root@slitaz:~# mount -o,offset=$((48195*512)) slitaz-armhf-mini-2012-12-14.img /mnt/raspi
4.
root@slitaz:~# cp -a /mnt/raspi /opt/rootfs-armhf
5.
root@slitaz:~# ls -l /opt/rootfs-armhf
total 68
drwxr-xr-x 2 root root 4096 Dec 3 2012 bin
drwxr-xr-x 2 root root 4096 Dec 14 2012 boot
drwxr-xr-x 8 root root 4096 Dec 3 2012 dev
drwxr-xr-x 7 root root 4096 Dec 14 2012 etc
drwxr-xr-x 2 root root 4096 Dec 3 2012 home
lrwxrwxrwx 1 root root 12 Jun 19 20:03 init -> /bin/busybox
drwxr-xr-x 2 root root 4096 Dec 3 2012 lib
drwx------ 2 root root 4096 Dec 3 2012 lost+found
drwxr-xr-x 5 root root 4096 Dec 3 2012 media
drwxr-xr-x 2 root root 4096 Dec 3 2012 mnt
drwxr-xr-x 2 root root 4096 Dec 3 2012 proc
drwxr-x--- 2 root root 4096 Dec 3 2012 root
drwxr-xr-x 2 root root 4096 Dec 3 2012 run
drwxr-xr-x 2 root root 4096 Dec 3 2012 sbin
drwxr-xr-x 2 root root 4096 Dec 3 2012 sys
drwxrwxrwt 2 root root 4096 Dec 3 2012 tmp
drwxr-xr-x 8 root root 4096 Dec 14 2012 usr
drwxr-xr-x 11 root root 4096 Dec 3 2012 var
root@slitaz:~# file /opt/rootfs-armhf/lib/libc-2.13.so
/opt/rootfs-armhf/lib/libc-2.13.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped
root@slitaz:~# du -sh /opt/rootfs-armhf
9.2M /opt/rootfs-armhf
root@slitaz:~#
1.
# wget http://mirror.slitaz.org/packages/cooking/util-linux-mount-2.21.1.tazpkg
# tazpkg -i util-linux-mount-2.21.1.tazpkg
download slitaz-armhf-mini-2012-12-14.zip and extract it
# wget http://arm.balinor.net/slitaz/armhf/slitaz-armhf-mini-2012-12-14.zip
# unzip slitaz-armhf-mini-2012-12-14.zip
2.
root@slitaz:~# file slitaz-armhf-mini-2012-12-14.img
slitaz-armhf-mini-2012-12-14.img: x86 boot sector; partition 1: ID=0x6, starthead 1, startsector 63, 48132 sectors; partition 2: ID=0x83, starthead 0, startsector 48195, 915705 sectors, code offset 0xb8
root@slitaz:~# fdisk -lu slitaz-armhf-mini-2012-12-14.img
Disk slitaz-armhf-mini-2012-12-14.img: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders, total 1048576 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
slitaz-armhf-mini-2012-12-14.img1 63 48194 24066 6 FAT16
slitaz-armhf-mini-2012-12-14.img2 48195 963899 457852+ 83 Linux
root@slitaz:~#
3.
root@slitaz:~# mount -o,offset=$((48195*512)) slitaz-armhf-mini-2012-12-14.img /mnt/raspi
4.
root@slitaz:~# cp -a /mnt/raspi /opt/rootfs-armhf
5.
root@slitaz:~# ls -l /opt/rootfs-armhf
total 68
drwxr-xr-x 2 root root 4096 Dec 3 2012 bin
drwxr-xr-x 2 root root 4096 Dec 14 2012 boot
drwxr-xr-x 8 root root 4096 Dec 3 2012 dev
drwxr-xr-x 7 root root 4096 Dec 14 2012 etc
drwxr-xr-x 2 root root 4096 Dec 3 2012 home
lrwxrwxrwx 1 root root 12 Jun 19 20:03 init -> /bin/busybox
drwxr-xr-x 2 root root 4096 Dec 3 2012 lib
drwx------ 2 root root 4096 Dec 3 2012 lost+found
drwxr-xr-x 5 root root 4096 Dec 3 2012 media
drwxr-xr-x 2 root root 4096 Dec 3 2012 mnt
drwxr-xr-x 2 root root 4096 Dec 3 2012 proc
drwxr-x--- 2 root root 4096 Dec 3 2012 root
drwxr-xr-x 2 root root 4096 Dec 3 2012 run
drwxr-xr-x 2 root root 4096 Dec 3 2012 sbin
drwxr-xr-x 2 root root 4096 Dec 3 2012 sys
drwxrwxrwt 2 root root 4096 Dec 3 2012 tmp
drwxr-xr-x 8 root root 4096 Dec 14 2012 usr
drwxr-xr-x 11 root root 4096 Dec 3 2012 var
root@slitaz:~# file /opt/rootfs-armhf/lib/libc-2.13.so
/opt/rootfs-armhf/lib/libc-2.13.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped
root@slitaz:~# du -sh /opt/rootfs-armhf
9.2M /opt/rootfs-armhf
root@slitaz:~#
2013-06-19
Slitaz -- qemu user mode and binfmt_misc
qemu user mode and binfmt_misc
User mode emulation. In this mode, QEMU can launch processes compiled for one CPU on another CPU.
Kernel Support for miscellaneous (your favourite) Binary Formats
1.1 Features
http://qemu.weilnetz.de/qemu-doc.html#Introduction
Kernel Support for miscellaneous (your favourite) Binary Formats v1.1 ==========================================
https://www.kernel.org/doc/Documentation/binfmt_misc.txt
Ref:
https://wiki.edubuntu.org/UbuntuDevelopment/Ports
User mode emulation. In this mode, QEMU can launch processes compiled for one CPU on another CPU.
Kernel Support for miscellaneous (your favourite) Binary Formats
1.1 Features
http://qemu.weilnetz.de/qemu-doc.html#Introduction
QEMU is a FAST! processor emulator using dynamic translation to achieve good emulation speed.
QEMU has two operating modes:
Full system emulation. In this mode, QEMU emulates a full system (for example a PC), including one or several processors and various peripherals. It can be used to launch different Operating Systems without rebooting the PC or to debug system code.
User mode emulation. In this mode, QEMU can launch processes compiled for one CPU on another CPU. It can be used to launch the Wine Windows API emulator (http://www.winehq.org) or to ease cross-compilation and cross-debugging.
Kernel Support for miscellaneous (your favourite) Binary Formats v1.1 ==========================================
https://www.kernel.org/doc/Documentation/binfmt_misc.txt
This Kernel feature allows you to invoke almost (for restrictions see below)
every program by simply typing its name in the shell.
This includes for example compiled Java(TM), Python or Emacs programs.
To achieve this you must tell binfmt_misc which interpreter has to be invoked
with which binary. Binfmt_misc recognises the binary-type by matching some bytes
at the beginning of the file with a magic byte sequence (masking out specified
bits) you have supplied. Binfmt_misc can also recognise a filename extension
aka '.com' or '.exe'.
First you must mount binfmt_misc:
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
Ref:
https://wiki.edubuntu.org/UbuntuDevelopment/Ports
Slitaz -- qemu-arm-static chroot
qemu-arm-static chroot
1.
root@slitaz:~# uname -a
Linux slitaz 2.6.37-slitaz #1 SMP Fri May 10 17:42:01 CST 2013 i686 GNU/Linux
2.
root@slitaz:~# tazdev -c /opt/rootfs-armhf/
Mounting virtual filesystems... [ Done ]
Chrooting to: /opt/rootfs-armhf/
3.
root@slitaz:/# uname -m
armv6l
4.
root@slitaz:/# readelf -A /lib/libc-2.13.so
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "6"
Tag_CPU_arch: v6
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_FP_arch: VFPv2
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int
Tag_ABI_HardFP_use: SP and DP
Tag_ABI_VFP_args: VFP registers
Tag_DIV_use: Not allowed
5.
root@slitaz:/# head -5 /var/lib/tazpkg/installed.md5
bbb30be1a2c704154f58e2df501e35fd busybox-1.20.2-armhf.tazpkg
a82e5ffd86838571addf3eee3f418c7b dropbear-2012.55-armhf.tazpkg
7015c541e061e277c07f023073faad92 gcc-lib-base-4.6.3-armhf.tazpkg
d165510417ebc3d1e6bf37c96b9db8d8 gettext-base-0.18.1.1-armhf.tazpkg
2f4a5d282889c6fbd228a974822bd0d9 glibc-base-2.13-armhf.tazpkg
6.
root@slitaz:/# tazpkg list | tail -2
18 packages installed
7.
root@slitaz:/# du -sh /
13.4M /
root@slitaz:/#
Slitaz -- cross / tazdev
Create a chroot (use last tazdev)
cross.txt
# wget http://mirror.slitaz.org/packages/cooking/tazdev-1.9.tazpkg
# tazpkg -i tazdev-1.9.tazpkg
cross.txt
26 Create a chroot (use last tazdev)
27 ---------------------------------
28 # tazdev gen-chroot --arch=arm
29 # tazdev chroot
30
31 Clone cookutils to get last cook and cross
# wget http://mirror.slitaz.org/packages/cooking/tazdev-1.9.tazpkg
# tazpkg -i tazdev-1.9.tazpkg
2013-06-03
Slitaz -- raspi / file
-k, --keep-going don't stop at the first match
tux@slitaz:/tmp$ file 2013-05-25-wheezy-raspbian.img
2013-05-25-wheezy-raspbian.img: x86 boot sector
1.
tux@slitaz:/tmp$ file -k 2013-05-25-wheezy-raspbian.img
2013-05-25-wheezy-raspbian.img: x86 boot sector; partition 1: ID=0xc, starthead 130, startsector 8192, 114688 sectors; partition 2: ID=0x83, starthead 165, startsector 122880, 3665920 sectors
2.
tux@slitaz:/tmp$ fdisk -lu 2013-05-25-wheezy-raspbian.img
Disk 2013-05-25-wheezy-raspbian.img: 1939 MB, 1939865600 bytes
255 heads, 63 sectors/track, 235 cylinders, total 3788800 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
2013-05-25-wheezy-raspbian.img1 8192 122879 57344 c Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary
2013-05-25-wheezy-raspbian.img2 122880 3788799 1832960 83 Linux
Partition 2 does not end on cylinder boundary
3.
tux@slitaz:/tmp$ sudo mount -o,offset=$((512*122880)) 2013-05-25-wheezy-raspbian.img /mnt/raspi
udev changed: /dev/loop0
mount changed: /dev/loop0
tux@slitaz:/tmp$ udev changed: /dev/loop0
tux@slitaz:/tmp$ ls -l /mnt/raspi
total 92
drwxr-xr-x 2 root root 4096 May 25 17:10 bin
drwxr-xr-x 2 root root 4096 May 25 16:38 boot
drwxr-xr-x 3 root root 4096 May 25 17:11 dev
drwxr-xr-x 96 root root 4096 May 25 17:58 etc
drwxr-xr-x 3 root root 4096 May 25 16:35 home
drwxr-xr-x 12 root root 4096 May 25 17:00 lib
drwx------ 2 root root 16384 May 25 16:24 lost+found
drwxr-xr-x 2 root root 4096 May 25 16:26 media
drwxr-xr-x 2 root root 4096 Dec 26 05:12 mnt
drwxr-xr-x 3 root root 4096 May 25 16:37 opt
drwxr-xr-x 2 root root 4096 Dec 26 05:12 proc
drwx------ 2 root root 4096 May 25 16:26 root
drwxr-xr-x 7 root root 4096 May 25 17:42 run
drwxr-xr-x 2 root root 4096 May 25 17:10 sbin
drwxr-xr-x 2 root root 4096 Jun 20 2012 selinux
drwxr-xr-x 2 root root 4096 May 25 16:26 srv
drwxr-xr-x 2 root root 4096 Feb 26 05:19 sys
drwxrwxrwt 2 root root 4096 Dec 26 05:12 tmp
drwxr-xr-x 10 root root 4096 May 25 16:26 usr
drwxr-xr-x 11 root root 4096 May 25 16:26 var
4.
tux@slitaz:/tmp$ sudo mount -o,offset=$((512*8192)) 2013-05-25-wheezy-raspbian.img /mnt/boot
udev changed: /dev/loop1
tux@slitaz:/tmp$ mount changed: /dev/loop1
udev changed: /dev/loop1
tux@slitaz:/tmp$ ls -l /mnt/boot
total 18888
-rwxr-xr-x 1 root root 17808 May 25 16:58 bootcode.bin
-rwxr-xr-x 1 root root 142 May 25 17:38 cmdline.txt
-rwxr-xr-x 1 root root 1180 May 25 17:38 config.txt
-rwxr-xr-x 1 root root 2012 May 25 16:58 fixup_cd.dat
-rwxr-xr-x 1 root root 5880 May 25 16:58 fixup.dat
-rwxr-xr-x 1 root root 8830 May 25 16:58 fixup_x.dat
-rwxr-xr-x 1 root root 137 May 25 18:58 issue.txt
-rwxr-xr-x 1 root root 9610248 May 25 16:58 kernel_emergency.img
-rwxr-xr-x 1 root root 2803168 May 25 16:58 kernel.img
-rwxr-xr-x 1 root root 467960 May 25 16:58 start_cd.elf
-rwxr-xr-x 1 root root 2688564 May 25 16:58 start.elf
-rwxr-xr-x 1 root root 3655652 May 25 16:58 start_x.elf
tux@slitaz:/tmp$
5.
tux@slitaz:/tmp$ cat /mnt/boot/issue.txt
Raspberry Pi reference 2013-05-25 (armhf)
Generated using spindle, http://asbradbury.org/projects/spindle/, 9c87329, stage4-lxde-edu.qed
tux@slitaz:/tmp$ file 2013-05-25-wheezy-raspbian.img
2013-05-25-wheezy-raspbian.img: x86 boot sector
1.
tux@slitaz:/tmp$ file -k 2013-05-25-wheezy-raspbian.img
2013-05-25-wheezy-raspbian.img: x86 boot sector; partition 1: ID=0xc, starthead 130, startsector 8192, 114688 sectors; partition 2: ID=0x83, starthead 165, startsector 122880, 3665920 sectors
2.
tux@slitaz:/tmp$ fdisk -lu 2013-05-25-wheezy-raspbian.img
Disk 2013-05-25-wheezy-raspbian.img: 1939 MB, 1939865600 bytes
255 heads, 63 sectors/track, 235 cylinders, total 3788800 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
2013-05-25-wheezy-raspbian.img1 8192 122879 57344 c Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary
2013-05-25-wheezy-raspbian.img2 122880 3788799 1832960 83 Linux
Partition 2 does not end on cylinder boundary
3.
tux@slitaz:/tmp$ sudo mount -o,offset=$((512*122880)) 2013-05-25-wheezy-raspbian.img /mnt/raspi
udev changed: /dev/loop0
mount changed: /dev/loop0
tux@slitaz:/tmp$ udev changed: /dev/loop0
tux@slitaz:/tmp$ ls -l /mnt/raspi
total 92
drwxr-xr-x 2 root root 4096 May 25 17:10 bin
drwxr-xr-x 2 root root 4096 May 25 16:38 boot
drwxr-xr-x 3 root root 4096 May 25 17:11 dev
drwxr-xr-x 96 root root 4096 May 25 17:58 etc
drwxr-xr-x 3 root root 4096 May 25 16:35 home
drwxr-xr-x 12 root root 4096 May 25 17:00 lib
drwx------ 2 root root 16384 May 25 16:24 lost+found
drwxr-xr-x 2 root root 4096 May 25 16:26 media
drwxr-xr-x 2 root root 4096 Dec 26 05:12 mnt
drwxr-xr-x 3 root root 4096 May 25 16:37 opt
drwxr-xr-x 2 root root 4096 Dec 26 05:12 proc
drwx------ 2 root root 4096 May 25 16:26 root
drwxr-xr-x 7 root root 4096 May 25 17:42 run
drwxr-xr-x 2 root root 4096 May 25 17:10 sbin
drwxr-xr-x 2 root root 4096 Jun 20 2012 selinux
drwxr-xr-x 2 root root 4096 May 25 16:26 srv
drwxr-xr-x 2 root root 4096 Feb 26 05:19 sys
drwxrwxrwt 2 root root 4096 Dec 26 05:12 tmp
drwxr-xr-x 10 root root 4096 May 25 16:26 usr
drwxr-xr-x 11 root root 4096 May 25 16:26 var
4.
tux@slitaz:/tmp$ sudo mount -o,offset=$((512*8192)) 2013-05-25-wheezy-raspbian.img /mnt/boot
udev changed: /dev/loop1
tux@slitaz:/tmp$ mount changed: /dev/loop1
udev changed: /dev/loop1
tux@slitaz:/tmp$ ls -l /mnt/boot
total 18888
-rwxr-xr-x 1 root root 17808 May 25 16:58 bootcode.bin
-rwxr-xr-x 1 root root 142 May 25 17:38 cmdline.txt
-rwxr-xr-x 1 root root 1180 May 25 17:38 config.txt
-rwxr-xr-x 1 root root 2012 May 25 16:58 fixup_cd.dat
-rwxr-xr-x 1 root root 5880 May 25 16:58 fixup.dat
-rwxr-xr-x 1 root root 8830 May 25 16:58 fixup_x.dat
-rwxr-xr-x 1 root root 137 May 25 18:58 issue.txt
-rwxr-xr-x 1 root root 9610248 May 25 16:58 kernel_emergency.img
-rwxr-xr-x 1 root root 2803168 May 25 16:58 kernel.img
-rwxr-xr-x 1 root root 467960 May 25 16:58 start_cd.elf
-rwxr-xr-x 1 root root 2688564 May 25 16:58 start.elf
-rwxr-xr-x 1 root root 3655652 May 25 16:58 start_x.elf
tux@slitaz:/tmp$
5.
tux@slitaz:/tmp$ cat /mnt/boot/issue.txt
Raspberry Pi reference 2013-05-25 (armhf)
Generated using spindle, http://asbradbury.org/projects/spindle/, 9c87329, stage4-lxde-edu.qed
2013-05-20
GW2450HM
http://www.tftcentral.co.uk/reviews/benq_gw2450hm.htm
Specifications and Features
The following table gives detailed information about the specs of the screen:
Monitor
Specifications
|
|||
Size
|
24"WS
|
Panel Coating
|
Anti-glare (matte)
|
Aspect Ratio
|
16:9
|
Interfaces
|
D-sub, DVI-D, HDMI (with HDCP)
|
Resolution
|
1920 x 1080
|
||
Pixel Pitch
|
0.276 mm
|
Design
colour
|
Glossy black plastic bezel and stand
|
Response Time
|
4ms G2G (12ms ISO)
|
Ergonomics
|
-5° ~ 15° Tilt adjustment only
|
Static Contrast Ratio
|
5000:1
|
||
DynamicContrast Ratio
|
20 million:1
|
VESA Compatible
|
Yes 100mm
|
Brightness (cd/m2)
|
250
|
Accessories
|
VGA cable, power cable, audio cable
|
Viewing Angles
|
178/178
|
||
Panel Technology
|
AMVA
|
Weight
|
Net weight: 4.1Kg
|
Backlight Technology
|
W-LED
|
Physical Dimensions
|
(WxHxD with stand)
580 x 437 x 181 mm |
Colour Depth
|
16.7m (8-bit)
|
||
Colour Gamut
|
Standard gamut (~sRGB)
72% NTSC |
Special
Features
|
2 x
2W integrated stereo speakers
|
Slitaz -- firefox / flashplugin
Outdated Plugins / vulnerable ??
Env:
slitaz-4.0: firefox 10.0.2
slitaz-rolling.iso: firefox ESR 17.0.5
1. about:plugins
Shockwave Flash
- File: libflashplayer.so
- Version: 11,2,202,285
- Shockwave Flash 11.2 r202
| MIME Type | Description | Suffixes |
|---|---|---|
| application/x-shockwave-flash | Shockwave Flash | swf |
| application/futuresplash | FutureSplash Player | spl |
2. plugincheck
Plugin Status
- Step 1: Click Update to update a plugin.
- Step 2: Complete all recommended updates before restarting your browser.
Outdated Plugins
| Plugin | Status | Action |
|---|---|---|
| vulnerable | Update Now |
3. Update Now
Download Adobe Flash Player






















