Difference between revisions of "Mini Shield for NanoPi NEO Core/Core2"

From FriendlyELEC WiKi
Jump to: navigation, search
(硬件连接)
(软件使用)
Line 78: Line 78:
 
[[File:Mini Shield NanoPi NEO Core-Core2-3.jpg|frameless|450px|Mini Shield for NanoPi NEO Core/Core2_NanoPi NEO Core2]]
 
[[File:Mini Shield NanoPi NEO Core-Core2-3.jpg|frameless|450px|Mini Shield for NanoPi NEO Core/Core2_NanoPi NEO Core2]]
  
==软件使用==
+
==Application==
===1、M.2 2242接口使用===
+
===1. M.2 2242 SSD Interface===
插入M.2 2242接口SSD,启动系统后,可使用如下命令查看SSD:
+
Insert an SSD hard drive to the M.2 2242 interface. After system is booted you can check the SSD device by running the following command:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
fdisk -l
 
fdisk -l
 
</syntaxhighlight>
 
</syntaxhighlight>
运行效果如下:<br>
+
Here is what you expect to see:<br>
[[File:ssd.jpg|frameless|600px|查看SSD]]
+
[[File:ssd.jpg|frameless|600px| check SSD]]
===2、从SSD运行系统===
+
===2. Boot OS from SSD===
NanoPi NEO Core或Core2可以将系统运行在Mini Shield for NanoPi NEO Core/Core2的固态硬盘上,除了获得更大的存储空间外,还有如下优点:<br />
+
You can boot a NanoPi NEO Core or Core2 from an SSD hard driver inserted in a Mini Shield for NanoPi NEO Core/Core2. This way of booting an OS has the following advantages:<br />
1) 读写速度更快;<br />
+
1) faster read/write;<br />
2) 使用寿命比TF卡更长;<br />
+
2) an SSD has much longer life than a TF card;<br />
3) 更可靠;<br />
+
3) more reliable than booting from a TF card;<br />
 
<br />
 
<br />
安装系统到固态硬盘上的方法比较简单,无需事先对SSD做准备工作,使用 npi-config 工具即可,输入以下命令启动npi-config:<br />
+
You can install an OS to an SSD hard drive by using the npi-config utility. Here is a command to start the npi-config utility:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo npi-config
 
sudo npi-config
 
</syntaxhighlight>
 
</syntaxhighlight>
 
[[File:Boot Options.jpg|frameless|600px|Boot Options]]<br />
 
[[File:Boot Options.jpg|frameless|600px|Boot Options]]<br />
然后进入 Boot Options 菜单, 选择 Boot device,然后可以看到有两个选项可供选择:<br />
+
After the utility shows the "Boot Options" menu select "Boot device" and you will see the following two options:<br />
 
1) D1 Hard drive<br />
 
1) D1 Hard drive<br />
 
2) D2 TF card<br />
 
2) D2 TF card<br />
 
[[File:Choose_Boot device.jpg|frameless|600px|Choose Boot device]]<br />
 
[[File:Choose_Boot device.jpg|frameless|600px|Choose Boot device]]<br />
选择 D1 Hard drive,然后按提示进行操作即可。<br />
+
Select "D1 Hard drive" to boot from an SSD hard drive.<br />
以后要恢复回 TF 卡启动,可在上述菜单中选择 D2 TF card。<br /><br />
+
If you want to boot an OS from a TF card you need to select "D2 TF card".<br /><br />
如果你在 npi-config 中没有找到 Boot device 菜单,可能是因为你的 npi-config 版本太旧,利用菜单上的 Update 功能更新一下即可。 <br />
+
If your npi-config utility doesn't have "Boot device" on its menu you may need to update your npi-config utility by running the "Update" function on the menu.<br />
  
 
===3、音频输入与输出===
 
===3、音频输入与输出===

Revision as of 15:19, 7 December 2017

查看中文

1 Introduction

Mini Shield for NanoPi NEO Core/Core2 侧面
Mini Shield for NanoPi NEO Core/Core2 正面
Mini Shield for NanoPi NEO Core/Core2 底面
  • The Mini Shield for NanoPi NEO Core/Core2 is a custom SDK carrier board developed for the NanoPi NEO Core and NanoPi NEO Core2. It has Ethernet port, serial debug port, audio, USB port and etc.
  • 1 x Onboard JMS567 USB to SATA IC and 1 x M.2 SSD interface for connecting a 2242 SSD.
  • 2 x USB Host ports.
  • 1 x Serial debug port for connecting a serial communication board and 1 x Ethernet port.
  • 1 x Onboard Microphone and 1 x 3.5mm audio jack for audio recording and playing.
  • 2 x 13 Pin header which populate the NanoPi NEO Core/Core2's IO pins.
  • 1 x button and 1 x IR interface for working with a remote control
  • Room for an SPI Flash(SOP8-200mil) is reserved. Users can solder an SPI flash on the board.
  • It has the same dimension and mounting holes as those of a Raspberry Pi. The whole board can be well fit into a RPi's case

2 Hardware Spec

  • Same form factor as RPi, can be well fit into a RPi's case
  • 2 x USB Host
  • 1 x Serial debug port and 1 x Ethernet port
  • 1 x audio input and 1 x audio output
  • 2 x 13 Pin GPIO pin-header
  • 1 x Button
  • 1 x M.2 2242 SSD interface
  • 1 x IR receiver interface
  • PCB dimension(mm): 85 x 56

Mini Shield for NanoPi NEO Core/Core2_PCB

2.1 Layout

Mini Shield for NanoPi NEO Core/Core2 Layout

The Mini Shield for NanoPi NEO Core/Core2's layout of interface and connectors is shown on the right. On its back there are silkscreens of description for the connectors and pins.

When you mount a NanoPi NEO Core or NanoPi NEO Core2 to a Mini Shield be aware of the Core/Core2's mounting position. Each pin-header's first pin is marked as a triangle.

  • 2x13 Pin header Pin Description
Number# Name Number# Name
1 SYS_3.3V 2 VDD_5V
3 I2C0_SDA / GPIOA12 4 VDD_5V
5 I2C0_SCL / GPIOA11 6 GND
7 GPIOG11 8 UART1_TX / GPIOG6
9 GND 10 UART1_RX / GPIOG7
11 UART2_TX / GPIOA0 12 GPIOA6
13 UART2_RTS / GPIOA2 14 GND
15 UART2_CTS / GPIOA3 16 UART1_RTS / GPIOG8
17 SYS_3.3V 18 UART1_CTS / GPIOG9
19 SPI1_MOSI/GPIOA15 20 GND
21 SPI1_MISO/GPIOA16 22 UART2_RX / GPIOA1
23 SPI1_CLK/GPIOA14 24 SPI1_CS / GPIOA13
25 GND 26 SPDIF-OUT/GPIOA17

3 Hardware Setup

A NanoPi NEO Core or NanoPi NEO Core2 can be mounted on a Mini Shield for NanoPi NEO Core/Core2. Here is a hardware setup:
NanoPi NEO Core接Mini Shield for NanoPi NEO Core/Core2 NanoPi NEO Core2接Mini Shield for NanoPi NEO Core/Core2

It is convenient to connect a USB device and network to a Mini Shield for NanoPi NEO Core/Core2
NanoPi NEO Core/Core2

A Mini Shield for NanoPi NEO Core/Core2 can be well fit into a RPi's case:
Mini Shield for NanoPi NEO Core/Core2_NanoPi NEO Core Mini Shield for NanoPi NEO Core/Core2_NanoPi NEO Core2

4 Application

4.1 1. M.2 2242 SSD Interface

Insert an SSD hard drive to the M.2 2242 interface. After system is booted you can check the SSD device by running the following command:

fdisk -l

Here is what you expect to see:
check SSD

4.2 2. Boot OS from SSD

You can boot a NanoPi NEO Core or Core2 from an SSD hard driver inserted in a Mini Shield for NanoPi NEO Core/Core2. This way of booting an OS has the following advantages:
1) faster read/write;
2) an SSD has much longer life than a TF card;
3) more reliable than booting from a TF card;

You can install an OS to an SSD hard drive by using the npi-config utility. Here is a command to start the npi-config utility:

sudo npi-config

Boot Options
After the utility shows the "Boot Options" menu select "Boot device" and you will see the following two options:
1) D1 Hard drive
2) D2 TF card
Choose Boot device
Select "D1 Hard drive" to boot from an SSD hard drive.
If you want to boot an OS from a TF card you need to select "D2 TF card".

If your npi-config utility doesn't have "Boot device" on its menu you may need to update your npi-config utility by running the "Update" function on the menu.

4.3 3、音频输入与输出

1、可使用以下命令录音:

arecord -D hw:0,0 -f cd test.wav

运行效果如下:
录音
2、可使用以下命令播放音频文件,例如播放/root/Music/test.wav

 aplay /root/Music/test.wav

运行效果如下:
播放音乐

可以使用alsamixer工具调节播放音乐的音量

5 相关资料