John Crispin
74d00a8c38
kernel: split patches folder up into backport, pending and hack folders
...
* properly format/comment all patches
* merge debloat patches
* merge Kconfig patches
* merge swconfig patches
* merge hotplug patches
* drop 200-fix_localversion.patch - upstream
* drop 222-arm_zimage_none.patch - unused
* drop 252-mv_cesa_depends.patch - no longer required
* drop 410-mtd-move-forward-declaration-of-struct-mtd_info.patch - unused
* drop 661-fq_codel_keep_dropped_stats.patch - outdated
* drop 702-phy_add_aneg_done_function.patch - upstream
* drop 840-rtc7301.patch - unused
* drop 841-rtc_pt7c4338.patch - upstream
* drop 921-use_preinit_as_init.patch - unused
* drop spio-gpio-old and gpio-mmc - unused
Signed-off-by: John Crispin <john@phrozen.org>
7 years ago
Felix Fietkau
7eeb254cc4
treewide: replace nbd@openwrt.org with nbd@nbd.name
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Hauke Mehrtens
21cf64b4ad
kernel: fix section mismatch in crashlog
...
The function memblock_insert_region() is in the section
__init_memblock, also put crashlog_init_memblock there.
This fixes this section mismatch warning:
The function memblock_insert_region.isra.1() references
the function __meminit crashlog_init_memblock().
This is often because memblock_insert_region.isra.1 lacks a __meminit
annotation or the annotation of crashlog_init_memblock is wrong.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 48931
9 years ago
Rafał Miłecki
1513b39a8c
kernel: start working on 3.18 support
...
This commit:
1) Copies 3.14 patches
2) Drops mainlined stuff
3) Modifies some patches to apply
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43093
10 years ago
Imre Kaloz
074af75668
add preliminary 3.14 support
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 39789
11 years ago
Imre Kaloz
6bd1a37001
add initial 3.13 support
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 39348
11 years ago
Felix Fietkau
3848e6a246
kernel: crashlog: Avoid out-of-bounds write
...
vsnprintf returns the number of chars that would have been written, not
the actual number of chars written. This can lead to crashlog_buf->len
being too big which in turn can lead to get_maxlen() returning negative
numbers. The length argument of kmsg_dump_get_buffer will be casted to
a size_t which makes a negative input a big positive number allowing
kmsg_dump_get_buffer to write out of bounds.
Fix this by using vscnprintf which returns the actually written number
of chars.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 37820
11 years ago
Florian Fainelli
680f460861
kernel: refresh 3.8 patches
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 35317
12 years ago
Florian Fainelli
8dbed04ec9
kernel: add support for 3.8-rc2
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 35055
12 years ago
Gabor Juhos
2143de1a3d
generic: disable crashlog on ppc
...
It causes panic on boot:
[ 0.194287] __ioremap(): phys addr 0x1f00000 is RAM lr crashlog_init_fs
[ 0.200902] Unable to handle kernel paging request for data at address 0x00000000
[ 0.208347] Faulting instruction address: 0xc026cb10
[ 0.213282] Oops: Kernel access of bad area, sig: 11 [#1 ]
[ 0.218586] PowerPC 40x Platform
[ 0.221783] Modules linked in:
[ 0.224817] NIP: c026cb10 LR: c026cb10 CTR: c000c1b8
[ 0.229745] REGS: c1825ed0 TRAP: 0300 Not tainted (3.6.11)
[ 0.235435] MSR: 00029030 <EE,ME,IR,DR> CR: 42004082 XER: 00000000
[ 0.241745] DEAR: 00000000, ESR: 00000000
[ 0.245724] TASK = c181e000[1] 'swapper' THREAD: c1824000
GPR00: c026cb10 c1825f80 c181e000 00000000 0000004b 0000004b c029a4dd 6f675f69
GPR08: 6e69745f c0290440 00000000 00000000 22004084 00000000 01ffc400 004011f8
GPR16: 00000001 ffffffff 00000000 007fff00 01ff6120
01f94298 01fff258 c02631b8
GPR24: c02604bc 00000019 c02a0000 c02a0000 c027c644 00000000 c02c0000 c02bd388
[ 0.279089] NIP [c026cb10] crashlog_init_fs+0x30/0xe0
[ 0.284095] LR [c026cb10] crashlog_init_fs+0x30/0xe0
[ 0.289000] Call Trace:
[ 0.291442] [c1825f80] [c026cb10] crashlog_init_fs+0x30/0xe0 (unreliable)
[ 0.298185] [c1825f90] [c00023fc] do_one_initcall+0xdc/0x1c8
[ 0.303812] [c1825fc0] [c02638c4] kernel_init+0x110/0x1a4
[ 0.309154] [c1825ff0] [c000ad4c] kernel_thread+0x4c/0x68
[ 0.314488] Instruction dump:
[ 0.317429] 9421fff0 7c0802a6 bfc10008 3fc0c02c 90010014 3bfed388 3800fff4 807f0004
[ 0.325117] 2f830000 41be00a4 38804000 4bda2809 <81630000> 7c691b78 907ed388 6d605e11
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34773
12 years ago
Imre Kaloz
935ca3f3eb
add 3.7-rc6 support (patch 820 still has to be fixed)
...
SVN-Revision: 34247
12 years ago
Florian Fainelli
8ad0b56ba5
do not build crashlog on sparc too
...
This is crashing the kernel in crashlog_init_fs(), until fixed, disable it
for SPARC too.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34213
12 years ago
Gabor Juhos
9a37cf7ec6
generic: fix crashlog patch for 3.6
...
kmsg_dump() uses an iterator to receive log buffer
content since 3.5. Change the 'crashlog_do_dump'
function in order to make it compatible with the
new version.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33970
12 years ago
Florian Fainelli
7e856e5a97
make all 3.6 patches apply and build
...
SVN-Revision: 33911
12 years ago
Imre Kaloz
949b46d13d
linux 3.6 support (work in progress)
...
SVN-Revision: 33897
12 years ago
Gabor Juhos
b942309f4f
generic: use __meminit annotation for crashlog_init_memblock
...
Fixes this section mismatch warning:
WARNING: vmlinux.o(.meminit.text+0xb14): Section mismatch in reference
from the function memblock_insert_region() to the function
.init.text:crashlog_init_memblock()
The function __meminit memblock_insert_region() references
a function __init crashlog_init_memblock().
If crashlog_init_memblock is only used by memblock_insert_region then
annotate crashlog_init_memblock with a matching annotation.
Also, remove the __init annotations from 'include/linux/crashlog.h'
SVN-Revision: 33137
12 years ago
Florian Fainelli
c0561a42e7
disable crashlog on ARM platforms for the moment
...
It is currently badly broken on ARM, until fixed, disable it
SVN-Revision: 32926
12 years ago
Felix Fietkau
b59bc92c6e
crashlog: fix dependency, add memblock support
...
SVN-Revision: 32787
12 years ago
Jonas Gorski
eca9950f63
kernel: add preliminary support for linux 3.3
...
Based on 3.3-rc2
SVN-Revision: 29986
13 years ago
Jonas Gorski
1bc0abb058
kernel: add support for linux 3.2.1
...
SVN-Revision: 29730
13 years ago
Jonas Gorski
3e94ee9642
kernel: generic: refresh patches for 3.1-rc2
...
SVN-Revision: 28021
13 years ago
Jonas Gorski
cf2070bd5b
linux: generic: add support for 3.1-rc1
...
SVN-Revision: 27940
13 years ago
Hauke Mehrtens
1c0d5f5ae2
kernel: refresh patches for kernel 3.0-rc4
...
SVN-Revision: 27247
13 years ago
Hauke Mehrtens
235e331987
linux/generic: Add support for 3.0-rc3
...
Also make linux identify itself properly as 3.0, not 3.0.0.
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
SVN-Revision: 27191
13 years ago
Felix Fietkau
127e4ebd32
generic: Add support for 2.6.39
...
Add support for 2.6.39 based on rc3. Runtime tested on bcm63xx.
SVN-Revision: 26615
14 years ago
Imre Kaloz
c700e57cc7
preliminary 2.6.38 support
...
SVN-Revision: 25057
14 years ago
Alexandros C. Couloumbis
ce0984ec5d
linux/generic: update & refresh 2.6.36 & 2.6.37. ( closes #8324 )
...
SVN-Revision: 24370
14 years ago
Alexandros C. Couloumbis
a2d17ea8cf
target/linux: add preliminary 2.6.37 kernel support
...
SVN-Revision: 23828
14 years ago
Hamish Guthrie
0dc830c8f1
kernel: crashlog uses bootmem to allocate memory which is being deprecated in favour of memblock. microblaze, sh, arm, sparc and powerpc only have memblock.
...
SVN-Revision: 23269
14 years ago
Alexandros C. Couloumbis
11c45f64fe
linux/generic: refresh 2.6.36 kernel patches
...
SVN-Revision: 23237
14 years ago
Alexandros C. Couloumbis
206e5f313e
linux/generic: add kernel 2.6.36 preliminary support
...
SVN-Revision: 22832
14 years ago
Florian Fainelli
083ff78000
crashlog depends on BOOTMEM
...
SVN-Revision: 22541
14 years ago
Felix Fietkau
9f6c22b497
kernel: add the new 'crashlog' feature, which tries to store kernel oops/panic logs in a fixed location in RAM to recover them after the reboot and make them available to user space using debugfs
...
SVN-Revision: 22305
14 years ago