It sounds like you did kernel-4.0.1 but mmcblk0p1-4.0.0. These do not match and may cause problems. Where did you download mmbclk0p1-4.0.0? At that pasetebin link, there is a mmblk0p1-4.0.1 that you should use with the kernel you downloaded from that same pastebin link.
Also, to exit diags and boot to main you can do:
idme -d --bootmode main
sync
reboot
|