Mainline U-Boot 2020.07 for Rock-Pi-N10

Greetings to all!

I want to share the news.

2020.07.21 Mainlinte U-Boot includes patches for Rock-Pi-N10.
https://patchwork.ozlabs.org/project/uboot/list/?series=191290&state=*

I am trying to build it and run.
Everything compiles successfully, but during testing,
an error occurs with an incorrect detection of the SDRAM size.
On my model A (3GB RAM for CPU), 2 banks are detected at 1152, but it should be 1536.

Maybe someone knows how to fix this error.

1 Like

On my model A (3GB RAM for CPU), 2 banks are defined at 1152, but it should be 1536.

what do you mean by defined? detected?

Yes detected!
U-Boot SPL 2020.07 (Jul 25 2020 - 09:28:13 +0300)
Trying to boot from MMC1

U-Boot TPL 2020.07 (Jul 25 2020 - 09:28:13)
Channel 0: LPDDR3, 800MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=14/15 CS=2 Die BW=16 Size=1152MB
Channel 1: LPDDR3, 800MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=14/15 CS=2 Die BW=16 Size=1152MB
cap0 1152, cap1 1152
256B stride
256B stride
Trying to boot from BOOTROM
Returning to boot ROM…

U-Boot SPL 2020.07 (Jul 25 2020 - 09:28:13 +0300)
Trying to boot from MMC1

Auto detection doesn’t work for the 3GB ram model, for the RK loader we use, it’s forced to set the size to 1536MB and it passes the dram aging testing. Since it’s not the common routine for mainline u-boot, after discussion with Kever/Jagan, we decide to drop the 3GB version. The future model A will be 4GB ram for CPU and 1GB for NPU.

Thanks for the clarification @jack.
Maybe you can tell me the place in the U-boot source codes,
where you need to force the size of SDRAM 1536?

I really want to install FreeBSD on Rock-Pi-N10.

I think together we could prepare patches for the mainline U-boot for the 3GB SDRAM version.
Everything works in your u-boot.

Channel 0: LPDDR3DDR Version 1.22 20190506 fix row_3_4
In
Channel 0: LPDDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=1536MB
Channel 1: LPDDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=1536MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x1818
ch 1 ddrconfig = 0x101, ddrsize = 0x1818
pmugrf_os_reg[2] = 0xFAA0DAA0, stride = 0x11
OUT
Boot1: 2018-08-06, version: 1.15