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