04-14-2016, 07:38 PM
If you wish to interact with UART2 on PI header (pin 8 and 10), you will maybe find soon that /dev/ttyS2 that isn't available.
The problem is only that it is not enabled into the DTB.
You can fix that by doing (along with backups)
Then edit the "sun50i-a64-pine64-plus.dts" and change "disable" to "okay" in the "status" of the "uart@01c28800" paragraph !
Push the change back into binary :
Then, reboot !
you should now have the /dev/ttyS2 working !
The problem is only that it is not enabled into the DTB.
You can fix that by doing (along with backups)
Code:
mv /boot/pine64/sun50i-a64-pine64-plus.dtb /boot/pine64/sun50i-a64-pine64-plus.dtb-ORIG
dtc -I dtb -O dts -o sun50i-a64-pine64-plus.dts /boot/pine64/sun50i-a64-pine64-plus.dtb-ORIG
Then edit the "sun50i-a64-pine64-plus.dts" and change "disable" to "okay" in the "status" of the "uart@01c28800" paragraph !
Push the change back into binary :
Code:
dtc -I dts -O dtb -o /boot/pine64/sun50i-a64-pine64-plus.dtb sun50i-a64-pine64-plus.dts
Then, reboot !
you should now have the /dev/ttyS2 working !