FAQ_MA35_Family_External DDR Parameters Compilation
Posted: 23 Apr 2024, 15:12
This FAQ explains how to utilize the DDR parameter file to generate a Linux image.
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:
After replacing, use Buildroot menuconfig to utilize DDR parameter.
Remember to clean and re-compile necessary component.
Yocto:
Replace the custom_ddr.h in “files” folder with yours
Path:
Also you need to modify configuration file which IC part number you used such as numaker
After replacing, remember to clean and re-compile necessary component.
#MA35 #DDR #External DDR #DDR Parameter
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