How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

这篇具有很好参考价值的文章主要介绍了How to boot the Raspberry Pi system from a USB Mass Storage Device All In One。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

如何从 USB 启动树莓派引导系统 / 如何从 USB 大容量存储设备启动 Raspberry Pi 系统

Raspberry Pi 4 Boot Flow

  1. First Stage Bootloader
  2. Second Stage Bootloader

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-boot-flow

# 查看
$ rpi-eeprom-config
[all]
BOOT_UART=0
WAKE_ON_GPIO=1
POWER_OFF_ON_HALT=0

[all]
BOOT_ORDER=0xf14
# 编辑
$ sudo -E rpi-eeprom-config --edit

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-bootloader-configuration

BOOT_ORDER

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

0xf14 Try USB first, followed by SD then repeat ✅

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#BOOT_ORDER

Conditional filters [all]

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

https://www.raspberrypi.com/documentation/computers/config_txt.html#conditional-filters

officail documents

USB Mass Storage Boot

This page explains how to boot your Raspberry Pi from a USB mass storage device such as a flash drive or a USB hard disk.
本页介绍如何从 USB 大容量存储设备(例如闪存驱动器USB 硬盘)启动 Raspberry Pi。

The bootloader in Raspberry Pi 400 and newer Raspberry Pi 4B boards support USB boot by default, although the BOOT_ORDER bootloader configuration may need to be modified.
Raspberry Pi 400 和较新的 Raspberry Pi 4B 板中的引导加载程序默认支持 USB 引导,但可能需要修改 BOOT_ORDER 引导加载程序配置。

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#usb-mass-storage-boot

https://github.com/raspberrypi/documentation/blob/develop/documentation/asciidoc/computers/raspberry-pi/boot-msd.adoc

EEPROM Configuration

$ rpi-eeprom-config
# OR
$ vcgencmd bootloader_config
[all]
BOOT_UART=0
WAKE_ON_GPIO=1
POWER_OFF_ON_HALT=0

[all]
BOOT_ORDER=0xf14

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

$ sudo rpi-eeprom-update

$ sudo rpi-eeprom-update -a
$ sudo reboot
BOOTLOADER: up to date
   CURRENT: Wed Jan 11 17:40:52 UTC 2023 (1673458852)
    LATEST: Wed Jan 11 17:40:52 UTC 2023 (1673458852)
   RELEASE: default (/lib/firmware/raspberrypi/bootloader/default)
            Use raspi-config to change the release.

  VL805_FW: Using bootloader EEPROM
     VL805: up to date
   CURRENT: 000138c0
    LATEST: 000138c0

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#updating-the-eeprom-configuration

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-bootloader-configuration

手动刷入系统镜像,并修改配置文件 🚀

简单方便,亲测有效,推荐方式 ✅

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

  1. 设置开机,自动开启 SSH

ssh

创建一个空的 ssh 文件, 文件没有扩展名,放到 U 盘根目录下

  1. 配置默认的 Wi-Fi 信息

wpa_supplicant.conf

# Wi-Fi 配置文件
$ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=CN

network={
  scan_ssid=1
  ssid="your Wi-Fi name ❓"
  psk="your Wi-Fi password ❓"
  proto=RSN
  key_mgmt=WPA-PSK
  pairwise=CCMP
  auth_alg=OPEN
}

  1. 配置 SSH 登录的用户名密码

userconf.txt

$ cat /boot/userconf.txt

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

pi
raspberry => 加密后 /4g6TptuTP5B6

pi:/4g6TptuTP5B6
  1. 配置 bootloader 的启动模式

config.txt

# 编辑
$ sudo vim /boot/config.txt
$ sudo code /boot/config.txt
# 查看
$ cat /boot/config.txt

otg_mode=1

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

  • SD Card
# 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 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=1
#hdmi_mode=1

# 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
# fix BCM bug ❓
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]

# mini URAT 暂时注释掉 https://www.cnblogs.com/xgqfrms/p/17365120.html#5173367
# dtoverlay=pi3-miniuart-bt
# force_turbo=1

program_usb_boot_mode=1
  • USB Disk
