1+ ========================
12The PowerPC boot wrapper
2- ------------------------
3+ ========================
4+
35Copyright (C) Secret Lab Technologies Ltd.
46
57PowerPC image targets compresses and wraps the kernel image (vmlinux) with
@@ -21,6 +23,7 @@ it uses the wrapper script (arch/powerpc/boot/wrapper) to generate target
2123image. The details of the build system is discussed in the next section.
2224Currently, the following image format targets exist:
2325
26+ ==================== ========================================================
2427 cuImage.%: Backwards compatible uImage for older version of
2528 U-Boot (for versions that don't understand the device
2629 tree). This image embeds a device tree blob inside
@@ -29,46 +32,53 @@ Currently, the following image format targets exist:
2932 with boot wrapper code that extracts data from the old
3033 bd_info structure and loads the data into the device
3134 tree before jumping into the kernel.
32- Because of the series of #ifdefs found in the
35+
36+ Because of the series of #ifdefs found in the
3337 bd_info structure used in the old U-Boot interfaces,
3438 cuImages are platform specific. Each specific
3539 U-Boot platform has a different platform init file
3640 which populates the embedded device tree with data
3741 from the platform specific bd_info file. The platform
3842 specific cuImage platform init code can be found in
39- arch/powerpc/boot/cuboot.*.c. Selection of the correct
43+ ` arch/powerpc/boot/cuboot.*.c `. Selection of the correct
4044 cuImage init code for a specific board can be found in
4145 the wrapper structure.
46+
4247 dtbImage.%: Similar to zImage, except device tree blob is embedded
4348 inside the image instead of provided by firmware. The
4449 output image file can be either an elf file or a flat
4550 binary depending on the platform.
46- dtbImages are used on systems which do not have an
51+
52+ dtbImages are used on systems which do not have an
4753 interface for passing a device tree directly.
4854 dtbImages are similar to simpleImages except that
4955 dtbImages have platform specific code for extracting
5056 data from the board firmware, but simpleImages do not
5157 talk to the firmware at all.
52- PlayStation 3 support uses dtbImage. So do Embedded
58+
59+ PlayStation 3 support uses dtbImage. So do Embedded
5360 Planet boards using the PlanetCore firmware. Board
5461 specific initialization code is typically found in a
5562 file named arch/powerpc/boot/<platform>.c; but this
5663 can be overridden by the wrapper script.
64+
5765 simpleImage.%: Firmware independent compressed image that does not
5866 depend on any particular firmware interface and embeds
5967 a device tree blob. This image is a flat binary that
6068 can be loaded to any location in RAM and jumped to.
6169 Firmware cannot pass any configuration data to the
6270 kernel with this image type and it depends entirely on
6371 the embedded device tree for all information.
64- The simpleImage is useful for booting systems with
72+
73+ The simpleImage is useful for booting systems with
6574 an unknown firmware interface or for booting from
6675 a debugger when no firmware is present (such as on
6776 the Xilinx Virtex platform). The only assumption that
6877 simpleImage makes is that RAM is correctly initialized
6978 and that the MMU is either off or has RAM mapped to
7079 base address 0.
71- simpleImage also supports inserting special platform
80+
81+ simpleImage also supports inserting special platform
7282 specific initialization code to the start of the bootup
7383 sequence. The virtex405 platform uses this feature to
7484 ensure that the cache is invalidated before caching
@@ -81,22 +91,26 @@ Currently, the following image format targets exist:
8191 named (virtex405-<board>.dts). Search the wrapper
8292 script for 'virtex405' and see the file
8393 arch/powerpc/boot/virtex405-head.S for details.
94+
8495 treeImage.%; Image format for used with OpenBIOS firmware found
8596 on some ppc4xx hardware. This image embeds a device
8697 tree blob inside the image.
98+
8799 uImage: Native image format used by U-Boot. The uImage target
88100 does not add any boot code. It just wraps a compressed
89101 vmlinux in the uImage data structure. This image
90102 requires a version of U-Boot that is able to pass
91103 a device tree to the kernel at boot. If using an older
92104 version of U-Boot, then you need to use a cuImage
93105 instead.
106+
94107 zImage.%: Image format which does not embed a device tree.
95108 Used by OpenFirmware and other firmware interfaces
96109 which are able to supply a device tree. This image
97110 expects firmware to provide the device tree at boot.
98111 Typically, if you have general purpose PowerPC
99112 hardware then you want this image format.
113+ ==================== ========================================================
100114
101115Image types which embed a device tree blob (simpleImage, dtbImage, treeImage,
102116and cuImage) all generate the device tree blob from a file in the
0 commit comments