[PATCH v3 1/7] rpi5: add initial memory map for bcm2712
Ivan T . Ivanov
iivanov at suse.de
Wed Dec 20 13:08:32 CET 2023
Hi,
On 12-18 23:03, Ivan T. Ivanov wrote:
>
> +static struct mm_region bcm2712_mem_map[MEM_MAP_MAX_ENTRIES] = {
> + {
> + .virt = 0x00000000UL,
> + .phys = 0x00000000UL,
> + .size = 0x3f800000UL,
Something that I realized just now. This memory map is valid only if
HDMI cable is plugged in. Otherwise size of this section is 0x3fc00000.
This is how it is populated by the embedded bootloaader.
Which I am reading as: bootloader do not expose video framebuffer if
HDMI cable is not plugged in at boot time.
With current map, board hang at boot if HDMI is not plugged in.
If I make first region with size 0x3Fc00000 and remove below
dedicated framebuffer region, device boots with and without
HDMI cable plugged in.
> + .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
> + PTE_BLOCK_INNER_SHARE
> + }, {
> + .virt = 0x3f800000UL,
> + .phys = 0x3f800000UL,
> + .size = 0x00800000UL,
> + .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
> + PTE_BLOCK_NON_SHARE |
> + PTE_BLOCK_PXN | PTE_BLOCK_UXN
> + }, {
Sorry that I missed it the first time.
Regards,
Ivan
More information about the U-Boot
mailing list