mirror of https://github.com/acidanthera/audk.git
ArmPkg/BdsLib: Fixed LinuxImageSize if uImagei format
The uImage is 64Bytes smaller (size of the u-boot header) than the size of the file read from the file system. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13030 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
48837c2286
commit
1093e3074f
|
@ -79,6 +79,7 @@ StartLinux (
|
|||
if (*(UINT32*)LinuxKernel == LINUX_UIMAGE_SIGNATURE) {
|
||||
// Assume the Image Entry Point is just after the uImage header (64-byte size)
|
||||
LinuxKernel = (LINUX_KERNEL)((UINTN)LinuxKernel + 64);
|
||||
LinuxImageSize -= 64;
|
||||
}
|
||||
|
||||
//TODO: Check there is no overlapping between kernel and Atag
|
||||
|
|
Loading…
Reference in New Issue