Kernel OpenWRT上的全新内核

Kernel OpenWRT上的全新内核,kernel,openwrt,Kernel,Openwrt,有没有可能在OpenWRT上安装全新的内核?目前,我有3.18版本,但我必须降级到补丁内核由坎德拉技术安装新的固件ath10k。我一直在谷歌搜索如何咬这个,但没有很好的指导如何做到这一点 更新:(摘自TS的答案) 南芬 我试着按照你的指示去做,但出现了一个问题 Applying patch platform/310-lib-add-rle-decompression.patch patching file lib/Kconfig Hunk #1 succeeded at 227 with fuz

有没有可能在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

使用openwrt主分支,然后为您的设备构建一个新的内核。上次我检查时,我想是4.1。

如果我没有错的话,你的问题是如何在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

步骤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
内核源代码linux-3.17.tar.xz将首次下载到openwrt/dl中。 然后它被解压并编译,没有任何补丁

第四步。创建文件夹patches-3.17,然后将您自己的内核补丁(来自Candela Tech)放入其中

openwrt/target/linux/ar71xx/patches-3.17

重复步骤3

要在OpenWRT中生成补丁文件,您可以查看此链接

你误解了我的问题。谢谢你的回答。你能向下滚动到我的最新帖子吗?:)我必须有50个声誉才能对你的最新帖子发表评论。:)。所以我在这里回答。问题是:您正在使用从内核3.18到内核3.17的补丁文件310-lib-add-rle-decompression.patch,但是这个补丁是自动下载的。我对这个文件什么都不做。我完全删除了内核目录并再次下载了while文件夹。我是否应该删除它以使其自行下载?您是否可以使用“/home/jacek/Desktop/xxx/sdk2/target/linux/ar71xx/patches-3.17”删除此评论?我忘了更改目录名:)我想主要的问题是我必须将补丁下载到3.17。但是从git下载的基本openwrt_sdk有3.18版本的补丁。我找不到那些补丁。
cd openwrt
make target/linux/clean
make target/linux/compile V=s