02-07-2022, 03:13 PM
(This post was last modified: 02-07-2022, 03:19 PM by ragreenburg.)
(02-07-2022, 02:44 PM)Zebulon Walton Wrote: It's supposed to be "firmware and tools". It looks like you have to clone the source tree with git and then build from source. (On Mobian to get the C compiler, make, etc., you need to "sudo apt-get install build-essential". Not sure on other distros.)
Code:git clone https://megous.com/git/pinephone-keyboard
Then you cd into the resulting pinephone-keyboard directory where there's a Makefile which has a target to build the tools/utilities. So if you have the prerequisites installed the following would build everything, or just build the tools, respectively:
Code:make # Build everything
make tools # Build tools/utilities only
However, it appears that one of the prerequisites is php, when running either make command the following diagnostic is issued because that's not installed:
Code:php keymaps/map-to-c.php keymaps/physical-map.txt keymaps/factory-keymap.txt build/kmap.h
make: php: No such file or directory
make: *** [Makefile:21: build/kmap.h] Error 127
The problem is that "apt-get install php" wants to drag in a bunch of other stuff including the apache web server and I really don't want that. (Though I could install all that stuff, build the tools, then remove it all afterwards.)
Thank you for the help! On Arch Php was only 3 packages and was like 20 mb so I may have had the other stuff installed or maybe Arch just packages it differently. Either way, I built it but now running the same command as I listed in my original post, still gives the same error. I rebooted and tried again with the keyboard attached and same thing.
Edit:
It seems like they are inside of the build directory. I assumed I would be able to run them from anywhere but I was mistaken. Unfortunately I found this out after disconnecting my keyboard so I will have to reattach it all and see if that is actually working.