Ubuntu Device Tree Issue on PocketBeagle

Hi,

I am working on the PocketBeagle platform and using the USB breakout pins to interface with devices. I had successful communication with USB devices with the debian image for the PocketBeagle. I tried running the Ubuntu image and ran into a problem with the device tree configuration.

I tried to change the uEnv.txt by adding this line:

dtb=am335x-pocketbeagle.dtb

However, it resulted in the same error.

When I see the following error, I feel like the current configuration isn’t setting the USB as ground (host).

VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010c

Is there a way to specify the correct configuration or modify the configuration for USB outputs?

Thank you.

Image directions from here: https://elinux.org/BeagleBoardUbuntu

Image link: https://rcn-ee.com/rootfs/2018-12-10/elinux/ubuntu-18.04.1-console-armhf-2018-12-10.tar.xz

Kernel Version

4.14.79-ti-r84

Below is the dmesg dump

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.79-ti-r84 (root@a2-imx6q-wandboard-2gb) (gcc v ersion 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #1 SMP PREEMPT Tue Nov 13 20 :35:19 UTC 2018
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio n cache
[ 0.000000] OF: fdt: Machine model: TI AM335x PocketBeagle
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x9c800000
[ 0.000000] On node 0 totalpages: 130560
[ 0.000000] free_area_init_node: node 0, pgdat c15ed340, node_mem_map df96100 0
[ 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] random: get_random_bytes called from start_kernel+0xac/0x450 with crng_init=0
[ 0.000000] percpu: Embedded 18 pages/cpu @df900000 s41548 r8192 d23988 u7372 8
[ 0.000000] pcpu-alloc: s41548 r8192 d23988 u73728 alloc=18*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129412
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p1 r o 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: 437312K/522240K available (13312K kernel code, 1170K rwda ta, 4372K rodata, 1024K init, 361K bss, 35776K 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 - 0xc0e00000 (14304 kB)
.init : 0xc1400000 - 0xc1500000 (1024 kB)
.data : 0xc1500000 - 0xc1624928 (1171 kB)
.bss : 0xc162ea78 - 0xc1688f80 ( 362 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 42852 entries in 126 pages
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrup ts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000020] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478 484971ns
[ 0.000040] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max _idle_ns: 79635851949 ns
[ 0.000050] OMAP clocksource: timer1 at 24000000 Hz
[ 0.001607] timer_probe: no matching timers found
[ 0.001950] Console: colour dummy device 80x30
[ 0.001976] WARNING: Your ‘console=ttyO0’ has been replaced by ‘ttyS0’
[ 0.001981] This ensures that you still see kernel messages. Please
[ 0.001985] update your kernel commandline.
[ 0.002009] Calibrating delay loop… 995.32 BogoMIPS (lpj=1990656)
[ 0.021774] pid_max: default: 32768 minimum: 301
[ 0.022038] Security Framework initialized
[ 0.022054] Yama: becoming mindful.
[ 0.022094] AppArmor: AppArmor disabled by boot time parameter
[ 0.022171] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.022183] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.023192] CPU: Testing write buffer coherency: ok
[ 0.023259] CPU0: Spectre v2: using BPIALL workaround
[ 0.023709] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.037869] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.045774] Hierarchical SRCU implementation.
[ 0.056910] EFI services will not be available.
[ 0.061783] smp: Bringing up secondary CPUs …
[ 0.061798] smp: Brought up 1 node, 1 CPU
[ 0.061809] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[ 0.061816] CPU: All CPU(s) started in SVC mode.
[ 0.063426] devtmpfs: initialized
[ 0.090096] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.090552] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 7645041785100000 ns
[ 0.090576] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.094806] xor: measuring software checksum speed
[ 0.133802] arm4regs : 1217.000 MB/sec
[ 0.173752] 8regs : 1091.000 MB/sec
[ 0.213749] 32regs : 1170.000 MB/sec
[ 0.253750] neon : 1674.000 MB/sec
[ 0.253757] xor: using function: neon (1674.000 MB/sec)
[ 0.253775] pinctrl core: initialized pinctrl subsystem
[ 0.254999] NET: Registered protocol family 16
[ 0.258919] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.319978] omap_hwmod: debugss: _wait_target_disable failed
[ 0.372603] cpuidle: using governor menu
[ 0.379308] OMAP GPIO hardware version 0.1
[ 0.401558] No ATAGs?
[ 0.401579] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.402575] omap4_sram_init:Unable to allocate sram needed to handle errata I 688
[ 0.402591] omap4_sram_init:Unable to get sram pool needed to handle errata I 688
[ 0.497830] raid6: neonx2 gen() 1879 MB/s
[ 0.565781] raid6: neonx2 xor() 1437 MB/s
[ 0.565789] raid6: using algorithm neonx2 gen() 1879 MB/s
[ 0.565795] raid6: … xor() 1437 MB/s, rmw enabled
[ 0.565802] raid6: using neon recovery algorithm
[ 0.573364] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.579303] SCSI subsystem initialized
[ 0.581933] libata version 3.00 loaded.
[ 0.582217] usbcore: registered new interface driver usbfs
[ 0.582274] usbcore: registered new interface driver hub
[ 0.582386] usbcore: registered new device driver usb
[ 0.583272] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wk up@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.584218] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
[ 0.584973] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
[ 0.585370] media: Linux media interface: v0.10
[ 0.585418] Linux video capture interface: v2.00
[ 0.585587] pps_core: LinuxPPS API ver. 1 registered

to date, we don't have a PocketBeagle overlay for usb configuration of
the second port..

Patches welcome :wink:

PS, sometimes this issue just bad wiring, double check your
connections and make sure you have real 5v of power.

Regards,