Sorry,Frank,I didn’t tried it before. The image was provided by liujie, I just help to update here
I have tested the bl2 img which recompile with modified Makefile and comfirm that add DDR4_4BG_MODE=1 option to Makefile works.
My R4 still detect as 8GB with recompiled bl2 img.
So, only two changes to bl2 is:
1.add 4096 to AVAIL_DRAM_SIZE in dram_configs.mk
2.add DDR4_4BG_MODE=1 option to compile script and recompile.
Have you test in 4G RAM board?can it work ok?
I only have one R4 and I completed hardware mod before recompile bl2 & test.
I don’t have another 4GB R4 to test moded bl2, sorry.
Maybe other users can help us test moded bl2?
Here is my moded bl2 which mod from BPI-R4-bsp-6.1:
bl2_bsp.img (240.3 KB)
Bl2 img can flash under ssh using following commands(bl2 img msut upload to /tmp first):
echo 0 > /sys/block/mmcblk0boot0/force_ro
dd if=/tmp/bl2.img of=/dev/mmcblk0boot0
If R4 can’t boot after reboot, switch to nand boot and use the same method to flash back original bl2.