STM32MP157C-DK2 w/ Debian 9 does not see USB devices

Building Debian 9 from https://www.digikey.com/eewiki/display/linuxonarm/STM32MP1#STM32MP1-Debian9 appears to have an issue with “classic” USB devices not being recognized. It’s not seeing either of my keyboards or a USB thumb-drive. Nothing in dmesg about USB insertions / removals. Not sure about USB-C, I don’t have any USB-C devices.

Here’s the dmesg log from the boot, and after a couple keyboard plug / unplugs.

debian@arm:~$ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.3.0-rc2-armv7-lpae-x1 (jcw@debresc) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT Tue Jul 30 14:51:19 EDT 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=70c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: STMicroelectronics STM32MP157C-DK2 Discovery Board
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 64 MiB at 0x00000000dc000000
[    0.000000] On node 0 totalpages: 114688
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 114688 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 21 pages/cpu s57100 r8192 d20724 u86016
[    0.000000] pcpu-alloc: s57100 r8192 d20724 u86016 alloc=21*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 113152
[    0.000000] Kernel command line: console=ttySTM0,115200 root=/dev/mmcblk0p4 ro rootfstype=ext4 rootwait quiet
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 366560K/458752K available (10240K kernel code, 1551K rwdata, 4352K rodata, 2048K init, 369K bss, 26656K reserved, 65536K cma-reserved, 0K highmem)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x2d/0x3cc with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ftrace: allocating 50346 entries in 99 pages
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm/kernel/insn.c:15 __arm_gen_branch+0x87/0x8c
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.3.0-rc2-armv7-lpae-x1 #1
[    0.000000] Hardware name: STM32 (Device Tree Support)
[    0.000000] [<c022b0d5>] (unwind_backtrace) from [<c0226505>] (show_stack+0x11/0x14)
[    0.000000] [<c0226505>] (show_stack) from [<c0bc6705>] (dump_stack+0x5d/0x6c)
[    0.000000] [<c0bc6705>] (dump_stack) from [<c024afbb>] (__warn.part.3+0x83/0x9a)
[    0.000000] [<c024afbb>] (__warn.part.3) from [<c024b0d1>] (warn_slowpath_null+0x33/0x36)
[    0.000000] [<c024b0d1>] (warn_slowpath_null) from [<c022a5c7>] (__arm_gen_branch+0x87/0x8c)
[    0.000000] [<c022a5c7>] (__arm_gen_branch) from [<c022a52b>] (ftrace_make_nop+0xf/0x24)
[    0.000000] [<c022a52b>] (ftrace_make_nop) from [<c02eca79>] (ftrace_process_locs+0x231/0x318)
[    0.000000] [<c02eca79>] (ftrace_process_locs) from [<c12159d3>] (ftrace_init+0x6d/0xaa)
[    0.000000] [<c12159d3>] (ftrace_init) from [<c1200b41>] (start_kernel+0x26f/0x4ba)
[    0.000000] [<c1200b41>] (start_kernel) from [<00000000>] (0x0)
[    0.000000] ---[ end trace aa3fe55bef28eab3 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:2007 ftrace_bug+0xad/0x260
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W         5.3.0-rc2-armv7-lpae-x1 #1
[    0.000000] Hardware name: STM32 (Device Tree Support)
[    0.000000] [<c022b0d5>] (unwind_backtrace) from [<c0226505>] (show_stack+0x11/0x14)
[    0.000000] [<c0226505>] (show_stack) from [<c0bc6705>] (dump_stack+0x5d/0x6c)
[    0.000000] [<c0bc6705>] (dump_stack) from [<c024afbb>] (__warn.part.3+0x83/0x9a)
[    0.000000] [<c024afbb>] (__warn.part.3) from [<c024b0d1>] (warn_slowpath_null+0x33/0x36)
[    0.000000] [<c024b0d1>] (warn_slowpath_null) from [<c02ec695>] (ftrace_bug+0xad/0x260)
[    0.000000] [<c02ec695>] (ftrace_bug) from [<c02eca8b>] (ftrace_process_locs+0x243/0x318)
[    0.000000] [<c02eca8b>] (ftrace_process_locs) from [<c12159d3>] (ftrace_init+0x6d/0xaa)
[    0.000000] [<c12159d3>] (ftrace_init) from [<c1200b41>] (start_kernel+0x26f/0x4ba)
[    0.000000] [<c1200b41>] (start_kernel) from [<00000000>] (0x0)
[    0.000000] ---[ end trace aa3fe55bef28eab4 ]---
[    0.000000] ftrace failed to modify
[    0.000000] [<c122c9a6>] init_btrfs_fs+0x4/0xd2
[    0.000000]  actual:   3b:f0:f6:e8
[    0.000000] Initializing ftrace call sites
[    0.000000] ftrace record flags: 0
[    0.000000]  (0)
                expected tramp: c022a355
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000022] Switching to timer-based delay loop, resolution 41ns
[    0.004497] Console: colour dummy device 80x30
[    0.004559] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.004575] pid_max: default: 32768 minimum: 301
[    0.004857] LSM: Security Framework initializing
[    0.004989] Yama: becoming mindful.
[    0.005048] SELinux:  Initializing.
[    0.005179] *** VALIDATE SELinux ***
[    0.005194] TOMOYO Linux initialized
[    0.005302] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.005316] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.006349] *** VALIDATE proc ***
[    0.006725] *** VALIDATE cgroup1 ***
[    0.006738] *** VALIDATE cgroup2 ***
[    0.006848] CPU: Testing write buffer coherency: ok
[    0.007370] /cpus/cpu@0 missing clock-frequency property
[    0.007406] /cpus/cpu@1 missing clock-frequency property
[    0.007424] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.028630] Setting up static identity map for 0xc0200000 - 0xc02000a0
[    0.036619] rcu: Hierarchical SRCU implementation.
[    0.051234] EFI services will not be available.
[    0.056790] smp: Bringing up secondary CPUs ...
[    0.089146] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.089368] smp: Brought up 1 node, 2 CPUs
[    0.089380] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.089386] CPU: All CPU(s) started in HYP mode.
[    0.089391] CPU: Virtualization extensions available.
[    0.090479] devtmpfs: initialized
[    0.108491] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.109102] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.109235] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.113279] xor: measuring software checksum speed
[    0.153375]    arm4regs  :   810.000 MB/sec
[    0.193467]    8regs     :   564.000 MB/sec
[    0.233569]    32regs    :   533.000 MB/sec
[    0.273672]    neon      :   796.000 MB/sec
[    0.273680] xor: using function: arm4regs (810.000 MB/sec)
[    0.273768] pinctrl core: initialized pinctrl subsystem
[    0.274884] DMI not present or invalid.
[    0.275472] NET: Registered protocol family 16
[    0.284764] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.285586] audit: initializing netlink subsys (disabled)
[    0.285967] audit: type=2000 audit(0.284:1): state=initialized audit_enabled=0 res=1
[    0.288251] cpuidle: using governor menu
[    0.288741] No ATAGs?
[    0.288876] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.288885] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.296145] /soc/interrupt-controller@5000d000: bank0
[    0.296158] /soc/interrupt-controller@5000d000: bank1
[    0.296165] /soc/interrupt-controller@5000d000: bank2
[    0.302393] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
[    0.302950] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
[    0.303449] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
[    0.303921] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
[    0.304394] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
[    0.304865] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
[    0.305371] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
[    0.305878] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
[    0.306440] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
[    0.306541] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
[    0.307767] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
[    0.307790] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
[    0.325380] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.347007] raid6: using algorithm neonx8 gen() 0 MB/s
[    0.347018] raid6: .... xor() 0 MB/s, rmw enabled
[    0.347025] raid6: using neon recovery algorithm
[    0.351215] stm32-dma 48000000.dma: STM32 DMA driver registered
[    0.353042] stm32-dma 48001000.dma: STM32 DMA driver registered
[    0.357399] stm32-mdma 58000000.dma: STM32 MDMA driver registered
[    0.362124] vgaarb: loaded
[    0.363109] SCSI subsystem initialized
[    0.363455] libata version 3.00 loaded.
[    0.363872] usbcore: registered new interface driver usbfs
[    0.363942] usbcore: registered new interface driver hub
[    0.364069] usbcore: registered new device driver usb
[    0.364796] mc: Linux media interface: v0.10
[    0.364849] videodev: Linux video capture interface: v2.00
[    0.365017] pps_core: LinuxPPS API ver. 1 registered
[    0.365025] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.365052] PTP clock support registered
[    0.366822] NetLabel: Initializing
[    0.366832] NetLabel:  domain hash size = 128
[    0.366837] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.366941] NetLabel:  unlabeled traffic allowed by default
[    0.367561] clocksource: Switched to clocksource arch_sys_counter
[    1.651379] VFS: Disk quotas dquot_6.6.0
[    1.651511] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.651731] *** VALIDATE hugetlbfs ***
[    1.666893] thermal_sys: Registered thermal governor 'fair_share'
[    1.666901] thermal_sys: Registered thermal governor 'bang_bang'
[    1.666912] thermal_sys: Registered thermal governor 'step_wise'
[    1.667497] NET: Registered protocol family 2
[    1.668753] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.668801] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.668863] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.668954] TCP: Hash tables configured (established 4096 bind 4096)
[    1.669111] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.669150] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.669491] NET: Registered protocol family 1
[    1.670430] RPC: Registered named UNIX socket transport module.
[    1.670440] RPC: Registered udp transport module.
[    1.670446] RPC: Registered tcp transport module.
[    1.670452] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.670471] PCI: CLS 0 bytes, default 64
[    1.672301] kvm [1]: Hyp mode initialized successfully
[    1.675237] Initialise system trusted keyrings
[    1.675654] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.689214] zbud: loaded
[    1.693109] NFS: Registering the id_resolver key type
[    1.693162] Key type id_resolver registered
[    1.693169] Key type id_legacy registered
[    1.693189] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.693550] fuse: init (API version 7.31)
[    1.754878] Key type asymmetric registered
[    1.754892] Asymmetric key parser 'x509' registered
[    1.754977] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    1.755201] io scheduler mq-deadline registered
[    1.768678] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.773504] STM32 USART driver initialized
[    1.773942] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 20, base_baud = 4000000) is a stm32-usart
[    1.783298] printk: console [ttySTM0] enabled
[    1.784004] stm32-usart 40010000.serial: rx dma alloc failed
[    1.784016] stm32-usart 40010000.serial: interrupt mode used for rx (no dma)
[    1.784028] stm32-usart 40010000.serial: tx dma alloc failed
[    1.784037] stm32-usart 40010000.serial: interrupt mode used for tx (no dma)
[    1.803496] etnaviv etnaviv: bound 59000000.gpu (ops 0xc0cebbd4)
[    1.803516] etnaviv-gpu 59000000.gpu: model: GC400, revision: 4652
[    1.803531] etnaviv-gpu 59000000.gpu: Need to move linear window on MC1.0, disabling TS
[    1.808221] random: fast init done
[    1.810040] [drm] Initialized etnaviv 1.2.0 20151214 for etnaviv on minor 0
[    1.814167] libphy: Fixed MDIO Bus: probed
[    1.817877] random: crng init done
[    1.818088] stm32-dwmac 5800a000.ethernet: PTP uses main clock
[    1.818104] stm32-dwmac 5800a000.ethernet: no reset control found
[    1.818150] stm32-dwmac 5800a000.ethernet: No phy clock provided...
[    1.823607] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[    1.823624] stm32-dwmac 5800a000.ethernet:   DWMAC4/5
[    1.823636] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[    1.823647] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[    1.823657] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[    1.823666] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[    1.823735] stm32-dwmac 5800a000.ethernet: TSO supported
[    1.823747] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.823759] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[    1.824027] libphy: stmmac: probed
[    1.842670] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.842713] ehci-pci: EHCI PCI platform driver
[    1.842810] ehci-platform: EHCI generic platform driver
[    1.842985] ehci-mxc: Freescale On-Chip EHCI Host driver
[    1.843086] ehci-omap: OMAP-EHCI Host Controller driver
[    1.843206] tegra-ehci: Tegra EHCI driver
[    1.844016] usbcore: registered new interface driver usb-storage
[    1.850001] stm32_rtc 5c004000.rtc: alarm can't wake up the system: -6
[    1.850433] stm32_rtc 5c004000.rtc: registered as rtc0
[    1.850808] stm32_rtc 5c004000.rtc: registered rev:1.2
[    1.851845] i2c /dev entries driver
[    1.873002] stm32f7-i2c 40012000.i2c: can't use DMA
[    1.882528] i2c i2c-0: Added multiplexed i2c bus 1
[    1.882655] stm32f7-i2c 40012000.i2c: STM32F7 I2C-0 bus adapter
[    1.903378] stm32f7-i2c 5c002000.i2c: can't use DMA
[    1.905077] stpmic1 2-0033: PMIC Chip Version: 0x10
[    1.909835] BUCK1: supplied by regulator-dummy
[    1.915973] BUCK2: supplied by regulator-dummy
[    1.919952] BUCK3: supplied by regulator-dummy
[    1.924318] BUCK4: supplied by regulator-dummy
[    1.927871] LDO1: supplied by v3v3
[    1.934323] LDO2: supplied by regulator-dummy
[    1.940643] LDO3: supplied by vdd_ddr
[    1.947929] LDO4: supplied by regulator-dummy
[    1.949124] LDO5: supplied by regulator-dummy
[    1.956708] LDO6: supplied by v3v3
[    1.960694] VREF_DDR: supplied by regulator-dummy
[    1.963929] BOOST: supplied by regulator-dummy
[    1.965079] VBUS_OTG: supplied by bst_out
[    1.966233] SW_OUT: supplied by bst_out
[    1.969342] stm32f7-i2c 5c002000.i2c: STM32F7 I2C-2 bus adapter
[    1.975801] mmci-pl18x 58005000.sdmmc: mmc0: PL180 manf 53 rev1 at 0x58005000 irq 43,0 (pio)
[    2.000063] sdhci: Secure Digital Host Controller Interface driver
[    2.000071] sdhci: Copyright(c) Pierre Ossman
[    2.001529] Synopsys Designware Multimedia Card Interface Driver
[    2.002085] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.003912] ledtrig-cpu: registered to indicate activity on CPUs
[    2.005705] hidraw: raw HID events driver (C) Jiri Kosina
[    2.006131] usbcore: registered new interface driver usbhid
[    2.006138] usbhid: USB HID core driver
[    2.007370] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
[    2.009931] gnss: GNSS driver registered with major 239
[    2.011529] NET: Registered protocol family 10
[    2.017680] Segment Routing with IPv6
[    2.017818] mip6: Mobile IPv6
[    2.017833] NET: Registered protocol family 17
[    2.017973] Key type dns_resolver registered
[    2.017981] mpls_gso: MPLS GSO support
[    2.018254] ThumbEE CPU extension supported.
[    2.018272] Registering SWP/SWPB emulation handler
[    2.019437] registered taskstats version 1
[    2.019446] Loading compiled-in X.509 certificates
[    2.019670] zswap: loaded using pool lzo/zbud
[    2.024665] Btrfs loaded, crc32c=crc32c-generic
[    2.050872] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.055927] mmc0: new high speed SDHC card at address 0007
[    2.064211] mmcblk0: mmc0:0007 SD16G 14.5 GiB
[    2.068593] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.068603] [drm] Driver supports precise vblank timestamp query.
[    2.069567] [drm] Initialized stm 1.0.0 20170330 for 5a001000.display-controller on minor 1
[    2.080005]  mmcblk0: p1 p2 p3 p4
[    2.539345] Console: switching to colour frame buffer device 60x50
[    2.564497] stm32-display 5a001000.display-controller: fb0: stmdrmfb frame buffer device
[    2.565532] stm32_rtc 5c004000.rtc: setting system clock to 2019-07-30T19:15:57 UTC (1564514157)
[    2.566889] vdd_usb: disabling
[    2.595973] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: (null)
[    2.596088] VFS: Mounted root (ext4 filesystem) readonly on device 179:4.
[    2.604919] devtmpfs: mounted
[    2.617826] Freeing unused kernel memory: 2048K
[    2.618220] Run /sbin/init as init process
[    2.648819] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist.
[    3.288620] 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)
[    3.289424] systemd[1]: Detected architecture arm.
[    3.290710] systemd[1]: Set hostname to <arm>.
[    3.851907] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.852416] systemd[1]: Reached target Swap.
[    3.852555] systemd[1]: Reached target Remote File Systems.
[    3.854282] systemd[1]: Created slice System Slice.
[    3.855831] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    3.861861] systemd[1]: Mounting Huge Pages File System...
[    3.864222] systemd[1]: Created slice system-getty.slice.
[    4.497941] EXT4-fs (mmcblk0p4): re-mounted. Opts: errors=remount-ro
[    4.684103] systemd-journald[169]: Received request to flush runtime journal from PID 1
[    8.120087] stm32-dwmac 5800a000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211F Gigabit Ethernet]
[    8.120116] stm32-dwmac 5800a000.ethernet eth0: phy: setting supported 00,00000000,000062ef advertising 00,00000000,000062ef
[    8.154677] dwmac4: Master AXI performs any burst length
[    8.154713] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
[    8.154734] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[    8.163362] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock
[    8.163394] stm32-dwmac 5800a000.ethernet eth0: configuring for phy/rgmii-id link mode
[    8.163421] stm32-dwmac 5800a000.ethernet eth0: phylink_mac_config: mode=phy/rgmii-id/Unknown/Unknown adv=00,00000000,000062ef pause=10 link=0 an=1
[    8.191840] stm32-dwmac 5800a000.ethernet eth0: phy link down rgmii-id/Unknown/Unknown
[   11.283632] stm32-dwmac 5800a000.ethernet eth0: phy link up rgmii-id/100Mbps/Full
[   11.283674] stm32-dwmac 5800a000.ethernet eth0: phylink_mac_config: mode=phy/rgmii-id/100Mbps/Full adv=00,00000000,00000000 pause=00 link=1 an=0
[   11.319611] stm32-dwmac 5800a000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
[   11.319660] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
1 Like

@jcwren, i’m a little closer, but still no dice:

debian@arm:~$ dmesg | grep usb ; lsusb
[    0.362662] usbcore: registered new interface driver usbfs
[    0.362734] usbcore: registered new interface driver hub
[    0.362866] usbcore: registered new device driver usb
[    1.852419] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_d not found, using dummy regulator
[    1.852558] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_a not found, using dummy regulator
[    1.852997] dwc2 49000000.usb-otg: Configuration mismatch. dr_mode forced to host
[    1.853077] dwc2 49000000.usb-otg: dwc2_core_reset: HANG! Soft Reset timeout GRSTCTL GRSTCTL_CSFTRST
[    1.853347] dwc2: probe of 49000000.usb-otg failed with error -16
[    1.854113] ehci-platform 5800d000.usbh-ehci: EHCI Host Controller
[    1.854156] ehci-platform 5800d000.usbh-ehci: new USB bus registered, assigned bus number 1
[    1.854949] ehci-platform 5800d000.usbh-ehci: irq 46, io mem 0x5800d000
[    1.868988] ehci-platform 5800d000.usbh-ehci: USB 2.0 started, EHCI 1.00
[    1.869478] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.03
[    1.869494] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.869505] usb usb1: Product: EHCI Host Controller
[    1.869515] usb usb1: Manufacturer: Linux 5.3.0-rc2-armv7-lpae-x1 ehci_hcd
[    1.869525] usb usb1: SerialNumber: 5800d000.usbh-ehci
[    1.872630] usbcore: registered new interface driver usb-storage
[    2.035557] usbcore: registered new interface driver usbhid
[    2.035564] usbhid: USB HID core driver
[    2.600205] vdd_usb: disabling
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
diff --git a/arch/arm/boot/dts/stm32mp157c-dk2.dts b/arch/arm/boot/dts/stm32mp157c-dk2.dts
index 20ea601a546d..3bd065fcbbad 100644
--- a/arch/arm/boot/dts/stm32mp157c-dk2.dts
+++ b/arch/arm/boot/dts/stm32mp157c-dk2.dts
@@ -74,3 +74,12 @@
                };
        };
 };
