Hello,

I have a wrt54g v2.2 with OpenWrt Backfire, and I would like to poll the
state of the reset button, or get an interrupt when the reset button is
pressed. I have no buttons on the front panel, but the another GPIO input
port (GPIO4) would be good as well, because the wire is there on the PCB.

I found several forum topics about kamikaze, but i could find the same files
in the file system, like /etc/hotplug.d/buttons, or /dev/gpio,
/sys/class/gpio.

I have a custom openwrt installation which is built by the ImageBuilder:
make image PROFILE="Broadcom-b43" PACKAGES="-dnsmasq -e2fsprogs
-kmod-fs-ext3 -kmod-ppp -kmod-pppoe -kmod-scsi-core -kmod-usb-core
-kmod-usb-ohci -kmod-usb-storage -kmod-usb2 -ppp -ppp-mod-pppoe -iptables
-iptables-mod-conntrack -iptables-mod-nat -kmod-ipt-conntrack -kmod-ipt-core
-kmod-ipt-nat -kmod-ipt-nathelper -firewall -nvram python-mini pyserial
kmod-b43" FILES=files/

After flashing this image, i installed the following
packages: kmod-input-core kmod-input-polldev kmod-input-gpio-buttons
kmod-button-hotplug, gpioctl.

So how could i read the state of the reset button or the other input gpio
port?

Thanks!

  Gábor
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to