The device keeps rebooting? Read online that the hardware watchdog of the pi needs to be petted every 15 seconds, so giving it a try.
(reboots the device after it hangs for 20 seconds or more)