Jump to content

Recommended Posts

Posted

To continue discussion from Helios64 Support

 

  On 11/9/2020 at 4:39 PM, ebin-dev said:

 

@aprayoga I am still interested in controlling the power of rail A and B. You mentioned that the power is controlled by the bootloader, but that the delay would be user configurable sometime.

 

I would like to almost always power off rail A: In my use case rail A contains two hard disks supposed to alternatively back up the content of the SSDs in rail B - i.e once a day or even only once a week. The remaining time it would be beneficial to power off the hard drives in order to eliminate start/stop cycles and to make those drives inaccessible (protection against malware).

 

Would there be a solution to make this user configurable - i.e by setting the delay to a very large number ? 

Expand  

Currently there is no plan to support to disable the power but it's interesting to know such use case.

If we implemented this feature, you would need to go u-boot prompt to enable and disable the power. would this acceptable for you?

 

Under Linux device tree, the power rail declared as regulator node with regulator-always-on property. This prevent kernel (and user) to turn off the regulator.

Unless we are able to create device node for the SATA port, to act as consumer of the regulator, we can't remove the regulator-always-on property.

Posted
  On 11/12/2020 at 4:06 AM, aprayoga said:

Currently there is no plan to support to disable the power but it's interesting to know such use case.

If we implemented this feature, you would need to go u-boot prompt to enable and disable the power. would this acceptable for you?

Expand  

 

Actually I just picked up a suggestion to completely power off rails A and/or B by @gprovost three months ago ( see here ).

 

It would be really appeciated if you implemented this feature. Once it is implemented I would try to seek a way to configure u-boot from linux such that the power to rails A and/or B is enabled/disabled upon the next reboot.

Posted

@ebin-dev I notice that the effects of the advertisement are let to the free interpretation of the clients, but it is always instructive. :D

 

The same configuration as you

I use 3 SSD for separate services (Sync, Cloud, Server) and two hard disks for archiving.

My two disks are both 10 years old and make a shitty noise but it's still spinning for the moment.
I put and remove the disk from unit to avoid the noise of the whole house, if I can let the disks in the unit and just run a special reboot for maintenance this is not a problem for me.

 

@aprayoga if you can create a parameter on the boot loader to choose the option like power rails I will be the happiest of your customers,

but if I can learn how to do it myself I will be the happiest user :)

Posted

 

I'm missing a universe of understanding

I lack knowledge

Please what am I missing?

Can i have pin 32 & 33 HW schematic?

 

  Reveal hidden contents

 

Posted (edited)

@allen--smithee

if you need to modify the bootloader, you can start from these lines

https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-rockchip64-mainline/add-board-helios64.patch#L1671-L1687

You can add parameter checking there. Maybe check certain U-Boot environment variable, maybe check for certain file in the filesystem.

You could also remove it completely and modify /boot/boot.scr instead, to enable/disable the HDD power.

 

Another thing to explore, you could remove the afromentioned u-boot function and also remove the power rail nodes from linux device tree

https://github.com/armbian/build/blob/master/patch/kernel/rockchip64-current/add-board-helios64.patch#L239-L259

and then when you need to enable it, just access the gpio from sysfs.

 

Edited by aprayoga
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines