先日、FreeBSD i386 が FreeBSD13からバイナリーメンテナンス対象外となり、FreeBSD/ARM64 が Tier1に昇格したことをメモしましたが、実際に freebsd-update コマンドが問題無く動くのかどうか、動作テストしていませんでした。
ようやく、freebsd-update コマンドのテストを行えたのでそのメモ。
まず、実験環境は、Raspberry Pi2 v1.2ボード。
Copyright (c) 1992-2021 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:38:07 UTC 2021 root@arm64-builder.daemonology.net:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) VT(efifb): resolution 1824x984 module firmware already present! real memory = 993849344 (947 MB) avail memory = 947486720 (903 MB) Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs 中略 CPU 0: ARM Cortex-A53 r0p4 affinity: 0 Trying to mount root from ufs:/dev/ufs/rootfs [rw]... Cache Type = <64 byte D-cacheline,64 byte I-cacheline,VIPT ICache,64 byte ERG,64 byte CWG> Instruction Set Attributes 0 = Instruction Set Attributes 1 = <> Processor Features 0 = <AdvSIMD,FP,EL3 32,EL2 32,EL1 32,EL0 32> Processor Features 1 = <> Memory Model Features 0 = <TGran4,TGran64,SNSMem,BigEnd,16bit ASID,1TB PA> Memory Model Features 1 = <8bit VMID> Memory Model Features 2 = <32bit CCIDX,48bit VA> Debug Features 0 = <2 CTX BKPTs,4 Watchpoints,6 Breakpoints,PMUv3,Debugv8> Debug Features 1 = <> Auxiliary Features 0 = <> Auxiliary Features 1 = <> CPU 1: ARM Cortex-A53 r0p4 affinity: 1 CPU 2: ARM Cortex-A53 r0p4 affinity: 2 CPU 3: ARM Cortex-A53 r0p4 affinity: 3
freebsd-update コマンドの実行結果は、以下。
# freebsd-update fetch src component not installed, skipped Looking up update.FreeBSD.org mirrors... 2 mirrors found. Fetching metadata signature for 13.0-RELEASE from update2.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. No updates needed to update system to 13.0-RELEASE-p5.
ファイルの書き替え自体は行われませんでしたが、コマンドは正常終了しました。
pkg コマンドも動作するので、試してみました。(以下)
# pkg upgrade Updating FreeBSD repository catalogue... Fetching packagesite.pkg: 100% 6 MiB 6.3MB/s 00:01 Processing entries: 100% FreeBSD repository update completed. 29858 packages processed. All repositories are up to date. Checking for upgrades (2 candidates): 100% Processing candidates (2 candidates): 100% The following 1 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: apache24: 2.4.51 -> 2.4.52 Number of packages to be upgraded: 1 5 MiB to be downloaded. Proceed with this action? [y/N]:
ただし、今回使用したSDメモリは、FreeBSD.orgサイトからダウンロードしたプリインストール版なので、スワップやファイルシステムはデフォルト状態。スワップはありません。
RPI2 を運用に回すには、主記憶が1GBなのでメモリ不足。スワップが必須です。そのためには、一度USBメモリからブートして、SD上にファイルシステムを作り直すなどの作業が必要でしょう。それに、早いSDメモリを吟味して選択しないと、マイクロSDはすごくスピードの差があります。