« mounting none on /dev failed: No such device | トップページ | X window @ 玄柴(Debian) »

2010年8月 7日 (土)

LCD-8000U @ 玄柴(Debian)

LCD-8000U を繋いでみる。

root@kuro:~# usb 1-1.4: new high speed USB device using orion-ehci and address 3
udlfb: module is from the staging directory, the quality is unknown, you have been warned.
usb 1-1.4: dlfb: allocated 4 65024 byte urbs
usb 1-1.4: dlfb: set_par mode 800x600
usb 1-1.4: dlfb: DisplayLink USB device /dev/fb0 attached. 800x600 resolution. Using 1875K framebuffer memory
usbcore: registered new interface driver udlfb
kuro kernel: usbcore: registered new interface driver udlfb
root@kuro:~#

800x600 で認識しているよう。
現況確認する。

root@kuro:~# fbset -i
-bash: fbset: command not found
root@kuro:~#

fbset がない。

root@kuro:~# apt-get install fbset
Reading package lists... Done
Building dependency tree      
Reading state information... Done

The following NEW packages will be installed:
  fbset
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 123kB of archives.
After this operation, 352kB of additional disk space will be used.

Get:1 http://ftp.jp.debian.org squeeze/main fbset 2.1-24 [123kB]
Fetched 123kB in 0s (200kB/s)
Selecting previously deselected package fbset.
Unpacking fbset (from .../fbset_2.1-24_armel.deb) ...
Processing triggers for man-db ...
Setting up fbset (2.1-24) ...
root@kuro:~# con2fbmap 1 0
usb 1-1.4: dlfb: open /dev/fb0 user=1 fb_info=df0a6400 count=1
usb 1-1.4: dlfb: release /dev/fb0 user=1 count=0
root@kuro:~#

もう一回。

root@kuro:~# fbset -i
usb 1-1.4: dlfb: open /dev/fb0 user=1 fb_info=df236800 count=1

mode "800x600-75usb 1-1.4: dlfb: release /dev/fb0 user=1 count=0"
    # D: 50.000 MHz, H: 47.348 kHz, V: 74.565 Hz
    geometry 800 600 800 600 16
    timings 20000 46 190 13 12 20 10
    rgba 5/11,6/5,5/0,0/0
endmode

Frame buffer device information:
    Name        : udlfb
    Address     : 0xe0bc1000
    Size        : 962560
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 0
    YPanStep    : 0
    YWrapStep   : 0
    LineLength  : 1600
    Accelerator : No
root@kuro:~#

やはり認識はされている。前回の Ubuntu 10.04 よりも新しい udlfb のようだ。
このまま使うことにする。

Xserver をインストールる。

root@kuro:~# apt-get install xorg

Reading package lists... Done
Building dependency tree      
Reading state information... Done

The following extra packages will be installed:
  fontconfig-config libaudit0 libdrm-radeon1 libdrm2 libfontconfig1
  libfontenc1 libfreetype6 libfs6 libgl1-mesa-dri libgl1-mesa-glx libglu1-mesa
  libice6 libpciaccess0 libpixman-1-0 libpng12-0 libsm6 libudev0 libutempter0
  libxaw7 libxcb-atom1 libxcursor1 libxdamage1 libxfixes3 libxfont1 libxft2
  libxi6 libxinerama1 libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1
  libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 ttf-dejavu-core x11-apps
  x11-common x11-session-utils x11-utils x11-xfs-utils x11-xkb-utils
  x11-xserver-utils xbitmaps xfonts-100dpi xfonts-75dpi xfonts-base
  xfonts-encodings xfonts-scalable xfonts-utils xinit xorg-docs-core
  xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all
  xserver-xorg-input-evdev xserver-xorg-input-synaptics
  xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-apm
  xserver-xorg-video-ark xserver-xorg-video-ati xserver-xorg-video-chips
  xserver-xorg-video-cirrus xserver-xorg-video-fbdev xserver-xorg-video-i128
  xserver-xorg-video-i740 xserver-xorg-video-mach64 xserver-xorg-video-mga
  xserver-xorg-video-neomagic xserver-xorg-video-nv xserver-xorg-video-r128
  xserver-xorg-video-radeon xserver-xorg-video-rendition xserver-xorg-video-s3
  xserver-xorg-video-s3virge xserver-xorg-video-savage
  xserver-xorg-video-siliconmotion xserver-xorg-video-sis
  xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident
  xserver-xorg-video-tseng xserver-xorg-video-vesa xserver-xorg-video-voodoo
  xterm
Suggested packages:
  libglide3 mesa-utils nickle cairo-5c xfs xserver xorg-docs
  gpointing-device-settings touchfreeze xinput firmware-linux xfonts-cyrillic
The following NEW packages will be installed:
  fontconfig-config libaudit0 libdrm-radeon1 libdrm2 libfontconfig1
  libfontenc1 libfreetype6 libfs6 libgl1-mesa-dri libgl1-mesa-glx libglu1-mesa
  libice6 libpciaccess0 libpixman-1-0 libpng12-0 libsm6 libudev0 libutempter0
  libxaw7 libxcb-atom1 libxcursor1 libxdamage1 libxfixes3 libxfont1 libxft2
  libxi6 libxinerama1 libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1
  libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 ttf-dejavu-core x11-apps
  x11-common x11-session-utils x11-utils x11-xfs-utils x11-xkb-utils
  x11-xserver-utils xbitmaps xfonts-100dpi xfonts-75dpi xfonts-base
  xfonts-encodings xfonts-scalable xfonts-utils xinit xorg xorg-docs-core
  xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all
  xserver-xorg-input-evdev xserver-xorg-input-synaptics
  xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-apm
  xserver-xorg-video-ark xserver-xorg-video-ati xserver-xorg-video-chips
  xserver-xorg-video-cirrus xserver-xorg-video-fbdev xserver-xorg-video-i128
  xserver-xorg-video-i740 xserver-xorg-video-mach64 xserver-xorg-video-mga
  xserver-xorg-video-neomagic xserver-xorg-video-nv xserver-xorg-video-r128
  xserver-xorg-video-radeon xserver-xorg-video-rendition xserver-xorg-video-s3
  xserver-xorg-video-s3virge xserver-xorg-video-savage
  xserver-xorg-video-siliconmotion xserver-xorg-video-sis
  xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident
  xserver-xorg-video-tseng xserver-xorg-video-vesa xserver-xorg-video-voodoo
  xterm
0 upgraded, 90 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.3MB of archives.
After this operation, 74.8MB of additional disk space will be used.
Do you want to continue [Y/n]?
      :
 長いので省略
      :
Setting up xserver-xorg-input-wacom (0.10.5+20100416-1) ...
Setting up xserver-xorg-input-all (1:7.5+6) ...
Setting up xserver-xorg (1:7.5+6) ...
Setting up xorg (1:7.5+6) ...
root@kuro:~#

DisplayLink の Xsererver用ドライバが必要
旧バージョン udlfb との組み合わせだが、ソース見つけたのでダウンロードする。

root@kuro:/etc/X11# cd /tmp
root@kuro:/tmp# wget http://projects.unbit.it/downloads/udlfb-0.2.3_and_xf86-video-displaylink-0.3.tar.gz
--2010-08-04 15:38:28--  http://projects.unbit.it/downloads/udlfb-0.2.3_and_xf86-video-displaylink-0.3.tar.gz
Resolving projects.unbit.it... 81.174.68.52
Connecting to projects.unbit.it|81.174.68.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 520478 (508K) [application/x-gzip]
Saving to: âudlfb-0.2.3_and_xf86-video-displaylink-0.3.tar.gzâ

2010-08-04 15:38:37 (63.4 KB/s) - âudlfb-0.2.3_and_xf86-video-displaylink-0.3.tar.gzâ
root@kuro:/tmp#

展開する。

