メモです
Raspberry Pi4で USB-Boot設定方法
■Raspberry Pi OSイメージダウンロード
URL:
https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit
ex) lite版
https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-01-12/2021-01-11-raspios-buster-armhf-lite.zip
■解凍
$ unzip 2021-01-11-raspios-buster-armhf-lite.zip
■microSDへ書き込み
$ dd if=2021-01-11-raspios-buster-armhf-lite.img of=/dev/sdX
## winなら
https://forest.watch.impress.co.jp/docs/review/1067836.html
等でmicroSDに書き込み
---
■Rpi4にmicroSD入れてboot
piユーザでログイン (デフォルトのpassはraspberry)
■eeprom(bootloader)バージョン確認
$ vcgencmd bootloader_version
Apr 16 2020 18:11:26
version a5e1b95f320810c69441557c5f5f0a7f2460dfb8 (release)
timestamp 1587057086
update-time 0
capabilities 0x00000000
■update
$ sudo apt update
...
$ sudo apt full-upgrade
...
$ sudo reboot
■eeprom(bootloader)バージョン確認
$ vcgencmd bootloader_version
Sep 3 2020 13:11:43
version c305221a6d7e532693cc7ff57fddfc8649def167 (release)
timestamp 1599135103
update-time 0
capabilities 0x00000000
※2021/1/21現在の最新は、
Sep 3 2020 13:11:43
ですね!
■起動設定
$ sudo raspi-config
6 Advanced Options -> A6 Boot Order -> B1 USB Boot -> OK
■bootデバイス作成
OSイメージを任意のusbデバイスにddする。
microSDを抜いた状態のrpi4にusbデバイスを刺して起動!
以上!
■USBメモリでbootした時の情報
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 14.5G 0 disk
├─sda1 8:1 1 256M 0 part /boot
└─sda2 8:2 1 14.2G 0 part /
# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 4: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
# free
total used free shared buff/cache available
Mem: 3918772 56076 3622932 16864 239764 3717120
Swap: 102396 0 102396
# uname -a
Linux raspberrypi 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux
# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
# lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Vendor ID: ARM
Model: 3
Model name: Cortex-A72
Stepping: r0p3
CPU max MHz: 1500.0000
CPU min MHz: 600.0000
BogoMIPS: 270.00
Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32