+
+&usbh_ehci {
+       status = "okay";
+};
+
+&usbotg_hs {
+       status = "okay";
+       dr_mode = "host";
+};

edit: peripheral -> host, but no change…

Regards,

Hi,
I have the same issue.
Do you have any progress on the solution for this problem?
Kind regards.

Nope, still no joy. Tried 5.3.x-rc3 with Debian 10.0 image, and while it registers the hidcore, it’s still not seeing any USB devices. I’m wondering if the vdd_usb: disabling has anything to do with it.

[    0.363462] usbcore: registered new interface driver usbfs
[    0.363534] usbcore: registered new interface driver hub
[    0.363621] usbcore: registered new device driver usb
[    1.846421] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.847866] usbcore: registered new interface driver usb-storage
[    2.009807] usbcore: registered new interface driver usbhid
[    2.009814] usbhid: USB HID core driver
[    2.574538] vdd_usb: disabling

@jcwren, there are 5 more usb patches just recently posted to the u-boot list to get usb working in u-boot. Similar phy changes will be also needed for the kernel driver.

Regards,

Excellent, I will keep an eye out for those. Thanks!

Has anyone got the USBs working using instructions at https://www.digikey.com/eewiki/display/linuxonarm/STM32MP1 ?
I have tried both Ubuntu and Debian with no luck with USBs. I’m using DK2.
System starts fine with both OSs, but USBs don’t recognize anything connected to USBs, including USB-C. dmesg shows nothing when I connect USB memory to USB or USB-C port.

