Page 1 of 1

halt VoCore

Posted: Sat Nov 29, 2014 8:01 am
by sistemasorp
When I want to power off VoCore I can type halt or poweroff, however the system performs a reboot, not a halt. So, what can I do to power off the VoCore from usb power plug without losing data (i.e while a script is writing data to disk).

Re: halt VoCore

Posted: Mon Dec 01, 2014 2:56 pm
by Vonger
For now there is no such function. This chip do not have halt register but only a reboot register.

Re: halt VoCore

Posted: Mon Dec 01, 2014 7:07 pm
by sistemasorp
It seems to be a long uptime chip :)

Re: halt VoCore

Posted: Mon Dec 01, 2014 8:26 pm
by Peter H
Is there anything actually writing to persistent storage? With the standard VoCore image I suspect you'll find there isn't. If you have added anything that does, I suppose you could stop that and then call sync to flush the caches; at that point it should be safe to power it off.

Re: halt VoCore

Posted: Tue Dec 02, 2014 9:37 pm
by sistemasorp
for example, if I write to a file in root directory, it is persistent during power on/off cycles.

Well, you're right. If I know when a powerdown will be performed (i.e detecting a low battery issue) I can stop cleanly the program which is writing to disk.