[Armadillo:04873] Re: デバイスドライバの動作確認

mizo email@hidden
2010年 1月 6日 (水) 11:01:01 JST


溝渕です。

otao wrote:
> armadilloの初心者です。
> アドバイスよろしくお願いいたします。
> atmark-dist開発者ガイド(version 1.0.7-8d87fa8)2009/07/17
> を参考に実習を行っております。
> テキスト内サンプルと同じドライバをビルドする11.2.4ビルドまでは
> 問題なく進みましたが、11.3.ドライバの動作確認でつまずいております。
> 
> アプリケーションプログラムもテキスト内のmodule_test.cを使用し、
module_test.cはユーザランドアプリケーションです。

> Makefileは10.新規アプリケーションの追加方法でmessage.cを
> 追加した際に使用したものを流用しております。
11章のことでしょうか?message.cはドライバです。

10章に、hello.cをビルドするためのMakefileがあるので、このMakefileを
module_test.c用に修正してみてください。

以上です。

> ーーーーーmake modulesを実行した際のエラーメッセージーーーーーーーーーー
> make[1]: ディレクトリ `/home/atmark/linux-2.6.12.5-at8' に入ります
>  CC [M]  /home/atmark/modules_test/modules_test.o
> /home/atmark/modules_test/modules_test.c:4:19: error: errno.h: そのよう 
> なファイルやディレクトリはありません
> /home/atmark/modules_test/modules_test.c:5:19: error: fcntl.h: そのよう 
> なファイルやディレクトリはありません
> /home/atmark/modules_test/modules_test.c:6:19: error: stdio.h: そのよう 
> なファイルやディレクトリはありません
> /home/atmark/modules_test/modules_test.c:7:20: error: string.h: そのよう 
> なファイルやディレクトリはありません
> /home/atmark/modules_test/modules_test.c:8:22: error: sys/stat.h: そのよ 
> うなファイルやディレクトリはありません
> /home/atmark/modules_test/modules_test.c:9:23: error: sys/types.h: その 
> ようなファイルやディレクトリはありません
> /home/atmark/modules_test/modules_test.c:10:20: error: unistd.h: そのよ 
> うなファイルやディレクトリはありません
> /home/atmark/modules_test/modules_test.c: In function ‘main’:
> /home/atmark/modules_test/modules_test.c:19: warning: implicit 
> declaration of function ‘open’
> /home/atmark/modules_test/modules_test.c:19: error: ‘O_RDONLY’ 
> undeclared (first use in this function)
> /home/atmark/modules_test/modules_test.c:19: error: (Each undeclared 
> identifieris reported only once
> /home/atmark/modules_test/modules_test.c:19: error: for each function it 
> appears in.)
> /home/atmark/modules_test/modules_test.c:21: warning: implicit 
> declaration of function ‘perror’
> /home/atmark/modules_test/modules_test.c:24: warning: implicit 
> declaration of function ‘memset’
> /home/atmark/modules_test/modules_test.c:26: warning: implicit 
> declaration of function ‘read’
> /home/atmark/modules_test/modules_test.c:33: warning: implicit 
> declaration of function ‘close’
> /home/atmark/modules_test/modules_test.c:34: warning: implicit 
> declaration of function ‘printf’
> /home/atmark/modules_test/modules_test.c:36:2: warning: no newline at 
> end of file
> make[2]: *** [/home/atmark/modules_test/modules_test.o] エラー 1
> make[1]: *** [_module_/home/atmark/modules_test] エラー 2
> make[1]: ディレクトリ `/home/atmark/linux-2.6.12.5-at8' から出ます
> make: *** [modules] エラー 2
> 
> __________ Information from ESET NOD32 Antivirus, version of virus 
> signature database 4746 (20100105) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 
> 
> 
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo



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