RP64 Won't Boot After Power Down
#1
Hi all,

I've been seeing this issue ever since I got my RP64, where the board sometimes just decides not to boot anymore after being powered down. I've always gotten it to recover eventually, but I really don't know how. The only consistent factors seem to be replugging the SD card and time. Maybe someone can help me out? I promise if I get this working, I'll post my project on here, with scripts and schematics Wink

Symptoms:
- No red or white LED
- Green power LED is on, amber ethernet LED is blinking at a constant rate
- UART output only shows 


Quote:DDR Version 1.19 20190305
In

- Root and boot partitions on the SD card are OK, I can still mount them on a PC

What I've tried:
- 3 different SD cards: sometimes one of them works, but none seems to be more more reliable than the others
- Boot from USB disk: USB boot hasn't worked yet from this state
- Reflash the SD card image: sometimes this works, usually it doesn't
- Reflash u-boot: the u-boot flashing image has the same boot problem as the OS image. if it does run, then the RP64 boots normally again.
- Jumper the boot pins: no effect
- Jumper pins 23 and 25: no effect


My setup:
- Ayufan's OpenMediaVault image, running from an SD card
- U-boot. Only for troubleshooting this issue; I wanted to try booting from USB
- Powered from an ITX PSU. After the RP64 is shut down, PSU power is also killed
  Reply
#2
(04-25-2021, 04:56 PM)ColPanic_ Wrote: Hi all,

I've been seeing this issue ever since I got my RP64, where the board sometimes just decides not to boot anymore after being powered down. I've always gotten it to recover eventually, but I really don't know how. The only consistent factors seem to be replugging the SD card and time. Maybe someone can help me out? I promise if I get this working, I'll post my project on here, with scripts and schematics Wink

Symptoms:
- No red or white LED
- Green power LED is on, amber ethernet LED is blinking at a constant rate
- UART output only shows 


Quote:DDR Version 1.19 20190305
In

- Root and boot partitions on the SD card are OK, I can still mount them on a PC

What I've tried:
- 3 different SD cards: sometimes one of them works, but none seems to be more more reliable than the others
- Boot from USB disk: USB boot hasn't worked yet from this state
- Reflash the SD card image: sometimes this works, usually it doesn't
- Reflash u-boot: the u-boot flashing image has the same boot problem as the OS image. if it does run, then the RP64 boots normally again.
- Jumper the boot pins: no effect
- Jumper pins 23 and 25: no effect


My setup:
- Ayufan's OpenMediaVault image, running from an SD card
- U-boot. Only for troubleshooting this issue; I wanted to try booting from USB
- Powered from an ITX PSU. After the RP64 is shut down, PSU power is also killed
Hi,

   Perhaps you have an issue with the sd card reader or the sd does not plug properly.
   You may try to
       - erase the SPI flash
       - boot another kernel (for example Armbian).

   May be it worth trying an emmc instead (the performance is really better than sd) or make the boot from USB work.
   When it boots you may also check dmesg from time to time if errors appear.

Looking forward to see your project.

LMM

One more thing I've just remember : I don't know why but sometimes I have to push the two button (power + reset) for launching the boot. If it still does not work I touch all the GPIO pins (when it is power off of course) and then power on.
  Reply
#3
Thanks LMM!

I think I've actually found the solution to my latest boot problem: if I have UART2 TX connected when I bring up the external power supply, the RP64 consistently fails to boot. Otherwise, it's booting up just fine. The wiki only mentioned UART2 RX should be disconnected during boot, so this was unexpected.
This should be easy to work around, I can probably just tri-state that pin on my microcontroller for a few seconds during power up and be OK.

This wasn't the first time I had problems booting from SD, though it was the first time I had the UART connected. I think I'll order an EMMC module just to be safe.

I'll post my project as soon as I know everything's working as it should!

ColPanic_
  Reply
#4
Ha!
I just had the same issue again, without the UART connected. What do you know, holding power + reset did the trick!
  Reply
#5
An interresting thread about the 4-pin power/reset button and uart here : https://forum.pine64.org/showthread.php?pid=77022. Using this header is interesting because it properly powers off / on / reset the card.
  Reply
#6
We found that the most reliable way to get the board back up is to press power for 2 secs, and then press reset for 2 secs... has worked all the time for us

https://github.com/belveder79/rock64reset
  Reply
#7
Thumbs Up 
(04-29-2021, 03:33 AM)belveder79 Wrote: We found that the most reliable way to get the board back up is to press power for 2 secs, and then press reset for 2 secs... has worked all the time for us

https://github.com/belveder79/rock64reset
 [Image: thumbsup.png]
This is a nice project !
  Reply
#8
Thanks everyone for you help!
@belveder79 , I just might have to incorporate your reset trick into my system eventually. I'll probably break out the soldering iron the next time it doesn't boot and I have to take everything apart again.
  Reply
#9
@belveder79, thanks for sharing your work
I've read it, still not sure what I need though.

I use this board with an Intel i350 nic + openwrt, and need to make the setup more reciliant to power outages. As described here https://forum.pine64.org/showthread.php?tid=14779

What hardware do I need to setup the watchdog? And was all the software (scripts etc) available at the github page? Read something about some ".. not open source the hardware files" in the end of the github page - but I don't understand what it means? Is this something I need to get the watchdog working?

Thanks, Erik
  Reply
#10
I'm using a 555 timer pulling down power button for 1 sec every about 3 secs, seems to work for now, 555 is disabled when 3v3 comes up
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  No audio on HDMI after u-boot upgrade xlx 2 1,799 11-28-2023, 01:03 PM
Last Post: wdt
  ROCKPro64 Battery Power Supply hoarfrosty 11 1,628 09-23-2023, 04:17 PM
Last Post: hoarfrosty
  NAS Setup: Hdds PSU external power option Robotik 1 1,662 07-18-2022, 10:10 PM
Last Post: zer0sig
  NAS case HDD power cable failure (buck failure) ashleymills 1 1,824 04-01-2022, 11:25 AM
Last Post: ashleymills
  Power In Via DC Out actionhank 0 1,256 01-28-2022, 09:45 AM
Last Post: actionhank
  RockPro64 doesn't boot when PCIe to M.2 adapter is installed Cerberus 3 3,378 11-27-2021, 11:38 PM
Last Post: Cerberus
  RP64 TV box case with wifi Wizzard 2 3,199 03-10-2021, 12:23 AM
Last Post: Wizzard
  Carte PCIe bloquant le démarrage du Noyau / PCIe card blocking Kernel boot dml-pc 4 4,837 02-17-2021, 11:35 AM
Last Post: dml-pc
  How to add an external power button? foresto 6 8,912 02-05-2021, 10:38 PM
Last Post: foresto
  Won't boot with SATA card rjzak 4 5,629 01-09-2021, 05:56 PM
Last Post: kuleszdl

Forum Jump:


Users browsing this thread: 1 Guest(s)