On 23 February 2017 at 05:29, Alex Elder <elder@linaro.org> wrote:
On 02/22/2017 02:42 AM, Ard Biesheuvel wrote:
>>>> How to solve the conflicts between GPT and Bootloader is really a thorny
>>>> problem for me.Can you give me some advises about this problem?
>>>>
>>> Doesn't eMMC support separate boot regions? I think the boot ROM
>>> should use the boot region, and switch the eMMC to normal mode before
>>> handing over to UEFI. This way, it can put the partition table
>>> wherever it likes to.

I haven't really with eMMC, but I wondered what the purpose of the
boot regions was.  If it's this, we should use it.

Did we get an answer on this?  

>> No,it doesn't support separate boot regions in Poplar board. The boot ROM
>> only can recognize the bootloader at the start address of user data region.
>> Therefor, the first and most important thing is to solve the conflicts
>> between GPT and Bootloader.
>> Now,I am reading the GPT driver source code in EDKII core,and trying to find
>> the reason why UEFI can't recognized the backup GPT Header which was located
>> in the last LBA of the EMMC device.

That's a good idea.

>> Don't we have other ways to make UEFI recognize the GPT in other place?
>> Can you give me some advises about this problem?
> The backup GPT header is for recovery only. We should not rely on it
> for normal operation.

I agree with this completely.

                                        -Alex




--
Regards,
Bin