public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Rob Kramer <rob@teegee.cloud>
To: u-boot@lists.denx.de
Subject: DDR timing for vendor board
Date: Thu, 8 Dec 2022 12:01:42 +0800	[thread overview]
Message-ID: <c4f07147-60ea-6a4d-2510-86669b054fff@teegee.cloud> (raw)

Hi all,

I have a RK3288 board from a Chinese display vendor that came with the 
usual giant Rockchip tarball that they patched here and there to make 
the board work. It seems to be based on a rk3288-evb, since that is what 
they patched in the kernel. The kernel is a 4.4 kernel with Android 
stuff in it (i.e. fiq-debugger) and a large amount of Rockchip patches, 
u-boot is 2017.09, with rk patches.

It turns out that u-boot TPL/SPL won't boot because the DDR timings are 
incorrect, and the Chinese vendor uses the Rockchip 
rk3288_ddr_400MHz_v1.09.bin loader. I'm using u-boot 2022.01 for now, 
and I've tried to naively modify the timing in 
arch/arm/dts/rk3288-evb.dts, but it doesn't work at all, with varying 
errors on boot.

The Rockchip loader provides the following info when booting:

   In
   Channel a: DDR3 400MHz
   Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
   Memory OK
   OUT
   Boot1 Release Time: Apr 11 2018 10:32:58, version: 2.36
   ChipType = 0x8, 232

I've tried various DDR3 (not LPDDR3) settings from other boards, for 
example for a Firefly (666 MHz DDR3):

   U-Boot TPL 2022.01 (Jan 10 2022 - 18:46:34)
   Col detect error
   DRAM init failed!
   ### ERROR ### Please RESET the board ###

It was expected that 666MHz doesn't work, but if I just change the 
frequency in the dts, that also fails (error -22).

How can I support the DDR for this board? I can't even see what the ID 
on the chips is, because the heatsink is blocking sight and seems to be 
attached with some sort of thermal glue.

Is there a way to read back the DDR timings (phy-timing, sdram-params) 
from the kernel/SoC on a board that is booted using the proprietary loader?

Cheers!

     Rob


             reply	other threads:[~2022-12-08 12:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-08  4:01 Rob Kramer [this message]
2022-12-08 16:48 ` DDR timing for vendor board Jack Mitchell
2022-12-09 11:10   ` Rob Kramer
2022-12-09 18:25     ` Daniel Schwierzeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c4f07147-60ea-6a4d-2510-86669b054fff@teegee.cloud \
    --to=rob@teegee.cloud \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox