I think the fwrite line doesn't make its job, but anyway I tried echo boot > /dev/kexec_driver but the device did not reboot. So I checked the dmesg. The only thing I could find about this process or module or driver was that line:
"<6>[83652.446275] procfs_rw: procfile_read (/proc/atags) called"
Well, I had the same situation and problem was:
- stock kernels on locked bootloader have no enabled config ATAGS, so atags is all time empty, you can hack atags by making them available in proc directory but it will be all time empty. I have tried to port ATAGS part of kernel to module but I must say thats a hard job, good luck to you proting them! Atags is created on boot time so you need a very good idea to hack/port them trought an kernel module or whatever. I had no luck making kexec working on locked bootloader since I had no idea how to enable atags and make them no empty.
Last edited: