Support github.com One-stop compilation
, github.com clone packaging
, Use github.com Releases rootfs file to packaging
, Local packaging
. including OpenWrt firmware install to EMMC and upgrade related functions. Support Amlogic-s9xxx chip series such as S905x3, S905x2, S922x and Phicomm-N1.
The latest version of the OpenWrt firmware is automatically compiled every Monday & Thursday, which can be downloaded in Releases. Some important update instructions can be found in ChangeLog.md documents.
This OpenWrt firmware is packaged using Flippy's
Amlogic S9xxx Kernel for OpenWrt, and the Installation and Update scripts, etc. Special thanks The maker Flippy
.
Welcome to use forks
for personalized OpenWrt firmware configuration. If you like it, Please click the stars
.
s9xxx-v*-openwrt_*.img
: For all Amlogic-S9xxx series boxs. πx96-v*-openwrt_*.img
: For X96-Max+(S905x3). πhk1-v*-openwrt_*.img
: For HK1-Box(S905x3). πh96-v*-openwrt_*.img
: For H96-Max-X3(S905x3). πbelink-v*-openwrt_*.img
For Belink GT-King. πbelinkpro-v*-openwrt_*.img
For Belink GT-King Pro. πugoos-v*-openwrt_*.img
For UGOOS AM6 Plus. πn1-v*-openwrt_*.img
: For Phicomm-N1.octopus-v*-openwrt_*.img
For Octopus-Planet.
The s9xxx-v*-openwrt_*.img is the general OpenWrt firmware of all Amlogic-S9xxx series boxs
. You can write this OpenWrt firmware to the USB hard disk
to start. When writing into EMMC through s9xxx-install.sh, select the name
of the box you own in the menu.
For more OpenWrt firmware .dtb files are in the dtb-amlogic directory. You can use the s9xxx-v*-openwrt_*.img
firmware to install via USB hard disk. When writing into EMMC through s9xxx-install.sh, select 0: Enter the dtb file name of your box, and use the S9xxx-Boxs you own.
Insert the USB hard disk
with the written OpenWrt
firmware. Log in to the default IP: 192.168.1.1 β Login in to openwrt
β system menu
β TTYD terminal
β input command:
- Phicomm-N1 installation command:
n1-install.sh
- S9xxx-Boxs installation command:
s9xxx-install.sh
For more instructions please see: install-program
Provide multiple ways to generate the OpenWrt firmware you need. Please choose one method you like. Each method can be used independently.
You can modify the configuration file in the router_config
directory and .yml
file, customize the OpenWrt firmware, and complete the packaging online through Actions
, and complete all the compilation of OpenWrt firmware in github.com One-stop.
- Personalized plug-in configuration in router_config directory. Workflows configuration in .yml file.
- Select
Build OpenWrt
on the Action page. Click theRun workflow
button.
For more instructions please see: .yml example
In your .github/workflows/*.yml file, after completing the compilation of Subtarget is ARMv8, add the following online packaging code:
- name: Build OpenWrt for S9xxx-Boxs and Phicomm-N1
id: build
run: |
git clone --depth 1 https://github.com/ophub/amlogic-s9xxx-openwrt.git
cd amlogic-s9xxx-openwrt/
mkdir -p openwrt-armvirt
cp -f ../openwrt/bin/targets/*/*/*.tar.gz openwrt-armvirt/
sudo chmod +x make
sudo ./make -d -b s9xxx_n1_x96_hk1_h96 -k 5.4.77_5.9.8
cd out/ && gzip *.img
cp -f ../openwrt-armvirt/*.tar.gz . && sync
echo "FILEPATH=$PWD" >> $GITHUB_ENV
echo "::set-output name=status::success"
- Uploads OpenWrt Firmware to Actions:
- name: Upload OpenWrt Firmware to Actions for S9xxx
uses: actions/upload-artifact@v2
with:
name: openwrt_s9xxx
path: ${{ env.FILEPATH }}/openwrt_s9xxx_*
if-no-files-found: ignore
- name: Upload OpenWrt Firmware to Actions for Phicomm-N1
uses: actions/upload-artifact@v2
with:
name: openwrt_phicomm-n1
path: ${{ env.FILEPATH }}/openwrt_n1_*
if-no-files-found: ignore
# More Upload to Actions
- name: Upload OpenWrt Firmware ...
- The upload path of the packaged openwrt is
${{ env.FILEPATH }}/*
path: ${{ env.FILEPATH }}/openwrt_s9xxx_* #For S9xxx series box general firmware
path: ${{ env.FILEPATH }}/openwrt_x96_* #For X96-Max+
path: ${{ env.FILEPATH }}/openwrt_hk1_* #For HK1-Box
path: ${{ env.FILEPATH }}/openwrt_h96_* #For H96-Max-X3
path: ${{ env.FILEPATH }}/openwrt_belink_* #For Belink GT-King
path: ${{ env.FILEPATH }}/openwrt_belinkpro_* #For Belink GT-King Pro
path: ${{ env.FILEPATH }}/openwrt_ugoos_* #For UGOOS AM6 Plus
path: ${{ env.FILEPATH }}/openwrt_n1_* #For Phicomm-N1
path: ${{ env.FILEPATH }}/openwrt_octopus_* #For Octopus-Planet
- Uploads OpenWrt Firmware to Release:
- name: Upload OpenWrt Firmware to Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: openwrt_s9xxx_phicomm-n1
files: ${{ env.FILEPATH }}/*
body: |
This is OpenWrt firmware for S9xxx-Boxs and Phicomm-N1.
More information ...
Due to the limitation of the space size of a single run of the github.com workflow, when multiple OpenWrt firmware is compiled at a time and the total volume exceeds the limit, the error of insufficient space will be displayed during ./make
packaging (fallocate failed: No space left on device
. Use the default configuration of the warehouse, it is recommended that the number of firmware packaged at the same time does not exceed 10). It is recommended that you use the original firmware of openwrt-armvirt-64-default-rootfs.tar.gz
in Releases to complete the packaging several times, or to package only the firmware you need.
- name: Build OpenWrt firmware
id: build
run: |
mkdir -p openwrt-armvirt
curl -s "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases" | grep -o "openwrt_s9xxx_.*/openwrt-armvirt-.*\.tar.gz" | head -n 1 > DOWNLOAD_URL
[ -s DOWNLOAD_URL ] && wget -q -P openwrt-armvirt https://github.com/${GITHUB_REPOSITORY}/releases/download/$(cat DOWNLOAD_URL)
sudo chmod +x make
sudo ./make -d -b s9xxx_octopus_belink_belinkpro_ugoos -k 5.9.14_5.4.83
cd out/ && gzip *.img
cp -f ../openwrt-armvirt/*.tar.gz . && sync
echo "FILEPATH=$PWD" >> $GITHUB_ENV
echo "FILE_DATE=$(date +"%Y.%m.%d.%H%M")" >> $GITHUB_ENV
echo "::set-output name=status::success"
Tips: openwrt_s9xxx_.*
is Prefix the tag_name
in the Upload OpenWrt Firmware to Release
step. Eg:
- name: Upload OpenWrt Firmware to Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: openwrt_s9xxx_phicomm-n1_${{ env.FILE_DATE }}
files: ${{ env.FILEPATH }}/*
body: |
This is OpenWrt firmware for S9xxx-Boxs and Phicomm-N1
More information ...
The Upload OpenWrt Firmware to Actions
and Upload OpenWrt Firmware to Release
method is the same as github.com clone packaging instructions
steps.
This function is suitable for the needs of replacing the kernel packaging and packaging the OpenWrt firmware of the specified amlogic-s9xxx-Box separately. As long as you have the openwrt-armvirt-64-default-rootfs.tar.gz
file in the Releases of your repository, you can package the OpenWrt firmware you want at any time, which is efficient and convenient.
For more instructions please see: use-releases-rootfs-file-to-packaging-openwrt.yml
- Clone the warehouse to the local.
git clone --depth 1 https://github.com/ophub/amlogic-s9xxx-openwrt.git
- Create a
openwrt-armvirt
folder, and upload the OpenWrt firmware of the ARM kernel ( Eg:openwrt-armvirt-64-default-rootfs.tar.gz
) to this~/amlogic-s9xxx-openwrt/openwrt-armvirt
directory. - Enter the
~/amlogic-s9xxx-openwrt
root directory. And run Eg:sudo ./make -d -b n1_x96 -k 5.4.75_5.9.5
to complete the compilation. The generated OpenWrt firmware is in theout
directory under the root directory.
sudo ./make -d -b n1 -k 5.9.5
: recommend. Use the default configuration, specify a kernel and a firmware for compilation.sudo ./make -d -b n1_s9xxx -k 5.4.75_5.9.5
: Use the default configuration, specify multiple cores, and multiple firmware for compilation. use "_" to connect.sudo ./make -d
: Compile all kernel versions of openwrt with the default configuration.sudo ./make -d -b n1 -k 5.9.2 -s 1024
: Use the default configuration, specify a kernel, a firmware, and set the partition size for compilation.sudo ./make -d -b n1_s9xxx
: Use the default configuration, specify multiple firmware, use "_" to connect. compile all kernels.sudo ./make -d -k 5.4.73_5.9.2
: Use the default configuration. Specify multiple cores, use "_" to connect.sudo ./make -d -k latest
: Use the default configuration to compile the latest kernel version of the openwrt firmware.sudo ./make -d -s 1024 -k 5.7.15
: Use the default configuration and set the partition size to 1024m, and only compile the openwrt firmware with the kernel version 5.7.15.sudo ./make -h
: Display help information and view detailed description of each parameter.sudo ./make
: If you are familiar with the relevant setting requirements of the phicomm_n1 firmware, you can follow the prompts, such as selecting the firmware you want to make, the kernel version, setting the ROOTFS partition size, etc. If you donβt know these settings, just press Enter.
Parameter | Types | Description |
---|---|---|
-d | Defaults | Compile all cores and all firmware types. |
-b | Build | Specify the Build firmware type. Write the build firmware name individually, such as -b n1 . Multiple firmware use _ connect such as -b n1_s9xxx . The model represented by the relevant variableοΌ s9xxx is S9xxx series Boxs general firmware, belinkpro is Belink GT-King Pro, belink is Belink GT-King, n1 is Phicomm-N1, x96 is X96-Max+, hk1 is HK1-Box, h96 is H96-Max-X3, octopus is Octopus-Planet, ugoos is UGOOS AM6 Plus. |
-k | Kernel | Specify the kernel type. Write the kernel name individually such as -k 5.4.50 . Multiple cores use _ connection such as -k 5.4.50_5.9.5 |
-s | Size | Specify the size of the root partition in MB. The default is 1024, and the specified size must be greater than 256. Such as -s 1024 |
-h | help | View full documentation. |
Flippy
has shared with us dozens of versions of firmware, Brings unlimited freedom to amlogic-s9xxx series Boxs. We have stored some of the latest kernels in the kernel directory. If you think itβs not enough, or you donβt find the version you miss, you can use the kernel build tool to add the Flippy kernel
to the Kernel library of the repository, and package the version of openwrt firmware you want. For more instructions please see: build_kernel
Option | Value |
---|---|
Target System | QEMU ARM Virtual Machine |
Subtarget | ARMv8 multiplatform |
Target Profile | Default |
Target Images | squashfs |
For more instructions please see: router_config
Name | Value |
---|---|
Default IP | 192.168.1.1 |
Default username | root |
Default password | password |
Default WIFI name | OpenWrt |
Default WIFI password | none |
If used as a bypass gateway, you can add custom firewall rules as needed (Network β Firewall β Custom Rules):
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE #If the interface is eth0.
iptables -t nat -I POSTROUTING -o br-lan -j MASQUERADE #If the interface is br-lan bridged.
-
Flippy: The maker of Amlogic s9xxx Kernel for openwrt
LICENSE Β© OPHUB