デスクトップとして使う(3)udlfb モジュールのコンパイル(2)

Debian LS-VL

まるしすなうぇぶろぐ(仮): 玄柴/ディスプレイの接続で 紹介いただいている手順を LinkStation LS-VL で検証しようとして、いきなりつまづいた。

CONFIG_FB_CFB_IMAGEBLIT を m に

デフォルトは、Kconfig にかいてあるようなので、 Kconfig を書き換える。こんなんでええの?
yasunari@vl:/mnt/src/linux-2.6.31.8$ cd drivers/video/
yasunari@vl:/mnt/src/linux-2.6.31.8/drivers/video$ mv Kconfig{,.orig}
yasunari@vl:/mnt/src/linux-2.6.31.8/drivers/video$ cp Kconfig.orig Kconfig
yasunari@vl:/mnt/src/linux-2.6.31.8/drivers/video$ vi Kconfig
	:
	:
yasunari@vl:/mnt/src/linux-2.6.31.8/drivers/video$ diff -u Kconfig.orig Kconfig
--- Kconfig.orig 2010年07月16日 20:23:10.000000000 +0900
+++ Kconfig 2012年03月10日 21:17:55.748478428 +0900
@@ -114,7 +114,7 @@
 config FB_CFB_IMAGEBLIT
 tristate
 depends on FB
- default n
+ default m
 ---help---
 Include the cfb_imageblit function for generic software image
 blitting. This is used by drivers that don't provide their own
yasunari@vl:/mnt/src/linux-2.6.31.8/drivers/video$ 
こんなんでええの?
コンパイルする
yasunari@vl:/mnt/src/linux-2.6.31.8/drivers/video$ cd ../..
yasunari@vl:/mnt/src/linux-2.6.31.8$ make modules
scripts/kconfig/conf -s arch/arm/Kconfig
#
# configuration written to .config
#
 CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
 CHK include/linux/utsrelease.h
 SYMLINK include/asm -> include/asm-arm
 CALL scripts/checksyscalls.sh
	:
	:
 LD [M] net/xfrm/xfrm_ipcomp.ko
 CC net/xfrm/xfrm_user.mod.o
 LD [M] net/xfrm/xfrm_user.ko
yasunari@vl:/mnt/src/linux-2.6.31.8$ grep FB_CFB_IMAGEBLIT .config
CONFIG_FB_CFB_IMAGEBLIT=m
yasunari@vl:/mnt/src/linux-2.6.31.8$
できた! \^_^/

Makefile の修正

ちょっと寄り道してMakefile を修正。
make modules_install で /lib/modules にコピーされるように。
yasunari@vl:/mnt/src/linux-2.6.31.8$ diff -u Makefile.orig Makefile
--- Makefile.orig 2010年03月30日 01:38:28.000000000 +0900
+++ Makefile 2012年03月10日 13:56:55.301699414 +0900
@@ -181,7 +181,7 @@
 # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
 export KBUILD_BUILDHOST := $(SUBARCH)
 ARCH ?= arm
-CROSS_COMPILE ?= arm-mv5sft-linux-gnueabi-
+CROSS_COMPILE ?=
 # Architecture as present in compile.h
 UTS_MACHINE := $(ARCH)
@@ -617,7 +617,7 @@
 # makefile but the argument can be passed to make if needed.
 #
-INSTALL_MOD_PATH=binaries
+INSTALL_MOD_PATH=
 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
 export MODLIB
yasunari@vl:/mnt/src/linux-2.6.31.8$
変更したのは、INSTALL_MOD_PATH

モジュールのインストール

yasunari@vl:/mnt/src/linux-2.6.31.8$ su
Password:
root@vl:/mnt/src/linux-2.6.31.8# make modules_install
 INSTALL crypto/authenc.ko
 INSTALL crypto/ecb.ko
 INSTALL crypto/pcbc.ko
 INSTALL drivers/char/hw_random/rng-core.ko
 INSTALL drivers/hid/hid-a4tech.ko
 INSTALL drivers/hid/hid-apple.ko
 INSTALL drivers/hid/hid-belkin.ko
 INSTALL drivers/hid/hid-cherry.ko
	:
	:
 INSTALL net/xfrm/xfrm_ipcomp.ko
 INSTALL net/xfrm/xfrm_user.ko
 DEPMOD 2.6.31.8
root@vl:/mnt/src/linux-2.6.31.8#

リブート

root@vl:/mnt/src/linux-2.6.31.8# reboot

ログイン

LED が青点灯になった所で、、、
Linux 2.6.31.8 (x60l.yamasita.jp) (pts/0)
vl login: yasunari
Password:
Last login: Sat Mar 10 21:04:04 JST 2012 from x60l.yamasita.jp on pts/0
Linux vl 2.6.31.8 #8 Sat Mar 10 18:43:22 JST 2012 armv5tel
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
yasunari@vl:~$
とりあえずできた!



デスクトップとして使う(2)udlfb モジュールのコンパイル
ハックの記録
LinkStation/玄箱 をハックしよう
デスクトップとして使う(4)GX-DVI/U2B の接続

Copyright (C) 2003-2012 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市

AltStyle によって変換されたページ (->オリジナル) /