需要的材料
硬件:树莓派3B+、TF卡读卡器、Windows系统的电脑
软件:win32diskimager
具体步骤
烧录树莓派官方系统
- 下载树莓派官方镜像,推荐第二个
Raspbian Stretch with desktop
镜像,
官方镜像下载地址https://www.raspberrypi.org/downloads/raspbian/,
- 格式化SD卡。(Windows自带即可,记住只格式化一次)
a. 打开磁盘管理,Win键+X,选择磁盘管理
b. 将SD卡删除所有卷
c. 格式还SD卡 - 将下载好的官方镜像通过
win32diskimager
软件烧录至TF卡中
a. 选择设备,你的SD卡
b. 选择刚才下载的树莓派官方镜像(格式.img)
c. 写入
d. 写入成功后注意不要再次格式化了! 注意不要再次格式化了! 注意不要再次格式化了
树莓派的ssh远程登陆功能
- 树莓派系统烧录完成后 在TF卡中的boot下新建
ssh
文件,打开ssh功能。
a. 在boot 盘下新建文本文档
b. 将文本文档重命名为ssh保存(保存时 会提示更改文件扩展名,会导致文件不可用。 我们选择 是 进行更改)
树莓派的无线网连接功能
- 在boot下新建一个文本文档,将下面内容复制到文本文档中
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Wi-Fi名称"
psk="Wi-Fi密码"
priority=1
}
- 修改文本文档名称,重命名为
wpa_supplicant.conf
文件,保存。
外接显示屏配置文件
在boot目录下找到config.txt文件,里面有许多项都被注释了,我们需要启用一部分,如下图代码所示
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=2
#hdmi_mode=58
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
主要是取消
hdmi_force_hotplug=1
config_hdmi_boost=4
前面的注释符#