# 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 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=1
#hdmi_mode=1

# 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 infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]

solutions

changing the boot mode / 更改启动模式

warnings ⚠️⚠️⚠️ (太麻烦了,不推荐)

  • U 盘必须要使用 FAT32 格式,最大支持 32 GB
  • 树莓派需先要插入一个烧录了树莓派系统的 SD 卡,才能修改启动模式 💩
  • 树莓派需要有线网络连接,用于从网络下载镜像到 U 盘中 💩💩
  • 树莓派需要连接鼠标、键盘,用于U 盘启动后,从网络的安装镜像到 U 盘中 💩💩💩

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

  1. Raspberry Pi Imager (GUI 可视化操作)

Using Raspberry Pi Imager to update the bootloader

This is the recommended route to updating the bootloader.
这是更新引导加载程序的推荐途径。

steps:

  1. Download Raspberry Pi Imager

  2. Select a spare SD card. The contents will get overwritten!

  3. Launch Raspberry Pi Imager

  4. Select Misc utility images under Operating System

  5. Select Bootloader

  6. Select a boot-mode i.e. SD Card Boot (recommended), USB Boot or Network Boot.

  7. Select SD card and then Write

  8. Boot the Raspberry Pi with the new image and wait for at least 10 seconds.

  9. The green activity LED will blink with a steady pattern and the HDMI display will be green on success.

  10. Power off the Raspberry Pi and remove the SD card.

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

How to boot the Raspberry Pi system from a USB Mass Storage Device All In One

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#imager

  1. raspi-config (交互式命令行操作)
$ sudo raspi-config

$ sudo reboot
  1. Update Raspberry Pi OS to get the latest version of the rpi-eeprom package.

  2. Run sudo raspi-config

  3. Select Advanced Options

  4. Select Bootloader Version

  5. Select Default for factory default settings or Latest for the latest stable bootloader release.

  6. Reboot

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspi-config

other useful commands

$ pinout
# Pi Model 4B  V1.5

$ lsusb
# Bus 001 Device 003: ID 0951:1665 Kingston Technology Digital DataTraveler SE9

$ cat /etc/hosts
127.0.0.1	localhost
::1		localhost ip6-localhost ip6-loopback
ff02::1		ip6-allnodes
ff02::2		ip6-allrouters

127.0.1.1	raspberrypi
$ cd /proc && ls -alth

$ cat /proc/cpuinfo
Revision	: d03115
Serial		: 1000000052e87fab
Model		: Raspberry Pi 4 Model B Rev 1.5

$ cat /proc/version
Linux version 6.1.21-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023

$ cat /proc/meminfo
MemTotal:        7998788 kB
MemFree:         7124364 kB
MemAvailable:    7564892 kB

$ cat /proc/partitions

temperature

# temperature
$ vcgencmd measure_temp
# temp=50.6'C
$ vcgencmd measure_temp | egrep -o '[0-9]*\.[0-9]*'
# 50.6
$ vcgencmd measure_volts core
# volt=0.8600V

$ vcgencmd measure_clock arm
# frequency(48)=600169920

$ vcgencmd get_mem arm
# arm=947M
$ vcgencmd get_mem gpu
# gpu=76M


$ vcgencmd otp_dump | grep 17
17:000008b0
29:ad178054

$ df -h

# 查看磁盘列表:
$ sudo fdisk -l
Disk /dev/mmcblk0: 29.72 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes

Disk /dev/sda: 7.22 GiB, 7747397632 bytes, 15131636 sectors
Disk model: DataTraveler 2.0

# 查看 block 块文件挂载信息
$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    1  7.2G  0 disk 
|-sda1        8:1    1  256M  0 part /boot
`-sda2        8:2    1    7G  0 part /
mmcblk0     179:0    0 29.7G  0 disk 
|-mmcblk0p1 179:1    0  256M  0 part /media/pi/bootfs
`-mmcblk0p2 179:2    0 29.5G  0 part /media/pi/rootfs

$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
$ hostname -I
192.168.18.168 fd80:eae6:1258:0:91a5:54b6:d817:ecc2 
$ cat /etc/rc.local
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