root@kuro:/tmp# tar xvf udlfb-0.2.3_and_xf86-video-displaylink-0.3.tar.gz
udlfb/
udlfb/README
udlfb/Makefile
udlfb/udlfb.c
udlfb/udlfb.h
xf86-video-displaylink/
xf86-video-displaylink/ChangeLog
xf86-video-displaylink/Makefile.in
xf86-video-displaylink/missing
xf86-video-displaylink/crtc
xf86-video-displaylink/configure
xf86-video-displaylink/COPYING
xf86-video-displaylink/README
xf86-video-displaylink/config.guess
xf86-video-displaylink/config.h.in~
xf86-video-displaylink/autom4te.cache/
xf86-video-displaylink/autom4te.cache/output.0
xf86-video-displaylink/autom4te.cache/traces.0
xf86-video-displaylink/autom4te.cache/traces.1
xf86-video-displaylink/autom4te.cache/output.1
xf86-video-displaylink/autom4te.cache/requests
xf86-video-displaylink/depcomp
xf86-video-displaylink/install-sh
xf86-video-displaylink/aclocal.m4
xf86-video-displaylink/Makefile.am
xf86-video-displaylink/configure.ac
xf86-video-displaylink/autogen.sh
xf86-video-displaylink/config.h.in
xf86-video-displaylink/config.sub
xf86-video-displaylink/ltmain.sh
xf86-video-displaylink/src/
xf86-video-displaylink/src/displaylink.c
xf86-video-displaylink/src/Makefile.in
xf86-video-displaylink/src/displaylink.h
xf86-video-displaylink/src/Makefile.am
xf86-video-displaylink/src/displaylink_output.c
xf86-video-displaylink/src/displaylink_crtc.c
root@kuro:/tmp#

必要なのは xf86-video-displaylink。コンパイルする。

root@kuro:/tmp# cd xf86-video-displaylink
root@kuro:/tmp/xf86-video-displaylink# ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... armv5tel-unknown-linux-gnueabi
checking host system type... armv5tel-unknown-linux-gnueabi
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
./configure: line 11885: pkg-config: command not found
checking if RANDR is defined... no
./configure: line 11944: pkg-config: command not found
checking if RENDER is defined... no
./configure: line 12003: pkg-config: command not found
checking if XV is defined... no
checking for pkg-config... no
checking for XORG... configure: error: in `/tmp/xf86-video-displaylink':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details.
root@kuro:/tmp/xf86-video-displaylink#

pkg-config がいるのか。
xserver-xorg-dev も必要だな。

root@kuro:/tmp/xf86-video-displaylink# apt-get install xserver-xorg-dev

Reading package lists... Done
Building dependency tree      
Reading state information... Done

The following extra packages will be installed:
  libpciaccess-dev libpixman-1-dev libpthread-stubs0 libpthread-stubs0-dev
  libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxkbfile-dev
  x11proto-core-dev x11proto-dri2-dev x11proto-fonts-dev x11proto-input-dev
  x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-video-dev
  x11proto-xext-dev xtrans-dev
The following NEW packages will be installed:
  libpciaccess-dev libpixman-1-dev libpthread-stubs0 libpthread-stubs0-dev
  libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxkbfile-dev
  x11proto-core-dev x11proto-dri2-dev x11proto-fonts-dev x11proto-input-dev
  x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-video-dev
  x11proto-xext-dev xserver-xorg-dev xtrans-dev
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,550kB of archives.
After this operation, 12.5MB of additional disk space will be used.
Do you want to continue [Y/n]?

Get:1 http://ftp.jp.debian.org squeeze/main x11proto-core-dev 7.0.16-1 [92.2kB]
Get:2 http://ftp.jp.debian.org squeeze/main libxau-dev 1:1.0.5-2 [17.3kB]
Get:3 http://ftp.jp.debian.org squeeze/main libxdmcp-dev 1:1.0.3-2 [21.3kB]
Get:4 http://ftp.jp.debian.org squeeze/main x11proto-input-dev 2.0-2 [63.1kB]
Get:5 http://ftp.jp.debian.org squeeze/main x11proto-kb-dev 1.0.4-1 [27.3kB]
Get:6 http://ftp.jp.debian.org squeeze/main xtrans-dev 1.2.5-1 [68.4kB]
Get:7 http://ftp.jp.debian.org squeeze/main libpthread-stubs0 0.3-2 [3,166B]
Get:8 http://ftp.jp.debian.org squeeze/main libpthread-stubs0-dev 0.3-2 [3,486B]
Get:9 http://ftp.jp.debian.org squeeze/main libxcb1-dev 1.6-1 [78.5kB]
Get:10 http://ftp.jp.debian.org squeeze/main libx11-dev 2:1.3.3-3 [3,465kB]
Get:11 http://ftp.jp.debian.org squeeze/main x11proto-dri2-dev 2.3-1 [15.0kB]
Get:12 http://ftp.jp.debian.org squeeze/main libpciaccess-dev 0.11.0-2 [40.0kB]
Get:13 http://ftp.jp.debian.org squeeze/main libpixman-1-dev 0.16.4-1 [264kB]
Get:14 http://ftp.jp.debian.org squeeze/main libxkbfile-dev 1:1.0.6-2 [85.1kB]
Get:15 http://ftp.jp.debian.org squeeze/main x11proto-fonts-dev 2.1.0-1 [12.8kB]
Get:16 http://ftp.jp.debian.org squeeze/main x11proto-randr-dev 1.3.1-1 [38.2kB]
Get:17 http://ftp.jp.debian.org squeeze/main x11proto-render-dev 2:0.11-1 [7,368B]
Get:18 http://ftp.jp.debian.org squeeze/main x11proto-video-dev 2.3.0-1 [9,842B]                                                                              
Get:19 http://ftp.jp.debian.org squeeze/main x11proto-xext-dev 7.1.1-2 [27.4kB]
Get:20 http://ftp.jp.debian.org squeeze/main xserver-xorg-dev 2:1.7.7-3 [1,210kB]

Fetched 5,550kB in 8s (623kB/s)
Selecting previously deselected package x11proto-core-dev.
Unpacking x11proto-core-dev (from .../x11proto-core-dev_7.0.16-1_all.deb) ...
Selecting previously deselected package libxau-dev.
Unpacking libxau-dev (from .../libxau-dev_1%3a1.0.5-2_armel.deb) ...
Selecting previously deselected package libxdmcp-dev.
Unpacking libxdmcp-dev (from .../libxdmcp-dev_1%3a1.0.3-2_armel.deb) ...
Selecting previously deselected package x11proto-input-dev.
Unpacking x11proto-input-dev (from .../x11proto-input-dev_2.0-2_all.deb) ...
Selecting previously deselected package x11proto-kb-dev.
Unpacking x11proto-kb-dev (from .../x11proto-kb-dev_1.0.4-1_all.deb) ...
Selecting previously deselected package xtrans-dev.
Unpacking xtrans-dev (from .../xtrans-dev_1.2.5-1_all.deb) ...
Selecting previously deselected package libpthread-stubs0.
Unpacking libpthread-stubs0 (from .../libpthread-stubs0_0.3-2_armel.deb) ...
Selecting previously deselected package libpthread-stubs0-dev.
Unpacking libpthread-stubs0-dev (from .../libpthread-stubs0-dev_0.3-2_armel.deb) ...
Selecting previously deselected package libxcb1-dev.
Unpacking libxcb1-dev (from .../libxcb1-dev_1.6-1_armel.deb) ...
Selecting previously deselected package libx11-dev.
Unpacking libx11-dev (from .../libx11-dev_2%3a1.3.3-3_armel.deb) ...
Selecting previously deselected package x11proto-dri2-dev.
Unpacking x11proto-dri2-dev (from .../x11proto-dri2-dev_2.3-1_all.deb) ...
Selecting previously deselected package libpciaccess-dev.
Unpacking libpciaccess-dev (from .../libpciaccess-dev_0.11.0-2_armel.deb) ...
Selecting previously deselected package libpixman-1-dev.
Unpacking libpixman-1-dev (from .../libpixman-1-dev_0.16.4-1_armel.deb) ...
Selecting previously deselected package libxkbfile-dev.
Unpacking libxkbfile-dev (from .../libxkbfile-dev_1%3a1.0.6-2_armel.deb) ...
Selecting previously deselected package x11proto-fonts-dev.
Unpacking x11proto-fonts-dev (from .../x11proto-fonts-dev_2.1.0-1_all.deb) ...
Selecting previously deselected package x11proto-randr-dev.
Unpacking x11proto-randr-dev (from .../x11proto-randr-dev_1.3.1-1_all.deb) ...
Selecting previously deselected package x11proto-render-dev.
Unpacking x11proto-render-dev (from .../x11proto-render-dev_2%3a0.11-1_all.deb) ...
Selecting previously deselected package x11proto-video-dev.
Unpacking x11proto-video-dev (from .../x11proto-video-dev_2.3.0-1_all.deb) ...
Selecting previously deselected package x11proto-xext-dev.
Unpacking x11proto-xext-dev (from .../x11proto-xext-dev_7.1.1-2_all.deb) ...
Selecting previously deselected package xserver-xorg-dev.
Unpacking xserver-xorg-dev (from .../xserver-xorg-dev_2%3a1.7.7-3_armel.deb) ...
Processing triggers for man-db ...
Setting up x11proto-core-dev (7.0.16-1) ...
Setting up libxau-dev (1:1.0.5-2) ...
Setting up libxdmcp-dev (1:1.0.3-2) ...
Setting up x11proto-input-dev (2.0-2) ...
Setting up x11proto-kb-dev (1.0.4-1) ...
Setting up xtrans-dev (1.2.5-1) ...
Setting up libpthread-stubs0 (0.3-2) ...
Setting up libpthread-stubs0-dev (0.3-2) ...
Setting up libxcb1-dev (1.6-1) ...
Setting up libx11-dev (2:1.3.3-3) ...
Setting up x11proto-dri2-dev (2.3-1) ...
Setting up libpciaccess-dev (0.11.0-2) ...
Setting up libpixman-1-dev (0.16.4-1) ...
Setting up libxkbfile-dev (1:1.0.6-2) ...
Setting up x11proto-fonts-dev (2.1.0-1) ...
Setting up x11proto-randr-dev (1.3.1-1) ...
Setting up x11proto-render-dev (2:0.11-1) ...
Setting up x11proto-video-dev (2.3.0-1) ...
Setting up x11proto-xext-dev (7.1.1-2) ...
Setting up xserver-xorg-dev (2:1.7.7-3) ...
root@kuro:/tmp/xf86-video-displaylink#

root@kuro:/tmp/xf86-video-displaylink# apt-get install pkg-config
Reading package lists... Done
Building dependency tree      
Reading state information... Done

The following extra packages will be installed:
  libglib2.0-0 libglib2.0-data shared-mime-info
The following NEW packages will be installed:
  libglib2.0-0 libglib2.0-data pkg-config shared-mime-info
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,906kB of archives.
After this operation, 10.2MB of additional disk space will be used.
Do you want to continue [Y/n]?

Get:1 http://ftp.jp.debian.org squeeze/main libglib2.0-0 2.24.1-1 [1,046kB]
Get:2 http://ftp.jp.debian.org squeeze/main libglib2.0-data 2.24.1-1 [960kB]
Get:3 http://ftp.jp.debian.org squeeze/main pkg-config 0.25-1 [56.6kB]
Get:4 http://ftp.jp.debian.org squeeze/main shared-mime-info 0.71-3 [843kB]

Fetched 2,906kB in 19s (147kB/s)
Selecting previously deselected package libglib2.0-0.
Unpacking libglib2.0-0 (from .../libglib2.0-0_2.24.1-1_armel.deb) ...
Selecting previously deselected package libglib2.0-data.
Unpacking libglib2.0-data (from .../libglib2.0-data_2.24.1-1_all.deb) ...
Selecting previously deselected package pkg-config.
Unpacking pkg-config (from .../pkg-config_0.25-1_armel.deb) ...
Selecting previously deselected package shared-mime-info.
Unpacking shared-mime-info (from .../shared-mime-info_0.71-3_armel.deb) ...
Processing triggers for man-db ...
Setting up libglib2.0-0 (2.24.1-1) ...
Setting up libglib2.0-data (2.24.1-1) ...
Setting up pkg-config (0.25-1) ...
Setting up shared-mime-info (0.71-3) ...
root@kuro:/tmp/xf86-video-displaylink#

もう一度コンパイル

root@kuro:/tmp/xf86-video-displaylink# ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... armv5tel-unknown-linux-gnueabi
checking host system type... armv5tel-unknown-linux-gnueabi
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking if RANDR is defined... yes
checking if RENDER is defined... yes
checking if XV is defined... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... yes
checking whether xf86ConfigIsaEntity is declared... no
checking for ANSI C header files... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
root@kuro:/tmp/xf86-video-displaylink#

root@kuro:/tmp/xf86-video-displaylink# make
make  all-recursive
make[1]: Entering directory `/tmp/xf86-video-displaylink'
Making all in src
make[2]: Entering directory `/tmp/xf86-video-displaylink/src'
/bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1   -g -O2 -MT displaylink.lo -MD -MP -MF .deps/displaylink.Tpo -c -o displaylink.lo displaylink.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -g -O2 -MT displaylink.lo -MD -MP -MF .deps/displaylink.Tpo -c displaylink.c  -fPIC -DPIC -o .libs/displaylink.o
displaylink.c:49:27: error: xf86Resources.h: No such file or directory
displaylink.c:50:21: error: xf86RAC.h: No such file or directory
displaylink.c: In function âDisplayLinkPreInitâ:
displaylink.c:285: error: âstruct _ScrnInfoRecâ has no member named âracMemFlagsâ
displaylink.c:285: error: âRAC_FBâ undeclared (first use in this function)
displaylink.c:285: error: (Each undeclared identifier is reported only once
displaylink.c:285: error: for each function it appears in.)
displaylink.c:285: error: âRAC_COLORMAPâ undeclared (first use in this function)
displaylink.c:285: error: âRAC_CURSORâ undeclared (first use in this function)
displaylink.c:285: error: âRAC_VIEWPORTâ undeclared (first use in this function)
displaylink.c:287: error: âstruct _ScrnInfoRecâ has no member named âracIoFlagsâ
make[2]: *** [displaylink.lo] Error 1
make[2]: Leaving directory `/tmp/xf86-video-displaylink/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/xf86-video-displaylink'
make: *** [all] Error 2
root@kuro:/tmp/xf86-video-displaylink#

