From: Matwey V. Kornilov <matwey.kornilov@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] ROCK64 fails to boot using U-Boot TPL
Date: Tue, 24 Sep 2019 21:35:30 +0300 [thread overview]
Message-ID: <qmdnli$2c4q$1@blaine.gmane.org> (raw)
In-Reply-To: <67962636-f468-04a4-06ab-5295b3114f51@simonsouth.net>
24.09.2019 20:54, Simon South пишет:
> On 2019-09-24 12:54 p.m., Matwey V. Kornilov wrote:
>> Simon, maybe you'll describe a way to obtain SD card image which you
>> use? For the case if anybody wants to reproduce the issue in situ?
>
> Sure---I'd love for other people to test this, and it's pretty easy
> since it doesn't require anything other than U-Boot itself.
>
> Assuming the CROSS_COMPILE and BL31 environment variables are set up
> appropriately (I'm using ATF 2.1 from the mainline repository):
>
> 1. Switch to U-Boot's master branch and/or configure the source tree
> identically to my own with
>
> git checkout a9fa70b7b7167487affc5d919e541872c99e814b
>
> 2. Apply the attached patch, which enables the "mtest" command, with
>
> patch -p1 < rock64-enable-mtest.patch
>
> 3. Build U-Boot as usual:
>
> make distclean; rm -f ./idbloader.img
> make rock64-rk3328_defconfig all u-boot.itb
>
> 4. Write U-Boot to a microSD card as usual:
>
> sudo dd if=idbloader.img of=/dev/mmcblk0 seek=64
> sudo dd if=u-boot.itb of=/dev/mmcblk0 seek=16384
>
> 5. Place the microSD card in the ROCK64 and start it. Once the SPL
> loads, hit the spacebar to enter the shell and start the memory test with
>
> mtest
>
> On my ROCK64, this immediately begins throwing off errors like
>
> FAILURE (read/write) @ 0x020014c0: expected 0x00000299, actual
> 0x00000219)
>
> and if I continue the boot process with "boot", the NetBSD kernel will
> load but panic almost immediately.
How do you take NetBSD image?
>
> Note mine is a ROCK64 v2.0 with a 32Gb SpecTek LPDDR3 memory
> module---there is also a ROCK64 v3.0 and some variance in the memory
> chips used, so it could be this is limited to a specific model or
> production run.
>
> Now here's what I've discovered lately:
>
> Everything works normally if I have U-Boot TPL's set a slightly lower
> clock rate for the memory, by editing
> arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi and changing the "800" on
> line 27 to "766".
>
> That suggests a hardware issue with my ROCK64, and in fact others have
> reported similar problems with the 2.0 version [1]. I'd be willing to
> leave it at that, except that if I also patch the (333MHz) Rockchip TPL
> to set a _higher_ clock rate for the memory, it continues to work just
> fine---all the way up to 933MHz!
>
> So this is not just a hardware problem; there is some incompatibility
> between the RK3328 SDRAM driver as it exists in U-Boot and at least one
> group of ROCK64s in the world.
>
> At the moment I'm still trying to identify what's different in the
> closed-source loader that causes it not to have this issue. Anyone have
> any thoughts?
>
> [1] https://forum.pine64.org/showthread.php?tid=7387
>
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
>
next prev parent reply other threads:[~2019-09-24 18:35 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-19 8:56 [U-Boot] ROCK64 fails to boot using U-Boot TPL Simon South
2019-09-19 15:48 ` Matwey V. Kornilov
2019-09-20 0:06 ` Simon South
2019-09-20 7:39 ` Matwey V. Kornilov
2019-09-20 9:28 ` Simon South
2019-09-20 10:07 ` Matwey V. Kornilov
2019-09-20 10:14 ` Martin Husemann
2019-09-20 16:43 ` Matwey V. Kornilov
2019-09-20 17:27 ` Simon South
2019-09-20 17:37 ` Matwey V. Kornilov
2019-09-20 17:43 ` Simon South
2019-09-21 7:47 ` Matwey V. Kornilov
2019-09-21 11:59 ` Simon South
2019-09-21 12:29 ` Matwey V. Kornilov
2019-09-21 13:37 ` Simon South
2019-09-21 17:15 ` Matwey V. Kornilov
2019-09-24 16:54 ` Matwey V. Kornilov
2019-09-24 17:54 ` Simon South
2019-09-24 18:35 ` Matwey V. Kornilov [this message]
2019-09-24 18:50 ` Simon South
2019-09-20 18:09 ` Simon South
2019-09-19 16:29 ` Jagan Teki
2019-09-20 0:10 ` Simon South
2019-09-19 16:49 ` Matwey V. Kornilov
2019-09-20 10:03 ` Mark Kettenis
2019-09-20 10:22 ` Simon South
2019-09-21 14:26 ` [U-Boot] u-boot 2017 doesn't recognized pATA microdrive Carlo Pisani
2019-09-23 12:37 ` [U-Boot] ROCK64 fails to boot using U-Boot TPL Simon South
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='qmdnli$2c4q$1@blaine.gmane.org' \
--to=matwey.kornilov@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.