Update linux6.x.md
This commit is contained in:
parent
1c0a26ceb9
commit
df9165cf40
14
linux6.x.md
14
linux6.x.md
@ -1,10 +1,14 @@
|
||||
# 切换6.1来编译rockchip rk356x设备
|
||||
1. 将源码下载 `git clone https://github.com/DHDAXCW/lede-rockchip`
|
||||
2. 执行命令来切换6.1内核`sed -i 's/5.4/6.1/g' ./target/linux/rockchip/Makefile`
|
||||
3. 删掉文件,拉取上游的 `rm -rf package/kernel/mac80211 && rm -rf package/kernel/rtl8821cu && rm -rf package/kernel/mt76`
|
||||
4. 下载上游mac80211 `svn export https://github.com/coolsnowwolf/lede/trunk/package/kernel/mac80211 package/kernel/mac80211`
|
||||
5. 下载上游mt76 `svn export https://github.com/coolsnowwolf/lede/trunk/package/kernel/mt76 package/kernel/mt76`
|
||||
6. 将在target/linux/rockchip/image/armv8.mk这个文件夹里,去掉注释#,如下:
|
||||
3. 下载openwrt官网部分文件
|
||||
`rm -rf package/kernel/mac80211 && rm -rf package/kernel/rtl8821cu && rm -rf package/kernel/mt76 && rm -rf package/network/services/hostapd`
|
||||
```bash
|
||||
svn export https://github.com/openwrt/openwrt/trunk/package/kernel/mac80211 package/kernel/mac80211 \
|
||||
svn export https://github.com/openwrt/openwrt/trunk/package/kernel/mt76 package/kernel/mt76 \
|
||||
svn export https://github.com/openwrt/openwrt/trunk/package/network/services/hostapd package/network/services/hostapd
|
||||
```
|
||||
4. 将在target/linux/rockchip/image/armv8.mk这个文件夹里,去掉注释#,如下:
|
||||
```patch
|
||||
--- a/target/linux/rockchip/image/armv8.mk
|
||||
+++ b/target/linux/rockchip/image/armv8.mk
|
||||
@ -61,4 +65,4 @@
|
||||
+TARGET_DEVICES += friendlyarm_nanopi-r5s
|
||||
```
|
||||
|
||||
7. 然后参考下载源代码,更新 feeds 并选择配置等等,即可编译你需要的固件了
|
||||
5. 然后参考下载源代码,更新 feeds 并选择配置等等,即可编译你需要的固件了
|
||||
|
Loading…
x
Reference in New Issue
Block a user