reTerminal
https://gyazo.com/ea4e3d1be14533931cb8c7fb5932661a https://www.seeedstudio.com/ReTerminal-with-CM4-p-4904.html
OS
Raspberry Pi OS (64-bit) 2022-09-22を入れている
code:console
saito@reterminal:~ $ uname -a
Linux reterminal 5.15.74-v8+ #1595 SMP PREEMPT Wed Oct 26 11:07:24 BST 2022 aarch64 GNU/Linux saito@reterminal:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
液晶保護シート
ミヤビックスから発売されている
低反射のは以下の2つ
saitotetsuya.icon私はこっちを買った
https://gyazo.com/154b0087a2da9cb8d7f1cdb5776afc83
ドキュメント
ハードの違いで大きく2種類ある
https://gyazo.com/2bcc626c4b897f046ded97c6d7d7381d
Raspberry Pi OS(Buster) 32ビット版がプリインストールされているが,64ビット版も置いてある
reTerminalの初回セットアップウィザードを完了した後、LCDが表示されなくなる
正解:Software Updateはスキップする
saitotetsuya.icon2022/1/15時点で問題は解消されたそうです→2/15時点でまた再発しているそうです
アップデートしてしまってもドライバを入れ直せば戻る
公式には3A
4A推奨という記述はなくなった
5V 4Aの電源
saitotetsuya.icon手元スイッチもあって意外と便利
USBブート
Windows 11のWSL
code:console
cd usbboot/recovery
boot.confを書き換える
code:boot.conf.patch
diff --git a/recovery/boot.conf b/recovery/boot.conf
index 36c1165..fe6cf27 100644
--- a/recovery/boot.conf
+++ b/recovery/boot.conf
@@ -1,10 +1,10 @@
BOOT_UART=0
-WAKE_ON_GPIO=1
-POWER_OFF_ON_HALT=0
+WAKE_ON_GPIO=0
+POWER_OFF_ON_HALT=1
# Try SD first (1), followed by, USB PCIe, NVMe PCIe, USB SoC XHCI then network
-BOOT_ORDER=0xf25641
+BOOT_ORDER=0xf15
# Set to 0 to prevent bootloader updates from USB/Network boot
# For remote units EEPROM hardware write protection should be used.
code:console
./update-pieeprom.sh
mkdir /mnt/c/usbboot_recovery
cp -p * /mnt/c/usbboot_recovery
ここからはWindows 11のコマンドプロンプト
rpibootは起動しない状態で実施する
code:console
C:\> "C:\Program Files (x86)\Raspberry Pi\rpiboot.exe" -d C:\usbboot_recovery
これでUbuntu Server 21.10 64bit は起動した
STM32ファームウエアの更新
STM32がLCDまわりを担当している
ファームウエアがV1.7以降かそれより前かでファームウエアの書き込み方が違う
dtoverlay=reTerminalをコメントにしてリブート
code:/boot/config.txt
以下のコマンドで確認できる
code:console
i2ctransfer -y 1 w1@0x45 0x97 r2
https://gyazo.com/197134b42c68c60fd6a3c803eef56773
v1.8という意味
ファームウエアのアップデートの方法を判定する
https://gyazo.com/0fd58fe46ff8be094a817edac412ef97
0x56が見えているのでv1.7以降
0x20じゃなくて0x38が出ているのはIO拡張チップがMC23008-EからPCA9554に変わっているから
eMMCにOSをインストールする
ブートモードスイッチを変更する
OSをブートしたいときは元に戻さないといけない
saitotetsuya.iconヒートシンクの下の2つのツメが異様に外しにくい
外した後にツメの突起を切ったら外しやすくなった
USB-CケーブルでPCにreTerminalを接続する
この段階ではUSBマスストレージとして見えない
rpiboot.exeを起動する
USBマスストレージとして認識させるために毎回起動する必要がある
Imager起動後にCTRL-SHIFT-XでWiFiの設定やSSHの有効化などをしておくと便利
Raspberry Pi OS(Debian Bullseye)を入れたときの問題
Raspberry Pi OS (32-bit) 2022-09-06では問題ないらしい
Raspberry Pi OS (64-bit) 2022-09-22ではドライバを入れた時点で画面の向きだけおかしい
タッチパネルの位置はちゃんと画面の向きに追従している
以下の~/.config/monitors.xmlの設定は必要
画面の向きの設定
~/.config/monitors.xmlに以下を設定する
code:~/.config/monitors.xml
<monitors version="2">
<configuration>
<logicalmonitor>
<x>0</x>
<y>0</y>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>DSI-1</connector>
<vendor>unknown</vendor>
<product>unknown</product>
<serial>unknown</serial>
</monitorspec>
<mode>
<width>720</width>
<height>1280</height>
<rate>60.000</rate>
</mode>
</monitor>
<transform>
<rotation>right</rotation>
</transform>
</logicalmonitor>
</configuration>
</monitors>
カメラ
saitotetsuya.icon確認中
Legacy CameraとI2CをEnable
code:console
code:console
saito@reterminal:~ $ vcgencmd get_camera
supported=1 detected=0
64ビット版はまだカメラをサポートしてないので終了
Ubuntu
saitotetsuya.icon2022/02/25: 何をやっても画面が出ないので諦めた
アクセサリ
https://gyazo.com/39d2d18c07fe88de266887f3b5f5003c
ログ
2021年11月11日(木)
独身の日で11%オフ(税込21,953円)だったので,スイッチサイエンスで注文
2021年11月13日(土)
到着
2021/3/11版
2022年1月21日(金)