Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rock5/guide/sata"

< Rock5‎ | guide
(Created page with "{{rock5_header}} {{Languages|rock5/guide/sata}} ROCK 5 > Guide > How to use M.2 E-key to SATA breakout board ROCK 5B...")
 
 
Line 4: Line 4:
  
 
ROCK 5B has a M.2 E Key with PCIe 2.1 1-lanes, SATA, SDIO, UART support.
 
ROCK 5B has a M.2 E Key with PCIe 2.1 1-lanes, SATA, SDIO, UART support.
 +
 
It can use a breakout board to make M.2 E-key to SATA.
 
It can use a breakout board to make M.2 E-key to SATA.
  
Line 10: Line 11:
 
* ROCK 5B
 
* ROCK 5B
 
* M.2 E-key to SATA breakout board
 
* M.2 E-key to SATA breakout board
 +
* SATA Cable
 +
 +
[[File:E-key-to-sata.jpg | 300 px]]
 +
[[File:Sata_cable.png | 300 px]]
 +
 +
=== Hardware connection ===
 +
 +
About SATA power cable, yellow is 12V, red is 5V, and black is GND.
 +
 +
If you use SSD, only 5V power from 40 pin are required as follow.
 +
 +
[[File:SSD-connection.jpg | 300 px]]
 +
 +
If you use HDD, 5V and 12V power supply are required as follow. 
 +
 +
Here I supply 12V via digital power supply, 5V is still supplied from 40 pin.
 +
 +
[[File:HDD-connection.jpg | 300 px]]
 +
 +
=== Software configuration ===
 +
 +
Add one line to file /boot/config.txt. Like  this.
 +
 +
dtoverlay=rock-5b-sata
 +
 +
And then execute command.
 +
 +
update_extlinux.sh
 +
 +
Reboot the device, you would see your devices with command '''lsblk'''.
 +
 +
rock@rock-5b:~$ lsblk
 +
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
 +
sda            8:48  0 149.1G  0 disk
 +
mmcblk1      179:0    0  14.6G  0 disk
 +
├─mmcblk1p1  179:1    0  512M  0 part
 +
└─mmcblk1p2  179:2    0  14.1G  0 part /
 +
mmcblk1boot0 179:32  0    4M  1 disk
 +
mmcblk1boot1 179:64  0    4M  1 disk
 +
 +
You can test read and write speed with command '''dd''' or '''fio''', but only if you '''protect your data.'''

Latest revision as of 02:52, 20 September 2022

    ROCK 5 >  Guide >  How to use M.2 E-key to SATA breakout board

ROCK 5B has a M.2 E Key with PCIe 2.1 1-lanes, SATA, SDIO, UART support.

It can use a breakout board to make M.2 E-key to SATA.

Requirement

  • ROCK 5B
  • M.2 E-key to SATA breakout board
  • SATA Cable

E-key-to-sata.jpg Sata cable.png

Hardware connection

About SATA power cable, yellow is 12V, red is 5V, and black is GND.

If you use SSD, only 5V power from 40 pin are required as follow.

SSD-connection.jpg

If you use HDD, 5V and 12V power supply are required as follow.

Here I supply 12V via digital power supply, 5V is still supplied from 40 pin.

HDD-connection.jpg

Software configuration

Add one line to file /boot/config.txt. Like this.

dtoverlay=rock-5b-sata

And then execute command.

update_extlinux.sh

Reboot the device, you would see your devices with command lsblk.

rock@rock-5b:~$ lsblk 
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda            8:48   0 149.1G  0 disk 
mmcblk1      179:0    0  14.6G  0 disk 
├─mmcblk1p1  179:1    0   512M  0 part 
└─mmcblk1p2  179:2    0  14.1G  0 part /
mmcblk1boot0 179:32   0     4M  1 disk 
mmcblk1boot1 179:64   0     4M  1 disk

You can test read and write speed with command dd or fio, but only if you protect your data.