だめかぁ。
諦めかけたころ、先日 udlfb をいただいたサイトで新しいソースを発見。灯台下暗し。

root@kuro:/tmp# git clone http://git.plugable.com/webdav/xf-video-udlfb
-bash: git: command not found
root@kuro:/tmp#

git が無い。インストールする。

root@kuro:/tmp# apt-get install git
Reading package lists... Done Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  libcurl3-gnutls libdigest-sha1-perl liberror-perl rsync
Suggested packages:
  git-doc git-arch git-cvs git-svn git-email git-daemon-run git-gui gitk
  gitweb openssh-server
The following NEW packages will be installed:
  git libcurl3-gnutls libdigest-sha1-perl liberror-perl rsync
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,308kB of archives.
After this operation, 12.9MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ftp.jp.debian.org squeeze/main libcurl3-gnutls 7.21.0-1 [254kB]
Get:2 http://ftp.jp.debian.org squeeze/main liberror-perl 0.17-1 [23.6kB]
Get:3 http://ftp.jp.debian.org squeeze/main libdigest-sha1-perl 2.13-1 [25.8kB]
Get:4 http://ftp.jp.debian.org squeeze/main git 1:1.7.1-1.1 [5,655kB]
Get:5 http://ftp.jp.debian.org squeeze/main rsync 3.0.7-2 [349kB]
Fetched 6,308kB in 7s (883kB/s)
Selecting previously deselected package libcurl3-gnutls.
Unpacking libcurl3-gnutls (from .../libcurl3-gnutls_7.21.0-1_armel.deb) ...
Selecting previously deselected package liberror-perl.
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously deselected package libdigest-sha1-perl.
Unpacking libdigest-sha1-perl (from .../libdigest-sha1-perl_2.13-1_armel.deb) ...
Selecting previously deselected package git.
Unpacking git (from .../git_1%3a1.7.1-1.1_armel.deb) ...
Selecting previously deselected package rsync.
Unpacking rsync (from .../rsync_3.0.7-2_armel.deb) ...
Processing triggers for man-db ...
Setting up libcurl3-gnutls (7.21.0-1) ...
Setting up liberror-perl (0.17-1) ...
Setting up libdigest-sha1-perl (2.13-1) ...
Setting up git (1:1.7.1-1.1) ...
Setting up rsync (3.0.7-2) ...
update-rc.d: using dependency based boot sequencing
root@kuro:/tmp# 

