linux kernel - access GPIO from user space -



linux kernel - access GPIO from user space -

i trying access intel (cavecreek) gpio controller user space. getting: "no such device " error when trying echo /sys/class/gpio/export.

here's error message:

echo 32 > /sys/class/gpio/export bash: echo: write error: no such device

the error message seems suggest need have device connected gpio. documentation doesn't seem mention that. nil beingness reserved far can tell dumping out /sys/kernel/debug/gpio. have i2c mux connected gpio pins. give thanks nadvance

below more info on kernel , configuration

the kernel is 3.14

here's relevant config setting: config_arch_want_optional_gpiolib=y

config_gpiolib=y

config_gpio_devres=y

config_gpio_acpi=y

config_debug_gpio=y

config_gpio_sysfs=y

in case, problem kernel source 3.14. scheme uses intel rangely. in source lpc_ich.c, .gpio_version field missing lpc_dh89xxcc. added field, recompiled , kernel able enumerate gpiopin, although display default gpio direction not correct. direction shows 'in' pins initially, after using echo command alter pin direction, display show correctly.

linux-kernel linux-device-driver embedded-linux gpio sysfs

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -