Jump to content

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


alchemist

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines