I am doing yocto project (kirkstone) on Beaglebone Black board using meta-ti layer.
I want to enable UART1 in my BBB. I tried different tutorials, but still it is not working.
In some tutorials, I saw to add the BB-UART1-00A0.dtbo file in the uEnv.txt file but I could’nt find uEnv.txt file in my yocto image.
at beginning of boot, dose it say it’s loading uEnv.txt or extlinux.conf
if, extlinux.conf, then add your dtbo to extlinux.conf
fdtoverlays /overlays/.dtbo
make sure to remove the ‘#’ that may be in front of fdtoverlays
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
Thank you for your reply. I was able to find the extlinux.conf file in my boot folder. I added the .dtbo file as you mentioned. But still when I try to transfer data from PC to BBB using the uart1 pins of my beaglebone black, I am not able to recieve any data.
When I run
dmesg | grep tty
I am getting the following output:
root@beaglebone:~# dmesg | grep tty
[ 0.000000] Kernel command line: root=PARTUUID=1d02a282-02 rootwait rw earlycon console=ttyO0,115200n8,115200
[ 0.033989] WARNING: Your ‘console=ttyO0’ has been replaced by ‘ttyS0’
[ 3.438654] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 41, base_baud = 3000000) is a 8250
[ 3.447922] printk: console [ttyS0] enabled
root@beaglebone:~#
Also do I have to make any changes in the yocto/poly/meta-ti/meta-ti-bsp/conf/machine/beaglebone.conf file
#@TYPE: Machine
#@NAME: BeagleBone machine
#@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board
i verified that BBB could receive data from an ESP module, /dev/ttyS1
P9 pins 24 and 26, make sure you cross rx/tx between serial ports (3.3 volts only)
did not try TX, but i’m sure it would works
did not make any changes to the yocto build meta files
when the BBB start to boot, are there any errors retrieving the file ??
Retrieving file: /extlinux/…/am335x-boneblack.dtb
Retrieving file: /…/BB-I2C1-RTC-DS3231.dtbo
Retrieving file: /…/BB-UART1-00A0.dtbo
Kernel image @ 0x82000000 [ 0x000000 - 0xbf8200 ]
Linux beaglebone 6.1.69-ti #1 SMP PREEMPT Mon Jan 29 18:20:26 UTC 2024 armv7l
are using a custom program to read the date or using cat /dev/ttyS1 ??
maybe add ‘screen’ to your build, in local.conf file
screen /dev/ttyS1 speed
warning: screen is a bit of a pain to exit.
looks like you have modified the am335x-boneblack.dts file or one of it’s included files (if not, then)
do you get the same invalid fdtoverlay_addr_r error if you remove the fdtoverlays line from the extlinux.config file ??
No. I am not getting any errors when I remove fdtoverlays from extlinux.
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1: Poky (Yocto Project Reference Distro)
Retrieving file: /extlinux/../zImage
append: root=PARTUUID=d26485ef-02 rootwait rw earlycon console=ttyO0,115200n8,115200
Retrieving file: /extlinux/../am335x-boneblack.dtb
Kernel image @ 0x82000000 [ 0x000000 - 0xc01200 ]
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8ffe4000, end 8ffff305 ... OK
Actually I haven’t modified any such files. But to make sure I cleared my deploy-ti directory and built a fresh image and added the .dtbo files. Still I am getting the same error while booting.
I have added my BB-UART1-00A0.dtbo file and am335x-boneblack.dtb file for reference.
a few things,
your am335x-boneblack.txt is totally different than my dts
the BB-UART1-00A0.txt does not exist as a dts file in my build, a search only returns dtbo files
are you sure all your meta data is kirkstone branch ?? have you done a “git pull” on each meta data ??
doing a reflog on meta-ti, how close is yours to mine ??
git reflog
78e26823 (HEAD → kirkstone, origin/kirkstone-wip, origin/kirkstone) HEAD@{0}: pull: Fast-forward
63dd9c4e (tag: cicd.kirkstone.202311161200, tag: 09.01.00.005) HEAD@{1}: checkout: moving from master to kirkstone
d29501f8 (tag: cicd.master.202311160100, master) HEAD@{2}: clone: from https://git.yoctoproject.org/meta-ti.git
vs
78e26823 (HEAD → kirkstone, origin/kirkstone-wip, origin/kirkstone
seems your meta-ti is checkout on a tag ??
i just cloned the " https://git.yoctoproject.org/meta-ti.git"
and checked out kirkstone and it is the same as what i built with.
as a test, maybe check out a clean meta-ti and use the kirkstone branch. just to verify things
make sure you back up your copy of meta-ti first.
unless we are working with apples to apples it will be difficult to debug your issue.
$ git checkout remotes/origin/kirkstone -b my_kirkstone
M meta-ti-bsp/conf/machine/beaglebone.conf
M meta-ti-bsp/conf/machine/include/ti33x.inc
Branch 'my_kirkstone' set up to track remote branch 'kirkstone' from 'origin'.
Switched to a new branch 'my_kirkstone'
$ git checkout kirkstone
M meta-ti-bsp/conf/machine/beaglebone.conf
M meta-ti-bsp/conf/machine/include/ti33x.inc
Switched to branch 'kirkstone'
Your branch is up to date with 'origin/kirkstone'.
$ git status
On branch kirkstone
Your branch is up to date with 'origin/kirkstone'.
$ git reflog
c57b6314 (HEAD -> kirkstone, tag: cicd.kirkstone.202405141220, origin/kirkstone-next, origin/kirkstone, my_kirkstone) HEAD@{0}: checkout: moving from my_kirkstone to kirkstone
c57b6314 (HEAD -> kirkstone, tag: cicd.kirkstone.202405141220, origin/kirkstone-next, origin/kirkstone, my_kirkstone) HEAD@{1}: checkout: moving from kirkstone to my_kirkstone
c57b6314 (HEAD -> kirkstone, tag: cicd.kirkstone.202405141220, origin/kirkstone-next, origin/kirkstone, my_kirkstone) HEAD@{2}: clone: from https://git.yoctoproject.org/meta-ti.git
Now that you are on your own my_kirkstone, the changes made in kirkstone might not be present.
Since the kernel is configured for overlays, not sure what is wrong.
Make sure the file you modified has an absolute file path to the overlay. The abbreviate path is only applicable to the the official bb images.
Might have to use the linux debug port to see what is going on during boot.
Use gtkterm and capture the entire boot and then go over it.