开发者

asm/ioctl.h is missing on my gumstix linux image

I am trying to include ioctl.h on my Gumstix Linux in order to use the on-board ADC.

In turn, ioctl.h includes asm/ioctls.h which is missing on my machine.

In fact, the entire /usr/asm direct开发者_开发百科ory is missing. Does anybody know how I am supposed to add/install it and why it is missing?


I had this same issue. I created a symbolic link for this directory, as well as several others (sorry I cannot be more specific as this was at a previous employer and I don't have it with me.)

Make sure you have installed the kernel headers:

opkg install task-native-sdk

Then create symbolic links:

ln -s /usr/asm /usr/src/linux-3.0.0/include/asm/

(again, going on memory...)


It depends on architecture. For example for x86, the file

/arch/x86/include/asm/ioctl.h

includes

include/asm-generic/ioctl.h

that contains the relevant information

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