+LTS/SOPINE how to change for init status of gpio
#4
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 >>
  Reply


Messages In This Thread
RE: how to change for init status of gpio - by xalius - 03-26-2018, 12:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Battery status on panel? Zoidiano0 3 5,672 05-08-2017, 05:51 PM
Last Post: Zoidiano0

Forum Jump:


Users browsing this thread: 1 Guest(s)