@Waldemar, sadly nothing in the 5.4.0-rc0 pull request:

https://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git/log/?h=stm32-dt-for-v5.4

We should take a look at ST’s tree they used for the out of box image… Does anyone know which git tree they used for that?

Regards,

I’ll have to double-check my build script, but with the 10.1 minimal image, and latest u-boot and 5.4.0-armv7-lpae-x8 image, I’m not even getting a login prompt on the LCD anymore, and it’s not ever getting an Ethernet link LED. I suppose I shall have to hook up a serial terminal and see what it’s up to…

@jcwren,

yeah it’s locking up:;

Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
268 bytes read in 5 ms (51.8 KiB/s)
1:	Linux 5.4.0-armv7-lpae-x8
Retrieving file: /boot/vmlinuz-5.4.0-armv7-lpae-x8
10990080 bytes read in 468 ms (22.4 MiB/s)
append: console=ttySTM0,115200 root=/dev/mmcblk0p4 ro rootfstype=ext4 rootwait
Retrieving file: /boot/dtbs/5.4.0-armv7-lpae-x8/stm32mp157c-dk2.dtb
57912 bytes read in 10 ms (5.5 MiB/s)
## Flattened Device Tree blob at c4000000
   Booting using the fdt blob at 0xc4000000
   Using Device Tree in place at c4000000, end c4011237

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.0-armv7-lpae-x8 (voodoo@hades) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT Mon Nov 25 14:21:50 CST 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=70c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: STMicroelectronics STM32MP157C-DK2 Discovery Board
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000010000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram2@10000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000010040000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring0@10040000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000010041000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring1@10041000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000010042000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0buffer@10042000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000030000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram@30000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000038000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node retram@38000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 64 MiB at 0x00000000dc000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 21 pages/cpu s54220 r8192 d23604 u86016
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 113152
[    0.000000] Kernel command line: console=ttySTM0,115200 root=/dev/mmcblk0p4 ro rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0xd0000000-0xd4000000] (64MB)
[    0.000000] Memory: 298496K/458752K available (12288K kernel code, 1629K rwdata, 4496K rodata, 2048K init, 374K bss, 94720K reserved, 65536K cma-reserved, 0K highmem)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x2d/0x3dc with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ftrace: allocating 51678 entries in 101 pages
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm/kernel/insn.c:15 __arm_gen_branch+0x8b/0x90
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.0-armv7-lpae-x8 #1
[    0.000000] Hardware name: STM32 (Device Tree Support)
[    0.000000] [<c022d19d>] (unwind_backtrace) from [<c0228071>] (show_stack+0x11/0x14)
[    0.000000] [<c0228071>] (show_stack) from [<c0c1d4f3>] (dump_stack+0x63/0x70)
[    0.000000] [<c0c1d4f3>] (dump_stack) from [<c024c787>] (__warn+0xb7/0xb8)
[    0.000000] [<c024c787>] (__warn) from [<c024ca25>] (warn_slowpath_fmt+0x45/0x78)
[    0.000000] [<c024ca25>] (warn_slowpath_fmt) from [<c022c6c3>] (__arm_gen_branch+0x8b/0x90)
[    0.000000] [<c022c6c3>] (__arm_gen_branch) from [<c022c623>] (ftrace_make_nop+0xf/0x24)
[    0.000000] [<c022c623>] (ftrace_make_nop) from [<c02efe59>] (ftrace_process_locs+0x235/0x328)
[    0.000000] [<c02efe59>] (ftrace_process_locs) from [<c1415d2f>] (ftrace_init+0x6d/0xaa)
[    0.000000] [<c1415d2f>] (ftrace_init) from [<c1400aed>] (start_kernel+0x223/0x472)
[    0.000000] [<c1400aed>] (start_kernel) from [<00000000>] (0x0)
[    0.000000] ---[ end trace aa3fe55bef28eab3 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:2008 ftrace_bug+0xa5/0x250
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W         5.4.0-armv7-lpae-x8 #1
[    0.000000] Hardware name: STM32 (Device Tree Support)
[    0.000000] [<c022d19d>] (unwind_backtrace) from [<c0228071>] (show_stack+0x11/0x14)
[    0.000000] [<c0228071>] (show_stack) from [<c0c1d4f3>] (dump_stack+0x63/0x70)
[    0.000000] [<c0c1d4f3>] (dump_stack) from [<c024c787>] (__warn+0xb7/0xb8)
[    0.000000] [<c024c787>] (__warn) from [<c024ca25>] (warn_slowpath_fmt+0x45/0x78)
[    0.000000] [<c024ca25>] (warn_slowpath_fmt) from [<c02efa79>] (ftrace_bug+0xa5/0x250)
[    0.000000] [<c02efa79>] (ftrace_bug) from [<c02efe6b>] (ftrace_process_locs+0x247/0x328)
[    0.000000] [<c02efe6b>] (ftrace_process_locs) from [<c1415d2f>] (ftrace_init+0x6d/0xaa)
[    0.000000] [<c1415d2f>] (ftrace_init) from [<c1400aed>] (start_kernel+0x223/0x472)
[    0.000000] [<c1400aed>] (start_kernel) from [<00000000>] (0x0)
[    0.000000] ---[ end trace aa3fe55bef28eab4 ]---
[    0.000000] ftrace failed to modify 
[    0.000000] [<c140033a>] set_reset_devices+0x2/0x16
[    0.000000]  actual:   69:f0:e8:ea
[    0.000000] Initializing ftrace call sites
[    0.000000] ftrace record flags: 0
[    0.000000]  (0)  
[    0.000000]  expected tramp: c022c44d
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000027] Switching to timer-based delay loop, resolution 41ns
[    0.005101] Console: colour dummy device 80x30
[    0.005175] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.005196] pid_max: default: 32768 minimum: 301
[    0.005494] LSM: Security Framework initializing
[    0.005582] Yama: becoming mindful.
[    0.005765] AppArmor: AppArmor initialized
[    0.005783] TOMOYO Linux initialized
[    0.005912] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.005932] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.006039] *** VALIDATE tmpfs ***
[    0.006953] *** VALIDATE proc ***
[    0.007384] *** VALIDATE cgroup1 ***
[    0.007404] *** VALIDATE cgroup2 ***
[    0.007500] CPU: Testing write buffer coherency: ok
[    0.008037] /cpus/cpu@0 missing clock-frequency property
[    0.008067] /cpus/cpu@1 missing clock-frequency property
[    0.008086] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.029243] Setting up static identity map for 0xc0200000 - 0xc02000a0
[    0.037233] rcu: Hierarchical SRCU implementation.
[    0.052230] EFI services will not be available.
[    0.057412] smp: Bringing up secondary CPUs ...
[    0.089772] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.090003] smp: Brought up 1 node, 2 CPUs
[    0.090024] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.090035] CPU: All CPU(s) started in SVC mode.
[    0.091014] devtmpfs: initialized
[    0.110061] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.111002] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.111035] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.115818] xor: measuring software checksum speed
[    0.154102]    arm4regs  :   797.000 MB/sec
[    0.194145]    8regs     :   557.000 MB/sec
[    0.234256]    32regs    :   527.000 MB/sec
[    0.274372]    neon      :   786.000 MB/sec
[    0.274384] xor: using function: arm4regs (797.000 MB/sec)
[    0.274480] pinctrl core: initialized pinctrl subsystem
[    0.275424] DMI not present or invalid.
[    0.276021] NET: Registered protocol family 16
[    0.285359] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.286150] audit: initializing netlink subsys (disabled)
[    0.286553] audit: type=2000 audit(0.284:1): state=initialized audit_enabled=0 res=1
[    0.288899] cpuidle: using governor menu
[    0.289366] No ATAGs?
[    0.289511] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.289530] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.297284] /soc/interrupt-controller@5000d000: bank0
[    0.297303] /soc/interrupt-controller@5000d000: bank1
[    0.297315] /soc/interrupt-controller@5000d000: bank2
[    0.303551] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
[    0.304078] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
[    0.304552] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
[    0.305026] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
[    0.305543] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
[    0.306024] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
[    0.306522] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
[    0.307037] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
[    0.307528] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
[    0.307639] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
[    0.308863] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
[    0.308892] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
[    0.327616] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.347738] raid6: using algorithm neonx8 gen() 0 MB/s
[    0.347756] raid6: .... xor() 0 MB/s, rmw enabled
[    0.347767] raid6: using neon recovery algorithm
[    0.352086] stm32-dma 48000000.dma: STM32 DMA driver registered
[    0.353872] stm32-dma 48001000.dma: STM32 DMA driver registered
[    0.358091] stm32-mdma 58000000.dma: STM32 MDMA driver registered
[    0.361164] iommu: Default domain type: Translated 
[    0.363136] vgaarb: loaded
[    0.364138] SCSI subsystem initialized
[    0.364932] usbcore: registered new interface driver usbfs
[    0.365010] usbcore: registered new interface driver hub
[    0.365151] usbcore: registered new device driver usb
[    0.365974] mc: Linux media interface: v0.10
[    0.366033] videodev: Linux video capture interface: v2.00
[    0.366198] pps_core: LinuxPPS API ver. 1 registered
[    0.366210] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.366243] PTP clock support registered
[    0.368045] NetLabel: Initializing
[    0.368062] NetLabel:  domain hash size = 128
[    0.368072] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.368179] NetLabel:  unlabeled traffic allowed by default
[    0.368796] clocksource: Switched to clocksource arch_sys_counter
[    1.629895] *** VALIDATE bpf ***
[    1.630298] VFS: Disk quotas dquot_6.6.0
[    1.630410] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.630554] *** VALIDATE ramfs ***
[    1.630590] *** VALIDATE hugetlbfs ***
[    1.631650] AppArmor: AppArmor Filesystem Enabled
[    1.646153] thermal_sys: Registered thermal governor 'fair_share'
[    1.646161] thermal_sys: Registered thermal governor 'bang_bang'
[    1.646180] thermal_sys: Registered thermal governor 'step_wise'
[    1.646795] NET: Registered protocol family 2
[    1.647898] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.647966] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.648041] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.648136] TCP: Hash tables configured (established 4096 bind 4096)
[    1.648280] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.648326] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.648950] NET: Registered protocol family 1
[    1.649873] RPC: Registered named UNIX socket transport module.
[    1.649892] RPC: Registered udp transport module.
[    1.649902] RPC: Registered tcp transport module.
[    1.649913] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.649930] NET: Registered protocol family 44
[    1.649956] PCI: CLS 0 bytes, default 64
[    1.650744] kvm [1]: HYP mode not available
[    1.653313] Initialise system trusted keyrings
[    1.653691] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.666208] zbud: loaded
[    1.669934] NFS: Registering the id_resolver key type
[    1.669983] Key type id_resolver registered
[    1.669995] Key type id_legacy registered
[    1.670019] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.670354] fuse: init (API version 7.31)
[    1.670538] *** VALIDATE fuse ***
[    1.670556] *** VALIDATE fuse ***
[    1.729831] Key type asymmetric registered
[    1.729852] Asymmetric key parser 'x509' registered
[    1.729938] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    1.730190] io scheduler mq-deadline registered
[    1.744329] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.749929] STM32 USART driver initialized
[    1.750359] stm32-usart 40010000.serial: IRQ index 1 not found
[    1.750440] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 20, base_baud = 4000000) is a stm32-usart
[    3.005842] printk: console [ttySTM0] enabled
[    3.010795] stm32-usart 40010000.serial: rx dma alloc failed
[    3.015833] stm32-usart 40010000.serial: interrupt mode used for rx (no dma)
[    3.022889] stm32-usart 40010000.serial: tx dma alloc failed
[    3.028543] stm32-usart 40010000.serial: interrupt mode used for tx (no dma)
[    3.049697] etnaviv etnaviv: bound 59000000.gpu (ops 0xc0ee9c14)
[    3.054308] etnaviv-gpu 59000000.gpu: model: GC400, revision: 4652
[    3.059721] random: fast init done
[    3.061321] etnaviv-gpu 59000000.gpu: Need to move linear window on MC1.0, disabling TS
[    3.071976] random: crng init done
[    3.075851] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[    3.086129] libphy: Fixed MDIO Bus: probed
[    3.092492] stm32-dwmac 5800a000.ethernet: IRQ eth_wake_irq not found
[    3.097543] stm32-dwmac 5800a000.ethernet: IRQ eth_lpi not found
[    3.103682] stm32-dwmac 5800a000.ethernet: PTP uses main clock
[    3.109380] stm32-dwmac 5800a000.ethernet: no reset control found
[    3.115518] stm32-dwmac 5800a000.ethernet: No phy clock provided...
[    3.121780] stm32-dwmac 5800a000.ethernet: IRQ stm32_pwr_wakeup not found
[    3.136835] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[    3.142385] stm32-dwmac 5800a000.ethernet: 	DWMAC4/5
[    3.147340] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[    3.154666] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[    3.161988] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[    3.168874] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[    3.175198] stm32-dwmac 5800a000.ethernet: TSO supported
[    3.180467] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.188321] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[    3.194531] libphy: stmmac: probed
[    3.216166] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.221351] ehci-pci: EHCI PCI platform driver
[    3.225822] ehci-platform: EHCI generic platform driver
[    3.231148] ehci-mxc: Freescale On-Chip EHCI Host driver
[    3.236468] ehci-omap: OMAP-EHCI Host Controller driver
[    3.241649] tegra-ehci: Tegra EHCI driver
[    3.246271] usbcore: registered new interface driver uas
[    3.250911] usbcore: registered new interface driver usb-storage
[    3.256882] usbcore: registered new interface driver ums-alauda
[    3.262795] usbcore: registered new interface driver ums-cypress
[    3.268823] usbcore: registered new interface driver ums-datafab
[    3.274900] usbcore: registered new interface driver ums_eneub6250
[    3.281042] usbcore: registered new interface driver ums-freecom
[    3.287034] usbcore: registered new interface driver ums-isd200
[    3.292967] usbcore: registered new interface driver ums-jumpshot
[    3.299076] usbcore: registered new interface driver ums-karma
[    3.304912] usbcore: registered new interface driver ums-onetouch
[    3.311025] usbcore: registered new interface driver ums-realtek
[    3.317026] usbcore: registered new interface driver ums-sddr09
[    3.322945] usbcore: registered new interface driver ums-sddr55
[    3.328882] usbcore: registered new interface driver ums-usbat
[    3.341383] stm32_rtc 5c004000.rtc: IRQ index 1 not found
[    3.345365] stm32_rtc 5c004000.rtc: alarm can't wake up the system: -6
[    3.352335] stm32_rtc 5c004000.rtc: registered as rtc0
[    3.357352] stm32_rtc 5c004000.rtc: Date/Time must be initialized
[    3.363171] stm32_rtc 5c004000.rtc: registered rev:1.2
[    3.369310] i2c /dev entries driver
[    3.392894] stm32f7-i2c 40012000.i2c: can't use DMA
[    3.403754] i2c i2c-0: Added multiplexed i2c bus 1
[    3.407696] stm32f7-i2c 40012000.i2c: STM32F7 I2C-0 bus adapter
[    3.433881] stm32f7-i2c 5c002000.i2c: can't use DMA
[    3.438965] stpmic1 2-0033: PMIC Chip Version: 0x10
[    3.447166] BUCK1: supplied by regulator-dummy
[    3.457187] BUCK2: supplied by regulator-dummy
[    3.465146] BUCK3: supplied by regulator-dummy
[    3.473552] BUCK4: supplied by regulator-dummy
[    3.481085] LDO1: supplied by v3v3
[    3.491548] LDO2: supplied by regulator-dummy
[    3.501866] LDO3: supplied by vdd_ddr
[    3.509157] LDO4: supplied by regulator-dummy
[    3.513248] LDO5: supplied by regulator-dummy
[    3.521893] LDO6: supplied by v3v3
[    3.529883] VREF_DDR: supplied by regulator-dummy
[    3.537166] BOOST: supplied by regulator-dummy
[    3.541279] VBUS_OTG: supplied by bst_out
[    3.545293] SW_OUT: supplied by bst_out
[    3.550947] stm32f7-i2c 5c002000.i2c: STM32F7 I2C-2 bus adapter
[    3.561253] sdhci: Secure Digital Host Controller Interface driver
[    3.566010] sdhci: Copyright(c) Pierre Ossman
[    3.570618] Synopsys Designware Multimedia Card Interface Driver
[    3.576990] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.583815] ledtrig-cpu: registered to indicate activity on CPUs
[    3.590631] hidraw: raw HID events driver (C) Jiri Kosina
[    3.594954] usbcore: registered new interface driver usbhid
[    3.600178] usbhid: USB HID core driver
[    3.605424] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
[    3.612869] drop_monitor: Initializing network drop monitor service
[    3.618945] NET: Registered protocol family 10
[    3.626808] Segment Routing with IPv6
[    3.629251] mip6: Mobile IPv6
[    3.631983] NET: Registered protocol family 17
[    3.636817] Key type dns_resolver registered
[    3.640697] mpls_gso: MPLS GSO support
[    3.644725] ThumbEE CPU extension supported.
[    3.648754] Registering SWP/SWPB emulation handler
[    3.654128] registered taskstats version 1
[    3.657740] Loading compiled-in X.509 certificates
[    3.662573] zswap: loaded using pool lzo/zbud
[    3.667199] Key type ._fscrypt registered
[    3.670819] Key type .fscrypt registered
[    3.679495] Btrfs loaded, crc32c=crc32c-generic
[    3.682815] AppArmor: AppArmor sha1 policy hashing enabled
[    3.729560] stm32-display 5a001000.display-controller: IRQ index 2 not found
[    3.735297] stm32-display 5a001000.display-controller: IRQ index 3 not found
[    3.742385] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.748882] [drm] Driver supports precise vblank timestamp query.
[    3.755905] [drm] Initialized stm 1.0.0 20170330 for 5a001000.display-controller on minor 1
[    4.257747] Console: switching to colour frame buffer device 60x50
[    4.282416] stm32-display 5a001000.display-controller: fb0: stmdrmfb frame buffer device
[    4.291618] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01T00:00:08 UTC (946684808)
[    4.301092] Waiting for root device /dev/mmcblk0p4...
[   35.813298] vdd_usb: disabling

