some changes

This commit is contained in:
klever
2020-03-19 18:05:09 +01:00
parent 6813353af2
commit c478752fd4
12 changed files with 77 additions and 92 deletions

View File

@@ -12,12 +12,12 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'klever1988/nanopi-openwrt' if: github.repository == 'klever1988/nanopi-openwrt'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@master uses: actions/checkout@master
with: with:
@@ -32,18 +32,18 @@ jobs:
sudo apt-get -y install bc build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler sudo apt-get -y install bc build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash
sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk
- name: Install Repo - name: Install Repo
run: | run: |
git clone https://github.com/friendlyarm/repo git clone https://github.com/friendlyarm/repo
sudo cp repo/repo /usr/bin/ sudo cp repo/repo /usr/bin/
- name: Init Source - name: Init Source
run: | run: |
mkdir friendlywrt-h5 mkdir friendlywrt-h5
cd friendlywrt-h5 cd friendlywrt-h5
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle --depth=1
repo sync -c --no-clone-bundle -j8 repo sync -c --no-tags --no-clone-bundle -j8
- name: Mods - name: Mods
run: | run: |
@@ -72,20 +72,14 @@ jobs:
rm -rf luci-theme-argon rm -rf luci-theme-argon
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git
cd ../../ cd ../../
sed -i '/exit/i\mv /etc/rc.d/S25dockerd /etc/rc.d/S92dockerd && sed -i "s/START=25/START=92/g" S92dockerd' package/lean/default-settings/files/zzz-default-settings git apply ../../enable_autocore.diff
sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings
sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
sed -i '/exit/i\find /etc/rc.d/ -name *docker* -delete' package/lean/default-settings/files/zzz-default-settings
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
- name: Mod luci
run: |
cd friendlywrt-h5/friendlywrt
./scripts/feeds update -a && ./scripts/feeds install -a
sed -i '/Load Average/i\<tr><td width="33%"><%:CPU Temperature%></td><td><%=luci.sys.exec("cut -c1-2 /sys/class/thermal/thermal_zone0/temp")%></td></tr>' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
sed -i 's/pcdata(boardinfo.system or "?")/"ARMv8"/' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
- name: Build FriendlyWrt - name: Build FriendlyWrt
run: | run: |
cd friendlywrt-h5 cd friendlywrt-h5
@@ -143,12 +137,13 @@ jobs:
draft: false draft: false
prerelease: false prerelease: false
- name: Upload Release Asset - name: Upload Release Asset
id: upload-release-asset id: upload-release-asset
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.sec_token }} GITHUB_TOKEN: ${{ secrets.sec_token }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./artifact.zip asset_path: ./artifact.zip
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
asset_content_type: application/zip asset_content_type: application/zip

View File

@@ -2,7 +2,7 @@ name: r1s(H3) Lean版openwrt
on: on:
push: push:
branches: branches:
- master - master
paths: paths:
- '.github/workflows/r1s_lean_h3.yml_' - '.github/workflows/r1s_lean_h3.yml_'
@@ -12,12 +12,12 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'klever1988/nanopi-openwrt' if: github.repository == 'klever1988/nanopi-openwrt'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@master uses: actions/checkout@master
with: with:
@@ -32,19 +32,19 @@ jobs:
sudo apt-get -y install bc build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler sudo apt-get -y install bc build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash
sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk
- name: Install Repo - name: Install Repo
run: | run: |
git clone https://github.com/friendlyarm/repo git clone https://github.com/friendlyarm/repo
sudo cp repo/repo /usr/bin/ sudo cp repo/repo /usr/bin/
- name: Init Source - name: Init Source
run: | run: |
mkdir friendlywrt-h3 mkdir friendlywrt-h3
cd friendlywrt-h3 cd friendlywrt-h3
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle --depth=1
repo sync -c --no-clone-bundle -j8 repo sync -c --no-tags --no-clone-bundle -j8
- name: Mods - name: Mods
run: | run: |
cd friendlywrt-h3 cd friendlywrt-h3
@@ -75,20 +75,14 @@ jobs:
rm -rf luci-theme-argon rm -rf luci-theme-argon
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git
cd ../../ cd ../../
sed -i '/exit/i\mv /etc/rc.d/S25dockerd /etc/rc.d/S92dockerd && sed -i "s/START=25/START=92/g" S92dockerd' package/lean/default-settings/files/zzz-default-settings git apply ../../enable_autocore.diff
sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings
sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
sed -i '/exit/i\find /etc/rc.d/ -name *docker* -delete' package/lean/default-settings/files/zzz-default-settings
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
- name: Mod luci
run: |
cd friendlywrt-h3/friendlywrt
./scripts/feeds update -a && ./scripts/feeds install -a
sed -i '/Load Average/i\<tr><td width="33%"><%:CPU Temperature%></td><td><%=luci.sys.exec("cut -c1-2 /sys/class/thermal/thermal_zone0/temp")%></td></tr>' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
sed -i 's/pcdata(boardinfo.system or "?")/"ARMv7"/' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
- name: Build FriendlyWrt - name: Build FriendlyWrt
run: | run: |
cd friendlywrt-h3 cd friendlywrt-h3
@@ -146,12 +140,13 @@ jobs:
draft: false draft: false
prerelease: false prerelease: false
- name: Upload Release Asset - name: Upload Release Asset
id: upload-release-asset id: upload-release-asset
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.sec_token }} GITHUB_TOKEN: ${{ secrets.sec_token }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./artifact.zip asset_path: ./artifact.zip
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
asset_content_type: application/zip asset_content_type: application/zip

View File

@@ -42,9 +42,9 @@ jobs:
run: | run: |
mkdir friendlywrt-h5 mkdir friendlywrt-h5
cd friendlywrt-h5 cd friendlywrt-h5
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v19.07.1 -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v19.07.1 -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle --depth=1
repo sync -c --no-clone-bundle -j8 repo sync -c --no-tags --no-clone-bundle -j8
cd friendlywrt/ && git fetch cd friendlywrt/ && git fetch --unshallow
- name: Mods - name: Mods
run: | run: |
@@ -60,19 +60,12 @@ jobs:
git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs git rebase adc1a9a3676b8d7be1b48b5aed185a94d8e42728^ --onto tmp -X theirs
git revert --no-edit f092ca098e80c667b10cdd1dba328506a2673c1d git revert --no-edit f092ca098e80c667b10cdd1dba328506a2673c1d
git checkout upstream/dev-19.07 -- feeds.conf.default git checkout upstream/dev-19.07 -- feeds.conf.default
git apply ../../enable_autocore.diff
sed -i '/ucl upx/d' tools/Makefile sed -i '/ucl upx/d' tools/Makefile
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/default-settings/files/zzz-default-settings sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/default-settings/files/zzz-default-settings
sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
- name: Mod luci
run: |
cd friendlywrt-h5/friendlywrt
./scripts/feeds update -a && ./scripts/feeds install -a
ln -s /usr/bin/upx staging_dir/host/bin/upx
sed -i '/Load Average/i\<div class="tr"><div class="td left" width="33%"><%:CPU Temperature%></div><div class="td left" id="_cputemp"><%=luci.sys.exec("cut -c1-2 /sys/class/thermal/thermal_zone0/temp")%></div></div>' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
sed -i 's/pcdata(boardinfo.system or "?")/"ARMv8"/' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
- name: Build FriendlyWrt - name: Build FriendlyWrt
run: | run: |

View File

@@ -80,21 +80,12 @@ jobs:
cd ../../ cd ../../
git apply ../../enable_autocore.diff git apply ../../enable_autocore.diff
git apply ../../fix_cpufreq.diff git apply ../../fix_cpufreq.diff
#sed -i '/exit/i\mv /etc/rc.d/S25dockerd /etc/rc.d/S92dockerd && sed -i "s/START=25/START=92/g" S92dockerd' package/lean/default-settings/files/zzz-default-settings
sed -i '/exit/i\/etc/init.d/dockerd disabled' package/lean/default-settings/files/zzz-default-settings
sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings
#sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
sed -i '/exit/i\find /etc/rc.d/ -name *docker* -delete' package/lean/default-settings/files/zzz-default-settings
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
#rm target/linux/rockchip-rk3328/base-files/etc/modules.d/10-rtl8821cu
- name: Mod luci
run: |
cd friendlywrt-rk3328/friendlywrt
./scripts/feeds update -a && ./scripts/feeds install -a
sed -i '/Load Average/i\<tr><td width="33%"><%:CPU Temperature%></td><td><%=luci.sys.exec("cut -c1-2 /sys/class/thermal/thermal_zone0/temp")%></td></tr>' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
sed -i 's/pcdata(boardinfo.system or "?")/"ARMv8"/' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
- name: Build FriendlyWrt - name: Build FriendlyWrt
run: | run: |
@@ -126,12 +117,13 @@ jobs:
draft: false draft: false
prerelease: false prerelease: false
- name: Upload Release Asset - name: Upload Release Asset
id: upload-release-asset id: upload-release-asset
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.sec_token }} GITHUB_TOKEN: ${{ secrets.sec_token }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./artifact.zip asset_path: ./artifact.zip
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
asset_content_type: application/zip asset_content_type: application/zip

View File

@@ -67,6 +67,8 @@ jobs:
CONFIG_PACKAGE_htop=y CONFIG_PACKAGE_htop=y
CONFIG_PACKAGE_diffutils=y CONFIG_PACKAGE_diffutils=y
CONFIG_PACKAGE_vim-fuller=y CONFIG_PACKAGE_vim-fuller=y
CONFIG_PACKAGE_pv=y
CONFIG_PACKAGE_unzip=y
CONFIG_PACKAGE_luci-app-frpc=y CONFIG_PACKAGE_luci-app-frpc=y
CONFIG_PACKAGE_luci-app-netdata=y CONFIG_PACKAGE_luci-app-netdata=y
CONFIG_LIBSODIUM_MINIMAL=y CONFIG_LIBSODIUM_MINIMAL=y
@@ -120,7 +122,6 @@ jobs:
# CONFIG_PACKAGE_kmod-cryptodev is not set # CONFIG_PACKAGE_kmod-cryptodev is not set
# CONFIG_V2RAY_COMPRESS_UPX is not set # CONFIG_V2RAY_COMPRESS_UPX is not set
' >> configs/config_rk3328 ' >> configs/config_rk3328
# CONFIG_PACKAGE_luci-app-cpufreq is not set
cd friendlywrt cd friendlywrt
git config --local user.email "action@github.com" && git config --local user.name "GitHub Action" git config --local user.email "action@github.com" && git config --local user.name "GitHub Action"
git remote add upstream https://github.com/coolsnowwolf/lede && git fetch upstream git remote add upstream https://github.com/coolsnowwolf/lede && git fetch upstream
@@ -150,13 +151,6 @@ jobs:
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
- name: Mod luci
run: |
cd friendlywrt-rk3328/friendlywrt
./scripts/feeds update -a && ./scripts/feeds install -a
sed -i '/Load Average/i\<tr><td width="33%"><%:CPU Temperature%></td><td><%=luci.sys.exec("cut -c1-2 /sys/class/thermal/thermal_zone0/temp")%></td></tr>' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
sed -i 's/pcdata(boardinfo.system or "?")/"ARMv8"/' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
- name: Build FriendlyWrt - name: Build FriendlyWrt
run: | run: |
cd friendlywrt-rk3328 cd friendlywrt-rk3328
@@ -196,3 +190,4 @@ jobs:
asset_path: ./artifact.zip asset_path: ./artifact.zip
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
asset_content_type: application/zip asset_content_type: application/zip

View File

@@ -2,7 +2,7 @@ name: r2s Lienol版openwrt
on: on:
push: push:
branches: branches:
- master - master
paths: paths:
- '.github/workflows/r2s_lienol.yml_' - '.github/workflows/r2s_lienol.yml_'
@@ -12,12 +12,12 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'klever1988/nanopi-openwrt' if: github.repository == 'klever1988/nanopi-openwrt'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@master uses: actions/checkout@master
with: with:
@@ -32,12 +32,12 @@ jobs:
sudo apt-get -y install bc build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler sudo apt-get -y install bc build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash
sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk
- name: Install Repo - name: Install Repo
run: | run: |
git clone https://github.com/friendlyarm/repo git clone https://github.com/friendlyarm/repo
sudo cp repo/repo /usr/bin/ sudo cp repo/repo /usr/bin/
- name: Init Source - name: Init Source
run: | run: |
mkdir friendlywrt-rk3328 mkdir friendlywrt-rk3328
@@ -45,11 +45,11 @@ jobs:
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v19.07.1 -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle --depth=1 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v19.07.1 -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle --depth=1
repo sync -c --no-tags --no-clone-bundle -j8 repo sync -c --no-tags --no-clone-bundle -j8
cd friendlywrt/ && git fetch --unshallow cd friendlywrt/ && git fetch --unshallow
- name: Patch Kernel - name: Patch Kernel
run: | run: |
. patch_kernel_5.4.22.sh . patch_kernel_5.4.22.sh
- name: Mods - name: Mods
run: | run: |
cd friendlywrt-rk3328 cd friendlywrt-rk3328
@@ -68,13 +68,9 @@ jobs:
git checkout upstream/dev-19.07 -- feeds.conf.default git checkout upstream/dev-19.07 -- feeds.conf.default
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/default-settings/files/zzz-default-settings sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/default-settings/files/zzz-default-settings
sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
sed -i '/exit/i\find /etc/rc.d/ -name *docker* -delete' package/lean/default-settings/files/zzz-default-settings
sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh
echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner
#sed -i '/#/d' target/linux/rockchip-rk3328/config-4.14 #fix compile error
#sed -i '/CONFIG_BLK_CGROUP/a\CONFIG_DEBUG_BLK_CGROUP=y' target/linux/rockchip-rk3328/config-4.14 #as above
#sed -i '/CONFIG_BLK_CGROUP/a\CONFIG_CFS_BANDWIDTH=y' target/linux/rockchip-rk3328/config-4.14 #as above
#sed -i '/CONFIG_BLK_CGROUP/a\CONFIG_RT_GROUP_SCHED=y' target/linux/rockchip-rk3328/config-4.14 #as above
#sed -i '/CONFIG_BLK_CGROUP/a\CONFIG_CGROUP_FREEZER=y' target/linux/rockchip-rk3328/config-4.14 #as above
sed -i '/CONFIG_BLK_CGROUP/a\CONFIG_CGROUP_PERF=y' target/linux/rockchip-rk3328/config-4.14 #as above sed -i '/CONFIG_BLK_CGROUP/a\CONFIG_CGROUP_PERF=y' target/linux/rockchip-rk3328/config-4.14 #as above
- name: Mod luci - name: Mod luci
@@ -89,7 +85,7 @@ jobs:
cd friendlywrt-rk3328 cd friendlywrt-rk3328
sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh
./build.sh nanopi_r2s.mk ./build.sh nanopi_r2s.mk
- name: Zip Files - name: Zip Files
run: | run: |
gzip friendlywrt-rk3328/out/*.img gzip friendlywrt-rk3328/out/*.img
@@ -114,12 +110,13 @@ jobs:
draft: false draft: false
prerelease: false prerelease: false
- name: Upload Release Asset - name: Upload Release Asset
id: upload-release-asset id: upload-release-asset
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.sec_token }} GITHUB_TOKEN: ${{ secrets.sec_token }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./artifact.zip asset_path: ./artifact.zip
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
asset_content_type: application/zip asset_content_type: application/zip

View File

@@ -67,6 +67,8 @@ jobs:
CONFIG_PACKAGE_htop=y CONFIG_PACKAGE_htop=y
CONFIG_PACKAGE_diffutils=y CONFIG_PACKAGE_diffutils=y
CONFIG_PACKAGE_vim-fuller=y CONFIG_PACKAGE_vim-fuller=y
CONFIG_PACKAGE_pv=y
CONFIG_PACKAGE_unzip=y
CONFIG_PACKAGE_luci-app-frpc=y CONFIG_PACKAGE_luci-app-frpc=y
CONFIG_PACKAGE_luci-app-netdata=y CONFIG_PACKAGE_luci-app-netdata=y
CONFIG_LIBSODIUM_MINIMAL=y CONFIG_LIBSODIUM_MINIMAL=y
@@ -181,4 +183,4 @@ jobs:
asset_path: ./artifact.zip asset_path: ./artifact.zip
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
asset_content_type: application/zip asset_content_type: application/zip

0
JUNK/fix_wifi.sh Executable file → Normal file
View File

0
JUNK/flash.sh Executable file → Normal file
View File

View File

@@ -81,5 +81,9 @@ CONFIG_PACKAGE_luci-theme-material=y
CONFIG_PACKAGE_luci-theme-netgear-mc=y CONFIG_PACKAGE_luci-theme-netgear-mc=y
CONFIG_PACKAGE_luci-theme-openwrt=y CONFIG_PACKAGE_luci-theme-openwrt=y
CONFIG_PACKAGE_pv=y
CONFIG_PACKAGE_unzip=y
CONFIG_PACKAGE_autocore=y CONFIG_PACKAGE_autocore=y
CONFIG_PACKAGE_luci-app-smartdns=y CONFIG_PACKAGE_luci-app-smartdns=y

View File

@@ -1,5 +1,5 @@
diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile
index 5a3ea113..1f52537b 100644 index 5a3ea11..1f52537 100644
--- a/package/lean/autocore/Makefile --- a/package/lean/autocore/Makefile
+++ b/package/lean/autocore/Makefile +++ b/package/lean/autocore/Makefile
@@ -17,7 +17,7 @@ include $(INCLUDE_DIR)/package.mk @@ -17,7 +17,7 @@ include $(INCLUDE_DIR)/package.mk
@@ -12,7 +12,7 @@ index 5a3ea113..1f52537b 100644
define Package/autocore/description define Package/autocore/description
diff --git a/package/lean/autocore/files/autocore b/package/lean/autocore/files/autocore diff --git a/package/lean/autocore/files/autocore b/package/lean/autocore/files/autocore
index 55cd519f..06d202c0 100755 index 55cd519..06d202c 100755
--- a/package/lean/autocore/files/autocore --- a/package/lean/autocore/files/autocore
+++ b/package/lean/autocore/files/autocore +++ b/package/lean/autocore/files/autocore
@@ -33,7 +33,7 @@ start() @@ -33,7 +33,7 @@ start()
@@ -33,8 +33,20 @@ index 55cd519f..06d202c0 100755
ethtool -K $c gso on >/dev/null 2>&1 ethtool -K $c gso on >/dev/null 2>&1
ethtool -K $c tso on >/dev/null 2>&1 ethtool -K $c tso on >/dev/null 2>&1
ethtool -K $c ufo on >/dev/null 2>&1 ethtool -K $c ufo on >/dev/null 2>&1
diff --git a/package/lean/autocore/files/index.htm b/package/lean/autocore/files/index.htm
index 22d1a55..0198c38 100644
--- a/package/lean/autocore/files/index.htm
+++ b/package/lean/autocore/files/index.htm
@@ -720,6 +720,7 @@
<tr><td width="33%"><%:Firmware Version%></td><td>
<%=pcdata(ver.distname)%> <%=pcdata(ver.distversion)%> /
<%=pcdata(ver.luciname)%> (<%=pcdata(ver.luciversion)%>)
+ built by DYC
</td></tr>
<tr><td width="33%"><%:Kernel Version%></td><td><%=unameinfo.release or "?"%></td></tr>
<tr><td width="33%"><%:Local Time%></td><td id="localtime">-</td></tr>
diff --git a/package/lean/autocore/files/sbin/cpuinfo b/package/lean/autocore/files/sbin/cpuinfo diff --git a/package/lean/autocore/files/sbin/cpuinfo b/package/lean/autocore/files/sbin/cpuinfo
index 19ea5fb2..60e7acda 100755 index 19ea5fb..60e7acd 100755
--- a/package/lean/autocore/files/sbin/cpuinfo --- a/package/lean/autocore/files/sbin/cpuinfo
+++ b/package/lean/autocore/files/sbin/cpuinfo +++ b/package/lean/autocore/files/sbin/cpuinfo
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@

View File

@@ -6,7 +6,7 @@ index 0443dc77..214d7cb8 100644
config settings 'cpufreq' config settings 'cpufreq'
- option maxfreq '716000' - option maxfreq '716000'
+ option maxfreq '0' + option maxfreq '1296000'
option upthreshold '50' option upthreshold '50'
option factor '10' option factor '10'
option minifreq '300000' option minifreq '300000'
@@ -19,7 +19,7 @@ index df42f3c7..c81e237d 100755
local governor=$(uci_get_by_type settings governor ondemand) local governor=$(uci_get_by_type settings governor ondemand)
local minifreq=$(uci_get_by_type settings minifreq 48000) local minifreq=$(uci_get_by_type settings minifreq 48000)
- local maxfreq=$(uci_get_by_type settings maxfreq 716000) - local maxfreq=$(uci_get_by_type settings maxfreq 716000)
+ local maxfreq=$(uci_get_by_type settings maxfreq 0) + local maxfreq=$(uci_get_by_type settings maxfreq 1296000)
local upthreshold=$(uci_get_by_type settings upthreshold 50) local upthreshold=$(uci_get_by_type settings upthreshold 50)
local factor=$(uci_get_by_type settings factor 10) local factor=$(uci_get_by_type settings factor 10)