再びダウンロード

root@kuro:/tmp# git clone http://git.plugable.com/webdav/xf-video-udlfb
Initialized empty Git repository in /root/xf-video-udlfb/.git/
root@kuro:/tmp#

コンパイルする。

root@kuro:/tmp# cd xf-video-udlfb
root@kuro:/tmp/xf-video-udlfb# ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... armv5tel-unknown-linux-gnueabi
checking host system type... armv5tel-unknown-linux-gnueabi
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking if RANDR is defined... yes
checking if RENDER is defined... yes
checking if XV is defined... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... yes
checking whether xf86ConfigIsaEntity is declared... no
checking for ANSI C header files... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
root@kuro:/tmp/xf-video-udlfb# 

root@kuro:/tmp/xf-video-udlfb# make
make  all-recursive
make[1]: Entering directory `/tmp/xf-video-udlfb'
Making all in src
make[2]: Entering directory `/tmp/xf-video-udlfb/src'
/bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1   -g -O2 -MT displaylink.lo -MD -MP -MF .deps/displaylink.Tpo -c -o displaylink.lo displaylink.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -g -O2 -MT displaylink.lo -MD -MP -MF .deps/displaylink.Tpo -c displaylink.c  -fPIC -DPIC -o .libs/displaylink.o
mv -f .deps/displaylink.Tpo .deps/displaylink.Plo
/bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1   -g -O2 -MT displaylink_crtc.lo -MD -MP -MF .deps/displaylink_crtc.Tpo -c -o displaylink_crtc.lo displaylink_crtc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -g -O2 -MT displaylink_crtc.lo -MD -MP -MF .deps/displaylink_crtc.Tpo -c displaylink_crtc.c  -fPIC -DPIC -o .libs/displaylink_crtc.o
mv -f .deps/displaylink_crtc.Tpo .deps/displaylink_crtc.Plo
/bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1   -g -O2 -MT displaylink_output.lo -MD -MP -MF .deps/displaylink_output.Tpo -c -o displaylink_output.lo displaylink_output.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -g -O2 -MT displaylink_output.lo -MD -MP -MF .deps/displaylink_output.Tpo -c displaylink_output.c  -fPIC -DPIC -o .libs/displaylink_output.o
mv -f .deps/displaylink_output.Tpo .deps/displaylink_output.Plo
/bin/bash ../libtool --tag=CC   --mode=link gcc -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1   -g -O2 -module -avoid-version  -o displaylink_drv.la -rpath /usr/lib/xorg/modules/drivers displaylink.lo displaylink_crtc.lo displaylink_output.lo   
libtool: link: gcc -shared  .libs/displaylink.o .libs/displaylink_crtc.o .libs/displaylink_output.o      -Wl,-soname -Wl,displaylink_drv.so -o .libs/displaylink_drv.so
libtool: link: ( cd ".libs" && rm -f "displaylink_drv.la" && ln -s "../displaylink_drv.la" "displaylink_drv.la" )
make[2]: Leaving directory `/tmp/xf-video-udlfb/src'
make[2]: Entering directory `/tmp/xf-video-udlfb'
make[2]: Leaving directory `/tmp/xf-video-udlfb'
make[1]: Leaving directory `/tmp/xf-video-udlfb'
root@kuro:/tmp/xf-video-udlfb#

