Difference between revisions of "DeviceTree"

From The iPhone Wiki
Jump to: navigation, search
(Add header)
m (Updating)
Line 4: Line 4:
   
 
== See Also ==
 
== See Also ==
* [[n88ap|iPhone 3GS]]'s [[n88ap/Device Tree|Device Tree]]
+
* [[N88AP|iPhone 3GS]]'s [[N88AP/Device Tree|Device Tree]]
   
 
== External Links ==
 
== External Links ==

Revision as of 09:08, 13 October 2015

The device tree is a representation of hardware used by the boot loaders (iOS's iBoot and OS X's boot.efi) to provide the kernel with a mapping of hardware. The tree is a hierarchical representation of devices by connection, somewhat similar to Solaris's device tree (/devices), and Linux's /sys/devices (see device tree on Wikipedia for more context). It is used extensively by the boot loader, as it populates the various entries of the tree, and then passes it to XNU (the kernel). XNU's platform expert then maps these addresses and uses them to communicate with the I/O buses and other low level hardware.

The device tree is packaged as an IMG3 file and is located in the IPSW at /Firmware/all_flash/all_flash.{BoardCode}.production/DeviceTree.{BoardCode}.img3 on production devices. They are the same for every firmware for the device they are for, however, the keys are different every build.

See Also

External Links

  • IMG3 display tool, with device tree parser (source and header)