From 17a0cc8c3586dfc788d974d5695f2c59f075798c Mon Sep 17 00:00:00 2001 From: Riko Date: Fri, 30 Oct 2026 09:38:32 -0700 Subject: [PATCH] PhicommN1: README install section (bundle use, checks, removal) and site guide links The N1 READMEs only explained how to build the bundle. They now say how to install a release bundle (dry run, install, reboot, verify), what the installer checks and skips, how to remove the package, and link the openxplay.org guide; the top-level device table links each device's guide. Signed-off-by: Riko --- PhicommN1/README-zh.md | 21 ++++++++++++++++++++- PhicommN1/README.md | 21 ++++++++++++++++++++- README-zh.md | 8 ++++---- README.md | 8 ++++---- 4 files changed, 48 insertions(+), 10 deletions(-) diff --git a/PhicommN1/README-zh.md b/PhicommN1/README-zh.md index cde2d78..4c1c792 100644 --- a/PhicommN1/README-zh.md +++ b/PhicommN1/README-zh.md @@ -9,7 +9,26 @@ Created by riko chen on 2026-10-21 斐讯 N1 电视盒子(晶晨 S905D)的支持文件,适用于从 eMMC 运行 ophub Armbian(Debian 13,内核 6.12)的设备。 -`package/` 构建设备包,以及 OpenXPlay Flasher 通过网络 SSH 安装的离线设备整合包。设备包安装主机配置,把以太网 PHY 的 ID 写入启动设备树(内核更新后会重新写入),并给 wlan0 和蓝牙控制器换成由出厂以太网 MAC 推导的地址。它还为板载 BCM43455 安装较新的 Cypress Wi-Fi 固件,使 wlan0 在 CN 监管域下可以使用 5 GHz 信道 36-48。 +## 安装 + +从写入 Armbian 到打开 CarPlay 的分步教程见 [openxplay.org/phicomm-n1](https://openxplay.org/phicomm-n1)(英文:[openxplay.org/en/phicomm-n1](https://openxplay.org/en/phicomm-n1))。 + +发布版的标签为 `phicomm-n1-device-vX.Y.Z[-beta.N]`,附带整合包 `openxplay-phicomm-n1-device-<版本>.tar.gz` 和 `SHA256SUMS`。在 N1 上解压整合包,以 root 身份运行其中的安装程序,不需要联网。解压出的文件夹名使用 Debian 版本号,例如 `0.1.1~beta.1`: + +```sh +sudo sh openxplay-phicomm-n1-device-<版本>/install-device.sh --dry-run # 只做检查 +sudo sh openxplay-phicomm-n1-device-<版本>/install-device.sh +sudo reboot +sudo sh openxplay-phicomm-n1-device-<版本>/install-device.sh --verify +``` + +安装程序只接受设备树型号为 `Phicomm N1` 的 Debian 13 arm64 系统(否则以 2 退出),按 `SHA256SUMS` 校验每个文件,然后按顺序安装固定版本的 Debian 软件包,最后安装 `openxplay-phicomm-n1`;已装同版本或更新版本的软件包会跳过。最后一行输出 `OXP-STAGE device preflight-ok`、`ok … reboot=required` 或 `verified`,并带有版本号。之后用 `.deb` 安装中继(`OpenXPlay/OpenXPlay-Relay`,标签 `linux-v…`),它的依赖已包含在整合包中。 + +`apt-get remove openxplay-phicomm-n1` 会还原原来的启动设备树,Wi-Fi 和蓝牙地址在下次开机时恢复为共用的默认值;`purge` 还会删除 `/var/lib/openxplay-phicomm-n1`。 + +## 构建 + +`package/` 构建设备包和离线设备整合包,由上面的安装程序或 OpenXPlay Flasher(通过网络 SSH)安装。设备包安装主机配置,把以太网 PHY 的 ID 写入启动设备树(内核更新后会重新写入),并给 wlan0 和蓝牙控制器换成由出厂以太网 MAC 推导的地址。它还为板载 BCM43455 安装较新的 Cypress Wi-Fi 固件,使 wlan0 在 CN 监管域下可以使用 5 GHz 信道 36-48。 ```sh sh package/build-deb.sh --firmware /path/to/firmware out diff --git a/PhicommN1/README.md b/PhicommN1/README.md index d7b3929..8afe175 100644 --- a/PhicommN1/README.md +++ b/PhicommN1/README.md @@ -9,7 +9,26 @@ Created by riko chen on 2026-10-21 Support files for the Phicomm N1 TV box (Amlogic S905D) running ophub Armbian (Debian 13, kernel 6.12) from eMMC. -`package/` builds the device package and the offline device bundle that the OpenXPlay Flasher installs over SSH on the network. The package installs the host profile, writes the Ethernet PHY's ID into the boot device tree (again after kernel updates), and gives wlan0 and the Bluetooth controller addresses derived from the factory Ethernet MAC. It also installs newer Cypress Wi-Fi firmware for the onboard BCM43455 so wlan0 can use 5 GHz channels 36-48 under the CN regulatory domain. +## Install + +The step-by-step guide, from writing Armbian to opening CarPlay, is at [openxplay.org/en/phicomm-n1](https://openxplay.org/en/phicomm-n1) (Chinese: [openxplay.org/phicomm-n1](https://openxplay.org/phicomm-n1)). + +Releases are tagged `phicomm-n1-device-vX.Y.Z[-beta.N]` and carry the bundle `openxplay-phicomm-n1-device-.tar.gz` with `SHA256SUMS`. On the N1, unpack the bundle and run its installer as root; it needs no network. The unpacked folder uses the Debian version, for example `0.1.1~beta.1`: + +```sh +sudo sh openxplay-phicomm-n1-device-/install-device.sh --dry-run # checks only +sudo sh openxplay-phicomm-n1-device-/install-device.sh +sudo reboot +sudo sh openxplay-phicomm-n1-device-/install-device.sh --verify +``` + +The installer refuses anything but Debian 13 arm64 with the device-tree model `Phicomm N1` (exit 2), checks every file against `SHA256SUMS`, then installs the pinned Debian packages in order and `openxplay-phicomm-n1` last, skipping any package already at that version or newer. Its last line is `OXP-STAGE device preflight-ok`, `ok … reboot=required` or `verified`, with the version. Install the relay afterwards from its `.deb` (`OpenXPlay/OpenXPlay-Relay`, tags `linux-v…`); the bundle already holds its dependencies. + +`apt-get remove openxplay-phicomm-n1` puts the stock device tree back, and the Wi-Fi and Bluetooth addresses return to the shared defaults at the next boot; `purge` also deletes `/var/lib/openxplay-phicomm-n1`. + +## Build + +`package/` builds the device package and the offline device bundle, which the installer above and the OpenXPlay Flasher (over SSH on the network) install. The package installs the host profile, writes the Ethernet PHY's ID into the boot device tree (again after kernel updates), and gives wlan0 and the Bluetooth controller addresses derived from the factory Ethernet MAC. It also installs newer Cypress Wi-Fi firmware for the onboard BCM43455 so wlan0 can use 5 GHz channels 36-48 under the CN regulatory domain. ```sh sh package/build-deb.sh --firmware /path/to/firmware out diff --git a/README-zh.md b/README-zh.md index 3f9b29d..33efcd2 100644 --- a/README-zh.md +++ b/README-zh.md @@ -4,10 +4,10 @@ 让 OpenXPlay 中继在特定硬件上运行的设备支持。 -| 目录 | 设备 | -| --- | --- | -| [`UFI003`](./UFI003/README-zh.md) | UFI003 msm8916 4G USB 随身 Wi-Fi,使用 OpenStick Debian 11 镜像 | -| [`PhicommN1`](./PhicommN1/README-zh.md) | 斐讯 N1 电视盒子(晶晨 S905D),使用 ophub Armbian | +| 目录 | 设备 | 教程 | +| --- | --- | --- | +| [`UFI003`](./UFI003/README-zh.md) | UFI003 msm8916 4G USB 随身 Wi-Fi,使用 OpenStick Debian 11 镜像 | [openxplay.org/ufi003-relay](https://openxplay.org/ufi003-relay) | +| [`PhicommN1`](./PhicommN1/README-zh.md) | 斐讯 N1 电视盒子(晶晨 S905D),使用 ophub Armbian | [openxplay.org/phicomm-n1](https://openxplay.org/phicomm-n1) | ## 参与贡献 diff --git a/README.md b/README.md index 321a68a..b50c851 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,10 @@ Device support for running the OpenXPlay relay on specific hardware. -| Directory | Device | -| --- | --- | -| [`UFI003`](./UFI003) | UFI003 msm8916 4G USB dongle with the OpenStick Debian 11 image | -| [`PhicommN1`](./PhicommN1) | Phicomm N1 TV box (Amlogic S905D) with ophub Armbian | +| Directory | Device | Guide | +| --- | --- | --- | +| [`UFI003`](./UFI003) | UFI003 msm8916 4G USB dongle with the OpenStick Debian 11 image | [openxplay.org/en/ufi003-relay](https://openxplay.org/en/ufi003-relay) | +| [`PhicommN1`](./PhicommN1) | Phicomm N1 TV box (Amlogic S905D) with ophub Armbian | [openxplay.org/en/phicomm-n1](https://openxplay.org/en/phicomm-n1) | ## Contributing