Create patch_kernel_5.4-test.sh
This commit is contained in:
18
patch_kernel_5.4-test.sh
Normal file
18
patch_kernel_5.4-test.sh
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
cd friendlywrt-rk3328
|
||||||
|
cd kernel/
|
||||||
|
git apply ../../add_fullconenat.diff
|
||||||
|
wget https://github.com/QiuSimons/R2S-OpenWrt/raw/master/PATCH/new/main/998-rockchip-enable-i2c0-on-NanoPi-R2S.patch
|
||||||
|
git apply RK3328-enable-1512mhz-opp.patch
|
||||||
|
cd ../
|
||||||
|
git clone https://github.com/coolsnowwolf/lede && cd lede/
|
||||||
|
git checkout 707e6ed1a19db0a12f553cafbd5851d3591420af
|
||||||
|
cp -a ./target/linux/generic/files/* ../kernel/
|
||||||
|
./scripts/patch-kernel.sh ../kernel target/linux/generic/backport-5.4
|
||||||
|
./scripts/patch-kernel.sh ../kernel target/linux/generic/pending-5.4
|
||||||
|
./scripts/patch-kernel.sh ../kernel target/linux/generic/hack-5.4
|
||||||
|
cd ../
|
||||||
|
wget https://github.com/torvalds/linux/raw/master/scripts/kconfig/merge_config.sh && chmod +x merge_config.sh
|
||||||
|
grep -i '_NETFILTER_\|FLOW' ../.config.override > .config.override
|
||||||
|
./merge_config.sh -m .config.override kernel/arch/arm64/configs/nanopi-r2_linux_defconfig && mv .config kernel/arch/arm64/configs/nanopi-r2_linux_defconfig
|
||||||
|
|
||||||
|
sed -i -r 's/# (CONFIG_.*_ERRATUM_.*?) is.*/\1=y/g' kernel/arch/arm64/configs/nanopi-r2_linux_defconfig
|
||||||
Reference in New Issue
Block a user