usb gadget driver 만들기...
글쓴이: mani85 / 작성시간: 수, 2011/08/10 - 4:11오후
안녕하세요.
2.6.30 에서 usb gadget driver에서 CDC composite (ECM+ACM) 드라이버 소스인
" linux/drivers/usb/gadget/cdc2.c " 을 변경하여
ACM만 2개로 구성하려고 합니다.
하지만 새로 모듈을 어떻게 컴파일 해야할지 모르겠습니다..
일단 제 방법대로 컴파일하면 아래와 같이 나옵니다.
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
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
CHK include/linux/compile.h
CC [M] drivers/usb/gadget/cgs.o
In file included from include/linux/usb/composite.h:38,
from drivers/usb/gadget/u_serial.h:15,
from drivers/usb/gadget/cgs.c:11:
include/linux/usb/gadget.h:488: error: field ?쁡ev??has incomplete type
include/linux/usb/gadget.h: In function ?쁲et_gadget_data??
include/linux/usb/gadget.h:492: error: implicit declaration of function ?쁡ev_set_drvdata??include/linux/usb/gadget.h: In function ?쁤et_gadget_data??
include/linux/usb/gadget.h:494: error: implicit declaration of function ?쁡ev_get_drvdata??include/linux/usb/gadget.h:494: warning: return makes pointer from integer without a cast
include/linux/usb/gadget.h: At top level:
include/linux/usb/gadget.h:780: error: field ?쁡river??has incomplete type
In file included from drivers/usb/gadget/composite.c:26,
from drivers/usb/gadget/cgs.c:29:
include/linux/device.h:453: error: conflicting types for ?쁡ev_get_drvdata??include/linux/usb/gadget.h:494: error: previous implicit declaration of ?쁡ev_get_drvdata??was here
include/linux/device.h:458: warning: conflicting types for ?쁡ev_set_drvdata??include/linux/device.h:458: error: static declaration of ?쁡ev_set_drvdata??follows non-static declaration
include/linux/usb/gadget.h:492: error: previous implicit declaration of ?쁡ev_set_drvdata??was here
In file included from drivers/usb/gadget/cgs.c:29:
drivers/usb/gadget/composite.c:1066: error: field name not in record or union initializer
drivers/usb/gadget/composite.c:1066: error: (near initialization for ?쁟omposite_driver.driver??
make[2]: *** [drivers/usb/gadget/cgs.o] Error 1
make[1]: *** [drivers/usb/gadget] Error 2
make: *** [drivers] Error 2Forums:


댓글 달기