Jump to content

Recovery: (too) short delay between UMS and Maskrom modes


Recommended Posts

Posted

Hi!,

 

I am playing around with customizing my boot script (to install later my custom distro), and I am fighting with the Recovery.

I took a long time to understand I have to press the recovery button during a "long time", then release it very quickly to get the UMS mode and not falling into the Maskrom mode.

 

Indeed, when U-Boot detects the recovery button keypress, it proposes UMS, then very shortly after the Maskrom mode.

 

Is it possible to configure U-Boot to wait longer on the UMS mode,  let's say 5 seconds, and after that delay switch to Maskrom mode as latest failover?

 

For info: I have Armbian running on EMMC, and I play within the /boot folder, then roll-back my trials in Recovery/UMS mode.

 

Kind regards,

Xavier Miller.

Posted

As we have mentioned on the wiki, you can watch the System LED as visual cue. When it blink once, release the button.

There are roughly 2 second delay to release the button.

https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-rockchip64-mainline/general-support-recovery-button.patch#L131-L137

 

Another visual cue you can check is through serial console.

U-Boot 2020.07-armbian (Nov 23 2020 - 16:22:15 +0100)

SoC: Rockchip rk3399
Reset cause: POR
DRAM:  3.9 GiB
PMIC:  RK808
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
MMC:   mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Helios64
Revision: 1.2 - 4GB non ECC
using mmc0 device for download mode
rockchip_dnl_mode = ums mode

as soon as you see rockchip_dnl_mode = ums mode, release the button.

Posted

yeah, but the feeling is less than 2 seconds. Can it because the flashing starts after the message (no lit, then lit)?

 

Meanwhile, I have my custom kernel and OS (Gentoo Linux), they run fine :-)

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines