トップ 履歴 一覧 カテゴリ ソース 検索 ヘルプ RSS ログイン

OpenBSD/Install/77-armv7

INDEX

OpenBSD のインストール (7.7 ARMv7 on BBB 版)

FreeBSD の日本語ドキュメント類はあるのですが、OpenBSD はなかなか見つからない。なので、OpenBSD 7.7 (Apr 28, 2025)BeagleBone Black にインストールした際のメモ書き。

OpenBSD は、NetBSD からフォークされた、FreeBSD と並ぶ、BSD系のunix類の1つです。

BeagleBone は、Raspberry Pi と同じく ARM を積んだシングルボードコンピュータで、後継機となる BeagleBone Black は機能強化とコストダウンが行われてる。

BBB は eMMC に Linux OS (Debian) がインストールされているが、SDメモリカードをセットし、そこへ OpenBSD をインストールしてサーバとして利用出来るようにしてていく。BBB を選ぶ理由は、以前から OpenBSD が動作・サポートされ、当時比較的手に入れやすかったため。

OpenBSD 6.3 から arm64 プラットフォームが正式サポート対象となり、Raspberry Pi 3 がサポートされるハードウエアに乗るようになった。それ以前から、armv7 はサポートされており、BeagleBone もサポートされるハードウエアとなっていた。

  必要なもの

  • BeagleBone Black 本体
    • https://beagleboard.org/black
    • Rev.C もしくは、eMMC の更新を推奨
      • 新しいものは、SDカードが刺さっていれば、SDカードから起動する
      • 古いものは USER/BOOT ボタンを押さないとSDカードから起動しない
      • BeagleBoard.org Latest Firmware Images の Flasher images をSDカードに入れて起動すると eMMC のアップデートが行われる。
    • 秋月電子通商 M-06867
    • 秋月電子通商 M-09914 (Element14製)
    • RSコンポーネンツ 125-2411
  • micro SDHC カード
    • OSをインストールし利用していくのに必要な容量
    • 512MB 程度あればインストール可能だが、8GB 以上のディスク容量を推奨
    • チップセットが SDIO v2 準拠で、SDXC は SDIO v3 仕様なので、SDHC が無難。一部の SDXC は SDIO v2 転送モードをサポートしてるようだが。
  • OpenBSD miniroot イメージ
  • インターネット環境
    • miniroot でブートし、必要なファイルセットは、インターネットから取得する
  • シリアルコンソール接続
    • OSをインストールするために、3.3V のシリアルコンソールをつないで操作する
    • 単純に作業するだけなら、HDMI でディスプレイ と USB キーボード をつないででもよいかと
  • 母艦PC
    • OpenBSD である必要はないが、SDカードにイメージの書き込みやシリアルコンソール端末が必要
  • miniroot イメージを書き込むソフト

シリアルコンソール接続

シリアル通信をするには、シリアル通信のケーブル端子をシリアル通信のピンに接続する。

通信条件は、115200bps、データ長8ビット、ストップビット1、パリティ無し フロー制御無し。

FTDI社の USB-TTLシリアル変換ケーブル(TTL-232R-3V3) が、ピン配置と一致するので便利。ドライバは、FTDI ( https://ftdichip.com/ ) から Virtual COM Port (VCP) Drivers をダウンロード・インストールする。

  • FTDI社 USB-TTLシリアル変換ケーブル(TTL-232R-3V3)

  インストール前チェックリスト

インストールを行う前に以下ことを事前に確認・決めておく。

OpenBSD FAQ - Installation Guide: Pre-installation checklist から

  • マシン名
  • インストールそして利用可能なハードウエア
    • 今回は、BeagleBone Black
  • 使用するインストール方法
    • SDカードにイメージを展開、ネットワーク経由でダウンロードしていく
  • ディスクレイアウト
    • 既存データや他のOSとの共存、は考えない。
    • OpenBSD のサブパーティション
    • ディスクの暗号化はしない
  • ネットワーク設定 (DHCPを使用しない場合)
    • ドメイン名 と ネームサーバ(DNS)
    • IPアドレスとサブネットマスク (NICの数分)
    • デフォルトゲートウエイアドレス

インストール準備

インストール用の miniroot イメージを書き込んだSDカードを作成する。

  インストール・起動用 SDカードの作成

公式サイト または ミラーサイト から、miniroot イメージを取得して、SDカードに書き込む

balenaEtcher や Win32 Disk Imager は、管理者権限で起動し、GUIの画面で、イメージファイルを選択、書き込むドライブ(ディバイス)を選択して、書き込みを行う。

(メモ) dd for windows ( http://www.chrysocome.net/dd )

管理者で実行し、"dd --list"でSDカードのディバイスを確認。以下のようにコマンドを実行しイメージを書き込む。

C:\>dd if=miniroot-am335x-60.fs of=\\?\Device\Harddisk1\Partition0 --progress
rawwrite dd for windows version 0.6beta3.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by terms of the GPL Version 2.

18,874,368
36864+0 records in
36864+0 records out

C:\>

インストール

miniroot イメージを書き込んだSDカードをセットして、シリアルケーブルをつなぎコンソールを立ち上げて、LAN電源をつないで起動する。

  起動

U-Boot SPL 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500)
Trying to boot from MMC2
Loading Environment from EXT4...
** Unable to use mmc 0:1 for loading the env **


U-Boot 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500), Build: jenkins-github_Bootloader-Builder-65

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
 :≪中略≫
## Starting EFI application at 82000000 ...
disks: sd0* sd1
>> OpenBSD/armv7 BOOTARM 1.23
boot>
 :≪中略≫
pmap Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2025 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.7 (RAMDISK) #6: Wed Apr 16 10:45:46 MDT 2025
    deraadt@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/RAMDISK
 :≪中略≫
bootfile: sd0a:/bsd
boot device: sd0
root on rd0a swap on rd0b dump on rd0b
WARNING: CHECK AND RESET THE DATE!
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

  インストール開始

Welcome to the OpenBSD/armv7 7.7 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? i

インストールするか、アップグレードするか聞かれるので、“i”を押してインストールを選択する。

  メッセージ

At any prompt except password prompts you can escape to a shell by
typing '!'. Default answers are shown in []'s and are selected by
pressing RETURN.  You can exit this program at any time by pressing
Control-C, but this can leave your system in an inconsistent state.

  ターミナルの選択

Terminal type? [vt220]

ターミナル種別を聞かれるので、デフォルトのまま進める。

  ホスト名の設定

System hostname? (short form, e.g. 'foo') bbb

対象機器のホスト名を設定する。

  ネットワークの設定

インストールに必要なパッケージをネットワーク経由で取得するので、外部のサーバに接続出来るようにこの段階で設定を正しく行う。

設定するインターフェースの選択

Available network interfaces are: cpsw0 vlan0.
Network interface to configure? (name, lladdr, '?', or 'done') [cpsw0] ?
Available network interfaces are: cpsw0 vlan0.
    cpsw0: lladdr d0:5f:b8:xx:xx:xx
Network interface to configure? (name, lladdr, '?', or 'done') [cpsw0]

自動検出されたインターフェースが列挙される。列挙されるインターフェース名は対象の機器で異なる。

デフォルトの“cpsw0”を選択して進める。

IPv4 IPアドレスの設定

IPv4 address for cpsw0? (or 'autoconf' or 'none') [autoconf] 192.168.0.253

IPv4 のIPアドレスを指定する。固定ならそのアドレス、DHCPで自動設定す場合は autoconf 、設定しない場合は none を入力する。

IPv4 ネットマスクの設定

Netmask for cpsw0? [255.255.255.0]

固定IPアドレスの場合は、アドレスを入力し、その後ネットワークマスクも指定する。

IPv6 IPアドレスの設定

IPv6 address for cpsw0? (or 'autoconf' or 'none') [none] autoconf

IPv6 のIPアドレスを指定する。固定ならそのアドレス、自動設定す場合は autoconf 、設定しない場合は none を入力する。

他のインターフェースの設定

Available network interfaces are: cpsw0 vlan0.
Network interface to configure? (name, lladdr, '?', or 'done') [done]

必要なら他のインターフェースを選択して、ネットワーク設定を繰り返す。ネットワーク設定が終わったら、“done”を入力し、次に進む。

IPv4 デフォルトゲートウェイの設定

Default IPv4 route? (IPv4 address or none) 192.168.0.1
add net default: gateway 192.168.0.1

固定IPアドレスの場合、デフォルトゲートウェイの設定を設定する

