Merge pull request #795 from thomaswcy/master
Add Support for NanoPi R2C
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
###### (如果没有特别说明,更新内容就是上游Lean和Lienol两位大佬的代码更新)
|
###### (如果没有特别说明,更新内容就是上游Lean和Lienol两位大佬的代码更新)
|
||||||
|
|
||||||
|
## 2021-08-19
|
||||||
|
|
||||||
|
- 增加机型:NanoPi R2C 的支持(由@thomaswcy提供支持)
|
||||||
|
|
||||||
## 2021-03-13
|
## 2021-03-13
|
||||||
|
|
||||||
- autoupdate.sh脚本实验性功能:升级固件时自动扩容分区至sd卡最大值
|
- autoupdate.sh脚本实验性功能:升级固件时自动扩容分区至sd卡最大值
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Nanopi R1S R2S R4S Openwrt 固件
|
# Nanopi R1S R2S R2C R4S Openwrt 固件
|
||||||
|
|
||||||
[刷机工具](https://www.balena.io/etcher/)
|
[刷机工具](https://www.balena.io/etcher/)
|
||||||
[下载地址](#下载地址)
|
[下载地址](#下载地址)
|
||||||
@@ -37,7 +37,7 @@ wget -qO- https://github.com/klever1988/nanopi-openwrt/raw/master/scripts/autoup
|
|||||||
因为本项目预编译了Image builder,生成固件仅需1-3分钟,如果有兴趣自定义固件可以Fork本项目,编辑设备对应的config.seed文件,例如r2s.config.seed, 去掉(整行删除)不需要的luci app软件包配置行,添加自己所需的软件,可用软件的列表可以在github actions构件输出处获取,例如
|
因为本项目预编译了Image builder,生成固件仅需1-3分钟,如果有兴趣自定义固件可以Fork本项目,编辑设备对应的config.seed文件,例如r2s.config.seed, 去掉(整行删除)不需要的luci app软件包配置行,添加自己所需的软件,可用软件的列表可以在github actions构件输出处获取,例如
|
||||||
<img src="https://user-images.githubusercontent.com/56048681/114531174-3beafb80-9c7e-11eb-8bcc-b098c3b1cee8.png" width="250" />
|
<img src="https://user-images.githubusercontent.com/56048681/114531174-3beafb80-9c7e-11eb-8bcc-b098c3b1cee8.png" width="250" />
|
||||||
<img src="https://user-images.githubusercontent.com/56048681/124495884-43d4ba80-ddeb-11eb-95e9-fb096dcfda45.png" width="250" />
|
<img src="https://user-images.githubusercontent.com/56048681/124495884-43d4ba80-ddeb-11eb-95e9-fb096dcfda45.png" width="250" />
|
||||||
完成之后进入Actions,点击左侧Build,点击右侧Run workflow输入设备名(r2s/r4s/r1s/r1s-h3/r1p)
|
完成之后进入Actions,点击左侧Build,点击右侧Run workflow输入设备名(r2s/r2c/r4s/r1s/r1s-h3/r1p)
|
||||||
<img src="https://user-images.githubusercontent.com/56048681/114531768-c7648c80-9c7e-11eb-8d72-fe38f9df960d.png" width="250" />
|
<img src="https://user-images.githubusercontent.com/56048681/114531768-c7648c80-9c7e-11eb-8d72-fe38f9df960d.png" width="250" />
|
||||||
再点击Run即可获取自己所需的固件
|
再点击Run即可获取自己所需的固件
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
mv $GITHUB_WORKSPACE/files ./
|
mv $GITHUB_WORKSPACE/files ./
|
||||||
if [ $DEVICE = 'r2s' ]; then
|
if [ $DEVICE = 'r2s' -o $DEVICE = 'r2c' ]; then
|
||||||
mkdir -p files/usr/bin files/etc/init.d files/etc/rc.d
|
mkdir -p files/usr/bin files/etc/init.d files/etc/rc.d
|
||||||
wget https://github.com/friendlyarm/friendlywrt/raw/master-v19.07.1/target/linux/rockchip-rk3328/base-files/usr/bin/start-rk3328-pwm-fan.sh -qNP files/usr/bin
|
wget https://github.com/friendlyarm/friendlywrt/raw/master-v19.07.1/target/linux/rockchip-rk3328/base-files/usr/bin/start-rk3328-pwm-fan.sh -qNP files/usr/bin
|
||||||
chmod +x files/usr/bin/start-rk3328-pwm-fan.sh
|
chmod +x files/usr/bin/start-rk3328-pwm-fan.sh
|
||||||
@@ -20,4 +20,4 @@ eval `cat .config | grep \" | head -n 10`
|
|||||||
. files/etc/opkg/distfeeds.conf | tee files/etc/opkg/distfeeds.conf
|
. files/etc/opkg/distfeeds.conf | tee files/etc/opkg/distfeeds.conf
|
||||||
|
|
||||||
echo "iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53" >> files/etc/firewall.user
|
echo "iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53" >> files/etc/firewall.user
|
||||||
echo "iptables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 53" >> files/etc/firewall.user
|
echo "iptables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 53" >> files/etc/firewall.user
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ sed -i '/DEPENDS+/ s/$/ +wsdd2/' `find package/ -follow -type f -path '*/ksmbd-t
|
|||||||
sed -i 's/ +ntfs-3g/ +ntfs3-mount/' `find package/ -follow -type f -path '*/automount/Makefile'`
|
sed -i 's/ +ntfs-3g/ +ntfs3-mount/' `find package/ -follow -type f -path '*/automount/Makefile'`
|
||||||
sed -i '/skip\=/ a skip=`mount | grep -q /dev/$device; echo $?`' `find package/ -follow -type f -path */automount/files/15-automount`
|
sed -i '/skip\=/ a skip=`mount | grep -q /dev/$device; echo $?`' `find package/ -follow -type f -path */automount/files/15-automount`
|
||||||
|
|
||||||
if [ $DEVICE = 'r2s' ]; then
|
if [ $DEVICE = 'r2s' -o $DEVICE = 'r2c' ]; then
|
||||||
sed -i 's/1400000/1450000/' target/linux/rockchip/patches-5.4/991-arm64-dts-rockchip-add-more-cpu-operating-points-for.patch
|
sed -i 's/1400000/1450000/' target/linux/rockchip/patches-5.4/991-arm64-dts-rockchip-add-more-cpu-operating-points-for.patch
|
||||||
sed -i "s/enable '0'/enable '1'/" `find package/ -follow -type f -path '*/luci-app-oled/root/etc/config/oled'`
|
sed -i "s/enable '0'/enable '1'/" `find package/ -follow -type f -path '*/luci-app-oled/root/etc/config/oled'`
|
||||||
config_file_cpufreq=`find package/ -follow -type f -path '*/luci-app-cpufreq/root/etc/config/cpufreq'`
|
config_file_cpufreq=`find package/ -follow -type f -path '*/luci-app-cpufreq/root/etc/config/cpufreq'`
|
||||||
@@ -32,7 +32,7 @@ if [ $DEVICE = 'r4s' ]; then
|
|||||||
sed -i 's/r8169/r8168/' target/linux/rockchip/image/armv8.mk
|
sed -i 's/r8169/r8168/' target/linux/rockchip/image/armv8.mk
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $DEVICE =~ ('r2s'|'r4s'|'r1p') ]]; then
|
if [[ $DEVICE =~ ('r2s'|'r2c'|'r4s'|'r1p') ]]; then
|
||||||
wget https://github.com/coolsnowwolf/lede/raw/757e42d70727fe6b937bb31794a9ad4f5ce98081/target/linux/rockchip/config-default -NP target/linux/rockchip/
|
wget https://github.com/coolsnowwolf/lede/raw/757e42d70727fe6b937bb31794a9ad4f5ce98081/target/linux/rockchip/config-default -NP target/linux/rockchip/
|
||||||
wget https://github.com/coolsnowwolf/lede/commit/f341ef96fe4b509a728ba1281281da96bac23673.patch
|
wget https://github.com/coolsnowwolf/lede/commit/f341ef96fe4b509a728ba1281281da96bac23673.patch
|
||||||
git apply f341ef96fe4b509a728ba1281281da96bac23673.patch
|
git apply f341ef96fe4b509a728ba1281281da96bac23673.patch
|
||||||
|
|||||||
Reference in New Issue
Block a user