UART2 on PI header (pin 8 and 10)
#1
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)
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 !
  Reply


Messages In This Thread
UART2 on PI header (pin 8 and 10) - by martinayotte - 04-14-2016, 07:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  System LED mounting option using header pins and remote LED for use in the ABS case MarkHaysHarris777 1 4,368 08-28-2016, 07:02 PM
Last Post: pfeerick
  Exp Header UART for TTL is True Serial Console (very nice) MarkHaysHarris777 12 18,988 08-01-2016, 10:37 AM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 1 Guest(s)