FAQ_MA35_Family_External DDR Parameters Compilation

Post Reply
ytliu6
Posts: 95
Joined: 08 Nov 2022, 10:28

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:

Code: Select all

Buildroot/board/nuvoton/ma35d1/ddr
After replacing, use Buildroot menuconfig to utilize DDR parameter.

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
Remember to clean and re-compile necessary component.

Code: Select all

# make arm-trusted-firmware-dirclean uboot-dirclean optee-os-dirclean linux-dirclean && make
Yocto:
Replace the custom_ddr.h in “files” folder with yours
Path:

Code: Select all

yocto/sources/meta-ma35d1/recipes-bsp/tf-a/files
Also you need to modify configuration file which IC part number you used such as numaker

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"
After replacing, remember to clean and re-compile necessary component.

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
#MA35 #DDR #External DDR #DDR Parameter

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests