On Wed, 2006-11-08 at 17:54 +0000, Paul Howarth wrote: > Anne Wilson wrote: > > On Wednesday 08 November 2006 16:29, Paul Howarth wrote: > >> Anne Wilson wrote: > >>> On Wednesday 08 November 2006 15:59, Paul Howarth wrote: > >>>> Anne Wilson wrote: > >>>>> On Wednesday 08 November 2006 13:07, Paul Howarth wrote: > >>>>>> Anne Wilson wrote: > >>>>>> > >>>>>> This problem has come up in relation to a bunch of out-of-tree kernel > >>>>>> drivers since FC6 was released. The linux/config.h header file no > >>>>>> longer exists and is not needed. You should be able to just delete the > >>>>>> source line in the driver that references it (gspca_core.c line 36 I > >>>>>> think). > >>>>> OK - removed it, and make continued, apparently succeeding. However, > >>>>> attempting install gives me > >>>>> > >>>>> install -c -m 0644 gspca.ko /lib/modules/`uname > >>>>> -r`/kernel/drivers/usb/media/ install: target > >>>>> `/lib/modules/2.6.18-1.2798.fc6/kernel/drivers/usb/media/' is not a > >>>>> directory: No such file or directory > >>>>> > >>>>> Do I simply create this directory? > >>>> You could do, or you could install it into > >>>> /lib/modules/2.6.18-1.2798.fc6/extra/ or maybe > >>>> /lib/modules/2.6.18-1.2798.fc6/kernel/drivers/media/video/usbvideo/ > >>> I'm out of my depth, here, Paul. Part of the makefile reads > >>> > >>> MODULE_INSTALLDIR = > >>> /lib/modules/$(KERNEL_VERSION)/kernel/drivers/usb/media/ > >>> MODULE_INSTALLDIR2 > >>> = /lib/modules/$(KERNEL_VERSION)/kernel/drivers/media/video/ > >>> > >>> default: > >>> $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) CC=$(CC) modules > >>> > >>> install: > >>> mkdir -p $(MODULE_INSTALLDIR) > >>> rm -f $(MODULE_INSTALLDIR)spca5xx.ko > >>> rm -f $(MODULE_INSTALLDIR2)gspca.ko > >>> install -c -m 0644 gspca.ko $(MODULE_INSTALLDIR) > >>> /sbin/depmod -ae > >>> > >>> Should I edit the MODULE_INSTALLDIR to match the MODULE_INSTALLDIR2? I > >>> would have thought that they wouldn't have defined two separate ones if > >>> they could both go in the same one. > >>> > >>> Sorry to sound naive - I am ;-) > >> I'd suggest changing the /usb/media in MODULE_INSTALLDIR to > >> /media/video/usbvideo > >> > > OK - last hurdle, I hope: > > > > *** The "rpmbuild" program is not in your PATH! > > > > This is root, of course. I've found > > > > usr/lib/librpmbuild-4.4.so > > > > so how do I append it to root's path? I'm sure I should know this, but I > > just can't remember. > > Um, what are you trying to do now? You don't need rpmbuild to build a > kernel module. Have you moved on to something else now> > > Don't build RPMs as root anyway. You'll need the rpm-build package and > then you can build them as a regular user. > http://www.city-fan.org/tips/CreateRPMBuildEnvironment > > Paul. > > It has occured to me that Anne may be experiencing a problem I had some time ago with a different device. The hub power supply was drooping. In my case it happened just as I was firing up a new version of software, so I wasn't too badly mislead, but the fact that the problem arose just as I was working on the software led me down some pretty dusty trails when all I really needed was a new "wall wart". It was a classic "Ohhh! C***! I can't believe it! Days of work down the tubes!" moment for me. I have since discovered that a few devices on USB will change their current drains quite a bit depending on how the software sets them up and abandons them. Regards, Les H