Re: [edk2] Loading initrd above 4G causes freeze on boot

From: Laszlo Ersek
Date: Thu Aug 21 2014 - 16:23:31 EST


On 08/20/14 22:30, Matt Fleming wrote:
> [ Pulling in EDK2 folks for help ]
>
> On Wed, 20 Aug, at 08:53:45PM, Michael Brown wrote:
>> On 20/08/14 20:05, Mantas MikulÄnas wrote:
>>>
>>> I experimented with some things (like setting chunk size to a few kB
>>> to see if it hangs earlier or only at the very end; etc.), and finally
>>> found out that it stops freezing if I pad the initrd file to a
>>> multiple of 512 bytes :/ That is, 5684268 bytes will freeze, 5684736
>>> bytes will not.
>>>
>>> ...In other words, seems like it cannot read chunks that aren't
>>> multiples of 512 into a location above 4 GB. Or something like that...

This patch by yours truly appears remotely relevant:

https://github.com/tianocore/edk2/commit/4e39b75e

It's dated Aug 26, 2013; no idea if the firmware on Mantas' Asus K52JT,
AMI firmware v206, has it.

Thanks,
Laszlo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/