Home | History | Annotate | Download | only in AbootimgLib

Lines Matching refs:Header

62     }, // Header
126 ANDROID_BOOTIMG_HEADER *Header;
128 Header = (ANDROID_BOOTIMG_HEADER *) BootImg;
130 if (AsciiStrnCmp (Header->BootMagic, BOOT_MAGIC, BOOT_MAGIC_LENGTH) != 0) {
134 ASSERT (IS_POWER_OF_2 (Header->PageSize));
137 *ImgSize = ALIGN_VALUE (Header->KernelSize, Header->PageSize) +
138 ALIGN_VALUE (Header->RamdiskSize, Header->PageSize) +
139 ALIGN_VALUE (Header->SecondStageBootloaderSize, Header->PageSize) +
140 Header->PageSize;
151 ANDROID_BOOTIMG_HEADER *Header;
153 Header = (ANDROID_BOOTIMG_HEADER *) BootImg;
155 if (AsciiStrnCmp (Header->BootMagic, BOOT_MAGIC, BOOT_MAGIC_LENGTH) != 0) {
159 if (Header->KernelSize == 0) {
163 ASSERT (IS_POWER_OF_2 (Header->PageSize));
165 *KernelSize = Header->KernelSize;
166 *Kernel = BootImg + Header->PageSize;
177 ANDROID_BOOTIMG_HEADER *Header;
183 Header = (ANDROID_BOOTIMG_HEADER *) BootImg;
185 if (AsciiStrnCmp (Header->BootMagic, BOOT_MAGIC, BOOT_MAGIC_LENGTH) != 0) {
189 ASSERT (IS_POWER_OF_2 (Header->PageSize));
191 *RamdiskSize = Header->RamdiskSize;
193 if (Header->RamdiskSize != 0) {
194 *Ramdisk = (VOID *) (BootImgBytePtr + Header->PageSize +
195 ALIGN_VALUE (Header->KernelSize, Header->PageSize));
206 ANDROID_BOOTIMG_HEADER *Header;
208 Header = (ANDROID_BOOTIMG_HEADER *) BootImg;
209 AsciiStrnCpyS (KernelArgs, BOOTIMG_KERNEL_ARGS_SIZE, Header->KernelArgs,
242 Print (L"ERROR: Device Tree header not valid (err:%d)\n", err);
256 ANDROID_BOOTIMG_HEADER *Header;
261 Header = (ANDROID_BOOTIMG_HEADER *) BootImg;
265 if (AsciiStrnCmp (Header->BootMagic, BOOT_MAGIC, BOOT_MAGIC_LENGTH) != 0) {
269 ASSERT (IS_POWER_OF_2 (Header->PageSize));
272 if (Header->RamdiskAddress && Header->RamdiskSize) {
273 Address = (EFI_PHYSICAL_ADDRESS)(UINTN)Header->RamdiskAddress;
276 EFI_SIZE_TO_PAGES (Header->RamdiskSize), &Address);
280 Source = (VOID *) (BootImgBytePtr + Header->PageSize +
281 ALIGN_VALUE (Header->KernelSize, Header->PageSize));
282 CopyMem ((VOID *)(UINTN)Address, Source, Header->RamdiskSize);
288 (UINTN)Address, Header->RamdiskSize
345 Print (L"ERROR: Device Tree header not valid (err:%d)\n", err);
433 // Read both image header and kernel header