[OpenWrt-Devel] [LEDE-DEV] Using kdump... persistent logs, etc.

Syrone Wong wong.syrone at gmail.com
Fri Mar 3 02:23:15 EST 2017


depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)

x86_64 is disabled by default. You may want to enable it yourself. I
don't know why.


Best Regards,
Syrone Wong


On Fri, Mar 3, 2017 at 2:31 PM, Philip Prindeville
<philipp_subx at redfish-solutions.com> wrote:
> I built an x86_64 image and turned on crash logging, and then forced a crash with:
>
> echo c >/proc/sysrq-trigger
>
> it rebooted, but when it did there was nothing in /sys/kernel/debug/ (i.e. no crashlog file).
>
> What am I missing?  Does this not work with x86_64?
>
> -Philip
>
>
>> On Feb 23, 2017, at 10:27 AM, Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
>>
>> Thanks for that.
>>
>>
>>> On Feb 22, 2017, at 11:44 PM, Syrone Wong <wong.syrone at gmail.com> wrote:
>>>
>>> According to LEDE's source code:
>>>
>>> config KERNEL_CRASHLOG
>>> bool "Crash logging"
>>> depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)
>>> default y
>>>
>>> https://github.com/lede-project/source/blob/master/config/Config-kernel.in
>>>
>>> It is enabled by default on some targets and will be available at
>>> `/sys/kernel/debug/crashlog` on next boot after crash.
>>>
>>> The implementation detail can be found here:
>>> https://github.com/lede-project/source/blob/master/target/linux/generic/patches-4.9/930-crashlog.patch
>>>
>>>
>>> Best Regards,
>>> Syrone Wong
>>>
>>>
>>> On Thu, Feb 23, 2017 at 10:05 AM, Philip Prindeville
>>> <philipp_subx at redfish-solutions.com> wrote:
>>>> Hi,
>>>>
>>>> Has anyone managed to use kdump with OpenWRT/LEDE?
>>>>
>>>> I have a box which periodically panics, and since /var is a link to /tmp/ there are no persistent logs.  Which reminds me: is it safe to configure a third partition on my CF card, format it as ext3, and mount that as /var/log in /etc/fstab?
>>>>
>>>> And how would I modify the build process if I wanted to add additional partitions?
>>>>
>>>> Thanks,
>>>>
>>>> -Philip
>>>> _______________________________________________
>>>> openwrt-devel mailing list
>>>> openwrt-devel at lists.openwrt.org
>>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
>>
>> _______________________________________________
>> Lede-dev mailing list
>> Lede-dev at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/lede-dev
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list