05-23-2020, 01:16 PM
Alright, an early test version is now available at https://pastebin.com/LRukGNup . I'll probably put this up on Github when it's been through sufficient testing and memtest support is ironed out in the bootloader/kernel. Dependencies are bash, sed and, unless you provide the logfile location, dmesg.
Note that this is just parsing the output from the Linux memtest, without memtest activated in the kernel (both compiled in and specified on the cmdline) this won't do anything. I'd recommend "memtest=17" on the cmdline but the script makes no assumptions on how many patterns you use. Further instructions in the script header.
I couldn't get a log sample from a system with bad memory so the entire error handling section is made from reverse engineering of the Linux source code. If you have a kernel log from a system with bad memory I'd greatly appreciate if you could provide real error messages.
Note that this is just parsing the output from the Linux memtest, without memtest activated in the kernel (both compiled in and specified on the cmdline) this won't do anything. I'd recommend "memtest=17" on the cmdline but the script makes no assumptions on how many patterns you use. Further instructions in the script header.
I couldn't get a log sample from a system with bad memory so the entire error handling section is made from reverse engineering of the Linux source code. If you have a kernel log from a system with bad memory I'd greatly appreciate if you could provide real error messages.