I assumed you had compiled the kexec kernel modules already before opening this thread. Getting them compiled is the easy part and building a custom kernel shouldn't even be on the table right now.
Also just because the kernel panics when trying to execute kexec doesn't mean the kexec kernel loaded, checking kmsg you can confirm.
You should be trying to get the kexec hijack to to work with just the stock kernel. Getting the actual kexec hijack to work is the problem, sure you can get it to start by executing the binary while in the ramdisk but you have to cleanly shutdown most drivers before the jump to the seconds kernel. Plus a lot of other sanity checking and system monitoring.
Also you shouldn't have had to patch anything, the kexec kernel module would have loaded just fine being cross compiled..as long as you gave the correct addresses for kernel, tags etc. That's why it was so great that these kernels allowed insecure modules.
1. I agree that the remaining part is the hardest...
2. I don't agree that kexec module shouldn't be patched. This means that you've NOT compiled VZW KK kernel from source since NC2/NC4 kernels are compiled with MODVersions meaning that your cross-compiled module against the kernel source code published by Samsung won't be loaded (failed to load, invalid argument etc) before you apply required patches!
3. Building a guest kernel is what I need for debugging now!!
4. The required hijack is considered & some patches have been applied for that. Moreover, I think Safestrap/hijack could be modified for that purpose.
5. I've already updated Safestrap & contacted
@Hashcode several times asking for permission with no response!!!
6. I'm testing better alternatives, but I post only successful phases.
7. A lot have been done by a beginner dev like me with no contributions!!!
Please share your experience or contribute to the thread if you've any useful info. From day one, I invited everyone to contribute & asked for no credits (no one responded!!!),
All devs are invited to contribute to this thread & all credits are for the entire team. I hope @Hashcode would help us or even lead the team, as he's the most experienced dev in this area & he did it before for other device(s).