customers compiling gpio example and kernel module might see the following compilation failure:
CC [M] /home/digi/workspace16/ccardimx28js/tmp/work/ccardimx28js-dey-linux-gnueabi/kernel-module-gpio/2.1-dey.r0/gpio.o
| /home/digi/workspace16/ccardimx28js/tmp/work/ccardimx28js-dey-linux-gnueabi/kernel-module-gpio/2.1-dey.r0/gpio.c:49:2: error: unknown field 'ioctl' specified in initializer
| .ioctl = gpio_ioctl,The GPIO kernel module example builds only with kernel 2.6.35. The support for old ioctl system was removed around kernel 2.6.37 (and is not available in kernel 3.x).
If you need to compile the GPIO kernel module, you need to select kernel 2.6.35.14 in:
<project>/conf/local.conf
PREFERRED_VERSION_linux-dey = "2.6.35.14"
PREFERRED_VERSION_u-boot-dey = "2009.08"bitbake kernel-module-gpio
To use the gpio samples in kernel 3.10, you need to use gpio sysfs support instead of ioctl():without changing local.conf to kernel 2.6.35.14 just use instead:
bitbake dey-examples-gpio-sysfs
Last updated:
Jan 01, 2024