树莓派系统烧录及简单配置

本文介绍树莓派使用所需的材料及具体步骤,包括烧录官方系统,需下载镜像、格式化SD卡并烧录;开启ssh远程登陆功能,在TF卡boot下新建ssh文件;配置无线网连接功能,在boot下新建特定文本文档;还涉及外接显示屏配置文件的启用。

需要的材料

	硬件:树莓派3B+、TF卡读卡器、Windows系统的电脑
	软件:win32diskimager

具体步骤

烧录树莓派官方系统

  1. 下载树莓派官方镜像,推荐第二个Raspbian Stretch with desktop 镜像,
    官方镜像下载地址https://www.raspberrypi.org/downloads/raspbian/,
    树莓派系统下载页面
  2. 格式化SD卡。(Windows自带即可,记住只格式化一次)
    a. 打开磁盘管理,Win键+X,选择磁盘管理
    b. 将SD卡删除所有卷
    c. 格式还SD卡
  3. 将下载好的官方镜像通过win32diskimager软件烧录至TF卡中
    a. 选择设备,你的SD卡
    b. 选择刚才下载的树莓派官方镜像(格式.img)
    c. 写入
    d. 写入成功后注意不要再次格式化了! 注意不要再次格式化了! 注意不要再次格式化了
    在这里插入图片描述

树莓派的ssh远程登陆功能

  1. 树莓派系统烧录完成后 在TF卡中的boot下新建ssh文件,打开ssh功能。
    a. 在boot 盘下新建文本文档
    b. 将文本文档重命名为ssh保存(保存时 会提示更改文件扩展名,会导致文件不可用。 我们选择 进行更改)

树莓派的无线网连接功能

  1. 在boot下新建一个文本文档,将下面内容复制到文本文档中
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="Wi-Fi名称"
    psk="Wi-Fi密码"
    priority=1
}
  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
前面的注释符#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值