インストールする。

root@kuro:/tmp/xf-video-udlfb# make install
Making install in src
make[1]: Entering directory `/tmp/xf-video-udlfb/src'
make[2]: Entering directory `/tmp/xf-video-udlfb/src'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/xorg/modules/drivers" || /bin/mkdir -p "/usr/lib/xorg/modules/drivers"
/bin/bash ../libtool   --mode=install /usr/bin/install -c  'displaylink_drv.la' '/usr/lib/xorg/modules/drivers/displaylink_drv.la'
libtool: install: /usr/bin/install -c .libs/displaylink_drv.so /usr/lib/xorg/modules/drivers/displaylink_drv.so
libtool: install: /usr/bin/install -c .libs/displaylink_drv.lai /usr/lib/xorg/modules/drivers/displaylink_drv.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/lib/xorg/modules/drivers
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib/xorg/modules/drivers

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Leaving directory `/tmp/xf-video-udlfb/src'
make[1]: Leaving directory `/tmp/xf-video-udlfb/src'
make[1]: Entering directory `/tmp/xf-video-udlfb'
make[2]: Entering directory `/tmp/xf-video-udlfb'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/xf-video-udlfb'
make[1]: Leaving directory `/tmp/xf-video-udlfb'
root@kuro:/tmp/xf-video-udlfb# find
root@kuro:/tmp/xf-video-udlfb# 
root@kuro:/tmp/xf-video-udlfb# 
root@kuro:/tmp/xf-video-udlfb# 
root@kuro:/tmp/xf-video-udlfb# 
root@kuro:/tmp/xf-video-udlfb# 
root@kuro:/tmp/xf-video-udlfb# 
root@kuro:/tmp/xf-video-udlfb# 

README を参考に xorg.conf を作る。

root@kuro:/tmp/xf-video-udlfb# cd /etc/X11

ごにょごにょ。。。

root@kuro:/etc/X11# cat xorg.conf
Section "Device"
Identifier "dl0"
driver "displaylink"
Option "fbdev" "/dev/fb0"
EndSection

Section "Monitor"
Identifier "monitor0"
EndSection

Section "Screen"
Identifier "screen0"
Device "dl0"
Monitor "monitor0"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "screen0" 0 0
EndSection

root@kuro:/etc/X11#

キーボードとマウスを繋ぎ、X を起動してみる。

root@kuro:/etc/X11# startx

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.31-rc9 armv5tel Debian
Current Operating System: Linux kuro 2.6.34.1 #2 PREEMPT Wed Aug 4 12:16:59 JST 2010 armv5tel
Kernel command line: console=ttyS0,115200
Build Datusb 1-1.4: dlfb: open /dev/fb0 user=1 fb_info=dff67400 count=1
e: 15 July 2010 usb 1-1.4: dlfb: release /dev/fb0 user=1 count=0
08:36:13PM
xorusb 1-1.4: dlfb: open /dev/fb0 user=1 fb_info=dff67400 count=1
g-server 2:1.7.7usb 1-1.4: dlfb: open /dev/fb0 user=1 fb_info=dff67400 count=2
-3 (Cyril Brulebois <kibi@debian.org>) 
Current version of pixman: 0.16.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Aug  5 16:00:24 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
SELinux: Disabled on system, not enabling in X server

キーボードもマウスも動いているようだが、現れたのはコンソール画面???

あっ、gnome 入れてない!!

« mounting none on /dev failed: No such device | トップページ | X window @ 玄柴(Debian) »

Debian」カテゴリの記事

玄柴(KURO-SHEEVA)」カテゴリの記事

LCD-8000U」カテゴリの記事

コメント

コメントを書く

(ウェブ上には掲載しません)

トラックバック


この記事へのトラックバック一覧です: LCD-8000U @ 玄柴(Debian):

« mounting none on /dev failed: No such device | トップページ | X window @ 玄柴(Debian) »

無料ブログはココログ