demos

# defualt config ❓
$ cat /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 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=1
#hdmi_mode=1

# 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 infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]

64GB USB Disk bootloader ✅

# GPU Memory ✅
gpu_mem=100
# $ vcgencmd get_mem gpu
# gpu=100M
# https://www.cnblogs.com/xgqfrms/p/17437862.html
# 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 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=1
#hdmi_mode=1

# 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

# 超频 🚀
# arm_freq=1800
# https://www.cnblogs.com/xgqfrms/p/17428351.html

# USB 启动 ✅
program_usb_boot_mode=1


# $ cat /boot/config.txt
# $ sudo vim /boot/config.txt
# $ vcgencmd otp_dump | grep 17
# 3020000a
# https://www.cnblogs.com/xgqfrms/p/17436522.html


# 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 infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]

# GPU Memory ✅
gpu_mem=100

# $ vcgencmd get_mem gpu
# gpu=100M
# https://www.cnblogs.com/xgqfrms/p/17437862.html


# $ cat /boot/config.txt

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

Updating and Upgrading Raspberry Pi OS

$ cat /etc/apt/sources.list

deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://deb.debian.org/debian bullseye main contrib non-free
#deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
#deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
  1. APT
$ sudo apt update

$ sudo apt full-upgrade

$ sudo apt clean
# install package
$ sudo apt install tree
$ sudo apt install tree -y

# 卸载软件包
$ sudo apt remove tree
$ sudo apt remove tree -y

# 完全删除软件包及其关联的配置文件
$ sudo apt purge tree
  1. apt-get
$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get clean

https://www.raspberrypi.com/documentation/computers/os.html#updating-and-upgrading-raspberry-pi-os

Playing Audio and Video

  1. VLC
# new ✅

  1. OMXPlayer
# old ❌
$ omxplayer <name of media file>

$ omxplayer example.mp4
$ omxplayer example.mp3

https://www.raspberrypi.com/documentation/computers/os.html#playing-audio-and-video

Using a USB webcam

$ sudo apt install fswebcam

# user group
$ sudo usermod -a -G video <username>

# 拍照
$ fswebcam image.jpg

$ fswebcam -r 1280x720 image-720p.jpg

$ fswebcam -r 1280x720 --no-banner image-no-banner.jpg

$ chmod 777 webcam.sh
# OR
$ chmod +x webcam.sh

$ ./webcam.sh
#!/usr/bin/env bash

DATE=$(date +"%Y-%m-%d_%H%M")
fswebcam -r 1280x720 --no-banner /home/pi/webcam/$DATE.jpg

https://www.raspberrypi.com/documentation/computers/os.html#using-a-usb-webcam

fix: USB 启动后, 使用 sudo raspi-config 无法修改回 SD 启动 bug ❌

USB Disk 启动系统引导 / U 盘启动系统引导

SD 卡启动系统引导

EEPROM

SD Card

https://www.cnblogs.com/xgqfrms/p/17461907.html#5183632

https://www.cnblogs.com/xgqfrms/p/17437862.html#5183762
https://www.cnblogs.com/xgqfrms/p/17437862.html#5183763

refs

https://www.raspberrypi.com/news/pi-3-booting-part-i-usb-mass-storage-boot/

https://www.cnblogs.com/xgqfrms/p/17436522.html#5180599

vcgencmd

https://www.cnblogs.com/xgqfrms/p/17303351.html



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!文章来源地址https://www.toymoban.com/news/detail-462102.html


