On Wed, Nov 30, 2016 at 09:02:26PM -0800, Ryan Tandy wrote:
It looks like micro-evtd just uses the GPIO to watch for the power button being pressed. The feature is optional (guarded by #define). If we could get the kernel to do that instead, we could omit the GPIO monitoring.
Actually, the fallback code to poll the microcontroller for button presses seems to work just fine as well.
Roger, would you be willing to try the attached patch on your devices? I can upload a .deb somewhere if that would help.
diff -Nru micro-evtd-3.4/debian/changelog micro-evtd-3.4/debian/changelog --- micro-evtd-3.4/debian/changelog 2016-02-15 14:10:29.000000000 -0800 +++ micro-evtd-3.4/debian/changelog 2016-11-30 21:19:30.000000000 -0800 @@ -1,3 +1,11 @@ +micro-evtd (3.4-4) UNRELEASED; urgency=medium + + * Bump to dh compat level 9 to get dpkg-buildflags support. + * Add -DNO_GPIO to CPPFLAGS to workaround /dev/mem no longer being + readable since CONFIG_STRICT_DEVMEM was enabled. (Closes: #845559) + + -- Ryan Tandy <[email protected]> Wed, 30 Nov 2016 21:19:30 -0800 + micro-evtd (3.4-3) unstable; urgency=medium * Support device-tree enabled kernel diff -Nru micro-evtd-3.4/debian/compat micro-evtd-3.4/debian/compat --- micro-evtd-3.4/debian/compat 2016-02-13 00:59:30.000000000 -0800 +++ micro-evtd-3.4/debian/compat 2016-11-30 21:19:30.000000000 -0800 @@ -1 +1 @@ -7 +9 diff -Nru micro-evtd-3.4/debian/control micro-evtd-3.4/debian/control --- micro-evtd-3.4/debian/control 2016-02-13 00:59:30.000000000 -0800 +++ micro-evtd-3.4/debian/control 2016-11-30 21:19:30.000000000 -0800 @@ -2,7 +2,7 @@ Section: utils Priority: optional Maintainer: Ryan Tandy <[email protected]> -Build-Depends: debhelper (>= 8) +Build-Depends: debhelper (>= 9) Standards-Version: 3.9.3.0 Homepage: http://www.sourceforge.net/projects/ppc-evtd diff -Nru micro-evtd-3.4/debian/rules micro-evtd-3.4/debian/rules --- micro-evtd-3.4/debian/rules 2016-02-13 00:59:30.000000000 -0800 +++ micro-evtd-3.4/debian/rules 2016-11-30 21:19:00.000000000 -0800 @@ -1,5 +1,7 @@ #!/usr/bin/make -f +export DEB_CPPFLAGS_MAINT_APPEND = -DNO_GPIO + %: dh $@

