Serial ports on the Beaglebone BlackOn the BeagleBone Black, it's only the /dev/ttyO0 that is enabled by default, and it is coupled to the serial console. The other serial ports must be enabled before they can be used.
To enable the uarts 1,2,4 and/or 5 on the BeagleBone Black, rev A, B and C:
ubuntu@beaglebone:~$ sudo nano /boot/uboot/uEnv.txt Find a suitable line to edit e.g.
##Disable HDMI
cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN capemgr.enable_partno=BB-UART4
After reboot, the device is present in the device list:
ubuntu@beaglebone:~$ ls -l /dev/ttyO*
crw-rw---- 1 root tty 248, 0 Jul 1 20:39 /dev/ttyO0
crw-rw---- 1 root dialout 248, 4 Jul 1 20:39 /dev/ttyO4
The UARTs map to pins and devices like this:
|