03-26-2018, 12:44 PM
The standard way to do it if you are ok with devicetree changes is to edit the board devicetree to override the default pin config. Keep in mind that there are two devicetrees, u-boot uses it's own and linux another - they are mostly the same, but not 100%, and you have to update both depending on how early you need your GPIO setup... check in the /boot folder for the Pine64 devicetree (dtb) file. You can convert that to text with dtc (device tree compiler), make your changes, and convert it back to dtb. The other option is to use the u-boot boot script to change the dtb on the fly - u-boot has the fdt read/write commands to do that...
Come have a chat in the Pine IRC channel >>