I actually already have a working solution that I documented in my
github repo (dubschro/odroid-n2).  All I do is set BOOTCOMMAND to
check/delete a flag file on my boot partition and if it is found, then
reset usb and sleep for 10 seconds.  I then have a systemd shutdown
script only on reboot to touch that file.

CONFIG_BOOTCOMMAND="fatrm mmc 0:1 reboot && echo Resetting USB on
reboot... && usb reset && sleep 10; run distro_bootcmd"

It is a hack, but... the system reliably reboots remotely now, and
that's the important part for now.

Wayne

On Thu, May 8, 2025 at 11:22 AM Ferass El Hafidi
<fundersc...@postmarketos.org> wrote:
>
> On Wed May 7, 2025 at 1:03 PM UTC, Wayne Schroeder wrote:
> > It's hard for me to quantify if usb works in u-boot as I'm not loading
> > off of any usb storage devices.  It certainly never lets me use the
> > keyboard to abort auto boot, and never has.  On reboot, to reliably
>
> You can send bytes via UART to abort boot, if you happen to have a UART
> adapter around.

Reply via email to