u-boot idbloader.img fails to initialise LPDDR3 on nanopi m4 v1

hi!
Both 2020.04, 2021.01 and latest u-boot HEAD fails to setup nano pi m4 V1 LPDDR3.
these are compiled with latest ATF HEAD. Any pointers on where to debug ?
For what it's worth; I can boot on nanopi m4 V2 board with patch[1], so I am sure it's a DDR thing.
U-Boot TPL 2020.04 (Feb 06 2021 - 09:28:53) sdram_init: LPDDR3 - 933MHz failed! rk3399_dmc_init DRAM init failed -22 Missing DTB
U-Boot TPL 2021.01 (Feb 05 2021 - 12:45:32) sdram_init: LPDDR3 - 933MHz failed! rk3399_dmc_init DRAM init failed -22 Missing DTB
thanks! Chris
[1]: https://patchwork.ozlabs.org/project/uboot/patch/20201018052548.29195-1-libu...

Turns out I was using the wrong defconfig, my board is a 2gb model which has a separate defconfig.
Although, u-boot HEAD doesn't work, with an error:
U-Boot TPL 2021.04-rc1-00079-g8308a28af8 (Feb 07 2021 - 13:04:30) Missing DTB ### ERROR ### Please RESET the board ###
On Sat, 6 Feb 2021 at 09:36, Christopher Obbard chris@64studio.com wrote:
hi!
Both 2020.04, 2021.01 and latest u-boot HEAD fails to setup nano pi m4 V1 LPDDR3.
these are compiled with latest ATF HEAD. Any pointers on where to debug ?
For what it's worth; I can boot on nanopi m4 V2 board with patch[1], so I am sure it's a DDR thing.
U-Boot TPL 2020.04 (Feb 06 2021 - 09:28:53) sdram_init: LPDDR3 - 933MHz failed! rk3399_dmc_init DRAM init failed -22 Missing DTB
U-Boot TPL 2021.01 (Feb 05 2021 - 12:45:32) sdram_init: LPDDR3 - 933MHz failed! rk3399_dmc_init DRAM init failed -22 Missing DTB
thanks! Chris
participants (1)
-
Christopher Obbard