Regards,

I didn’t get that far (I don’t think). Plugged up the STLINK port, and I’m not getting past the second u-boot signon. Although maybe it doesn’t use the STLINK port after that, not sure. Where are you connecting to get the output that you’ve got?

@jcwren, remove the “quiet” boot option from: /boot/extlinux/extlinux.conf and you’ll get farther… (log wise)

On the screen i do get two penguins…

I’ll start a git bisect run tonight to see what’s up…

I’m now getting as far as you are.

Apparently anything after the v2019.10 tagged branch of U-Boot is broken, and stops after the DRAM: 512MiB line is output, so that’s gonna be a future problem.

@jcwren, okay fixed the first issue… Turns out CONFIG_MMC_STM32_SDMMC has an indirect dependency on CONFIG_MMC_ARMMMCI… So once i moved CONFIG_MMC_ARMMMCI to built-in it just booted…

Regards,

wow that is mind blowing explanation I got solved my issue too… Thanks for that.

Seems like we’re a little further along. System boots, still no USB. But what I see now in the dmesg log is that vdd_usb is getting turned off. Haven’t yet figured out how to turn it on. Plugging a USB voltage analyzer definitely shows 5V isn’t present on the USB-A connectors.

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.5.0-rc4-armv7-lpae-x3 (jcw@debresc) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT Fri Jan 3 12:16:22 EST 2020
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=70c5387d
<snip>
[   35.815559] vref: supplied by vdd
[   35.817566] reg11: supplied by vdd
[   35.822678] usb33: supplied by vdd_usb
[   35.826037] vref: disabling
[   35.828653] reg11: disabling
[   35.831107] vdd_usb: disabling
[   35.835618] vdda: disabling

@jcwren, it works for me :wink:

debian@arm:~$ uname -r ; lsusb
5.5.0-rc4-armv7-lpae-x3.1
Bus 001 Device 004: ID 154b:00ee PNY 
Bus 001 Device 005: ID 0b95:772a ASIX Electronics Corp. AX88772A Fast Ethernet
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I just found the patches in stm32’s for next tree and merged them in…

https://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git/log/?h=stm32-next

Regards,

Awesome, rebuilding the new kernel tree now. I had been fooling around for the past hour trying to merge in ST’s u-boot device-tree from the Yocto distro (which had a moderate number of differences) and had just getting ready to test it when the TechForum notification arrived. So the heck with that, I’m going with your changes :slight_smile:

Thanks for everything you do on this, BeagleBone stuff, and whatever other boards you’re involved in. You’ve been at this a long time, and your efforts and knowledge are greatly appreciated.

I’m getting this errors, no idea what might be the issue.

[    0.166420] usbcore: registered new interface driver usbfs
[    0.166500] usbcore: registered new interface driver hub
[    0.166573] usbcore: registered new device driver usb
[    1.752731] usbcore: registered new interface driver uas
[    1.752829] usbcore: registered new interface driver usb-storage
[    1.752882] usbcore: registered new interface driver ums-alauda
[    1.752936] usbcore: registered new interface driver ums-cypress
[    1.753000] usbcore: registered new interface driver ums-datafab
[    1.753052] usbcore: registered new interface driver ums_eneub6250
[    1.753101] usbcore: registered new interface driver ums-freecom
[    1.753150] usbcore: registered new interface driver ums-isd200
[    1.753199] usbcore: registered new interface driver ums-jumpshot
[    1.753264] usbcore: registered new interface driver ums-karma
[    1.753314] usbcore: registered new interface driver ums-onetouch
[    1.753384] usbcore: registered new interface driver ums-realtek
[    1.753435] usbcore: registered new interface driver ums-sddr09
[    1.753485] usbcore: registered new interface driver ums-sddr55
[    1.753536] usbcore: registered new interface driver ums-usbat
[    1.842801] vdd_usb: supplied by vin
[    1.875900] usbcore: registered new interface driver usbhid
[    1.875914] usbhid: USB HID core driver
[    1.941888] phy phy-5a006000.usbphyc.0: supply vdda1v1 not found, using dummy regulator
[    1.942177] phy phy-5a006000.usbphyc.0: supply vdda1v8 not found, using dummy regulator
[    1.942626] phy phy-5a006000.usbphyc.1: supply vdda1v1 not found, using dummy regulator
[    1.942898] phy phy-5a006000.usbphyc.1: supply vdda1v8 not found, using dummy regulator
[    1.943004] stm32-usbphyc 5a006000.usbphyc: registered rev:1.0
[    1.945727] usb33: supplied by vdd_usb
[    1.982352] ehci-platform 5800d000.usb: EHCI Host Controller
[    1.982417] ehci-platform 5800d000.usb: new USB bus registered, assigned bus number 1
[    1.984352] ehci-platform 5800d000.usb: irq 60, io mem 0x5800d000
[    1.999452] ehci-platform 5800d000.usb: USB 2.0 started, EHCI 1.00
[    2.000003] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    2.000019] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.000030] usb usb1: Product: EHCI Host Controller
[    2.000041] usb usb1: Manufacturer: Linux 5.10.59-armv7-lpae-x50 ehci_hcd
[    2.000052] usb usb1: SerialNumber: 5800d000.usb
[    2.255563] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    2.412098] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[    2.412123] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   60.493217] dwc2 49000000.usb-otg: supply vusb_d not found, using dummy regulator
[   60.493652] dwc2 49000000.usb-otg: supply vusb_a not found, using dummy regulator
[   60.529984] dwc2 49000000.usb-otg: dwc2_core_reset: HANG! Soft Reset timeout GRSTCTL_CSFTRST
[   60.540109] dwc2: probe of 49000000.usb-otg failed with error -16
[  192.402670] ehci-platform 5800d000.usb: port 1 resume error -110
[  192.426707] ehci-platform 5800d000.usb: port 1 resume error -110
[  192.482693] ehci-platform 5800d000.usb: port 1 resume error -110
[  192.508389] usb 1-1: USB disconnect, device number 2
[  192.521173] usb usb1-port1: cannot reset (err = -32)
[  192.524905] usb usb1-port1: cannot reset (err = -32)
[  192.531721] usb usb1-port1: cannot reset (err = -32)
[  192.536706] usb usb1-port1: cannot reset (err = -32)
[  192.540947] usb usb1-port1: cannot reset (err = -32)
[  192.546668] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  192.553410] usb usb1-port1: cannot reset (err = -32)
[  192.557609] usb usb1-port1: cannot reset (err = -32)
[  192.562526] usb usb1-port1: cannot reset (err = -32)
[  192.567500] usb usb1-port1: cannot reset (err = -32)
[  192.572714] usb usb1-port1: cannot reset (err = -32)
[  192.577431] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  192.584016] usb usb1-port1: attempt power cycle
[  193.625497] ehci-platform 5800d000.usb: port 1 reset error -110
[  194.465553] ehci-platform 5800d000.usb: port 1 reset error -110
[  195.305564] ehci-platform 5800d000.usb: port 1 reset error -110
[  196.145573] ehci-platform 5800d000.usb: port 1 reset error -110
[  196.776464] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  196.849666] ehci-platform 5800d000.usb: port 1 reset error -110
[  197.757617] ehci-platform 5800d000.usb: port 1 reset error -110
[  198.597660] ehci-platform 5800d000.usb: port 1 reset error -110
[  199.437693] ehci-platform 5800d000.usb: port 1 reset error -110
[  200.277704] ehci-platform 5800d000.usb: port 1 reset error -110
[  200.908597] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  200.913816] usb usb1-port1: unable to enumerate USB device

What Kernel version (uname -r)

Regards,