hi how should i add it to makefile? Can it be named as .ko just by making changes in the gcc command line in output file option
--- "Randy.Dunlap" <[EMAIL PROTECTED]> wrote: > sunil saggar wrote: > > hi > > i am not been able to make the > > usb-skeleton.ko......instaed it is coming out as > > usb-skeleton.o > > and i am working on kernel 2.6 so it doesn't > accept > > *.o files as kernel modules. > Correct. > > > how should i make usb-skeleton.ko? > > ok bye > > How are you making usb-skeleton.o? There is nothing > in > a linux Makefile that builds usb-skeleton.o or .ko. > You need to add that to the Makefile yourself.... > > > --- "Randy.Dunlap" <[EMAIL PROTECTED]> wrote: > > > > > >>(see below, > >>please use bottom-posting instead of top-posting) > >> > >>sunil saggar wrote: > >> > >>>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: > >>>> > >>> > > > /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. > >> > >>If you build the module correctly (using a > Makefile > >>and not just by > >>using a 'gcc' command line), and then you use > >>'modprobe usb-skeleton' or 'insmod > usb-skeleton.ko', > >>it should work. > >> > >>My reply was actually to your build > problem/question > >>about > >>irq_vectors.h. > > -- > ~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!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- 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