ドメイン名の設定

DNS domain name? (e.g. 'example.com') [my.domain] local

固定IPアドレスの場合、ネットワークのドメイン名を設定する。DHCP の場合、取得されたドメイン名か、デフォルトの my.domain となる。

DNSサーバの設定

DNS nameservers? (IP address list or 'none') [none] 192.168.0.1

固定IPアドレスの場合、DNSサーバのIPアドレスを設定する。DHCP の場合、取得されたDNSサーバが設定される。

  rootパスワードの設定

Password for root account? (will not echo)
Password for root account? (again)

管理者アカウント(root ユーザ)のログインパスワードを設定する。入力した文字は表示されないので注意。

確認の為に再入力が求められるので、同じく入力する。

  sshサーバ自動起動の設定

Start sshd(8) by default? [yes] 

sshサーバ(sshd)を自動起動するか聞かれるので、“yes”で進める。

  一般ユーザの作成

ここで1つ一般ユーザが作成出来る。作成する場合は、小文字でログイン名をいれる。必要なければ“no”を入力する。

ちなみに、ここで作成したユーザは、su コマンドで root にスイッチできる(wheel グループに追加される)。また、root 宛てのメールもこのユーザに飛ぶようになる( /root/.forward に作成したユーザ名が追加される)。

Setup a user? (enter a lower-case loginname, or 'no') [no] bbb
Full name for user bbb? [bbb]
Password for user bbb? (will not echo)
Password for user bbb? (again)

  ssh での root ログインの可否の設定

WARNING: root is targeted by password guessing attacks, pubkeys are safer.
Allow root ssh login? (yes, no, prohibit-password) [no]

ssh での root ログインを許すかを設定する。許可する場合は“yes”、禁止する場合は“no”、パスワード認証を禁止(公開鍵認証のみ)する場合は、“prohibit-password”を入力する。※ここで設定した値が sshd の PermitRootLogin 規定設定になるっぽい(sshd_config のコメントアウトされてる設定の記述が変わっている)。

一般的に、root でリモートログインすることはない(必要なら su なり、sudo doas すればよい)ので、禁止(no)でよい。どうしても必要であれば、公開鍵認証でのみ入れるようにすべき。この場合、/root/.ssh/authorized_keys に使用する公開鍵を入れる。

  パーティションの設定

ディスクの選択

Available disks are: sd0 sd1.
Which disk is the root disk? ('?' for details) [sd0] ?
    sd0: SD/MMC, EC2QT, 0030  (59.6G)
    sd1: Kingston, MMC04G, 0000  (3.6G)
Available disks are: sd0 sd1.
Which disk is the root disk? ('?' for details) [sd0]

インストールするディスクを指定する。“?”で詳細が表示される。

パーティションの編集

Disk: sd0       geometry: 7783/255/63 [125042688 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
*0: 0C      2  10   9 -      2 140  10 [       32768:        8192 ] Win95 FAT32L
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] Unused
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] Unused
 3: A6      2 140  11 -      4 113  45 [       40960:       30464 ] OpenBSD
Use (W)hole disk or (E)dit the MBR? [whole]

ディスク全体を使うなら“W”、自分で編集する場合は“E”で編集を行う。amd64 など GPT が使える場合、GPT も選択できる。

SDカードすべて使うので、デフォルト値のまま進める。

ディスクラベルの設定

Creating a msdos partition and an OpenBSD partition for rest of sd0...done.
newfs_msdos: /dev/r0000000000000000.i: No such file or directory
The auto-allocated layout for sd0 is:
#                size           offset  fstype [fsize bsize   cpg]
  a:          1024.0M            65536  4.2BSD   2048 16384     1 # /
  b:           717.7M          2162688    swap
  c:         61056.0M                0  unused
  d:          4079.5M          3632512  4.2BSD   2048 16384     1 # /tmp
  e:          5019.3M         11987328  4.2BSD   2048 16384     1 # /var
  f:          6449.4M         22266944  4.2BSD   2048 16384     1 # /usr
  g:          1024.0M         35475296  4.2BSD   2048 16384     1 # /usr/X11R6
  h:          8448.1M         37572448  4.2BSD   2048 16384     1 # /usr/local
  i:            16.0M            32768   MSDOS
  j:          3037.9M         54874144  4.2BSD   2048 16384     1 # /usr/src
  k:          6144.0M         61095712  4.2BSD   2048 16384     1 # /usr/obj
  l:         25080.1M         73678624  4.2BSD   2048 16384     1 # /home
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]

自動的に割り当てられた内容が表示される。表示された内容でよければ“a”、これをベースに編集する場合は“e”、一から設定する場合は“c”を入力する。

ちなみに、MBR もしくは GPT で、OpenBSD 用に割り当てたパーティションの中での割当となる。

ディスクラベルの編集

OpenBSD では、複数のパーティションに分割することが推奨されている。理由として、セキュリティ機能の一部は、ファイルシステムのマウントオプションに依存している。(読み取り専用が作成できる、ユーザの領域がいっぱいになってもシステムに影響しない、あたりは他のOSと同じ)

X11 な使用しない、カーネルのコンパイルの予定もないので、 /usr/X11R6 および /usr/src, /usr/obj は作成しない。

今回は、60GB を /(ROOT) と swap に 1G、/tmp に 4G、/var, /usr, /usr/local に 10G、残り 24G を /home に割り当てる。

Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] c
Label editor (enter '?' for help at any prompt)
sd0> p M
OpenBSD area: 65536-125042688; size: 61024.0M; free: 61024.0M
#                size           offset  fstype [fsize bsize   cpg]
  c:         61056.0M                0  unused
  i:            16.0M            32768   MSDOS
sd0>
sd0> a a
offset: [65536]
size: [124977152] 1G
FS type: [4.2BSD]
mount point: [none] /
sd0*> a b
offset: [2168768]
size: [122873920] 1G
FS type: [swap]
sd0*> a d
offset: [4273290]
size: [120769398] 4G
FS type: [4.2BSD]
mount point: [none] /tmp
sd0*> a e
offset: [12675264]
size: [112367424] 10G
FS type: [4.2BSD]
mount point: [none] /var
sd0*> a f
offset: [33656160]
size: [91386528] 10G
FS type: [4.2BSD]
mount point: [none] /usr
sd0*> a g
offset: [54637056]
size: [70405632] 10G
FS type: [4.2BSD]
mount point: [none] /usr/local
sd0*> a h
offset: [75617952]
size: [49424736]
FS type: [4.2BSD]
mount point: [none] /home
sd0*>
sd0*> p M
OpenBSD area: 65536-125042688; size: 61024.0M; free: 0.0M
#                size           offset  fstype [fsize bsize   cpg]
  a:          1027.0M            65536  4.2BSD   2048 16384     1 # /
  b:          1027.6M          2168768    swap
  c:         61056.0M                0  unused
  d:          4102.5M          4273312  4.2BSD   2048 16384     1 # /tmp
  e:         10244.6M         12675264  4.2BSD   2048 16384     1 # /var
  f:         10244.6M         33656160  4.2BSD   2048 16384     1 # /usr
  g:         10244.6M         54637056  4.2BSD   2048 16384     1 # /usr/local
  h:         24133.2M         75617952  4.2BSD   2048 16384     1 # /home
  i:            16.0M            32768   MSDOS
sd0*>
sd0*> q
Write new label?: [y]

“?”でコマンドヘルプが見られる。“a ≪ラベル≫”で追加、“d ≪ラベル≫”で削除、“p M”でMiB単位で表示、“q”で保存し終了する。

ファイルシステムの作成

/dev/rsd0a: 1027.0MB in 2103232 sectors of 512 bytes
6 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0h: 24133.2MB in 49424736 sectors of 512 bytes
120 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0d: 4102.5MB in 8401952 sectors of 512 bytes
21 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0f: 10244.6MB in 20980896 sectors of 512 bytes
51 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0g: 10244.6MB in 20980896 sectors of 512 bytes
51 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0e: 10244.6MB in 20980896 sectors of 512 bytes
51 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each

ディスクラベルの設定が終わると、ファイルシステムの作成が行われる。フォーマットが終わるまでしばらく待つ。

他のディスクの初期化

Available disks are: sd1.
Which disk do you wish to initialize? (or 'done') [done]

他に初期化するディスクがあるか聞かれるので、なければ“done”で進める。

ファイルシステムのマウント

/dev/sd0a (00b82786d1ef69c3.a) on /mnt type ffs (rw, asynchronous, local)
/dev/sd0h (00b82786d1ef69c3.h) on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0d (00b82786d1ef69c3.d) on /mnt/tmp type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0f (00b82786d1ef69c3.f) on /mnt/usr type ffs (rw, asynchronous, local, nodev)
/dev/sd0g (00b82786d1ef69c3.g) on /mnt/usr/local type ffs (rw, asynchronous, local, nodev)
/dev/sd0e (00b82786d1ef69c3.e) on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid)

  インストール

インストールセットの場所の指定

Let's install the sets!
Location of sets? (disk http nfs or 'done') [http]

インストールセットがある場所を指定する。ネットワーク(http)経由で取得するので、デフォルトの“http”のまま進める。

HTTP プロキシの設定

HTTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]

プロキシを経由する必要がある場合は、プロキシサーバを指定する。ないので“none”のまま進める。

HTTP サーバの指定

(Unable to get list from openbsd.org, but that is OK)
HTTP Server? (hostname or 'done') ftp.jaist.ac.jp

インストールセットを取得するサーバを指定する。今回は“ftp.jaist.ac.jp”を指定する。

--※どのサーバを選んでも、インストールセットの選択に行く前に下記のように https 接続ができないと言われる…

Unable to connect using HTTPS; using HTTP instead.

arm64 では、インストールセット選択(ディスクラベル編集)前にタイムゾーンの設定を聞いてくるので、armv7 は、時刻設定がされずに、https 接続に失敗してるかな…。

サーバのディレクトリの指定

Server directory? [pub/OpenBSD/7.7/armv7]

インストールセットを取得するサーバのディレクトリパスを指定する。特に問題がなければ、デフォルト値まま進める。

インストールセットの選択

Unable to connect using HTTPS; using HTTP instead.

Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.
    [X] bsd           [X] comp77.tgz    [X] xbase77.tgz   [X] xserv77.tgz
    [X] bsd.rd        [X] man77.tgz     [X] xshare77.tgz
    [X] base77.tgz    [X] game77.tgz    [X] xfont77.tgz
Set name(s)? (or 'abort' or 'done') [done] -x*
    [X] bsd           [X] comp77.tgz    [ ] xbase77.tgz   [ ] xserv77.tgz
    [X] bsd.rd        [X] man77.tgz     [ ] xshare77.tgz
    [X] base77.tgz    [X] game77.tgz    [ ] xfont77.tgz
Set name(s)? (or 'abort' or 'done') [done]

インストールするものを選択する。Xは使わないので「-x*」で外す。

インストール

Get/Verify SHA256.sig   100% |**************************|  1777       00:00
Signature Verified
Get/Verify bsd          100% |**************************|  6848 KB    00:05
Get/Verify bsd.rd       100% |**************************| 15119 KB    00:11
Get/Verify base77.tgz   100% |**************************|   145 MB    02:02
Get/Verify comp77.tgz   100% |**************************| 44787 KB    00:36
Get/Verify man77.tgz    100% |**************************|  8297 KB    00:10
Get/Verify game77.tgz   100% |**************************|  2712 KB    00:02
Get/Verify BUILDINFO    100% |**************************|    54       00:00
Installing bsd          100% |**************************|  6848 KB    00:02
Installing bsd.rd       100% |**************************| 15119 KB    00:05
Installing base77.tgz   100% |**************************|   145 MB    02:12
Extracting etc.tgz      100% |**************************|   275 KB    00:02
Installing comp77.tgz   100% |**************************| 44787 KB    01:32
Installing man77.tgz    100% |**************************|  8297 KB    00:22
Installing game77.tgz   100% |**************************|  2712 KB    00:01
Installing BUILDINFO    100% |**************************|    54       00:00
Location of sets? (disk http nfs or 'done') [done]

他になければ、“done”で終わり。

  タイムゾーンの設定

What timezone are you in? ('?' for list) [Canada/Mountain] Asia/Tokyo

タイムゾーン を聞かれるので、“Asia/Tokyo”を指定する。

  ディバイスの作成

Saving configuration files... done.
Making all device nodes... done.
fw_update: add none; update none
Relinking to create unique kernel... done.

  完了

CONGRATULATIONS! Your OpenBSD install has been successfully completed!

When you login to your new system the first time, please read your mail
using the 'mail' command.

Exit to (S)hell, (H)alt or (R)eboot? [reboot]

ひとまずインストールは完了。“reboot”で再起動する。

syncing disks... done
rebooting...

 初回起動

初回の起動の時に ssh のホストキーが作成されるため起動に時間がかかる。

U-Boot SPL 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500)
Trying to boot from MMC2
Loading Environment from EXT4...
 :≪中略≫
## Starting EFI application at 82000000 ...
disks: sd0* sd1
>> OpenBSD/armv7 BOOTARM 1.23
boot>
 :≪中略≫
OpenBSD 7.7 (GENERIC) #6: Wed Apr 16 09:48:17 MDT 2025
    deraadt@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/GENERIC
 :≪中略≫
bootfile: sd0a:/bsd
boot device: sd0
root on sd0a (00b82786d1ef69c3.a) swap on sd0b dump on sd0b
WARNING: CHECK AND RESET THE DATE!
Automatic boot in progress: starting file system checks.
/dev/sd0a (00b82786d1ef69c3.a): file system is clean; not checking
/dev/sd0h (00b82786d1ef69c3.h): file system is clean; not checking
/dev/sd0d (00b82786d1ef69c3.d): file system is clean; not checking
/dev/sd0f (00b82786d1ef69c3.f): file system is clean; not checking
/dev/sd0g (00b82786d1ef69c3.g): file system is clean; not checking
/dev/sd0e (00b82786d1ef69c3.e): file system is clean; not checking
pf enabled
starting network
reordering: ld.so libc libcrypto sshd sshd-session sshd-auth ssh-agent.
openssl: generating isakmpd RSA keys... done.
openssl: generating iked ECDSA keys... done.
ssh-keygen: generating new host keys: RSA ECDSA ED25519
sshd: (ED25519) SHA256:7rrc5LFECFl3YxzPH8EMOswQNU+8R03Gq9z1yXrUsbk
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd smtpd sndiod.
running rc.firsttime
fw_update: add none; update none
starting local daemons: cron.
Sun Jul  6 15:42:57 JST 2025

OpenBSD/armv7 (bbb.local) (console)

login:

インストール後のシステム設定

再起動したら、必要なサーバの設定を行う。OpenBSD システムの設定方法の詳細については、「afterboot」マニュアルページを参照。

 インストール元の変更

インストール時に「Unable to connect using HTTPS; using HTTP instead.」と出て、URLが http となっている。おそらく、ファイルセットを取得するまでにタイムゾーンおよび時刻の設定がされるタイミングがなく、時刻が乖離しているので https に失敗して、http にされていると思う。インストールが完了すれば、タイムゾーンの設定や ntp の時刻合わせがされるので、普通に https が使えるようになるので、URLを編集しておく。

bbb# cat /etc/installurl
http://ftp.jaist.ac.jp/pub/OpenBSD
bbb# vi /etc/installurl
bbb# cat /etc/installurl
https://ftp.jaist.ac.jp/pub/OpenBSD

 インストールログ

root 宛にインストールのログが送られる。

Welcome to OpenBSD 7.7!

Return-Path: root
Date: Apr 30 07:07:00 MDT 2025
From: deraadt@do-not-reply.openbsd.org (Theo de Raadt)
To: takeshi <takeshi>
Subject: Welcome to OpenBSD 7.7!

This message attempts to describe the most basic initial questions that a
system administrator of an OpenBSD box might have.  You are urged to save
this message for later reference.

For more information on how to set up your OpenBSD system, refer to the
"afterboot" man page (i.e. after you exit the mail subsystem, type
"man afterboot").  If you are not familiar with how to read man pages, type
"man man" at a shell prompt and read the entire thing.  Pay specific
attention to the "man -k keyword" option, which will permit you to find the
man page you are looking for more easily; for instance, "man -k ethernet".
The GNU "info" subsystem is also installed with further documentation
resources: to read info pages type "info".  (The info subsystem behaves like
the popular emacs editor.)

Again, PLEASE READ THE MANUAL PAGES.  Our developers have spent countless
hours improving them so that they are clear and precise.

Several popular binary packages (pre-compiled applications) are
available from mirror sites.  Mirror selection is usually automatic
during install/upgrade -- a mirror URL from https://www.openbsd.org/ftp.html
is stored into the file /etc/installurl.  Installation of packages is
as simple as:

 # pkg_add -v rsync chromium emacs--no_x11

