Update linux6.x.md
This commit is contained in:
parent
3f5c892cf3
commit
aecf9060b0
11
linux6.x.md
11
linux6.x.md
@ -1,20 +1,19 @@
|
||||
# 切换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. 删除源码部分文件夹
|
||||
1. 执行命令来切换6.1内核`sed -i 's/5.4/6.1/g' ./target/linux/rockchip/Makefile`
|
||||
2. 删除源码部分文件夹
|
||||
```bash
|
||||
rm -rf package/kernel/mac80211
|
||||
rm -rf package/kernel/rtl8821cu
|
||||
rm -rf package/kernel/mt76
|
||||
rm -rf package/network/services/hostapd
|
||||
```
|
||||
4.下载openwrt官网部分文件
|
||||
3.下载openwrt官网部分文件
|
||||
```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
|
||||
```
|
||||
5. 将在target/linux/rockchip/image/armv8.mk这个文件夹里,去掉注释#,如下:
|
||||
4. 将在target/linux/rockchip/image/armv8.mk这个文件夹里,去掉注释#,如下:
|
||||
```patch
|
||||
--- a/target/linux/rockchip/image/armv8.mk
|
||||
+++ b/target/linux/rockchip/image/armv8.mk
|
||||
@ -71,4 +70,4 @@ svn export https://github.com/openwrt/openwrt/trunk/package/network/services/hos
|
||||
+TARGET_DEVICES += friendlyarm_nanopi-r5s
|
||||
```
|
||||
|
||||
6. 然后参考下载源代码,更新 feeds 并选择配置等等,即可编译你需要的固件了
|
||||
5. 然后参考下载源代码,更新 feeds 并选择配置等等,即可编译你需要的固件了
|
||||
|
Loading…
x
Reference in New Issue
Block a user