1. A computer implemented method, comprising: executing codes embedded from a ROM (read only memory) of a device to verify a first code image using a key stored within the ROM; and in response to successfully verifying the first code image, executing the verified first code image in a main memory of the device.