[Armadillo:09095] armadillo-800EVA_ALSAドライバの更新について

尾山 巨樹 email@hidden
2013年 8月 1日 (木) 16:44:24 JST


尾山と申します。

Armadillo-800EVAで、ALSAドライバを最新の物に更新したいのですが、
ドライバコンパイル時にエラーとなってしまいます。
ALSAドライバのコンパイル方法についてご教授願えませんでしょうか。

ドライバはALSAのサイトからVer1.0.25をダウンロードしています。
展開後、以下の手順でコンパイルしております。

alsa-driver-1.0.25 # ./configure --with-crocc=arm-linux-gnueabi- --with-kernel=/usr/src/linux-2.6.35-a800eva-at3 --with-build=/usr/src/linux-2.6.35-a800eva-at3
alsa-driver-1.0.25 #  make CROSS_COMOILE=arm-linux-gnueabi- ARCH=arm

上記でmakeすると、エラーとなります。

/usr/src/alsa/alsa-driver-1.0.25/include/adriver.h:752: error: static declaration of ‘jiffies_to_msecs’ follows non-static declaration
エラーの出ている箇所は、alsaのソース内でstaticで宣言、カーネル内でextern されているので
その影響なんでしょうが、この回避方法などご存知の方いらっしゃいましたら、ご教授願います。

よろしくお願い致します。


以下make 時の出力
----------
:
:
:
make[3]: ディレクトリ `/usr/src/alsa/alsa-driver-1.0.25/usb/usx2y' から出ます
make[2]: ディレクトリ `/usr/src/alsa/alsa-driver-1.0.25/usb' から出ます
make[1]: ディレクトリ `/usr/src/alsa/alsa-driver-1.0.25' から出ます
make -C /usr/src/linux-2.6.35-a800eva-at3 SUBDIRS=/usr/src/alsa/alsa-driver-1.0.25  CPP="arm-linux-gnueabi-gcc -E" CC="arm-linux-gnueabi-gcc " modules
make[1]: ディレクトリ `/usr/src/linux-2.6.35-a800eva-at3' に入ります
  CC [M]  /usr/src/alsa/alsa-driver-1.0.25/acore/hrtimer.o
In file included from /usr/src/alsa/alsa-driver-1.0.25/acore/hrtimer.c:1:
/usr/src/alsa/alsa-driver-1.0.25/include/adriver.h:293:1: warning: "GFP_DMA32" redefined
In file included from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /usr/src/alsa/alsa-driver-1.0.25/include/adriver.h:63,
                 from /usr/src/alsa/alsa-driver-1.0.25/acore/hrtimer.c:1:
include/linux/gfp.h:118:1: warning: this is the location of the previous definition
In file included from /usr/src/alsa/alsa-driver-1.0.25/acore/hrtimer.c:1:
/usr/src/alsa/alsa-driver-1.0.25/include/adriver.h:752: error: static declaration of ‘jiffies_to_msecs’ follows non-static declaration
include/linux/jiffies.h:296: note: previous declaration of ‘jiffies_to_msecs’ was here
/usr/src/alsa/alsa-driver-1.0.25/include/adriver.h:771: error: static declaration of ‘msecs_to_jiffies’ follows non-static declaration
include/linux/jiffies.h:298: note: previous declaration of ‘msecs_to_jiffies’ was here
In file included from /usr/src/alsa/alsa-driver-1.0.25/acore/hrtimer.c:1:
/usr/src/alsa/alsa-driver-1.0.25/include/adriver.h:1541:1: warning: "page_to_pfn" redefined
In file included from /usr/src/linux-2.6.35-a800eva-at3/arch/arm/include/asm/memory.h:317,
                 from /usr/src/linux-2.6.35-a800eva-at3/arch/arm/include/asm/page.h:202,
                 from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /usr/src/alsa/alsa-driver-1.0.25/include/adriver.h:63,
                 from /usr/src/alsa/alsa-driver-1.0.25/acore/hrtimer.c:1:
include/asm-generic/memory_model.h:72:1: warning: this is the location of the previous definition
In file included from /usr/src/alsa/alsa-driver-1.0.25/acore/hrtimer.c:23:
include/linux/slab.h:226: error: static declaration of ‘snd_compat_kcalloc’ follows non-static declaration
/usr/src/alsa/alsa-driver-1.0.25/include/adriver.h:928: note: previous declaration of ‘snd_compat_kcalloc’ was here
include/linux/slab.h:319: error: static declaration of ‘snd_compat_kzalloc’ follows non-static declaration
/usr/src/alsa/alsa-driver-1.0.25/include/adriver.h:943: note: previous declaration of ‘snd_compat_kzalloc’ was here
make[3]: *** [/usr/src/alsa/alsa-driver-1.0.25/acore/hrtimer.o] エラー 1
make[2]: *** [/usr/src/alsa/alsa-driver-1.0.25/acore] エラー 2
make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.25] エラー 2
make[1]: ディレクトリ `/usr/src/linux-2.6.35-a800eva-at3' から出ます
make: *** [compile] エラー 2
email@hidden:/usr/src/alsa/alsa-driver-1.0.25# 
 


******
尾山



armadillo メーリングリストの案内