Hi,
You can safely ignore those compiler warning messages.
In your step 5., did you enable USB Support,
some host controller support (UHCI or OHCI, whichever
is appropriate for your system; or enable both of
them, it won't hurt anything)? And under
Character Devices, did you enable Video for Linux
support (with Y)?
After step 7., you did reboot with this new Linux
kernel, right?
Attach your linux/.config file so we can see your
build options.
And attach your kernel log file after you reboot
so we can see the USB messages in the log file.
~Randy
___________________________________________________
|Randy Dunlap Intel Corp., DAL Sr. SW Engr.|
|randy.dunlap.at.intel.com 503-696-2055|
|NOTE: Any views presented here are mine alone |
|and may not represent the views of my employer. |
|_________________________________________________|
> -----Original Message-----
> From: Kunio Fujiwara [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 28, 2000 5:39 PM
> To: '[EMAIL PROTECTED]'
> Subject: [linux-usb] How to configureing original USB device
> driver with
> kernel.
>
>
> I developed Linux USB device driver for our sensor camera
> (IVS30 for factory automation.).
>
> I successed configureing device driver with kernel as module.
>
> I'm trying to configureing device driver with kernel. (not module)
> But I can't.
>
> 1. /usr/src/linux-2.3.**/drivers/usb/Makefile added below
> .
> .
> obj-$(CONFIG_USB_OV511) += ov511.o
> obj-$(CONFIG_USB_IVS30USB) += ivs30usb.o <-ADDED
> obj-$(CONFIG_USB_PEGASUS) += pegasus.o
> .
> .
>
> 2. /usr/src/linux-2.3.**/drivers/usb/Config.in added below
> .
> .
> dep_tristate ' USB OV511 Camera support' CONFIG_USB_OV511
> $CONFIG_USB
> dep_tristate ' USB IVS30USB support' CONFIG_USB_IVS30USB
> $CONFIG_USB <-ADDED
> dep_tristate ' USB Kodak DC-2xx Camera support'
> CONFIG_USB_DC2XX $CONFIG_USB
> .
> .
>
>
> 3. My device driver file(ivs30usb.c) copy to
> /usr/src/linux-2.3.**/drivers/usb/
>
> 4. make mrproper
> 5. make xconfig <select y, USB IVS30USB support>
> 6. make dep; make clean; make bzImage
> 7. these warning displaying.
> ivs30usb.c :494: warning: 'ivs30usb_init' defined but not used
> ivs30usb.c :505: warning: 'ivs30usb_exit' defined but not used
>
> I think it's not configureing with kernel.
> initialize and exit code is below. (I refered printer.c, scanner.c)
>
> /*************************************************************
> **********************/
>
> /*------------------------------------------------------------
> ---------------------*/
> /* Module initialize */
> static int __init ivs30usb_init(void)
> {
> /*printk("IVS30 USB drvice driver ready!!\n");*/
> if(usb_register(&ivs30usb_driver))
> return -1;
>
> return 0;
> }
>
> /*------------------------------------------------------------
> ---------------------*/
> /* Module remove */
> static void __exit ivs30usb_exit(void)
> {
> /*printk("IVS30 USB device driver removed!!\n");*/
> usb_deregister(&ivs30usb_driver);
> }
>
> module_init(ivs30usb_init);
> module_exit(ivs30usb_exit);
>
> /*************************************************************
> **********************/
>
> I don't know what I miss.
>
> Please tell me, how to do it.
>
> ------------------------------------------
> Kunio Fujiwara
> THIRD ENGINEERING DEPARTMENT
> SHARP MANUFACTURING SYSTEMS CORP.
> e-mail : [EMAIL PROTECTED]
> URL : http://www.sharp.co.jp/sms/
> PHONE : +81-729-91-4218
> FAX : +81-729-91-4075
> ------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]