Build for 4GB/8GB DDR4

Hi @frank-w

U-boot

image

According to the workflow, I’ve generated the below images/pack

bpi-r4_emmc_8GB_bl2.img
bpi-r4_emmc_8GB_fip.bin
bpi-r4_emmc_bl2.img
bpi-r4_emmc_fip.bin
bpi-r4_emmc.img.gz :point_left: this pack supports 4GB and/or 8GB?

Linux

image

No needs to adjust the DDR size, right?

As you see in pipeline the createimg is called before the 8BG flag is added,so it is 4gb only…you have to replace bl2 in the image with the 8G bl2

So if I set extraflags=DDR4_4BG_MODE=1 before the build and createimg, it should build and pack for 8GB?

Yes, then the 8gb will bebuilt and included in the image