public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Siarhei Siamashka <siarhei.siamashka@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] U-Boot Sunxi breaks LCD output on Olimex Lime A10
Date: Fri, 3 Oct 2014 11:49:25 +0300	[thread overview]
Message-ID: <20141003114925.50cdbba8@i7> (raw)
In-Reply-To: <542E588D.8050502@redhat.com>

On Fri, 03 Oct 2014 10:04:29 +0200
Hans de Goede <hdegoede@redhat.com> wrote:

> Hi,
> 
> On 10/01/2014 07:43 PM, Hendrik wrote:
> > I have always been using the sunxi u-boot from 'https://github.com/linux-sunxi/u-boot-sunxi' and that works fine, but now I want to boot the kernel from USB. That is not possible in that u-boot branch. Therefore I switched to the latest U-Boot 'git://git.denx.de/u-boot.git' for the Olimex Allwinner A10 Lime as this one does have a working USB mass storage implementation.
> > 
> > But when the kernel and root filesystem is booted and my application (using DirectFB) starts, the LCD screen is flickering between a correct image and an incorrect image as if sometimes random image data is displayed to the screen. Although it looks more like a clock or timing issue because the colors of the faulty screen resemble the colors of the correct screen. Also: when the cpu is inactive the screen is more or less ok but when doing a lot of work the screen starts to flicker. Then it is stable for a while and after some time it starts flickering again.
> > 
> > I am using the exact same kernel, root filesystem, U-boot environment, SD-card and 'script.bin' (which defines the hardware layout, I am not using a device tree file). The only difference is the version (and origin) of U-boot.
> > 
> > Can anybody shine some light on this? Maybe Hans de Goede? I have seen his name pop-up a lot of times with the Sunxi branch.
> 
> Hmm, the only thing I can think of which may have caused this are the
> recent DRAM controller code cleanups which are in upstream u-boot and
> not in https://github.com/linux-sunxi/u-boot-sunxi
> 
> Can you try copying these 2 files:
> 
> arch/arm/cpu/armv7/sunxi/dram.c
> arch/arm/include/asm/arch-sunxi/dram.h
> 
> From https://github.com/linux-sunxi/u-boot-sunxi over into upstream
> u-boot, essentially reverting the DRAM cleanup patches, and see if that
> fixes things ?

It is most definitely the PLL5P clock speed problem and it can be
resolved by either reverting the following patch in u-boot
    http://git.denx.de/?p=u-boot.git;a=commit;h=013f2d746955147439215a4939655c9ed6bdd866
or by fixing a bunch of hardcoded divisors in the sunxi-3.4
kernel (for which I'll send a patch to the linux-sunxi mailing list
later today).

Please note that you can't use the sunxi-3.4 kernel with the unmodified
mainline u-boot anyway because of the missing machine id definitions and
the new PSCI code (but this is a problem only on Allwinner A20
hardware). A few minor patches are needed here and there.

A feature complete u-boot branch with extra patches on top of u-boot
v2014.10 (for example, with HDMI video driver support) and the
sunxi-3.4 kernel compatibility tweaks is going to be available shortly
after the u-boot v2014.10 release.

-- 
Best regards,
Siarhei Siamashka

  reply	other threads:[~2014-10-03  8:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01 17:43 [U-Boot] U-Boot Sunxi breaks LCD output on Olimex Lime A10 Hendrik
2014-10-03  8:04 ` Hans de Goede
2014-10-03  8:49   ` Siarhei Siamashka [this message]
2014-10-03  9:19     ` Hans de Goede
2014-10-06 14:05       ` Hendrik
2014-10-06 16:46       ` Hendrik
2014-10-16  9:22       ` Siarhei Siamashka

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=20141003114925.50cdbba8@i7 \
    --to=siarhei.siamashka@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox