UARTS on BBB with Debian

I wanted to enable the UARTS on my beagle bone black running debian for some C programming.

In the /boot/uboot/uEnv.txt file I have the following:

optargs=quiet capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN capemgr.enable_partno=BB-BONE-PRU-01,BB-UART1,BB-UART2,BB-UART4,BB-UART5

And if I cat my SLOTS I get this:

0: 54:PF—

1: 55:PF—

2: 56:PF—

3: 57:PF—

4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G

5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI

6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN

7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-BONE-PRU-01

8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1

9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART2

10: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4

11: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART5

So I believe they are enabled.

the /dev/ttyS0-5 devices seem to not work. Do I have to access them via /dev/ttyO1 , etc?

Correct..

"dmesg | grep ttyO" should show them all enabled.

Regards,

Tried enabling uart5 through UEnv.txt but it doesn't seem to hold and I have to enable it again though the CLI. Each time I reboot ttyO4, disappears hence the need to reinitialize UArt 5 again. Runnin BBB with the latest image file

You’re welcome to write an init script / service.