mediatek-filogic: add kmod-ramoops package#108
Open
s-2 wants to merge 1 commit intofreifunkh:master-wireguardfrom
Open
mediatek-filogic: add kmod-ramoops package#108s-2 wants to merge 1 commit intofreifunkh:master-wireguardfrom
s-2 wants to merge 1 commit intofreifunkh:master-wireguardfrom
Conversation
write crash logs to pstore (will be available in /sys/fs/pstore after reboot) use echo c > /proc/sysrq-trigger to force crash
Member
|
@s-2 Are there other targets, which support ramoops? |
Contributor
Author
|
There used to be a PR for OpenWrt forum thread: https://forum.openwrt.org/t/get-ramoops-mtdoops-or-mtdpstore-working-on-more-devices/212316 For |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For Mediatek MT798x devices, a 64KiB
pstorekernel memory region is declared in the .dtsihttps://github.com/openwrt/openwrt/blob/d7f9e240c208891a7d26d7a1d308cabd70618cae/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7981b.dtsi#L84-L89
to be used for retaining crash logs (ramoops) during reboot.
Add package
kmod-ramoops(which addskmod-pstoreas a dependency) for thefilogicsubtarget.Retrieval of logs currently involves manual investigation after unexpected reboots, maybe in the long term we could have a script check this on every boot (automatically send telemetry data, with user consent)?
Example
echo c > /proc/sysrq-triggerwill force a crash;after reboot, check contents of
/sys/fs/pstore:Tested on 7Links WLR-1300 and D-Link M30.