Site Search

How can I customize u-boot when using Altera Linux on Arria V SoC? Case 3: I want to limit the amount of memory that Linux can use

SoCFPGA Embedded SW (OS)

Device: Arria® V
Category: SoC


It can be handled by editing the file to be edited (uboot-socfpga/include/configs/socfpga_common.h) included in the Preloader / U-boot source tree.
Please rewrite the corresponding definition and rebuild Preloader and U-boot.

<How to limit the memory capacity that Linux can use> (Default uses all 1GB)

It can be handled by adding parameters to mmcboot= included in "#define CONFIG_EXTRA_ENV_SETTINGS ¥".

<Change example: add mem=512M>

"mmcboot=setenv bootargs " CONFIG_BOOTARGS \
"root=${mmcroot} rw rootwait mem=512M;" \
"bootz ${loadaddr} - ${fdtaddr}\0" \


Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.