BBIO_UART issues

1,116 views
Skip to first unread message

rj...@umich.edu

unread,
May 19, 2018, 11:12:37 AM5/19/18
to BeagleBoard
Hello, 


When I execute 
UART.setup("UART1")
I get the following error:
RuntimeError: Unable to export UART channel.

Is this an error with the pinmuxing for UART or a different issue?



This is the message I get from 
dmesg | grep tty

debian@beaglebone:~/Desktop$ dmesg | grep tty
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M
[    0.002638] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    1.468369] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[    2.278660] console [ttyS0] enabled
[    2.283219] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
[    2.293149] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 160, base_baud = 3000000) is a 8250
[    2.302915] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 161, base_baud = 3000000) is a 8250
[    2.312698] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 162, base_baud = 3000000) is a 8250
[    8.022515] systemd[1]: Created slice system-getty.slice.


this is what I get when I print ls -l /dev/ttyO*
debian@beaglebone:/boot$ ls -l /dev/ttyO*
lrwxrwxrwx 1 root root 5 May 19 14:41 /dev/ttyO0 -> ttyS0
lrwxrwxrwx 1 root root 5 May 19 14:41 /dev/ttyO1 -> ttyS1
lrwxrwxrwx 1 root root 5 May 19 14:41 /dev/ttyO2 -> ttyS2
lrwxrwxrwx 1 root root 5 May 19 14:41 /dev/ttyO4 -> ttyS4
lrwxrwxrwx 1 root root 5 May 19 14:41 /dev/ttyO5 -> ttyS5


This is my uEnv.txt

debian@beaglebone:/boot$ cat uEnv.txt

# this uEnv.txt created by configure_robotics_dt

uname_r=4.9.78-ti-r94
dtb=am335x-boneblack-roboticscape.dtb
cmdline=coherent_pool=1M
debian@beaglebone:/boot$


This is my dogtag
debian@beaglebone:/boot$ cat /etc/dogtag
BeagleBoard.org Debian Image 2018-01-28


Thank you.

Dennis Lee Bieber

unread,
May 19, 2018, 8:55:50 PM5/19/18
to beagl...@googlegroups.com
On Sat, 19 May 2018 08:12:37 -0700 (PDT),
rj...@umich.edu declaimed the following:

>Hello,
>
>I'm trying to follow the Adafruit_BBIO UART tutorial
>(https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/installation-on-ubuntu)
>

That's a pretty old page, going back to Debian Wheezy, cape manager,
and kernel device tree overlays.
>debian@beaglebone:/boot$ cat uEnv.txt
>
># this uEnv.txt created by configure_robotics_dt
>
>uname_r=4.9.78-ti-r94
>dtb=am335x-boneblack-roboticscape.dtb
>cmdline=coherent_pool=1M

While this is using the robotics cape specific device tree... Did that
device tree export the UART. Can you use the command line config-pin on the
UART pins to set the mode?

If you aren't actually using robotics cape features, you probably
should not have accepted it during the initialization phase of the new OS
image. {I was very disappointed last week to get home and find my BBB
stopped on a prompt about installing the robotics cape stuff -- I'd left
home after starting "apt-get upgrade" on the new SD card image; prior
experience said that would run with no human interaction}


--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

Jason Kridner

unread,
May 20, 2018, 2:02:40 AM5/20/18
to BeagleBoard


On Saturday, May 19, 2018 at 5:55:50 PM UTC-7, Dennis Lee Bieber wrote:
On Sat, 19 May 2018 08:12:37 -0700 (PDT),
rj...@umich.edu declaimed the following:

>Hello,
>
>I'm trying to follow the Adafruit_BBIO UART tutorial
>(https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/installation-on-ubuntu)
>

        That's a pretty old page, going back to Debian Wheezy, cape manager,
and kernel device tree overlays.


Hey Drew, what's the current way to setup a UART with the latest Adafruit_BBIO?

 
>debian@beaglebone:/boot$ cat uEnv.txt
>
># this uEnv.txt created by configure_robotics_dt
>
>uname_r=4.9.78-ti-r94
>dtb=am335x-boneblack-roboticscape.dtb
>cmdline=coherent_pool=1M

        While this is using the robotics cape specific device tree... Did that
device tree export the UART. Can you use the command line config-pin on the
UART pins to set the mode?

The roboticscape dt doesn't expose all of the pinmux helpers, so I'm guessing that it won't work. Still, you shouldn't need to as most of the UARTs are already setup with that device tree.

Some good news is that if you accidentally said yes to installing the roboticscape device tree, the installer saves a backup of the original uEnv.txt file so you can back out the change.


Just look for /boot/uEnv.txt.backup and copy it to /boot/uEnv.txt (after making sure the contents are sane).

Dennis Lee Bieber

unread,
May 20, 2018, 11:57:32 AM5/20/18
to beagl...@googlegroups.com
On Sat, 19 May 2018 23:02:40 -0700 (PDT), Jason Kridner
<jkri...@gmail.com> declaimed the following:

>Some good news is that if you accidentally said yes to installing the
>roboticscape device tree, the installer saves a backup of the original
>uEnv.txt file so you can back out the change.
>
>https://github.com/StrawsonDesign/Robotics_Cape_Installer/blob/3d35ecbd12b7cae475cc07085cea78dea3cc53a9/device_tree/configure_robotics_dt.sh#L121
>
>Just look for /boot/uEnv.txt.backup and copy it to /boot/uEnv.txt (after
>making sure the contents are sane).
>

