FAQ_MA35D1 Build a Custom DDR to Image by Buildroot

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

06 Apr 2023, 11:10

If you're working with an MA35D1 and you want to use an external DDR, you may find that the BSP only includes a limited set of DDR parameters. To address this issue, you can replace the existing "custom_ddr.h" header file with a new one that contains the necessary information.

To do this, you can copy the new "custom_ddr.h" file to the following path on your MA35D1 Buildroot project:

Code: Select all

~/shared/buildroot/test_MA35D1/MA35D1_Buildroot/board/nuvoton/ma35d1/ddr/custom_ddr.h
Modify the DDR configuration to yours and the following sample use 1G DDR.

Code: Select all

$ make menuconfig
Kernel  --->
(nuvoton/ma35d1-som-1g) In-tree Device Tree Source file names
Bootloaders  --->
In-tree Device Tree Source file names (ma35d1-cpu800-custom-ddr)  --->
(custom_ddr.h) Custom DDR header file in board/nuvoton/ma35d1/ddr
(0x40000000) Custom DDR size
After modify the configuration, rebuild uboot, optee-os, tf-a and repack it.

Code: Select all

$ make uboot-rebuild && make optee-os-rebuild && make linux-rebuild && make arm-trusted-firmware && make
By doing so, you'll ensure that the MA35D1 board uses the updated DDR parameters.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests