-
Notifications
You must be signed in to change notification settings - Fork 0
RockPi4
dynamis edited this page Jun 11, 2019
·
29 revisions
- Armbian (Ubuntu Bionic / Desibn Stretch) https://dl.armbian.com/rockpi-4b/archive/
- ダウンロードページ (簡単な説明も) https://www.armbian.com/rock-pi-4/
- 公式ドキュメント https://docs.armbian.com/
- Debian の Desktop 版など archive URL にしか置いてないビルドもあるので dl.armbian.com からダウンロードするのが良い
- Radxa 公式イメージよりも安定して使えるのでオススメかも
- Radxa 公式 Debian Desktop イメージ: https://wiki.radxa.com/Rockpi4/downloads
- 公式解説 Wiki ページ: https://wiki.radxa.com/Rockpi4/Debian
-
apt update
したら Ubuntu 向けのパッケージがインストールされて辛い。辛すぎる。カスタムビルドや Armbian のビルドの方が良い。
- カスタム ARM64 Debian ビルドイメージ https://github.com/SX-GitHub/Debian-ARM64-RockPi4/releases
- Radxa 公式 Ubuntu Server イメージ: https://wiki.radxa.com/Rockpi4/downloads
- 公式解説 Wiki ページ: https://wiki.radxa.com/Rockpi4/Ubuntu
- 公式手順通りで Ubuntu Mate のデスクトップ環境がインストールされるが、Chromium の GPU アクセラレーションが殆どオフになっており YouTube のフレームドロップ率が高くなりすぎる。Armbian のビルドの方が良い。
sudo ln -sf /usr/share/zoneinfo/YourArea/YourCity /etc/localtime
sudo dpkg-reconfigure locales
次のコマンドで変更して再起動。最初の選択は Generic 105 のままでよい
dpkg-reconfigure keyboard-configuration
0-3 と 4,5 のコアが同一周波数で動作するので、0,4 の二つに対して設定すれば十分:
cpufreq-set -g performance
cpufreq-set -g performance -c 4
cpufreq-info | grep current
専用コマンドを使うのでは無く /sys/class/devfreq/ff9a0000.gpu/
配下のファイルを読み書きすれば変更可能。リダイレクト後の処理には sudo が効かない (ため sudo sh -c '...'
する) ことに注意。
cat /sys/class/devfreq/ff9a0000.gpu/available_governors
cat /sys/class/devfreq/ff9a0000.gpu/available_frequencies
sudo sh -c 'echo performance > /sys/class/devfreq/ff9a0000.gpu/governor'
cat /sys/class/devfreq/ff9a0000.gpu/cur_freq
note: Debian で確認済み。Ubuntu Bionic では該当ファイルが無いため他の方法が必要。未確認。
ref:
- ck-env のスクリプトを利用してもよい https://github.com/ctuning/ck-env/tree/master/platform.init/firefly-linux
- rockchip の説明ページ: gpu (mali) governor http://opensource.rock-chips.com/wiki_Mali
特に問題が無ければ良いが、少なくとも Ubuntu では TCP/UDP offload が不安定な要因になっているという報告がある ので通信が不安定な場合は無効化する。
sudo apt install ethtool
sudo ethtool -k eth0
sudo ethtool -K eth0 rx off tx off
sudo ethtool -k eth0
Armbian では raspi-config
的なコマンド armbian-config
が用意されているのでそれを使う。
- armbian-configを使って簡単に初期設定を行う方法 https://www.suke-blog.com/armbian-config/
- Tinkerboard 向けに記事: https://qiita.com/BlueBlue/items/ce104abefd5b385e1980
標準のもので apt upgrade しちゃうと Chromium や Firefox 起動しなくなったりする。 Radxa のものを使う。但し、それでも問題あるらしい ので現実的には解消済みのカスタムビルドを使う (または同様に Radxa のパッケージに対する無視リストを記載する) しか無いかも。
Radxa’s apt repository is a mess, many of their “stretch ARM64” debs were built on Ubuntu, they will break Debian ARM64 if you run “sudo apt upgrade” without any protection. I blocked most of their packages in /etc/apt/preferences.d, until they fix their repo, you’d better leave those pins as is.
echo "deb http://apt.radxa.com/stretch/ stretch main" | sudo tee /etc/apt/sources.list.d/apt-radxa-com.list
wget -O - apt.radxa.com/$DISTRO/public.key | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install rockchip-overlay rockchip-fstab
chrome://flags/#enable-quic で Experimental QUIC protocol
を Enabled にすると http/2+quic/43
で通信され YouTube 再生時の waiting が減る。