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.
How to simple write bl2 for SD card or NAND?
Nand is here
https://wiki.fw-web.de/doku.php?id=en:bpi-r4:uboot
And sd for sd you can look into my build.sh install option
Also after eMMC upgrade I have an issue with as below:
MT7988> mmc info mmc_init: -110, time 21045
I used SBINDA4 128G , on file we see SBINDD4 256G but all cards are same iNAND eMMC 5.1 HS400
Is it problem with the card or bad reballancing or the card needs some action?
Make sure emmc is available in hardware…as mtk filogic only having 1 mmc controller you cannot boot from sd and access emmc…you have to boot from nand (on r3 the mmc-switch has to be right too)
I issued from boot menu in NAND position
MT7988> mmc info
You used emmc uboot here? The dts is different between sd and emmc
Not this But I was successfull to compile OpenWRT with actual snapshot for BPI-R4
It works both from SD card and NAND. But here it is my problem (OS booted from NAND):
My eMMC card is not working…
The follow methods and image were from Developer Liujie
image link: 6.6.63 主线git01补丁 4g内存 sd卡启动选7 自动刷nand nand启动选自动刷 emmc.rar - Google Drive
Write the image to the SD card and boot from the SD card and select 7
After installation, show the following
2 Switch to nand boot and select 9
After completion, switch to emmc startup
Finish
3 After that, you can directly upgrade by flashing openwrt-mediatek-filogic-bananapi_bpi-r4
2nd step is failing with mmc_init: -110, time 21045 eMMC not detected
I think there is an issue with eMMC card.
Please notice the image from Liujie does not set 8GB but only 4GB:
But this is not a problem
I ordered eMMC Samsung KLMDG4UCTA-B041 (128GB) and I will check that unit. May be there is a problem with SanDisk SDINADB4-128G (or invdividual one in my case as false chip)
Liujie said this image used for his 8GB RAM version R4 too. Let me ask more details
you can test my image if it is ok i can give you a 8G image
I guess the issue is not with the image I run… Any image I start and load to NAND after I see the same:
mmc_init:
-110, time 21045 eMMC not detected
I have found memory, but where can I buy the EMMC?