Difference between revisions of "TYPE"

From The iPhone Wiki
Jump to: navigation, search
(update)
Line 1: Line 1:
Contains a fourcc denoting the "type" of firmware image it is. Compared with R1 of [[image_load]](); when verifying the image. If it does not match, image_load(); will fail and the image will not be loaded. If R1 to image_load(); is zero, then all types are allowed.
+
The '''TYPE''' tag is a 32-bit unsigned integer (<code>uint32_t</code>) that when viewed in big-endian(?) format, states the type of firmware image the IMG2/[[IMG3 File Format|IMG3]] is. Is is compared with the second parameter of <code>[[image_load]]</code> (register <code>r1</code>). If it does not match, <code>image_load(void);</code> will fail and the image will not be loaded. If <code>0</code> is passed in <code>r1</code>, then the check is skipped.
   
== Known Types ==
+
== Types ==
  +
* [[Ramdisk]]: rdsk (0x7264736B)
* '''LLB''' - illb
 
  +
* [[Apple Logo]]: logo (0x6C6F676F)
* '''[[iBoot]]''' - ibot
 
  +
* [[BatteryCharging0]]:
* '''[[iBEC]]''' - ibec
 
  +
* [[BatteryCharging1]]:
* '''[[iBSS]]''' - ibss
 
  +
* [[BatteryFull]]:
* '''Kernel''' - krnl
 
  +
* [[BatteryLow0]]:
* '''Ramdisk''' - rdsk
 
  +
* [[BatteryLow1]]:
* '''Apple Logo''' - logo
 
* '''[[Recovery Mode]]''' - recm
+
* [[DeviceTree]]:
  +
* [[GlyphCharging]]:
  +
* [[GlyphPlugin]]:
  +
* [[iBEC]]: ibec (0x69626563)
  +
* [[iBoot]]: ibot
  +
* [[iBSS]]: ibss
  +
* [[Kernelcache]]: krnl (0x62736E6C)
  +
* [[LLB]]: illb (0x696C6C62)
  +
* [[NeedService]]:
  +
* [[RecoveryMode]]: recm (0x7265636D)
   
  +
{{stub|firmware}}
 
[[Category:Firmware Tags]]
 
[[Category:Firmware Tags]]

Revision as of 22:05, 24 December 2012

The TYPE tag is a 32-bit unsigned integer (uint32_t) that when viewed in big-endian(?) format, states the type of firmware image the IMG2/IMG3 is. Is is compared with the second parameter of image_load (register r1). If it does not match, image_load(void); will fail and the image will not be loaded. If 0 is passed in r1, then the check is skipped.

Types

Tango Utilities-terminal.png This firmware article is a "stub", an incomplete page. Please add more content to this article and remove this tag.