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

Rock5/guide/sata

< Rock5‎ | guide
    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.