After using the DDR parameter Excel file provided by Nuvoton, place the file "custom_ddr.h" into a specific folder depending on the Linux production tool you are using.
Buildroot:
Replace the custom_ddr.h in “ddr” folder with yours
Path:
Code: Select all
Buildroot/board/nuvoton/ma35d1/ddr
Code: Select all
# make menuconfig
> Bootloader --->
In-tree Device Tree Source file names (ma35d1-cpu800-custom-ddr)
(custom_ddr.h) Custom DDR header file in board/nuvoton/ma35d1/ddr
(0x20000000) Custom DDR size
Code: Select all
# make arm-trusted-firmware-dirclean uboot-dirclean optee-os-dirclean linux-dirclean && make
Replace the custom_ddr.h in “files” folder with yours
Path:
Code: Select all
yocto/sources/meta-ma35d1/recipes-bsp/tf-a/files
Code: Select all
Path: yocto/sources/meta-ma35d1/conf/machine
TFA_SRCREV = "master"
# Set CPU speed, DDR type according to the board.
# The currently provided device tree are as follows:
# - ma35d1-cpu800-wb-128m
# - ma35d1-cpu800-wb-512m
# - ma35d1-cpu800-custom-ddr
TFA_DTB = "ma35d1-cpu800-custom-ddr"
Code: Select all
# bitbake tf-a-ma35d1 u-boot-ma35d1 optee-os-ma35d1 linux-ma35d1 -c cleanall && bitbake nvt-image-qt5 -c cleanall && bitbake nvt-image-qt5