raspberrypi.org > configuration
Configuration
Some basic guides to configuring your Raspberry Pi.
Contents
The Raspberry Pi configuration tool in Raspberry Pi OS, which allows you to easily enable features such as the camera, and to change your specific settings such as keyboard layout
The Raspberry Pi configuration file
Configuring the TCP/IP network stack on the Raspberry Pi
Configuring your Pi to connect to a wireless network using the Raspberry Pi 4, Raspberry Pi 3 or Pi Zero W’s inbuilt wireless connectivity, or a USB wireless dongle
Configuring your Pi as a wireless access point using the Raspberry Pi 4, Raspberry Pi 3, or Raspberry Pi Zero W’s inbuilt wireless connectivity, or a USB wireless dongle
Setting up your Pi to access the internet via a proxy server
Setting up your HDMI device, including custom settings
Setting up your display device’s resolution, frequency and orientation using the provided graphical editor
Switching your audio output between HDMI and the 3.5mm jack
Installing and setting up the Raspberry Pi camera board
Mounting and setting up external storage on a Raspberry Pi
Setting up your Pi to work in your local language and time zone
Changing the default pin states.
Device Trees, overlays, and parameters
Setting options in the kernel command line
Setting up the on-board UARTs
Description of warning icons displayed if the firmware detects issues
Description of LED warning flashes that are shown if a Pi fails to boot or has to shut down
Some basic advice for making your Raspberry Pi more secure
Configuring the screen saver and screen blanking
What it’s for and what’s in it
How to set up a NFS and connect clients to it
This file is for passing arguments to the Linux kernel and it can be found in /boot/
dwc_otg.speed=1
USB v1 speed
smsc95xx.turbo_mode=N
if the raspberrypi freezes after filling the log withe kevent dropped.
smsc95xx.macaddr=B8:27:EB:59:EB:25
it will override the default mac adress with the specified one.
ip=192.168.0.10
static ip (as seen here)
netsh wlan show profile name="SSID" key=clear
netsh wlan show networks mode=bssid
netsh wlan delete profile name="ko"
pi@raspberrypi:/boot $ cat cmdline.txt
ip=192.168.124.10 dwc_otg.fiq_fix_enable=2 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait rootflags=noload net.ifnames=0
命令行选项
console=serial0,115200
console=tty1
pi@raspberrypi:/boot $ cat 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
pi@raspberrypi:/boot $ cat issue.txt
内核文件
引导文件夹将包含用于不同树莓派型号的各种内核映像文件:
|文档名称 |处理器 |Raspberry Pi模型 |笔记|
| – | – | – | – |
|kernel.img |BCM2835 |Pi zero,Pi 1 | |
|kernel7.img |BCM2836,BCM2837 |Pi 2,Pi 3 |后来的Pi 2使用BCM2837|
|kernel7l.img |BCM2711 |Pi 4 |大型物理地址扩展(LPAE)|
|kernel8.img |BCM2837,BCM2711 |Pi 2,Pi 3,Pi 4 |Beta 64位内核1。带有BCM2836的早期Pi 2不支持64位。|
注:lscpu该架构报告是armv7l,表示用于32位系统(即除了kernel8.img一切),以及aarch64用于64位系统。所述的armv7l情况下指的是被架构小端,而不是LPAE如由所指示l的kernel7l.img文件名。