Orangepi

Orange pi で遊ぶ

Orange PI CM4

mypibuild

公式の配布しているイメージを使っていたら、 「変なカーネルだな」みたいなことを言われたので自分で作った。 アップロード直前にした無駄な変更が問題で、 何度が enter 押さないとビルドできない。気が向いたら直す

Download

よくあるパターンと違って、 debootstrap の second-stage を初回起動時にターゲットで実行する。 そのため、初回起動が大変に遅いが、書き込むべきイメージが小さい。 また、UARTの速度は 115200 に初期設定している。

変わったソフトのプリインストールはほぼ無いので、 何もしていない純粋な Debian に近い実行環境が得られる。

rk3566-orangepi-cm4.dts

公式イメージには dtb が付属しているが、そのソースが見つからない。 よくわかんないので、よくわかんないなりにデバイスツリーを書いた。 よくわかんないしそんなにやる気がないので、色々書いていない。

Download

書くにあたり、公式イメージに付属していた rk3566-orangepi-cm4.dtb と カーネルとともに配布されている他のデバイスツリー (特に rk3566-quartz64-a.dts) を参考にした。 公式の提供する回路図はベースボードのものしかなく、役に立たなかった。 問い合わせもしてみたが、 今Webで公開している回路図以外を公開する気はないとのことだった。

ライセンスは参考資料をリスペクトし、 GPL2+ と MIT のデュアルライセンスとする。

GPL2+

Copyright (C) 2024 dyknon

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

MIT License

Copyright (c) 2024 dyknon

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

書いたあとに気づいたが、公式の dts も ここ から入手できる。


Author: dyknon < dyknon r5f jp >