有没有可能在OpenWRT上安装全新的内核?目前我有3.18版本,但我不得不降级到补丁内核由坎德拉技术,以安装新的固件为ath10k。我一直在谷歌搜索如何咬这个,但没有很好的指导如何做到这一点。
更新:(从TS的答案复制)
南芬..。
我试着照你说的做,但出了一个问题
Applying patch platform/310-lib-add-rle-decompression.patch
patching file lib/Kconfig
Hunk #1 succeeded at 227 with fuzz 2 (offset -6 lines).
patching file lib/Makefile
Hunk #1 FAILED at 97.
1 out of 1 hunk FAILED -- rejects in file lib/Makefile
patching file include/linux/rle.h
patching file lib/rle.c
Patch platform/310-lib-add-rle-decompression.patch does not apply (enforce with -f)
make[3]: *** [sdk2/build_dir/target mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.17/.quilt_checked] Error 1
make[3]: Leaving directory `sdk2/target/linux/ar71xx'
make[2]: *** [compile] Error 2
make[2]: Leaving directory `sdk2/target/linux'
make[1]: *** [target/linux/compile] Error 2
make[1]: Leaving directory `sdk2'
make: *** [target/linux/compile] Error 2发布于 2016-07-15 02:41:46
如果我没有错,您的问题是如何在OpenWRT中更改内核版本。
假设我用的是
OpenWRT: CC 15.05
Target system: Atheros AR7xxx/AR9xxx当前版本的内核为3.18,我希望将其降级为3.17
有两个文件夹您需要关心:
openwrt/target/linux/generic
openwrt/target/linux/ar71xx步骤1.在openwrt/target/linux/ar71xx/Makefile中编辑Makefile
- KERNEL_PATCHVER:=3.18
+ KERNEL_PATCHVER:=3.17步骤2.为内核创建配置文件
openwrt/target/linux/generic/config-3.17
openwrt/target/linux/ar71xx/config-3.17我建议您将config-3.18复制到config-3.17。您可以稍后通过以下方式修改它们
cd openwrt
make kernel_menuconfig步骤3.请编译它:
cd openwrt
make target/linux/clean
make target/linux/compile V=s第一次,内核源代码Linux3.17.tar.xz将下载到openwrt/dl中。然后在没有任何补丁的情况下对其进行解压缩和编译。
Step4。创建文件夹补丁-3.17然后放入您自己的内核补丁(来自Candela )。
openwrt/target/linux/ar71xx/patches-3.17
用Step3重复。
若要在OpenWRT中创建修补程序文件,可以查看此链接https://wiki.openwrt.org/doc/devel/patches
发布于 2016-07-14 14:18:41
使用openwrt主分支,然后为您的设备构建应该会给您一个新的内核。上次我查的是4.1。
发布于 2022-02-06 15:37:16
如果有人发现这个页面用于更改openwrt内核,下面是我根据这个页面信息得出的结果,再次感谢!
这里,我将把内核5.10更改为5.16内核,例如,对于x86平台:
通过这些更改,我成功地在openwrt中构建了5.16内核。
https://stackoverflow.com/questions/38372757
复制相似问题