hi all i am trying to compile usb-skeleton.c and then make it work for usb pen drive... the compile was successful but while inserting the module in the kernel using insmod..a message comes like : invalid modiule format: Also i am doing it on fedora core 2....so is the module format different in that... If so ...how to compile the file to make that particular format(*.ko) ok bye --- "Randy.Dunlap" <[EMAIL PROTECTED]> wrote:
> sunil saggar wrote: > > hi all > > while i was trying to compile usb-skeleton.o i got > the > > following error messages > > > > from > > > /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6, > > from > > > /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13, > > from > > > /lib/modules/2.6.5-1.358/build/include/linux/usb.h:14, > > from usb-skeleton.c:52: > > > /lib/modules/2.6.5-1.358/build/include/asm/irq.h:16:25: > > irq_vectors.h: No such file or directory > > In file included from > > > /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6, > > from > > > /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13, > > from > > > /lib/modules/2.6.5-1.358/build/include/linux/usb.h:14, > > from usb-skeleton.c:52: > > > /lib/modules/2.6.5-1.358/build/include/linux/irq.h:70: > > error: `NR_IRQS' undeclared here (not in a > function) > > In file included from > > > /lib/modules/2.6.5-1.358/build/include/linux/irq.h:72, > > from > > > /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6, > > from > > > /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13, > > from > > > /lib/modules/2.6.5-1.358/build/include/linux/usb.h:14, > > from usb-skeleton.c:52: > > > /lib/modules/2.6.5-1.358/build/include/asm/hw_irq.h:28: > > error: `NR_IRQ_VECTORS' undeclared here (not in a > > function) > > > /lib/modules/2.6.5-1.358/build/include/asm/hw_irq.h:32: > > error: `NR_IRQS' undeclared here (not in a > function) > > > > i think these errors arouse because of the file > > irq_vectors.h > > can u plz tell me where is that file present or > any > > other solution of the above errors > > I see it in these places (in 2.6.7): > > ./mach-default/irq_vectors_limits.h > ./mach-default/irq_vectors.h > ./mach-generic/irq_vectors_limits.h > ./mach-visws/irq_vectors.h > ./mach-pc9800/irq_vectors.h > ./mach-summit/irq_vectors_limits.h > ./mach-voyager/irq_vectors.h > > How are you trying to build usb-skeleton ? I > suspect that you aren't > doing it quite right. > > -- > ~Randy > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for > FREE > LinuxWorld Reader's Choice Award Winner for best > database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > [EMAIL PROTECTED] > To unsubscribe, use the last form field at: > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel