Npi-config/zh

From FriendlyELEC WiKi
Revision as of 10:04, 9 April 2018 by Tzs (Talk | contribs) (updated by API)

Jump to: navigation, search

English

1 简介

npi-config是一个命令行下的系统配置工具,可以对系统进行一些初始化的配置,可配置的项目包括:用户密码、系统语言、时区、Hostname、SSH开关、自动登录选项、硬件接口(Serial/I2C/SPI/PWM/I2S)使能等,在SSH终端中以root账户执行以下命令即可进入:

$ npi-config

npi-config的显示界面如下:
npi-config

2 选择系统默认音频设备

Linux系统默认只从一个音频设备输出音频, 使用下列命令可以选择系统默认的音频设备:

$ npi-config
	6 Advanced Options     Configure advanced setting
		A1 Audio           Select system default audio device
			card0 [Dummy], device 0: Dummy PCM                                
                        card1 [Loopback], device 0: Loopback PCM                          
                        card2 [H3 Audio Codec], device 0: CDC PCM Codec-0 (X)             
                        card3 [allwinner,hdmi], device 0: 1c22800.i2s-i2s-hifi i2s-hifi-0

(X)表示对应的音频card设备是使能的, 不同型号的板子的card设备是不一样的, 请根据实际情况进行选择。

3 使能Mini Shield for NanoPi NEO Core/Core2的SPI Flash

$ npi-config
	6 Advanced Options     Configure advanced setting
		A5 SPI             Enable/Disable SPI
			spi0 Enable/Disable spi0[enabled]
				spi-flash   SPI0 flash(X)

NEO Core/Core2是通过SPI0连接Mini Shield上板载SPI flash的, (X)表示SPI flash是被使能的, , 设置完毕后需要重启系统。