08-10-2020, 04:20 AM
> Which Version of u-boot do you use and where to get it from ?
https://github.com/u-boot/u-boot/commits/master
I made modifications based on the above. (for example, to work in Ver3)
> And it works only on Rock64_V2....Rock64_V3 ?
Board is Rock64_V3.
But, my board cannot operate stably at DDR3=800MHz.
Since it can not be helped, I have lowered it to DDR3 = 666 MHz and used it.
I have changed the boot-loader quite a bit.
So I think my example is useless except this case is likely a boot-loader issue.
https://github.com/u-boot/u-boot/commits/master
I made modifications based on the above. (for example, to work in Ver3)
> And it works only on Rock64_V2....Rock64_V3 ?
Board is Rock64_V3.
But, my board cannot operate stably at DDR3=800MHz.
Since it can not be helped, I have lowered it to DDR3 = 666 MHz and used it.
Code:
U-Boot TPL 2020.10-rc1 [2020 08/08, commit 7d08077] (Aug 10 2020 - 09:52:51)
LPDDR3, 666 MHz
BW=32 Col=11 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=4096MB
ddrconfig:7
Trying to boot from BOOTROM
Returning to boot ROM...
U-Boot SPL 2020.10-rc1 [2020 08/08, commit 7d08077] (Aug 10 2020 - 09:52:51 +0900)
Trying to boot from SPI
spl_load_image: took time=462(ms)
NOTICE: BL31: v2.3(release):1056ddc
NOTICE: BL31: Built : 10:22:20, Jul 29 2020
NOTICE: BL31: Rockchip release version: v1.2
U-Boot 2020.10-rc1 [2020 08/08, commit 7d08077] (Aug 10 2020 - 09:53:21 +0900)
Model: Pine64 Rock64 (ver3)
DRAM: 4 GiB
PMIC: RK8050 (on=0x10, off=0x00)
MMC: mmc@ff500000: 1, mmc@ff520000: 0
SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
In: serial
Out: vidconsole
Err: vidconsole
Net: eth0: ethernet@ff540000
Hit any key to stop autoboot: 0
=> run bootcmd_mmc1
....
I have changed the boot-loader quite a bit.
So I think my example is useless except this case is likely a boot-loader issue.