Enable UART pins on BBB with Ubuntu 16.04 Kernel 4.4.68

Hello there, I am attempting to activate UART pins on the BeagleBone Black with Ubuntu 16.04 kernel 4.4.68

ubuntu@arm:~$ uname -a Linux arm 4.4.68-ti-r111 #1 SMP Wed Jun 28 13:40:31 UTC 2017 armv7l armv7l armv7l GNU/Linux

I have tried editing the /boot/uEnv.txt file.

`

cape_enable=bone_capemgr.enable_partno=BB-UART1

`

I have triedecho BB-UART1 > /sys/devices/platform/bone_capemgr/slots

Which causes the BBB to stall, I even let it sit for almost 2 hours once to no results.

`

ubuntu@arm:~$ ls -l /dev/ttyO*
lrwxrwxrwx 1 root root 5 Jul 14 14:48 /dev/ttyO0 → ttyS0
lrwxrwxrwx 1 root root 5 Jul 14 14:48 /dev/ttyO1 → ttyS1
lrwxrwxrwx 1 root root 5 Jul 14 14:48 /dev/ttyO2 → ttyS2
lrwxrwxrwx 1 root root 5 Jul 14 14:48 /dev/ttyO4 → ttyS4
ubuntu@arm:~$ ls -l /dev/ttyS*
crw–w---- 1 root tty 4, 64 Jul 14 14:48 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 Jul 14 14:48 /dev/ttyS1
crw-rw---- 1 root dialout 4, 66 Jul 14 14:48 /dev/ttyS2
crw-rw---- 1 root dialout 4, 67 Jul 14 14:48 /dev/ttyS3
crw-rw---- 1 root dialout 4, 68 Jul 14 14:48 /dev/ttyS4
crw-rw---- 1 root dialout 4, 69 Jul 14 14:48 /dev/ttyS5

`

I have tried

`
config-pin 911 uart
config pin 913 uart

ubuntu@arm:~$ config-pin -q 911
P9_11 Mode: uart
ubuntu@arm:~$ config-pin -q 913
P9_13 Mode: uart

`

But still no data being transferred. My end goal is to use ROS with a PixHawk for drone flights. Any help would be greatly appreciated.

P9_11/P9_13 = ttyS4

So it 'should' work after running those two config-pin commands..

Regards,

Hello,

I’ve also faced the same issue.

Even though I tried editing the /boot/uEnv.txt file, I cannot enable uart

`

cape_enable=bone_capemgr.enable_partno=BB-UART2

`

I had to use

`
config-pin P9_21 uart
config-pin P9_22 uart

`

to enable my uart2 channel.

@Zach : Please try the same and let me know. I don’t know if it will work in Ubuntu.

@Robert or anyone else, why enabling uart in uEnv.txt is not successful always?