Pi shuts down on ControlBlock driver install
I'm trying to setup the drivers for a Control block and when I run through the quick install with
wget -O - https://raw.githubusercontent.com/petrockblog/ControlBlockService2/master/install.sh | sudo bash
It runs through and it seems like it's just about done and the Pi shuts off completely, there are no error messages and I have to turn it back on by hand. All the folders are there and the files from what I can tell but the config file is blank and it's not recognized by retropie.
I have run all the prerequisites and I've tried this 3 times from scratch with the same outcome.
This is on a Pi4 with a brand new ControlBlock I got a few months ago.
UPDATE on this. I restarted the build from scratch and tried installing the driver without the quick install and I get an error during building. I follow all the steps and when I type make it gets 42% through and gives me.
Scanning dependencies of target mop23s17Lib [ 31%] Bullding CIX object sre/11b/mcp23s17/CMakeFiles/me 23s17L1b.dir/ncp23s17.cyp.o [ 33%] Linking CXX static library libmcp63s17LiD.a [ 33%] Built target mcp23s17Lib Scanning dependencies of target ft [ 35%] Building CXX object sre/lib/fmt./CMakeFiles/fmt.dir/sre/format.cc.o [ 37%] Building CKX object src/lib/Imt./CMakeFiles/fmt.dir/sre/posix.cc.o [ 40%] Linking CXX static library libfnt.a [ 41%] Built target int Scanning dependencies of target control lock-app [42%]Building CXX object see/control lack/app/CMakeFiles/controlblock-app.dir/ControlBlock.cpp.o In file included fron /honerpi/ControlBlackServiceZ/sre/controlblock/app/ControlBlock.h:30, fron/hone/pl/ControlBlockService?/sre/controlblock/app/ControlBlock.cp:25: /honerpi/ControlBlockService2/src/controlblock/app/PoucrSuitch.h:26:103fatalerror:gpiod.hpp:Nosuchfileordirectory #include <gpiod.hpp> compilation terninated. make : Isre/controlblock/app/CMakeFiles/controlblock-app.dir/bufld.make:63:src/controlblack/app/CMakeFiles/controlblock-app.dir/ControlBlock.cpp.oJError1 makeli1: *an iChakefiles/Makefilez:673:sre/controlblock/app/CHakeFiles/controlblock-app.dir/all)Error make: *** [Makefile:130: all] Error picretropie:*/ControlBlockService?/build S _
Any ideas what is going on? It was making it further than this on the quick install.
You're missing the
libgpiod-devpackage. If you already have RetroPie installed, then I suggest to install the driver from the RetroPie-Setup script - it's in the
driverspackage section. The install script will take care of any dependencies and build options.
@mitu Thanks for pointing to that! From the terminal output above, I come to the same impression.
@jimkill The install script from https://github.com/petrockblog/ControlBlockService2#quick-installation contains the installation of said library, though (see https://github.com/petrockblog/ControlBlockService2/blob/master/install.sh#L10). So, something seems to go wrong with the installation of that package. What does it say when you directly execute
apt-get install -y git cmake g++ doxygen libc6 libc6-dev libgpiod-dev gpiod
Besides that the terminal output above looks a bit scrambled. Maybe it is just a copy-paste or an encoding issue or it is something more severe, like the file system is corrupted.
@petrockblog the github instructions seem to be missing the libgpiod-dev and gpiod. It looks like it just stops after libc6-dev. I'll get these two things added and see if that fixes the problem. Thank you!
The terminal output text above was copied from a screengrab so I think it read some characters incorrectly.
@petrockblog ok that got me a bit further but now when I get to
sudo make installservice
it crashes and the pi shuts off completely. Any ideas?
I finally got the driver to enable through the retropie config screen without shutting the whole thing down. I had to update all drivers, packages and everything on the pi through the retropie config screen and then I was able to enable the ControlBlock driver. When I edited the controlblock config file it was blank so I added all the code that is usually there and configured it to work with arcade and a power button. I restarted everything and it's like it's not even there. jtest doesn't even pull up, ControlBlock isn't on services running. I'm at a loss. I've been messing with this for a week now and it doesn't work like it should.
Anyone willing to take a look at my boot and see if they can see what I'm missing?