Hi.
I have a 8MP PU board with 2G DDR. I modify the device tree and configure it to 2GB.
But the bootloader shows 3GiB. The configuration in yocto bsp uboot is the same. Uboot can show 2GB.
Did I miss some files?
Attached is the 2GB file I modified.
Hi @hankwang,
here is patch for BSP 1.4.1 for i.MX8M Plus EVK with 2GB. You still need to use timing file prepared for your board.
I hope it will work for you better than the 4GB variant.
Best Regards, Jakub
Hi @jakub_zigacek Could you provide me with DDR 4GB patch file? The file is such like this
Hi @hankwang,
sorry for delay. Change to 4GB is easier, you only need to set Bank1 to 1GB size. No relocations as in 2GB patch are needed.
giMX8TokenSpaceGuid.PcdBank1MemorySize|0x0000000040000000
To see correct size in Windows, there is an adjustment in SmbiosPlatformDxe.c too.
But when you use different DDR chip, you need to always use DDR timing file prepared specifically for your DDR and board with DDR tool.
uboot-imx/board/freescale/imx8mp_evk/lpddr4_timing.c
It could work with timing file from different board + DDR chip couple, but only by chance when DDR chips are similar enough and one cannot rely on it. The crashing with 2GB patch could be due to this reason.
Best Regards, Jakub
Hi @jakub_zigacek
Thank you for your patch. The DDR size changed from 6G to 2GB.
But I have a problem, the system cannot jump to winpe. I see a boot menu screen. Do you have any idea?
I made sure there were some windows folder on the SD card.
Hi @hankwang,
do you have at hand an EVK board to test if the SD card will enter win PE?
Tip: If you remove or rename install.cmd.txt on SD card, win PE will start, but will not rewrite emmc content, instead you will end with open command window.
If the content of SD card is correct, than it looks like UEFI is not able to find SD card. It could happened i.g. when SD port is connected to differently then in EVK board. Can you please check, if you have SD card on SDHC2?
If not, you need to adjust it in mu_platform_nxp/NXP/MX8M_PLUS_EVK/AcpiTables/Dsdt-Sdhc.asl and mu_platform_nxp/NXP/MX8M_PLUS_EVK/MX8M_PLUS_EVK.dsc files.
# uSDHCx | iMX8M EVK Connections
#-------------------------------------
# uSDHC1 | N/A
# uSDHC2 | SD Card slot
# uSDHC3 | eMMC
# uSDHC4 | N/A
#
giMXPlatformTokenSpaceGuid.PcdSdhc1Base|0x30B40000
giMXPlatformTokenSpaceGuid.PcdSdhc2Base|0x30B50000
giMXPlatformTokenSpaceGuid.PcdSdhc3Base|0x30B60000
giMXPlatformTokenSpaceGuid.PcdSdhc4Base|0x00000000
giMXPlatformTokenSpaceGuid.PcdSdhc1Enable|FALSE
giMXPlatformTokenSpaceGuid.PcdSdhc2Enable|TRUE
giMXPlatformTokenSpaceGuid.PcdSdhc3Enable|TRUE
giMXPlatformTokenSpaceGuid.PcdSdhc4Enable|FALSE
giMXPlatformTokenSpaceGuid.PcdSdhc1CardDetectSignal|0xFF00
giMXPlatformTokenSpaceGuid.PcdSdhc1WriteProtectSignal|0xFF01
giMXPlatformTokenSpaceGuid.PcdSdhc2CardDetectSignal|0xFF00
giMXPlatformTokenSpaceGuid.PcdSdhc2WriteProtectSignal|0xFF00
giMXPlatformTokenSpaceGuid.PcdSdhc2DeviceType|0x1
giMXPlatformTokenSpaceGuid.PcdSdhc3CardDetectSignal|0xFF00
giMXPlatformTokenSpaceGuid.PcdSdhc3WriteProtectSignal|0xFF00
giMXPlatformTokenSpaceGuid.PcdSdhc3DeviceType|0x8
giMXPlatformTokenSpaceGuid.PcdSdhc4CardDetectSignal|0xFF00
giMXPlatformTokenSpaceGuid.PcdSdhc4WriteProtectSignal|0xFF01
Best Regards, Jakub
Hi @hankwang