- 论坛徽章:
- 0
|
最近在做usb摄像头的驱动移植,用的是spca5xx驱动程序。
下载spcav源码后,make,ok
menuconfig如下:
#
# USB support
#
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB=m
#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
#
# USB Host Controller Drivers
#
# CONFIG_USB_ISP116X_HCD is not set
CONFIG_USB_OHCI_HCD=m
# CONFIG_USB_OHCI_BIG_ENDIAN is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
#
# USB Device Class drivers
#
CONFIG_USB_ACM=m
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
CONFIG_USB_STORAGE=m
#
# USB Input Devices
#
# CONFIG_USB_HID is not set
#
# USB Multimedia devices
#
CONFIG_USB_SPCA5XX=m
CONFIG_USB_VICAM=m
#
# USB Network Adapters
#
CONFIG_USB_MON=y
#
# USB port drivers
#
#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set
#
# USB Miscellaneous drivers
#
CONFIG_USB_TEST=m
#
# Multimedia devices
#
CONFIG_VIDEO_DEV=m
#
# Video For Linux
#
#
# Video Adapters
#
# CONFIG_VIDEO_PMS is not set
# CONFIG_VIDEO_CPIA is not set
# CONFIG_VIDEO_SAA5246A is not set
# CONFIG_VIDEO_SAA5249 is not set
# CONFIG_TUNER_3036 is not set
# CONFIG_VIDEO_OVCAMCHIP is not set
#
#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set
下面是加载的模块:
[root@/mnt/yaffs/usbcam]#insmod usbcore.ko
usbcore: registered new driver usbfs
usbcore: registered new driver hub
[root@/mnt/yaffs/usbcam]#insmod ohci-hcd.ko
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
[root@/mnt/yaffs/usbcam]#usb 1-1: new full speed USB device using s3c2410-ohci 2
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.2: new full speed USB device using s3c2410-ohci and address 3
usb 1-1.2: 400mA over 100mA budget!
hub 1-1:1.0: 64mA over power budget!
[root@/mnt/yaffs/usbcam]#insmod v4l1-compat.ko
[root@/mnt/yaffs/usbcam]#insmod v4l2-common.ko
[root@/mnt/yaffs/usbcam]#insmod videodev.ko
Linux video capture interface: v1.00
[root@/mnt/yaffs/usbcam]#insmod usbvideo.ko
[root@/mnt/yaffs/usbcam]#insmod spca5xx.ko
usbcore: registered new driver spca5xx
/workspace/usbcam/spcav/drivers/usb/spca5xx.c: spca5xx driver 00.60.00 registerd
但是,却没有生成v4l或者video0节点
[root@/mnt/yaffs/usbcam]#ls /dev/v*
/dev/vcs /dev/vcs2 /dev/vcsa /dev/vcsa2
开发板是博创的up-tech arm2410s
内核版本是:2.6.14.1
请高手帮忙解答我的困惑!谢谢~~ |
|