enble boot after power loss/restore
#8
Good to see that I'm not alone in having a Rockpro64 board that does not behave properly. Here's a writeup of where I am in my investigation work. Patience is running low Smile

Reading about ARM trusted firmware, a part of it appears to be related to power management ARM Power State Coordination Interface - Platform Design Document.

While you could build a u-boot for the device, pre-build binaries seems to be available here: Arm Trusted Firmware (TF-A) for rk3399, as well as from Sigmaris.

I'm running OpenWrt (22.x), and it uses arm-trusted-firmware-rockchip version 2.3, whereas the latest version is 2.6. When I've tried running something different than OpenWrt, the LAN port didn't work reliably (i.e. using Armbian).

I've added a PCIE Intel I350-T4 NIC to my Rockpro64. And bought a RTC battery (RTC BACKUP BATTERY HOLDER - CR-2032), because I read someone had success enabling automatic resume from power failure using it. But it didn't work. Raised a support ticket to pin64, which is still in progress.

In the Manjaro release, they make use of atf 2.6, and a patch that would enable suspend/resume (not sure it has any impact on this issue though).

Here's instructions to patch u-boot from OpenWrt (not specific to rockpro64). However, these instructions from Manjaro to patch u-boot I guess could be adopted to patch u-boot in OpenWrt.

And here's info from Manjaro community how the RockPro64 has a built in BOOTROM, which checks for valid boot sectors on different devices.

Rockpro64 uses rk808 for managing RTC, you could instruct it to create a wake-alarm every 30 second, that (I assume) would try to wake the device in case it gets into a shutdown state due to a power failure. I haven't tried, but perhaps if there is no power at the time of a wake-alarm, then the device may not boot, and perhaps there's no functionality to retry missed alarms. To be tried though.
Read more about how RTC wake-alarms works at firefly wiki.

EDIT: Also wanted to add a link to Automatically run after power recovery - but it is way too advanced for me.
  Reply


Messages In This Thread
enble boot after power loss/restore - by dkebler - 02-23-2022, 03:41 PM
RE: enble boot after power loss/restore - by ok38 - 04-16-2022, 05:44 PM
RE: enble boot after power loss/restore - by ok38 - 04-18-2022, 03:58 AM
RE: enble boot after power loss/restore - by gechu - 06-18-2022, 12:19 PM
RE: enble boot after power loss/restore - by ok38 - 12-04-2023, 12:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  power button not working Vista8720 0 590 05-07-2024, 11:26 PM
Last Post: Vista8720
  Mainline U-Boot with SPI, NVMe and SATA boot support sigmaris 108 138,787 09-25-2023, 12:46 AM
Last Post: ChriChri
Bug Broken boot: What am I missing? mkosarek 1 1,032 09-08-2023, 08:14 AM
Last Post: wdt
  Unable to boot Armbian on new RockPro64 mooseball 5 5,258 07-14-2023, 08:59 AM
Last Post: rockjonn
  no boot white led flashing moserwi 7 5,589 05-18-2023, 10:46 AM
Last Post: wdt
  PCIE interface power on too late Slark Xiao 0 1,272 11-29-2022, 11:56 PM
Last Post: Slark Xiao
  Automatic power on after power outage gechu 1 3,172 11-17-2022, 06:13 PM
Last Post: acj_
  u-boot locked on pine64pro ljones 1 1,894 09-06-2022, 10:32 AM
Last Post: ljones
  Cannot get my board to boot deutschlmao 11 10,111 09-05-2022, 04:23 PM
Last Post: ljones
  After Power Loss feature working bdherouville 2 2,824 08-22-2022, 03:52 AM
Last Post: bdherouville

Forum Jump:


Users browsing this thread: 1 Guest(s)