Re: Odroid n2+ usb broken on reboot
[email protected] Mon, 5 May 2025 09:07:28 +0200
| Newsgroups | io.groups.u-boot-amlogic,org.infradead.lists.linux-amlogic,org.u-boot-project.lists.u-boot |
|---|---|
| Organization | Linaro |
| Message-ID | <[email protected]> |
Hi, +CC [email protected] +CC [email protected] On 05/05/2025 00:34, Wayne Schroeder wrote: > Hello. I am not sure if this is a bug, or even related to u-boot, but I am > reporting it here because it was easiest to resolve via a u-boot change. > > I am using u-boot-2025.04 (source) with a mainline linux from Arch Linux > Arm. > Linux alarm 6.14.4-1-aarch64-ARCH #1 SMP PREEMPT_DYNAMIC Sat Apr 26 > 13:02:01 MDT 2025 aarch64 GNU/Linux > > On my odroid-n2+, the USB ports work on the first boot after power. If I > run shutdown -r now, or hit ctl-alt-del and otherwise reboot the system, > the usb ports do not function at the next or subsequent boot up. I think it's a very long term issue, USB lacks a proper reset at probe on warm reset, does USB still work from U-Boot after the reboot ? > > My apologies if this is not applicable to u-boot because it is a linux > issue--I am not sure what the source of the issue is, but adjusting the > u-boot .config after make odroid-n2_defconfig resolved the issue entirely. > > I am booting via extlinux/extlinux.conf and have adjusted my > CONFIG_BOOTCOMMAND before build to execute a usb reset prior to the > existing run distro_bootcmd. > > CONFIG_BOOTCOMMAND="usb reset; run distro_bootcmd" I'm pretty sure there's driver callbacks we should implement to do the same here, I need to check. > > This has allowed me to reboot the system and successfully have access to > the USB devices such as my keyboard, mouse, and root file system on USB3 > SSD. > > Thanks! > > Wayne