The phone reboots consistently after 10 minutes of running. As per the wiki, I looked at the kernel config and did find a certain watchdog that was enabled. There are the steps I did.
Just to make sure, the steps you did don't include flashing the actual system, you're just flashing the kernel. Is this right or did you just leave that out of this issue?
/proc/last_kmsg doesn't exist. I did however just capture an output of dmesg ~26ish seconds before a crash. It may not say much but it could give us a lead. https://pastebin.com/cphAM30p
Thanks for posting these, I don't have an idea then, besides digging in the kernel source for watchdog related code, maybe commenting out stuff or adding debug statements.
(btw, I would prefer if you could attach the logs as files, instead of linking to pastebin. pastebin wants tor users to type in captchas, which is annoying.)
@ollieparanoid While searching through the wiki pages of similar devices, I stumbled upon the Samsung Galaxy Mini 2 (samsung-s6500d). If you check it out, they have similar issue with the reboots as well (the devices are very similar). Sadly, my device is partially damaged, I'm busy with life and I'm broke. If you can see anything you recognize or could give any pointers, it'd be greatly appreciated.
I have a weird obsession with this project. I would have definitely given up if I were doing anything else by now. I'm definitely taking it easy, so my contributions will be spaced out a lot more and lesser in volume, but I bet our kernels both have that file with the hardcoded message, and if I ran diff on them, there might be a parameter or something for the timeout. It's just a thought. I don't have the time (or patience) to do kernel stuff right now, but I'll get to it eventually if someone doesn't beat me to it or my device doesn't become completely unusable.
In my case (s6500d) I couldn't find watchdog anywhere either. I was able to run on pmos (dowbnstream) kernel longer than 3 minutes: pmos kernel + cyanogenmod initramfs allowed me to do this (but also disallowed me to sue ssh, see anything on screen except backlight etc., basically brick that doesn't reboot every 3 minutes). I wasn't able to determine what magic is done in CM initramfs for the phone to not reboot
No, it tries to boot Android which I didn't had on the phone. I could try this combination: boot.img(pmos kernel+MC initramfs) + rootfs(CyanogenMod) to see if the kernel is okay. (IF Android will boot with that kernel of course)
The pmos kernel should be almost exactly the same as the Android one, depending on where it's from. Do give it a try and see if the issue goes away, I'm curious.
samsung-s6500d: as it turns out the config.gz in the final CyanogenMod11 .zip differs from defconfig in git repo, I try to make diff file and find what it could be (if this really is problem in the kernel)
@lofenyy , can you check your config and compare if any of the options with "<" in front differs from your pmos kernel (besides CONFIG_CMDLINE_*, these were set to force cmdline without overwriting by bootloader)?
UPDATE: List of things that changed between Android .zip and git repo for samsung-s6500d AND things that are different between samsung-s6500d Android.zip and pmos samsung-kylessopen:
lg-p700, which is 3rd of of 3 booting devices with MSMS7227a SoC has CONFIG_ARCH_HAS_BARRIERS=y ( netfilters/2nd part of diff also are set to "y", but I don't think this causes problems) , rest of the options is unset, like in the rest of pmos kernels for this SoC, I'm going to change that in s6500d kernel and see it this helps nope, this does not help