Freeplay Zero Build - thoughts and questions
#14
In theory, the GPIO controller driver is supposed to rebuild itself when you upgrade to a new kernel, but it seems to not work. If anyone that ever reads this is a DKMS expert, maybe they can chime in and help with that piece. At any rate, it's not so difficult to fix, but it is an annoyance.

If you look here https://drive.google.com/drive/u/0/folde...WVoNzNxeVE you can find both instructions to manually add our mods to other SD images and some scripts that are meant to automate this process. I'd say that they're not perfect, but if you're versed in Linux or Rasbian, it should work good enough to get things set up.

The momentary PWR switch code is actually split up based on functionality. The stuff that does the hotkey toggle is in the GPIO driver. The stuff that does the shutdown is in a python script that can be found here: https://github.com/TheFlav/Freeplay-Supp..._daemon.py

You're 100% right about the reboot. What happens is that (when you have the system fully turned off), you press the power button, it supplies power to the FPZ and PiZero. During bootup, the Pi "takes over" and sends a signal that it's in control (which also turns on the green light). When the Pi shuts down (or reboots), the last thing it does is to let go of this signal (which cuts power). If you execute a reboot, it will let go of the signal and then lose power.

This is a Pi thing. It's not a script or software that we provide. It's a function that's built into Raspbian. If there's another way to handle it, I don't know about it. The only way to get it to reboot like you're talking about is to power the PiZero directly through its microUSB (which bypasses all of the FPZ battery and charging circuitry).
Card Fighters' Clash 2 English Translation ( http://cfc2english.blogspot.com/ )
Neo Geo Pocket Flash Cart and Linker Project ( http://www.flashmasta.com/ )
Avatar art thanks to Trev-Mun ( http://trevmun.deviantart.com/ )
Reply


Messages In This Thread
RE: Freeplay Zero Build - thoughts and questions - by Flavor - 09-18-2017, 08:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)