OpenWrt Forum Archive

Topic: gpio_support on ixp4xx in trunk

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I've just built the latest trunk for ixp4xx on an Avila 2345 and enabled the gpio settings and included the gpioctl package.  Everything builds fine and flashes great, but the user land /dev/gpio is not being created.  This was working fine in 2.6.23 but appears to be broken now?  Is it just me or can someone else verify this?

nlinux wrote:

I've just built the latest trunk for ixp4xx on an Avila 2345 and enabled the gpio settings and included the gpioctl package.  Everything builds fine and flashes great, but the user land /dev/gpio is not being created.  This was working fine in 2.6.23 but appears to be broken now?  Is it just me or can someone else verify this?

IMHO you need

CONFIG_NEW_GPIO=y
CONFIG_GPIO_DEVICE=y

in your kernel .config file (under trunk/build_dir/linux*/linux-*/)
If there are not there, run

make kernel_menuconfig

and enable Device Drivers / GPIO Support / GPIO device support.
AFAIK the changes by the above make only last until the next make clean is executed.

The discussion might have continued from here.