到了这里,关于How to boot the Raspberry Pi system from a USB Mass Storage Device All In One的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • How to Use the Git Restore Command

    The git restore command is used to restore files in your working directory to a previous state. It allows you to discard changes made to files or restore files that were deleted. The basic syntax of git restore is as follows: Here are a few common use cases of git restore : Discard Local Changes : To discard the changes made to a specific file and revert it

    2024年01月16日
    浏览(22)
  • How to Use the Git Reset Command

    The git reset command is used to move the current branch to a specific commit, effectively resetting the branch to that commit. It allows you to undo commits, unstage changes, or move the branch pointer to a different commit. The basic syntax of git reset is as follows: Here are three common usages of git reset : Soft Reset : To undo the most recent commit w

    2024年02月02日
    浏览(21)
  • Raspberry Pi 4B树莓派学习笔记

    这两天在学习 Raspberry Pi 4B树莓派, 这篇笔记就梳理一下目前学习到的一些知识,加强自己的记忆,整理一下思路,也希望能给大家带来帮助!感兴趣的小伙伴欢迎评论区留言或者私信博主! 目录 一、什么是树莓派 二、树莓派系统烧录 三、树莓派首次开机 四、树莓派连网

    2023年04月20日
    浏览(26)
  • Raspberry Pi 2, 2 of n - Pi 作为 IoT 消息代理

    目录 介绍 环境 先决条件 - 设置静态 IP 地址 安装 Mosquitto 启动/停止 Mosquitto 配置先决条件 - 安装 mqtt_spy 配置 Mosquitto 配置 Mosquitto - 无安全性 测试 Mosquitto 配置 - 无安全性 配置 Mosquitto - 使用密码身份验证 Mosquitto 测试 - 带密码验证 概括 介绍 在本文中,这是致力于令人惊叹的

    2024年02月05日
    浏览(21)
  • How to find the TLS used for the SQL Server connection

    本文是How to find the TLS used for the SQL Server connection这篇英语文章的翻译,此文出处请见于文章底部链接: 原文出处 [1] 对于客户,我做了一些研究,如何找出SQL Server数据库会话连接使用了哪一种TLS协议。唯一的方式就是创建一个扩展事件,这个扩展事件有一个很大的限制就是只

    2024年02月06日
    浏览(23)
  • Spring Boot “How-to“ 指南中文文档-上

    本文为官方文档直译版本。原文链接 篇幅较长,遂分两篇 本节解答了在使用 Spring Boot 时经常出现的 \\\"我该怎么做… \\\"的问题。虽然没有面面俱到,但也涵盖了不少内容。 如果您遇到的具体问题我们在此未涉及,您可能需要查看 stackoverflow.com,看看是否有人已经提供了答案。

    2024年01月25日
    浏览(17)
  • Spring Boot “How-to” 指南中文文档-下

    本文为官方文档直译版本。原文链接 篇幅较长,遂分两篇 Spring Security可用于保护基于Jersey的网络应用程序,其方式与保护基于Spring MVC的网络应用程序的方式基本相同。不过,如果你想在 Jersey 中使用 Spring Security 的方法级安全性,就必须将 Jersey 配置为使用 setStatus(int) 而不是

    2024年01月20日
    浏览(17)
  • Raspberry PI树莓派开启 root 登录

    树莓派默认用户名和密码是(可在raspi-config中修改)(注:2022年4月之前版本,最新版密码设置请移步这篇文章查看新版树莓派系统如何设置密码) 树莓派的Raspbian系统root用户默认是禁用状态,且没有密码,所以要先设置个密码,然后开启才能正常使用。 登录树莓派终端 1、

    2024年02月05日
    浏览(53)
  • 机器人编程教程3探索Raspberry Pi

    本章将涉及以下主题: 探索 Raspberry Pi 的功能 选择连接 什么是 Raspberry Pi OS? 为Raspberry Pi OS 准备 SD 卡 控制器将决定机器人的输入和输出类型、电子设备的功率要求、可使用的传感器类型以及运行的代码。更改控制器可能意味着重写代码、重新设计控制器的安装位置以及更改

    2024年02月13日
    浏览(21)
  • Raspberry Pi(树莓派4B)4轻松入门(上)-安装

    Raspberry Pi是一款功能齐全的计算机,包装小巧,价格实惠--虽然价格因计算能力而异,但基本的 Pi 4起价为35美元。 无论您是想要一个可以用来执行日常计算任务的设备,如创建令人惊叹的程序、电路或控制其他物理设备,Raspberry Pi都能满足需求。 Raspberry Pi 品牌是由树莓基金

    2024年02月14日
    浏览(29)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包