This looks like the lowest level newbie stuff of all that i've seen in the forum so far, so please bear with me!
I have a vanilla kernel running on fedora 9, and usb_modeswitch just won't compile as it can't seem to find one or the other header file, though lots of files of the same name are present under the include directory:
Code: Select all
$ gcc -l usb -o usb_modeswitch -I /usr/src/linux-2.6.29/ usb_modeswitch.c
usb_modeswitch.c:60:17: error: usb.h: No such file or directory
<snip>
$ find /usr/src/linux-2.6.29/ -name usb.h
/usr/src/linux-2.6.29/arch/arm/plat-omap/include/mach/usb.h
/usr/src/linux-2.6.29/arch/arm/plat-mxc/include/mach/usb.h
/usr/src/linux-2.6.29/arch/mips/include/asm/mach-pnx8550/usb.h
/usr/src/linux-2.6.29/drivers/usb/core/usb.h
/usr/src/linux-2.6.29/drivers/usb/storage/usb.h
/usr/src/linux-2.6.29/include/linux/usb.h
/usr/src/linux-2.6.29/include/config/usb.h
/usr/src/linux-2.6.29/include/config/i2c/tiny/usb.h
/usr/src/linux-2.6.29/include/config/dvb/b2c2/flexcop/usb.h
/usr/src/linux-2.6.29/include/config/dvb/usb.h
I realize that this is not a usb_modeswitch problem per se, but i'm stuck even before i could get around to using usb_modeswitch to solve my problem. Any help would be greatly appreciated.