2015年5月31日

Debian Jessie Cross Toolchains Install

安裝Cross-compiler分三個套件

armhf(ArmHardFloatPort)
Supported device:supports newer, more powerful 32-bit devices using ARMv7
armel(ArmEabiPort)
Supported device:port targets a range of older 32-bit devices using ARMv4, particularly those used in NAS hardware and a variety of *plug computers.
arm64(Arm64Port)
Supported device:latest 64-bit ARM-powered devices.
# dpkg --add-architecture armel
# apt-get update
# apt-get install crossbuild-essential-armel
紅色字可以替代armel armhf arm64 

# vi /etc/apt/sources.list.d/crosstools.list
deb http://emdebian.org/tools/debian/ jessie main
# cd /tmp
# wget http://emdebian.org/tools/debian/emdebian-toolchain-archive.key
# apt-get install curl
# curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
# apt-get update

install arm-linux-gnueabi- armel toolchain
# dpkg --add-architecture armel
# apt-get update
# apt-get install crossbuild-essential-armel
# arm-linux-gnueabi-
arm-linux-gnueabi-addr2line       arm-linux-gnueabi-gcc-nm
arm-linux-gnueabi-ar              arm-linux-gnueabi-gcc-nm-4.9
arm-linux-gnueabi-as              arm-linux-gnueabi-gcc-ranlib
arm-linux-gnueabi-c++             arm-linux-gnueabi-gcc-ranlib-4.9
arm-linux-gnueabi-c89             arm-linux-gnueabi-gcov-4.9
arm-linux-gnueabi-c99             arm-linux-gnueabi-gprof
arm-linux-gnueabi-cc              arm-linux-gnueabi-ld
arm-linux-gnueabi-c++filt         arm-linux-gnueabi-ld.bfd
arm-linux-gnueabi-cpp-4.9         arm-linux-gnueabi-ld.gold
arm-linux-gnueabi-dwp             arm-linux-gnueabi-nm
arm-linux-gnueabi-elfedit         arm-linux-gnueabi-objcopy
arm-linux-gnueabi-g++             arm-linux-gnueabi-objdump
arm-linux-gnueabi-g++-4.9         arm-linux-gnueabi-ranlib
arm-linux-gnueabi-gcc             arm-linux-gnueabi-readelf
arm-linux-gnueabi-gcc-4.9         arm-linux-gnueabi-size
arm-linux-gnueabi-gcc-ar          arm-linux-gnueabi-strings
arm-linux-gnueabi-gcc-ar-4.9      arm-linux-gnueabi-strip

if you whant to install armhf architecture
# dpkg --add-architecture armhf
# apt-get update
# apt-get install crossbuild-essential-armhf

Reference:https://wiki.debian.org/CrossToolchains

2015年5月28日

Linux Mplayer 測試 視訊攝影機 WebCam

# apt-get install mplayer

tv://<channel_name>
--tv=<option1:option2:...>
$ mplayer --tv=driver=help -vo help
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
Available video output drivers:
        vdpau   VDPAU with X11
        xv      X11/Xv
        gl3     OpenGL 3.x
        gl      OpenGL
        x11     X11 ( XImage/Shm )
        sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
        caca    libcaca
        v4l2    V4L2 MPEG Video Decoder Output
        null    Null video output
        directfb        Direct Framebuffer Device
        yuv4mpeg        yuv4mpeg output for mjpegtools
        png     PNG file
        jpeg    JPEG file
        gif89a  animated GIF output
        tga     Targa output
        pnm     PPM/PGM/PGMYUV file
        md5sum  md5sum of each frame
        gl_nosw OpenGL no software rendering
$ ls /dev/video*
/dev/video0  /dev/video1
$ mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0

monitor brightness resolution setup linux


觀看目前monitor資訊
$ xrandr --current
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 4096 x 4096
LVDS-0 connected 1366x768+0+0 (normal left inverted right x axis y axis) 222mm x 125mm
   1366x768      60.01*+
   1360x768      59.80    59.96 
   1024x768      60.04    60.00 
   960x720       60.00 
   928x696       60.05 
   896x672       60.01 
   960x600       60.00 
   960x540       59.99 
   800x600       60.00    60.32    56.25 
   840x525       60.01    59.88 
   800x512       60.17 
   700x525       59.98 
   640x512       60.02 
   720x450       59.89 
   640x480       60.00    59.94 
   680x384       59.80    59.96 
   576x432       60.06 
   512x384       60.00 
   400x300       60.32    56.34 
   320x240       60.05
DVI-0 disconnected (normal left inverted right x axis y axis)

調整螢幕亮度
$ xrandr --output LVDS-0 --brightness 0.8

調整螢幕解析度
$ xrandr -s 1366x768