Ah, good to know -- much faster than reflashing an SD card and starting
over <G> {Not that I've been caught by that (yet)}

Mala Dies

unread,
May 20, 2018, 9:26:09 PM5/20/18
to BeagleBoard
Hello,

I also found this idea on GitHub.com for BeagleBone products and Adafruit_BBIO: https://github.com/adafruit/adafruit-beaglebone-io-python.

Seth

rj...@umich.edu

unread,
May 26, 2018, 1:15:26 AM5/26/18
to BeagleBoard
I copied uEnv.txt.backup back into uEnv.txt and rebooted and now I can no longer ssh into the BBB.
I used to be able to ssh in on cygwin on Windows but none of the commands are going through when I connect via USB.

$ ssh 192.168.7.2 -l debian
ssh: connect to host 192.168.7.2 port 22: Connection timed out

$ ssh -v 192.168.7.2
OpenSSH_7.6p1, OpenSSL 1.0.2n  7 Dec 2017
debug1: Connecting to 192.168.7.2 [192.168.7.2] port 22.
debug1: connect to address 192.168.7.2 port 22: Connection timed out
ssh: connect to host 192.168.7.2 port 22: Connection timed out

$ ping 192.168.7.2

Pinging 192.168.7.2 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.7.2:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

rj...@umich.edu

unread,
May 30, 2018, 10:52:39 AM5/30/18
to BeagleBoard
I was able to ssh back in by flashing the Beaglebone, but am still having trouble with the pinmuxing.

debian@beaglebone:~$ uname -r
4.9.78-ti-r94

debian@beaglebone:~$ cat /etc/dogtag
BeagleBoard.org Debian Image 2018-01-28



debian@beaglebone:~$ cat /boot/uEnv.txt 
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

uname_r=4.9.78-ti-r94
#uuid=
#dtb=


###U-Boot Overlays###
###Documentation: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
###Master Enable
enable_uboot_overlays=1
###
###Overide capes with eeprom
uboot_overlay_addr0=/lib/firmware/BB-UART1-00A0.dtbo
uboot_overlay_addr1=/lib/firmware/BB-UART4-00A0.dtbo
#uboot_overlay_addr2=/lib/firmware/<file2>.dtbo
#uboot_overlay_addr3=/lib/firmware/<file3>.dtbo
###
###Additional custom capes
#uboot_overlay_addr4=/lib/firmware/<file4>.dtbo
#uboot_overlay_addr5=/lib/firmware/<file5>.dtbo
#uboot_overlay_addr6=/lib/firmware/<file6>.dtbo
#uboot_overlay_addr7=/lib/firmware/<file7>.dtbo
###
###Custom Cape
#dtb_overlay=/lib/firmware/<file8>.dtbo
###
###Disable auto loading of virtual capes (emmc/video/wireless/adc)
#disable_uboot_overlay_emmc=1
#disable_uboot_overlay_video=1
#disable_uboot_overlay_audio=1
#disable_uboot_overlay_wireless=1
#disable_uboot_overlay_adc=1
###
###PRUSS OPTIONS
###pru_rproc (4.4.x-ti kernel)
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo
###pru_uio (4.4.x-ti & mainline/bone kernel)
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo
###
###Cape Universal Enable
enable_uboot_cape_universal=1
###
###Debug: disable uboot autoload of Cape
#disable_uboot_overlay_addr0=1
#disable_uboot_overlay_addr1=1
#disable_uboot_overlay_addr2=1
#disable_uboot_overlay_addr3=1
###
###U-Boot fdt tweaks... (60000 = 384KB)
#uboot_fdt_buffer=0x60000
###U-Boot Overlays###

cmdline=coherent_pool=1M net.ifnames=0 quiet

#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 quiet video=HDMI-A-1:1024x768@60e

##Example v3.8.x
#cape_disable=capemgr.disable_partno=
cape_enable=bone_capemgr.enable_partno=BB-UART1,BB-UART4


##Example v4.1.x
#cape_disable=bone_capemgr.disable_partno=
cape_enable=bone_capemgr.enable_partno=BB-UART1,BB-UART4

##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh




debian@beaglebone:~$ config-pin P9.26 uart
P9_26 pinmux file not found!
bash: /sys/devices/platform/ocp/ocp*P9_26_pinmux/state: No such file or directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocp*P9_26_pinmux/state


debian@beaglebone:~$ config-pin P9.21 uart
P9_21 pinmux file not found!
bash: /sys/devices/platform/ocp/ocp*P9_21_pinmux/state: No such file or directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocp*P9_21_pinmux/state


debian@beaglebone:~$ python -i
Python 2.7.13 (default, Nov 24 2017, 17:33:09) 
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Adafruit_BBIO.UART as UART
>>> import serial
>>> 
>>> UART.setup("UART1")
py_setup_uart(UART1): set_pin_mode() failed for pin=P9_26Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Set pin mode failed for uart channel.
>>> exit()

Robert Nelson

unread,
May 30, 2018, 11:05:50 AM5/30/18
to Beagle Board, rj...@umich.ed
On Wed, May 30, 2018 at 9:52 AM, <rj...@umich.edu> wrote:
> I was able to ssh back in by flashing the Beaglebone, but am still having
> trouble with the pinmuxing.
>
> debian@beaglebone:~$ uname -r
> 4.9.78-ti-r94
>
> debian@beaglebone:~$ cat /etc/dogtag
> BeagleBoard.org Debian Image 2018-01-28
>
>
>
> debian@beaglebone:~$ cat /boot/uEnv.txt
> #Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
>
> uname_r=4.9.78-ti-r94
> #uuid=
> #dtb=
>
>
> ###U-Boot Overlays###
> ###Documentation:
> http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
> ###Master Enable
> enable_uboot_overlays=1
> ###
> ###Overide capes with eeprom
> uboot_overlay_addr0=/lib/firmware/BB-UART1-00A0.dtbo
> uboot_overlay_addr1=/lib/firmware/BB-UART4-00A0.dtbo

in v4.9.x you defined the usarts here, so 'config-pin' is completely disabled..

Regards,

--
Robert Nelson
https://rcn-ee.com/

rj...@umich.edu

unread,
May 30, 2018, 11:10:22 AM5/30/18
to BeagleBoard
Thank you Robert, but how do I enable it?

Robert Nelson

unread,
May 30, 2018, 11:15:13 AM5/30/18
to Beagle Board
Umm it's enabled, let's see your serial boot log to verify uboot is doing is job.  J1 connector.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/624d7d87-336e-431a-915f-10d39a6ece7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rj...@umich.edu

unread,
May 30, 2018, 5:03:42 PM5/30/18
to BeagleBoard
Here's the output to dmesg

debian@beaglebone:~$ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.78-ti-r94 (root@b2-am57xx-beagle-x15-2gb) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP PREEMPT Fri Jan 26 21:26:24 UTC 2018
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: TI AM335x BeagleBone Black
[    0.000000] cma: Reserved 48 MiB at 0x9c800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 130560
[    0.000000] free_area_init_node: node 0, pgdat c14e97c0, node_mem_map df961000
[    0.000000]   Normal zone: 1148 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 130560 pages, LIFO batch:31
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] percpu: Embedded 15 pages/cpu @df927000 s31884 r8192 d21364 u61440
[    0.000000] pcpu-alloc: s31884 r8192 d21364 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line: console=ttyO0,115200n8 bone_capemgr.enable_partno=BB-UART1,BB-UART4 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 439684K/522240K available (12288K kernel code, 1153K rwdata, 4356K rodata, 1024K init, 751K bss, 33404K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe0000000 - 0xff800000   ( 504 MB)
                   lowmem  : 0xc0000000 - 0xdfe00000   ( 510 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0xc0008000 - 0xc0d00000   (13280 kB)
                     .init : 0xc1300000 - 0xc1400000   (1024 kB)
                     .data : 0xc1400000 - 0xc1520770   (1154 kB)
                      .bss : 0xc1522000 - 0xc15ddfb0   ( 752 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000037] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000048] OMAP clocksource: timer1 at 24000000 Hz
[    0.000945] clocksource_probe: no matching clocksources found
[    0.001412] Console: colour dummy device 80x30
[    0.001440] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.001445] This ensures that you still see kernel messages. Please
[    0.001450] update your kernel commandline.
[    0.001472] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.046589] pid_max: default: 32768 minimum: 301
[    0.046884] Security Framework initialized
[    0.046895] Yama: becoming mindful.
[    0.046955] AppArmor: AppArmor initialized
[    0.047168] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.047179] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.048385] CPU: Testing write buffer coherency: ok
[    0.048454] ftrace: allocating 39651 entries in 117 pages
[    0.161208] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.161273] Setting up static identity map for 0x80100000 - 0x80100060
[    0.206610] Brought up 1 CPUs
[    0.206630] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[    0.206637] CPU: All CPU(s) started in SVC mode.
[    0.208254] devtmpfs: initialized
[    0.231007] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.231569] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.231595] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.235394] xor: measuring software checksum speed
[    0.274625]    arm4regs  :  1217.000 MB/sec
[    0.314576]    8regs     :  1091.000 MB/sec
[    0.354575]    32regs    :  1088.000 MB/sec
[    0.394574]    neon      :  1658.000 MB/sec
[    0.394581] xor: using function: neon (1658.000 MB/sec)
[    0.394598] pinctrl core: initialized pinctrl subsystem
[    0.396169] NET: Registered protocol family 16
[    0.400006] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.428347] omap_hwmod: debugss: _wait_target_disable failed
[    0.478621] cpuidle: using governor ladder
[    0.490602] cpuidle: using governor menu
[    0.499755] OMAP GPIO hardware version 0.1
[    0.521700] No ATAGs?
[    0.521723] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.522016] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.522027] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.634627] raid6: neonx2   gen()  1894 MB/s
[    0.702614] raid6: neonx2   xor()  1169 MB/s
[    0.702621] raid6: using algorithm neonx2 gen() 1894 MB/s
[    0.702627] raid6: .... xor() 1169 MB/s, rmw enabled
[    0.702634] raid6: using intx1 recovery algorithm
[    0.712766] edma 49000000.edma: TI EDMA DMA engine driver
[    0.716668] SCSI subsystem initialized
[    0.718749] libata version 3.00 loaded.
[    0.719126] usbcore: registered new interface driver usbfs
[    0.719200] usbcore: registered new interface driver hub
[    0.719319] usbcore: registered new device driver usb
[    0.719985] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    0.721574] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    0.721828] media: Linux media interface: v0.10
[    0.721894] Linux video capture interface: v2.00
[    0.721995] pps_core: LinuxPPS API ver. 1 registered
[    0.722001] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giom...@linux.it>
[    0.722027] PTP clock support registered
[    0.723060] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.726991] Advanced Linux Sound Architecture Driver Initialized.
[    0.727822] NetLabel: Initializing
[    0.727833] NetLabel:  domain hash size = 128
[    0.727838] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.727912] NetLabel:  unlabeled traffic allowed by default
[    0.731075] clocksource: Switched to clocksource timer1
[    0.859418] VFS: Disk quotas dquot_6.6.0
[    0.859534] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.859952] AppArmor: AppArmor Filesystem Enabled
[    0.875274] NET: Registered protocol family 2
[    0.876301] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.876347] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.876405] TCP: Hash tables configured (established 4096 bind 4096)
[    0.876476] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.876496] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.876701] NET: Registered protocol family 1
[    0.885675] RPC: Registered named UNIX socket transport module.
[    0.885684] RPC: Registered udp transport module.
[    0.885689] RPC: Registered tcp transport module.
[    0.885694] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.885711] PCI: CLS 0 bytes, default 64
[    0.886417] Unpacking initramfs...
[    1.091144] random: fast init done
[    1.341571] Freeing initrd memory: 6156K
[    1.342202] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    1.345390] audit: initializing netlink subsys (disabled)
[    1.345489] audit: type=2000 audit(1.272:1): initialized
[    1.351109] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.351295] zbud: loaded
[    1.356555] NFS: Registering the id_resolver key type
[    1.356594] Key type id_resolver registered
[    1.356600] Key type id_legacy registered
[    1.356624] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.357037] fuse init (API version 7.26)
[    1.357466] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.357742] orangefs_init: module version upstream loaded
[    1.357751] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    1.378266] Key type asymmetric registered
[    1.378281] Asymmetric key parser 'x509' registered
[    1.378415] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.382712] io scheduler noop registered
[    1.382722] io scheduler deadline registered
[    1.382815] io scheduler cfq registered (default)
[    1.384802] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    1.385868] gpio-of-helper ocp:cape-universal: ready
[    1.389365] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    1.390868] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.394646] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[    1.407608] console [ttyS0] enabled
[    1.408676] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
[    1.409587] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 160, base_baud = 3000000) is a 8250
[    1.412108] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    1.412406] [drm] Initialized
[    1.414713] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.415230] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.415517] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.415755] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.420326] libphy: Fixed MDIO Bus: probed
[    1.421346] CAN device driver interface
[    1.475118] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    1.475135] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    1.475550] davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]
[    1.489874] libphy: 4a101000.mdio: probed
[    1.489903] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    1.490844] cpsw 4a100000.ethernet: Detected MACID = b0:d5:cc:fc:6d:f1
[    1.490986] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
[    1.494370] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.494432] ehci-pci: EHCI PCI platform driver
[    1.494511] ehci-platform: EHCI generic platform driver
[    1.494734] ehci-omap: OMAP-EHCI Host Controller driver
[    1.495695] usbcore: registered new interface driver usb-storage
[    1.498154] 47401300.usb-phy supply vcc not found, using dummy regulator
[    1.504198] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    1.508215] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    1.508261] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    1.508581] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.508591] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.508599] usb usb1: Product: MUSB HDRC host driver
[    1.508606] usb usb1: Manufacturer: Linux 4.9.78-ti-r94 musb-hcd
[    1.508614] usb usb1: SerialNumber: musb-hdrc.1
[    1.509668] hub 1-0:1.0: USB hub found
[    1.509732] hub 1-0:1.0: 1 port detected
[    1.523373] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.524994] i2c /dev entries driver
[    1.527385] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.528814] cpuidle: enable-method property 'ti,am3352' found operations
[    1.529854] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.608734] ledtrig-cpu: registered to indicate activity on CPUs
[    1.609144] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.609602] omap-aes 53500000.aes: will run requests pump with realtime priority
[    1.615768] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.618186] hidraw: raw HID events driver (C) Jiri Kosina
[    1.619307] usbcore: registered new interface driver usbhid
[    1.619317] usbhid: USB HID core driver
[    1.620917] remoteproc remoteproc0: wkup_m3 is available
[    1.622728] ti_am3359-tscadc 44e0d000.tscadc: chan 0 step_avg truncating to 16
[    1.622742] ti_am3359-tscadc 44e0d000.tscadc: chan 1 step_avg truncating to 16
[    1.622750] ti_am3359-tscadc 44e0d000.tscadc: chan 2 step_avg truncating to 16
[    1.622758] ti_am3359-tscadc 44e0d000.tscadc: chan 3 step_avg truncating to 16
[    1.622765] ti_am3359-tscadc 44e0d000.tscadc: chan 4 step_avg truncating to 16
[    1.622773] ti_am3359-tscadc 44e0d000.tscadc: chan 5 step_avg truncating to 16
[    1.622780] ti_am3359-tscadc 44e0d000.tscadc: chan 6 step_avg truncating to 16
[    1.630595] wireguard: WireGuard 0.0.20180118 loaded. See www.wireguard.com for information.
[    1.630608] wireguard: Copyright (C) 2015-2018 Jason A. Donenfeld <Ja...@zx2c4.com>. All Rights Reserved.
[    1.630998] NET: Registered protocol family 10
[    1.636666] mip6: Mobile IPv6
[    1.636691] NET: Registered protocol family 17
[    1.636710] can: controller area network core (rev 20120528 abi 9)
[    1.636782] NET: Registered protocol family 29
[    1.636901] Key type dns_resolver registered
[    1.636908] mpls_gso: MPLS GSO support
[    1.637249] omap_voltage_late_init: Voltage driver support not added
[    1.644584] PM: Cannot get wkup_m3_ipc handle
[    1.649294] ThumbEE CPU extension supported.
[    1.649322] Registering SWP/SWPB emulation handler
[    1.650652] registered taskstats version 1
[    1.650797] zswap: loaded using pool lzo/zbud
[    1.656906] Btrfs loaded, crc32c=crc32c-generic
[    1.671335] mmc1: new high speed MMC card at address 0001
[    1.683516] mmcblk1: mmc1:0001 S10004 3.56 GiB
[    1.691379] mmcblk1boot0: mmc1:0001 S10004 partition 1 4.00 MiB
[    1.696288] Key type encrypted registered
[    1.696316] AppArmor: AppArmor sha1 policy hashing enabled
[    1.704154] mmcblk1boot1: mmc1:0001 S10004 partition 2 4.00 MiB
[    1.706077]  mmcblk1: p1
[    1.853990] tda998x 0-0070: found TDA19988
[    1.855626] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
[    1.855649] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.855655] [drm] No driver support for vblank timestamp query.
[    1.856048] tilcdc 4830e000.lcdc: No connectors reported connected with modes
[    1.856070] [drm] Cannot find any crtc or sizes - going 1024x768
[    1.864895] Console: switching to colour frame buffer device 128x48
[    1.870197] tilcdc 4830e000.lcdc: fb0:  frame buffer device
[    1.893946] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
[    1.894477] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.894974] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.895176] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.896577] remoteproc remoteproc0: powering up wkup_m3
[    1.897100] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    1.899495] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    1.899517] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[    1.900317] asoc-simple-card sound: hdmi-hifi.0 <-> 48038000.mcasp mapping ok
[    1.901993] PM: bootloader does not support rtc-only!
[    1.902980] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    1.902993] of_cfs_init
[    1.903289] of_cfs_init: OK
[    1.903853] PM: Hibernation image not present or could not be loaded.
[    1.904001] ALSA device list:
[    1.904010]   #0: TI BeagleBone Black
[    1.906223] Freeing unused kernel memory: 1024K
[    5.079528] EXT4-fs (mmcblk1p1): INFO: recovery required on readonly filesystem
[    5.079544] EXT4-fs (mmcblk1p1): write access will be enabled during recovery
[    5.440086] EXT4-fs (mmcblk1p1): recovery complete
[    5.441921] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
[    5.866240] systemd[1]: System time before build time, advancing clock.
[    5.927346] ip_tables: (C) 2000-2006 Netfilter Core Team
[    5.968050] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    5.968835] systemd[1]: Detected architecture arm.
[    5.970124] systemd[1]: Set hostname to <beaglebone>.
[    6.572726] systemd[1]: Reached target Swap.
[    6.573885] systemd[1]: Listening on Journal Socket.
[    6.574352] systemd[1]: Listening on udev Control Socket.
[    6.576293] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    6.576737] systemd[1]: Listening on Syslog Socket.
[    6.577068] systemd[1]: Listening on udev Kernel Socket.
[    6.578569] systemd[1]: Created slice User and Session Slice.
[    7.316081] EXT4-fs (mmcblk1p1): re-mounted. Opts: errors=remount-ro
[    8.052090] systemd-journald[303]: Received request to flush runtime journal from PID 1
[   13.611005] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[   13.887939] random: crng init done
[   14.915848] net eth0: initializing cpsw version 1.12 (0)
[   14.915873] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[   14.915882] cpsw 4a100000.ethernet: ALE Table size 1024
[   14.987874] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=-1)
[   15.037724] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.167223] using random self ethernet address
[   15.167242] using random host ethernet address
[   15.342085] using random self ethernet address
[   15.342105] using random host ethernet address
[   15.798134] Mass Storage Function, version: 2009/09/11
[   15.798159] LUN: removable file: (no medium)
[   16.199838] usb0: HOST MAC b0:d5:cc:fc:6d:f2
[   16.201511] usb0: MAC b0:d5:cc:fc:6d:f3
[   16.219612] usb1: HOST MAC b0:d5:cc:fc:6d:f5
[   16.223913] usb1: MAC b0:d5:cc:fc:6d:f6
[   16.643594] configfs-gadget gadget: high-speed config #1: c
[   17.871443] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready
[   33.362334] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
[   33.557059] remoteproc remoteproc1: 4a334000.pru0 is available
[   33.557185] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a334000 probed successfully
[   33.637626] remoteproc remoteproc2: 4a338000.pru1 is available
[   33.637794] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a338000 probed successfully
debian@beaglebone:~$ dmesg | grep UART
[    0.000000] Kernel command line: console=ttyO0,115200n8 bone_capemgr.enable_partno=BB-UART1,BB-UART4 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet


