디바이스 드라이버 hello world 예제 문제..
글쓴이: coolove / 작성시간: 목, 2004/02/26 - 9:10오후
디바이스 드라이버를 공부하려고 합니다.
오렐리의 "리눅스 디바이스 드라이버" 의 첫번째 예제 'hello world" 를
수행해 보았는데 에러가 나네요
책에서는 답을 구할수 없어 이곳에 질문 드립니다.
melon:~/work/module# cat hello.c
#define MODULE
#include <linux/module.h>
int init_module(void)
{
printk("<1>Hello, world\n");
return 0;
}
void cleanup_module(void)
{
printk("<1>Good bye cruel world\n");
}
melon:~/work/module# gcc -c hello.c
melon:~/work/module# insmod ./hello.o
Warning: loading ./hello.o will taint the kernel: no license
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module hello loaded, with warnings
melon:~/work/module# rmmod hello
Forums:
이건 에러게 아니라. 워닝 오류정도인데요라이센스가 없다고 하는거에요.
이건 에러게 아니라. 워닝 오류정도인데요
라이센스가 없다고 하는거에요..
소스 코드의 맨밑에 아래 코드 추가해보세요
힘내세요.
그리고 로그는 dmesg 해보시면 나올거에요..
그리고 로그는 dmesg 해보시면 나올거에요..
힘내세요.
댓글 달기