Significant efforts were made to centralize all system configuration in the
/etc directory.  You should be able to find each of the configuration files
you seek there, lightly documented.  In particular, much of the configuration
has been centralized in the file /etc/rc.conf.  You should not need to ever
edit the file /etc/rc.   The files /etc/rc.securelevel and /etc/rc.local exist
for this purpose; the first is run before the system has gone into secure
mode; the second is run afterwards (if in doubt, add your tools to rc.local).

Please refer to our web pages for any other questions you might have.
	https://www.OpenBSD.org
Please pay special attention to the Frequently Asked Questions section at
	https://www.OpenBSD.org/faq/

OpenBSD is free software.  You can do with it as you like, subject to very few
conditions (described at www.OpenBSD.org/policy.html).  But free software isn't
written without money.  Network links, hardware costs, release engineering and
testing work all take money and significant effort on the part of those who
have made this OpenBSD release what it is.  Please reward the developers who
have made OpenBSD what it is, and thus make it possible for this wonderful
process to continue.  For more information on how you can help, please see
www.OpenBSD.org/goals.html and visit www.OpenBSD.org/donations.html to see a
list of those who have donated money, equipment, or other resources to ensure
OpenBSD continues.

If you wish to ensure that OpenBSD runs better on your machines, please do us
a favor (after you have your mail system configured!) and type something like:
 # (dmesg; sysctl hw.sensors) | \
	mail -s "Sony VAIO 505R laptop, suspend works OK" dmesg@openbsd.org
so that we can see what kinds of configurations people are running.  As shown,
including a bit of information about your machine in the subject or the body
can help us even further.  We will use this information to improve device driver
support in future releases.  (Please do this using the supplied GENERIC kernel,
not for a custom compiled kernel, unless you're unable to boot the GENERIC
kernel.  If you have a multi-processor machine, dmesg results of both GENERIC.MP
and GENERIC kernels are appreciated.)  The device driver information we get from
this helps us fix existing drivers. Thank you!

(If you wish to save it, use the "x" command.)

install response file

From: Charlie Root <root@bbb.local>
Date: Sun, 6 Jul 2025 15:42:55 +0900 (JST)
To: root@bbb.local
Subject: bbb.local install response file
Message-ID: <192e471ebeab64ed@bbb.local>

System hostname = bbb
Network interface to configure = ?
Network interface to configure = cpsw0
IPv4 address for cpsw0 = 192.168.0.253
Netmask for cpsw0 = 255.255.255.0
IPv6 address for cpsw0 = autoconf
Network interface to configure = done
Default IPv4 route = 192.168.0.1
DNS domain name = local
DNS nameservers = 192.168.0.1
Start sshd(8) by default = yes
Setup a user = bbb
Full name for user bbb = bbb
Allow root ssh login = no
Which disk is the root disk = sd0
Use (W)hole disk or (E)dit the MBR = whole
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout = c
Which disk do you wish to initialize = done
Location of sets = http
HTTP proxy URL = none
HTTP Server = ftp.jaist.ac.jp
Server directory = pub/OpenBSD/7.7/armv7
Set name(s) = -x*
Set name(s) = done
Location of sets = done
What timezone are you in = Asia/Tokyo

rc.firsttime output

From: Charlie Root <root@bbb.local>
Date: Sun, 6 Jul 2025 15:42:56 +0900 (JST)
To: root@bbb.local
Subject: bbb.local rc.firsttime output
Message-ID: <192e4721d009e85a@bbb.local>

fw_update: add none; update none

システムのアップデート

fw_update(1) コマンドで、フリーでないファームウェアパッケージのインストール・アップデートができる。

syspatch(8) コマンドで、未適用のバイナリパッチの適用がされる。ただ、バイナリパッチは、i386, amd64, arm64 しか提供されていないっぽい。

OpenBSD/Patches/77-armv7

アップグレード

sysupgrade(8) コマンドでアップグレードができる。このアップグレードは一つ次のリリースへのみがサポートされる。

OpenBSD/Upgrade ( 7.7 to 7.8 ) へ

最終更新時間:2025年07月07日 20時54分04秒 指摘や意見などあればSandBoxのBBSへ。