The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "DeviceTree"
(formatting) |
(The tool is not a decrypter...) |
||
Line 1: | Line 1: | ||
The '''device tree''' is a representation of hardware used by the boot loaders (iOS's [[iBoot (Bootloader)|iBoot]] and OS X's <code>boot.efi</code>) 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 (<code>/devices</code>), and Linux's <code>/sys/devices</code>. It is used extensively by the boot loader, as it populates the various entries of the tree, and then passes it to [[kernelcache|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 a representation of hardware used by the boot loaders (iOS's [[iBoot (Bootloader)|iBoot]] and OS X's <code>boot.efi</code>) 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 (<code>/devices</code>), and Linux's <code>/sys/devices</code>. It is used extensively by the boot loader, as it populates the various entries of the tree, and then passes it to [[kernelcache|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 File Format|IPSW]] at <code>/Firmware/?</code>. They are the same for every firmware for the device they are for, however, the keys are different every build. |
+ | The device tree is packaged as an [[IMG3]] file and is located in the [[IPSW File Format|IPSW]] at <code>/Firmware/?</code>. They are the same for every firmware for the device they are for, however, the keys are different every build. |
== See Also == |
== See Also == |
||
Line 8: | Line 8: | ||
== External Links == |
== External Links == |
||
− | * [http://www.newosxbook.com/src.jl?tree=listings&file=6-bonus.c IMG3 |
+ | * [http://www.newosxbook.com/src.jl?tree=listings&file=6-bonus.c IMG3 display tool, with device tree parser] |
Revision as of 21:05, 30 October 2012
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
. 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/?
. They are the same for every firmware for the device they are for, however, the keys are different every build.