Bananian Linux - Bananian Linux
View Issue Details
0000098Bananian Linux[All Projects] Hardwarepublic2015-01-17 22:212015-03-07 07:45
Geldaril 
Nico 
normalmajoralways
resolvedfixed 
 
15.01 
15.0415.04 
0000098: BPi-R1: Power on SATA not sufficient for HDD
Some people (including me) tried to use a normal HDD on the BPi-R1 and failed. After some testing and discussion we found out: The "on board mounted" SATA connecter (BPi-R1) does not provide enough power.

At first this sounds like a hardware bug, but what some guy found out (detail at http://bananapi.com/index.php/forum/general/391-why-the-sata-disk-doesnt-work-on-bpi-r1?start=6#1262 [^]):

The power supply for the onboard SATA connector is controlled over one pin of the A20. And this pin is set to "input-mode" after booting bananian.

The script.bin (or better script.fex) contains some parameters for SATA-configuration and there is indeed an option "sata_power_en" which might control the power supply for the SATA-port.

In the normal bananian "script.bin/fex" this option is empty. The sunxi-wiki (see http://linux-sunxi.org/Fex_Guide#.5Bsata_para.5D [^]) sets this option to sata_power_en = port:PB08<1><default><default><0>, but this does not work on BPi-R1.

This problem might affect other distros too.

So two questions:
1) Do you (anybody) know to what value is options has to be set?
2) Can this be integrated into the default bananian image?
* Connect HDD (not SSD) to the BPi-R1
* Turn on (and boot bananian)
No tags attached.
has duplicate 0000102resolved Nico Enable SATA power on BPi-R1 
Issue History
2015-01-17 22:21GeldarilNew Issue
2015-01-17 22:26NicoAssigned To => Nico
2015-01-17 22:26NicoStatusnew => assigned
2015-01-17 22:27NicoNote Added: 0000152
2015-01-20 19:36GeldarilNote Added: 0000153
2015-01-21 07:59NicoTarget Version => 15.04
2015-01-21 08:00NicoRelationship addedhas duplicate 0000102
2015-03-05 14:02NicoNote Added: 0000166
2015-03-05 14:02NicoStatusassigned => resolved
2015-03-05 14:02NicoResolutionopen => fixed
2015-03-07 07:45NicoFixed in Version => 15.04

Notes
(0000152)
Nico   
2015-01-17 22:27   
Very interesting!

If course this will be integrated into Bananian if someone figures out what the correct settings are.
(0000153)
Geldaril   
2015-01-20 19:36   
Thanks a lot to the guys in the bananapi.com-forum! They found the right solution.

In the script.fex-file just change
[sata_para]
sata_used = 1
sata_power_en =

to
[sata_para]
sata_used = 1
sata_power_en = port:PB03<1><default><default><0>

and SATA-power works as expected.

Little howto for those who want to try right now can be found in the forum:
http://bananapi.com/index.php/forum/general/391-why-the-sata-disk-doesnt-work-on-bpi-r1?start=12#1317 [^]

Please comment if anybody still has problems after this change.

I don't know if this is also important for other banana pi boards?
(0000166)
Nico   
2015-03-05 14:02   
https://github.com/Bananian/fex/commit/4f500abd617fb1ecb35e0ff92d9f45f09d289091 [^]