All of lore.kernel.org
 help / color / mirror / Atom feed
From: Idan Noti <idan.noti@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Can't boot DaVinci EVM with Green Hills' Integrity OS
Date: Thu, 2 Apr 2015 07:21:22 +0300	[thread overview]
Message-ID: <CAHaVubrv02BXU6h8p2CG9h4z+EpMRDzRSrTsa+me_6k57W2nmw@mail.gmail.com> (raw)
In-Reply-To: <551A46BA.60902@myspectrum.nl>

I'v tried this but it does not change anything.
Is there a way to have the u-boot run in a step-by-step mode? In order to
try and eliminate the problematic initialization?

Thanks,

On Tue, Mar 31, 2015 at 10:03 AM, Jeroen Hofstee <jeroen@myspectrum.nl>
wrote:

> Hello Idan,
>
> On 31-03-15 06:02, Idan Noti wrote:
>
>> Why do you think caches have something to do with the problem?
>>
>
> By booting the image with the bootelf command you jump to it with some
> caches
> still enabled / not flushed (which is likely not what your debug interface
> does and
> your kernel might not really like that). A FreeBSD kernel doesn't / didn't
> at least and
> wouldn't boot.
>
> I never checked, but I guess Linux doesn't like it either, but since it is
> typically booted
> by a bootm / bootz command it goes through e.g. arch/arm/lib/bootm.c,
> which calls
> cleanup_before_linux in arch/arm/cpu/arm926ejs/cpu.c, all caches are
> disables and
> flushes before jumping into it.
>
> Of course I don't know if this is related to your problem, but it cannot
> do any harm to
> keep caches off until you have the board properly booting.
>
>  Also, how do I config the compilation to disable caches? The only
>> configuration I'm aware about it modifying the header file:
>> $(uboot_folder)/include/configs/davinci_dvevm.h
>>
>
> Yup, see README and doc/README.arm-caches. At least below knobs are
> documented.
> You can simply define these in mentioned file.
>
>  CONFIG_SYS_ICACHE_OFF - Do not enable instruction cache in U-Boot
>  CONFIG_SYS_DCACHE_OFF - Do not enable data cache in U-Boot
>  CONFIG_SYS_L2CACHE_OFF- Do not enable L2 cache in U-Boot
>
> Regards,
> Jeroen
>

      reply	other threads:[~2015-04-02  4:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30 18:44 [U-Boot] Can't boot DaVinci EVM with Green Hills' Integrity OS noti1234
2015-03-30 21:09 ` Jeroen Hofstee
2015-03-31  4:02   ` Idan Noti
2015-03-31  7:03     ` Jeroen Hofstee
2015-04-02  4:21       ` Idan Noti [this message]

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=CAHaVubrv02BXU6h8p2CG9h4z+EpMRDzRSrTsa+me_6k57W2nmw@mail.gmail.com \
    --to=idan.noti@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.