kexec now searches for current model in dtb (no longer hardcoded)
Added HTC M8 DTB entry copying
Added more HTC dtb entries to fix duo secondary camera.
Move M8 device-specific code to separate file.
Device-specific code originates from alexandru-g's github at https://github.com/alexandru-g/kexec tools from the following commits:
f38f90947e95e1d87ddf4cf6750bb2fe64f21963
277316318047956299ede48693ae07806c6c2d48
1fd5348af855e601373a228572349dd9d2f3e0a7
bb863b0c0b4e91173f09ee91889eef6419b4cf1d
Additional changes will be needed before a pull request can be issued.
Update for m8
Call missing function
Fixes from Tassadar to fix model detection
Remove extra comments and cleanup
Remove old dtb_get_model function
Updates for M8
* Kernels older than 3.10 without fix would let fread only get first
1024 bytes of /proc/atags, and half of it would be 0s. Using POSIX
read instad of C's fread 'fixes' it.
* This behaviour can be seen also when using busybox - cat reads
the whole file, because it uses open and read, but hexdump only shows
the first 1024 bytes, because it uses fopen and fread.
* Why is this there? Why the hell is 1536 used as hardcoded size?
The same goes for arch/arm/kernel/atags.c.
* The hardcoded size is too small for some devices, resulting in
panic on boot and crash of kexec userspace binary.