All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] i.MX35PDK: Starting U-Boot from serial NOR-Flash
Date: Fri, 03 Aug 2012 11:30:11 +0200	[thread overview]
Message-ID: <501B9A23.8010005@denx.de> (raw)
In-Reply-To: <CAMPAExXM4Quy+CLeMpR-JtzUrt26ruVpyg-43Vcu_srJxyK_6A@mail.gmail.com>

On 03/08/2012 10:03, Michael Hornung wrote:
> Hi Fabio,
> 

Hi Michael,

>>>
>>
>> Didn't you also had to remove the init_sdram call in lowlevel_init.S ?
>>
> 
> No, I didn't change it since it seems not to make any difference. Hope
> we're talking about the same, I changed the following and it did not
> make any difference whether it was commented or not:
> 
> +++ b/board/freescale/mx35pdk/lowlevel_init.S
> 
>  init_sdram_start:
>         /*init_sdram*/
> -       setup_sdram
> +/*     setup_sdram */
> 

Because the RAM is already set up via the imximage.

> 
>>>
>>> Then I did the following change:
>>>
>>> +++ b/board/freescale/mx35pdk/mx35pdk.c
>>>
>>>         size1 = get_ram_size((void *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
>>> -       size2 = get_ram_size((void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
>>> +        size2 = 0;
>>> +       /*size2 = get_ram_size((void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);*/
>>
>> I think we should not touch this.
>>
> 
> Hey, but it works (halfways) :-)

It depends on your mx35pdk. The board can be equipped with one or two
banks. If it works commenting these lines, it means that in your
imximage.cfg you set only one bank. The setup_sdram() sets both banks.


>>> Could you please give me some hits what to do next?
>>
>> Can you please try to remove  #define CONFIG_ENV_IS_IN_FLASH and insert:
>>
>> #define CONFIG_SYS_NO_FLASH
>>
>> #define CONFIG_ENV_OFFSET      (6 * 64 * 1024)
>> #define CONFIG_ENV_SIZE        (8 * 1024)
>> #define CONFIG_ENV_IS_IN_MMC
>> #define CONFIG_SYS_MMC_ENV_DEV
> 
> A first quick try ended up with the following (I'll try harder today:

Mmhh...you had already a running u-boot - your problem is moved, because
the kernel is not correctly started.

I think you should start from this condition (the running u-boot) and
try to understand where the kernel hangs. This can be of course
something related to u-boot and in u-boot code, but trying to disable
things that worked can be completelky unrelated.

By the way, if you set CONFIG_SYS_NO_FLASH, you should also set that the
environment is embedded (that means, you have only the default) and
deactivate the flash driver (CONFIG_CFI).

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

  reply	other threads:[~2012-08-03  9:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-04 13:29 [U-Boot] i.MX35PDK: Starting U-Boot from serial NOR-Flash Hornung, Michael
2012-07-04 17:31 ` Fabio Estevam
2012-07-04 17:35   ` Fabio Estevam
     [not found]   ` <334319B2EBE0B144BAE1402B79D82DC5D31358D8@srvpegasus>
2012-07-05 18:06     ` Fabio Estevam
2012-07-09 13:11   ` Hornung, Michael
     [not found]   ` <334319B2EBE0B144BAE1402B79D82DC5D31358DF@srvpegasus>
2012-07-09 19:45     ` Fabio Estevam
2012-07-10 19:08       ` Hornung, Michael
2012-07-26 20:32         ` Fabio Estevam
2012-07-31 13:47           ` Michael Hornung
2012-08-02  9:00             ` Michael Hornung
2012-08-02 12:55               ` Fabio Estevam
2012-08-02 13:07                 ` Stefano Babic
2012-08-03  8:03                 ` Michael Hornung
2012-08-03  9:30                   ` Stefano Babic [this message]
2012-07-05  9:16 Hornung, Michael

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=501B9A23.8010005@denx.de \
    --to=sbabic@denx.de \
    --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.