开发者

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

开发者 https://www.devze.com 2023-03-20 07:31 出处:网络
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.

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

精彩评论

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