/dev/ttyO1 can be located as well
debian@beaglebone:/dev$ ls -a ttyO*
ttyO0  ttyO1  ttyO4

debian@beaglebone:/dev$ ls -l ttyO*
lrwxrwxrwx 1 root root 5 May  8 21:40 ttyO0 -> ttyS0
lrwxrwxrwx 1 root root 5 May  8 21:40 ttyO1 -> ttyS1
lrwxrwxrwx 1 root root 5 May  8 21:40 ttyO4 -> ttyS4

Jason Kridner

unread,
Jun 4, 2018, 3:22:11 PM6/4/18
to BeagleBoard
Robert, safe to assume an old bootloader?

To update the bootloader:

cd /opt/scripts
git pull
cd tools/developer
sudo ./update_bootloader.sh 
 


/dev/ttyO1 can be located as well
debian@beaglebone:/dev$ ls -a ttyO*
ttyO0  ttyO1  ttyO4

This seems to mean, overlay or not, the UARTs are enabled. So, you don't necessarily need to update the bootloader.

You might need to do the appropriate config-pin operations to make them functional.

# uart 1
config-pin P9.24 uart
config-pin P9.26 uart

# uart 4
config-pin P9.11 uart
config-pin P9.13 uart


Robert Nelson

unread,
Jun 4, 2018, 3:30:10 PM6/4/18
to Beagle Board, Drew Fustini
No, i think this is just a bug in py_bbio:

/dev/ttyO1 can be located as well
debian@beaglebone:/dev$ ls -a ttyO*
ttyO0  ttyO1  ttyO4

debian@beaglebone:/dev$ ls -l ttyO*
lrwxrwxrwx 1 root root 5 May  8 21:40 ttyO0 -> ttyS0
lrwxrwxrwx 1 root root 5 May  8 21:40 ttyO1 -> ttyS1
lrwxrwxrwx 1 root root 5 May  8 21:40 ttyO4 -> ttyS4

bone_capemgr.enable_partno=BB-UART1,BB-UART4

The uart's are present, but the library want's to set the mux, although it should just start talking over the uart..

Regards,

mary.m...@gmail.com

unread,
Jul 2, 2018, 2:13:25 PM7/2/18
to BeagleBoard
I just try to move from the 3/09 Ubuntu 16.04.4 image release with kernel set for 4.9 ti-rt version (Linux bbb-f652 4.9.105-ti-rt-r112 #1 SMP PREEMPT RT Tue Jun 5 06:55:11 UTC 2018) to the 6/8 Ubuntu 18.04 image release (not applying the ti-rt update yet).  I am finding that the beaglebone black no longer boots after adding modifying the /boot/uEnv.txt to add the capemgr enabling of BB-UART2.  This worked in Ubuntu 16.04.4, is there anything in this new release that requires addition modifications to turn on the UARTs?  This is the closest conversation to this issue that I have seen online.  Any ideas of what to try next are appreciated.

Added the following to /boot/uEnv.txt
-------------------------------------------------
cape_enable=bone_capemgr.enable_partno=BB-UART2

Rebooted and got the following debug messages
------------------------------------------------------------------
[ 1021.329266] watchdog: watchdog0: watchdog did not stop!
[ 1025.223960] reboot: Restarting system

U-Boot SPL 2016.03-00001-gd12d09f (Mar 17 2016 - 16:16:15)
Trying to boot from MMC
bad magic



U-Boot 2016.03-00001-gd12d09f (Mar 17 2016 - 16:16:15 -0500), Build: jenkins-github_Bootloader-Builder-351


       Watchdog enabled

I2C:   ready

DRAM:  512 MiB

Reset Source: Global warm SW reset has occurred.

Reset Source: Power-on reset has occurred.

MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1

Using default environment


Net:   <ethaddr> not set. Validating first E-fuse MAC

cpsw, usb_ether

Press SPACE to abort autoboot in 2 seconds

switch to partitions #0, OK

mmc0 is current device

Scanning mmc 0:1...

gpio: pin 56 (gpio 56) value is 0

gpio: pin 55 (gpio 55) value is 0

gpio: pin 54 (gpio 54) value is 0

gpio: pin 53 (gpio 53) value is 1

switch to partitions #0, OK

mmc0 is current device

gpio: pin 54 (gpio 54) value is 1

Checking for: /uEnv.txt ...

Checking for: /boot.scr ...

Checking for: /boot/boot.scr ...

Checking for: /boot/uEnv.txt ...

gpio: pin 55 (gpio 55) value is 1

2697 bytes read in 113 ms (22.5 KiB/s)

Loaded environment from /boot/uEnv.txt

Checking if uname_r is set in /boot/uEnv.txt...

gpio: pin 56 (gpio 56) value is 1

Running uname_boot ...

loading /boot/vmlinuz-4.14.44-ti-r51 ...

10473984 bytes read in 813 ms (12.3 MiB/s)

loading /boot/dtbs/4.14.44-ti-r51/am335x-boneblack.dtb ...

60216 bytes read in 104 ms (565.4 KiB/s)

loading /boot/initrd.img-4.14.44-ti-r51 ...

6719377 bytes read in 573 ms (11.2 MiB/s)

debug: [console=ttyO0,115200n8 bone_capemgr.enable_partno=BB-UART2 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet] ...

debug: [bootz 0x82000000 0x88080000:668791 0x88000000] ...

Kernel image @ 0x82000000 [ 0x000000 - 0x9fd200 ]

## Flattened Device Tree blob at 88000000

   Booting using the fdt blob at 0x88000000

   Loading Ramdisk to 8f997000, end 8ffff791 ... OK

   Loading Device Tree to 8f985000, end 8f996b37 ... OK


Starting kernel ...


[    0.000763] timer_probe: no matching timers found
[    0.546299] dmi: Firmware registration failed.
[    1.170658] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    1.414448] omap_voltage_late_init: Voltage driver support not added
[    1.724289] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
[    1.737832] pgd = c0004000
[    1.742472] [0000000c] *pgd=00000000
[    1.746774] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    1.752117] Modules linked in:
[    1.755196] CPU: 0 PID: 101 Comm: capemgr-loader- Not tainted 4.14.44-ti-r51 #1
[    1.762536] Hardware name: Generic AM33XX (Flattened Device Tree)
[    1.768657] task: da98b480 task.stack: dab9e000
[    1.773223] PC is at __of_overlay_create+0x398/0xb08
[    1.778209] LR is at __of_overlay_create+0x3a4/0xb08
[    1.783194] pc : [<c0b9b494>]    lr : [<c0b9b4a0>]    psr: 200c0113
[    1.789486] sp : dab9fde8  ip : dab89cdc  fp : dab9fe7c
[    1.794732] r10: 00000000  r9 : c1140874  r8 : dab85d00
[    1.799979] r7 : 00000004  r6 : 00000004  r5 : dab89ccc  r4 : da9bb81d
[    1.806534] r3 : c0b9a754  r2 : 00000000  r1 : 0000002f  r0 : 00000000
[    1.813091] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    1.820256] Control: 10c5387d  Table: 9a9b4019  DAC: 00000051
[    1.826026] Process capemgr-loader- (pid: 101, stack limit = 0xdab9e218)
[    1.832757] Stack: (0xdab9fde8 to 0xdaba0000)
[    1.837136] fde0:                   00000000 014000c0 00000000 c0b9a590 dab9fe24 dab9fe08
[    1.845353] fe00: dab85d04 c15d9a70 dab85d20 200c0113 dab9fe3c c1504dc8 c0b8edf0 dab85d18
[    1.853569] fe20: dab9fe3c dab9fe30 00000000 c11c4e14 dab9fe64 da9bb000 00000014 c0b9a754
[    1.861785] fe40: daaff010 dab81c18 000000a7 f9ecd45f 00000002 daaff010 dab81c18 00000000
[    1.870002] fe60: c1504dc8 00000000 dab81c18 daaff25b dab9fe8c dab9fe80 c0b9bc24 c0b9b108
[    1.878219] fe80: dab9ff04 dab9fe90 c097851c c0b9bc10 00000002 c1504dc8 00000000 00000000
[    1.886436] fea0: 00000000 daaff25b c1504dc8 dab81c20 00000003 dc23ec10 00000003 dab81c10
[    1.894653] fec0: da9bb000 dc23ec10 dab9ff04 e01ea0c8 c097826c f9ecd45f da98b480 daafbcc0
[    1.902871] fee0: daaff010 dab81d98 dab9e000 daaff010 c0978890 daa39cbc dab9ff74 dab9ff08
[    1.911087] ff00: c0978904 c09782c8 daa39cc0 daa39cbc a00c0113 c0dbb3bc c1505434 c1504dc8
[    1.919303] ff20: c0dbb79c c1504dc8 dc23ec10 f9ecd45f dab9ff5c ffffe000 daafb4c0 00000000
[    1.927519] ff40: ffffe000 f9ecd45f c0978890 daafbcc0 daafb4c0 00000000 dab9e000 daaff010
[    1.935736] ff60: c0978890 daa39cbc dab9ffac dab9ff78 c0165094 c097889c daafbcdc daafbcdc
[    1.943953] ff80: 00000000 daafb4c0 c0164f24 00000000 00000000 00000000 00000000 00000000
[    1.952169] ffa0: 00000000 dab9ffb0 c01090e8 c0164f30 00000000 00000000 00000000 00000000
[    1.960385] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.968601] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    1.976836] [<c0b9b494>] (__of_overlay_create) from [<c0b9bc24>] (of_overlay_create+0x20/0x24)
[    1.985498] [<c0b9bc24>] (of_overlay_create) from [<c097851c>] (capemgr_load_slot+0x260/0x5d4)
[    1.994155] [<c097851c>] (capemgr_load_slot) from [<c0978904>] (capemgr_loader+0x74/0x454)
[    2.002468] [<c0978904>] (capemgr_loader) from [<c0165094>] (kthread+0x170/0x178)
[    2.009998] [<c0165094>] (kthread) from [<c01090e8>] (ret_from_fork+0x14/0x2c)
[    2.017259] Code: e585902c e5853034 e585503c e585a028 (e590400c) 
[    2.025704] ---[ end trace f632499b325a383f ]---
[    2.624003] [drm] Cannot find any crtc or sizes
```


Robert Nelson

unread,
Jul 2, 2018, 2:18:55 PM7/2/18
to Beagle Board, Mary Metelko
On Mon, Jul 2, 2018 at 1:13 PM, <mary.m...@gmail.com> wrote:
> I just try to move from the 3/09 Ubuntu 16.04.4 image release with kernel
> set for 4.9 ti-rt version (Linux bbb-f652 4.9.105-ti-rt-r112 #1 SMP PREEMPT
> RT Tue Jun 5 06:55:11 UTC 2018) to the 6/8 Ubuntu 18.04 image release (not
> applying the ti-rt update yet). I am finding that the beaglebone black no
> longer boots after adding modifying the /boot/uEnv.txt to add the capemgr
> enabling of BB-UART2. This worked in Ubuntu 16.04.4, is there anything in
> this new release that requires addition modifications to turn on the UARTs?
> This is the closest conversation to this issue that I have seen online. Any
> ideas of what to try next are appreciated.
>
> Added the following to /boot/uEnv.txt
> -------------------------------------------------
> cape_enable=bone_capemgr.enable_partno=BB-UART2
>
> Rebooted and got the following debug messages
> ------------------------------------------------------------------
> [ 1021.329266] watchdog: watchdog0: watchdog did not stop!
> [ 1025.223960] reboot: Restarting system
>
> U-Boot SPL 2016.03-00001-gd12d09f (Mar 17 2016 - 16:16:15)
> Trying to boot from MMC
> bad magic


Don't use "kernel" overlays, use "u-boot" overlays...

https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays

For BB-UART2 use:

uboot_overlay_addr4=/lib/firmware/BB-UART2-00A0.dtbo

any issues with above, repost with the ouput of:

sudo /opt/scripts/tools/version.sh

mary.m...@gmail.com

unread,
Jul 2, 2018, 2:50:06 PM7/2/18
to BeagleBoard
I did as indicated and am now able to boot up.  But the ttyO2 is not available.

root@arm:/home/ubuntu# ls -al /dev/ttyO*
lrwxrwxrwx 1 root root 5 Jul  2 18:41 /dev/ttyO0 -> ttyS0

root@arm:/home/ubuntu# /opt/scripts/tools/version.sh
git:/opt/scripts/:[ed7dd4c61a9c9307b08db8a7dcbaffac77a7f776]
eeprom:[A335BNLT00C05014BBBK1225]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[rcn-ee.net console Ubuntu Image 2018-06-08]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2018.03-00002-gac9cce7c6a]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2016.03-00001-gd12d09f]:[location: dd MBR]
kernel:[4.14.44-ti-r51]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-UART2-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.4.20180605.0-0rcnee0~bionic+20180605]
pkg:[bb-wl18xx-firmware]:[1.20180517-0rcnee0~bionic+20180517]
pkg:[kmod]:[24-1ubuntu3rcnee0~bionic+20180515]
WARNING:pkg:[roboticscape]:[NOT_INSTALLED]
groups:[ubuntu : ubuntu adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c gpio pwm eqep admin spi tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet]
dmesg | grep pinctrl-single
[    1.166986] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
dmesg | grep gpio-of-helper
[    1.168570] gpio-of-helper ocp:cape-universal: ready
END

Robert Nelson

unread,
Jul 2, 2018, 3:02:01 PM7/2/18
to Beagle Board, Mary Metelko
On Mon, Jul 2, 2018 at 1:49 PM, <mary.m...@gmail.com> wrote:
> I did as indicated and am now able to boot up. But the ttyO2 is not
> available.
>
> root@arm:/home/ubuntu# ls -al /dev/ttyO*
> lrwxrwxrwx 1 root root 5 Jul 2 18:41 /dev/ttyO0 -> ttyS0
>
> root@arm:/home/ubuntu# /opt/scripts/tools/version.sh
> git:/opt/scripts/:[ed7dd4c61a9c9307b08db8a7dcbaffac77a7f776]
> eeprom:[A335BNLT00C05014BBBK1225]
> model:[TI_AM335x_BeagleBone_Black]
> dogtag:[rcn-ee.net console Ubuntu Image 2018-06-08]
> bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot
> 2018.03-00002-gac9cce7c6a]:[location: dd MBR]
> bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot
> 2016.03-00001-gd12d09f]:[location: dd MBR]

u-boot in the eMMC is blocking overlays from working properly..

sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=10

> kernel:[4.14.44-ti-r51]
> uboot_overlay_options:[enable_uboot_overlays=1]
> uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-UART2-00A0.dtbo]
> uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo]
> pkg check: to individually upgrade run: [sudo apt install --only-upgrade
> <pkg>]
> pkg:[bb-cape-overlays]:[4.4.20180605.0-0rcnee0~bionic+20180605]

^ you'll also want to upgrade this:

sudo apt update
sudo apt install --only-upgrade bb-cape-overlays
sudo reboot

Then everything should be good to go..

mary.m...@gmail.com

unread,
Jul 2, 2018, 3:50:56 PM7/2/18
to BeagleBoard
I did the following on the beaglebone. I got some errors in the booting, but it does seem to have found the UART2 overlay and I can now see /dev/ttyO2.  Are these errors a problem?  When you make your next image release, will I need to do these steps again?  Or is this a one time fix?  I will move forward with my system testing with this and let you know if I see anything else.  Thanks so much for your quick response!

ubuntu@arm:~$ ls -al /dev/ttyO*
lrwxrwxrwx 1 root root 5 Jul  2 19:35 /dev/ttyO0 -> ttyS0
lrwxrwxrwx 1 root root 5 Jul  2 19:35 /dev/ttyO2 -> ttyS2

U-Boot SPL 2018.03-00002-gac9cce7c6a (Apr 05 2018 - 13:07:46 -0500)
Trying to boot from MMC1
Loading Environment from EXT4... ** File not found /boot/uboot.env **

** Unable to read "/boot/uboot.env" from mmc0:1 **
Failed (-5)


U-Boot 2018.03-00002-gac9cce7c6a (Apr 05 2018 - 13:07:46 -0500), Build: jenkins-github_Bootloader-Builder-47

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Global warm SW reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... ** File not found /boot/uboot.env **

** Unable to read "/boot/uboot.env" from mmc0:1 **
Failed (-5)
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] ...
board_rev=[00C0] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Bad device 0:2 0x82000000 **
** Bad device 0:2 0x82000000 **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
2687 bytes read in 89 ms (29.3 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-4.14.44-ti-r51 ...
10473984 bytes read in 885 ms (11.3 MiB/s)
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot-univ.dtb] ...
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot.dtb] ...
uboot_overlays: Switching too: dtb=am335x-boneblack-uboot.dtb ...
loading /boot/dtbs/4.14.44-ti-r51/am335x-boneblack-uboot.dtb ...
57947 bytes read in 147 ms (384.8 KiB/s)
uboot_overlays: [fdt_buffer=0x60000] ...
uboot_overlays: loading /lib/firmware/BB-UART2-00A0.dtbo ...
1053 bytes read in 789 ms (1000 Bytes/s)
uboot_overlays: loading /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo ...
1418 bytes read in 218 ms (5.9 KiB/s)
uboot_overlays: loading /lib/firmware/BB-HDMI-TDA998x-00A0.dtbo ...
4977 bytes read in 1771 ms (2 KiB/s)
uboot_overlays: loading /lib/firmware/BB-ADC-00A0.dtbo ...
711 bytes read in 1092 ms (0 Bytes/s)
uboot_overlays: loading /lib/firmware/AM335X-PRU-UIO-00A0.dtbo ...
861 bytes read in 1521 ms (0 Bytes/s)
uboot_overlays: add [enable_uboot_cape_universal=1] to /boot/uEnv.txt to enable...
loading /boot/initrd.img-4.14.44-ti-r51 ...
6719377 bytes read in 606 ms (10.6 MiB/s)
debug: [console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet] ...
debug: [bootz 0x82000000 0x88080000:668791 88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8f997000, end 8ffff791 ... OK
   reserving fdt memory region: addr=88000000 size=70000
   Loading Device Tree to 8f924000, end 8f996fff ... OK

Starting kernel ...

[    0.000824] timer_probe: no matching timers found
[    0.546233] dmi: Firmware registration failed.
[    1.172831] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    1.424047] omap_voltage_late_init: Voltage driver support not added
[    1.626244] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: no source widget found for Playback
[    1.635261] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: Failed to add route Playback -> direct -> TX

root@arm:/home/ubuntu# /opt/scripts/tools/version.sh
git:/opt/scripts/:[ed7dd4c61a9c9307b08db8a7dcbaffac77a7f776]
eeprom:[A335BNLT00C05014BBBK1225]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[rcn-ee.net console Ubuntu Image 2018-06-08]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2018.03-00002-gac9cce7c6a]:[location: dd MBR]
kernel:[4.14.44-ti-r51]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-UART2-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.4.20180628.0-0rcnee0~bionic+20180628]
pkg:[bb-wl18xx-firmware]:[1.20180517-0rcnee0~bionic+20180517]
pkg:[kmod]:[24-1ubuntu3rcnee0~bionic+20180515]
WARNING:pkg:[roboticscape]:[NOT_INSTALLED]
groups:[ubuntu : ubuntu adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c gpio pwm eqep admin spi tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet]
dmesg | grep pinctrl-single
[    1.168594] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
dmesg | grep gpio-of-helper
[    1.169792] gpio-of-helper ocp:cape-universal: ready
END

On Monday, July 2, 2018 at 2:02:01 PM UTC-5, RobertCNelson wrote:

u-boot in the eMMC is blocking overlays from working properly..

sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=10

Robert Nelson

unread,
Jul 2, 2018, 4:02:57 PM7/2/18
to Beagle Board
On Mon, Jul 2, 2018 at 2:50 PM, <mary.m...@gmail.com> wrote:
> I did the following on the beaglebone. I got some errors in the booting, but
> it does seem to have found the UART2 overlay and I can now see /dev/ttyO2.
> Are these errors a problem? When you make your next image release, will I
> need to do these steps again? Or is this a one time fix? I will move
> forward with my system testing with this and let you know if I see anything
> else. Thanks so much for your quick response!

Those aren't errors, just another path for a quick boot that i haven't
fully documented yet..

No, the next release will eventually have u-boot 2018.07, but feature
wise for overlays nothing that'll break the current boot.

It'll have spectre/meltdown patches, but that'll only be useful for
v4.18.x+ kernel's..
Reply all
Reply to author
Forward
0 new messages