Safest way to send shutdown signal to headless Rock64 SMB server?
#1
I'm in the midst of setting up one of the extremely cheap but amazing deals on the Iconikal RK3328 boards recently sold on Amazon for 13 bucks, and I'm setting mine up as a tiny SMB server to host ISOs from an external HD to my Playstation 2.  I've been going back and forth between the idea of using OMV or just setting up a manual SMB share, but no matter which option I choose I still need a way to safely power down the device when it's not in use.  I know these boards have reset and power buttons on them, but considering the only case I could find for my board was a $6 AmeriDroid case, the power and reset buttons are extremely recessed.  I know you can hold the power button to kill power to the board, but if I fashion some sort of power button that reaches the onboard switch if I just press it once will that send the halt signals to the board and start the shutdown process?  This is my first SBC with a dedicated power button and I'm not used to having one handy, and since my main OS is stored on eMMC the last thing I want to do is to have to reprogram the module every time something craps up after being improperly shutdown.  Thanks.
  Reply
#2
Also, if this doesn't work which two pins could I wire with a momentary switch to engage shutdown mode?  I already have the spare switch and I could drill a 1/8" hole, mount the switch to the case, and wire it to the GPIO pins to enable safe shutdown mode to prevent any data corruption or eMMC corruption/loss.  I have a long PDF file about the SBC but it doesn't mention anything of a graceful shutdown method except through scripts and software-initiated shutdowns.  This gives me to plug in power to boot the board and when I'm done just press the button to shut it all down sans-loss/corruption.
  Reply
#3
Well, I don't have one, and don't know anything about it but I think you answered your own question. You'll need to pick a GPIO pin that's capable of being an input, and isn't already being used. Preferably one that can generate an interrupt. Then you need to write some software, probably as little as a script, to issue "sudo shutdown now" or whatever is appropriate for your operating system whenever that input changes state.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Will Mobian Run On Rock64? Porcupine 1 129 01-13-2021, 12:39 PM
Last Post: tophneal
  Rock64 v2 as Openmediavault server - buffers / shutdown problems helpmerock 2 266 12-29-2020, 09:46 AM
Last Post: helpmerock
  Rock64 as a router (OpenWRT,etc) bob-anon 1 549 11-26-2020, 05:13 PM
Last Post: Rocklobster
  rock64, compile problems "illegal instruction", "memory fault" -> ddr_333Mhz? hunderteins 10 3,437 11-17-2020, 08:00 AM
Last Post: Johannes
  Rock64 enable 1-wire to read DS18B20 or Dallas temperature sensor Perry 0 441 11-09-2020, 07:38 PM
Last Post: Perry
  Libreelec Rock64 - 4GB no boot spiker15 3 651 11-02-2020, 12:36 AM
Last Post: wilsonYan
  noob with non booting rock64 4g john72carter 6 1,218 10-14-2020, 07:35 PM
Last Post: Rocklobster
  Python GPIO Library for the Rock64 (R64.GPIO) Leapo 34 28,530 10-13-2020, 02:35 PM
Last Post: hellonwood40
  Rock64 - boot helpmerock 2 712 10-08-2020, 01:29 PM
Last Post: helpmerock
Big Grin Rock64 as a retro-gaming console: early impressions Luke 54 45,788 10-07-2020, 11:21 AM
Last Post: jakejm79

Forum Jump:


Users browsing this thread: 1 Guest(s)