All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dinh Nguyen <dinguyen@kernel.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] arm: socfpga: unable to boot cyclone5 devkit or SocKit
Date: Tue, 10 Apr 2018 16:36:00 -0500	[thread overview]
Message-ID: <54e87513-18b7-ffa7-dc13-871ebe6aaf63@kernel.org> (raw)
In-Reply-To: <f3b10428-503a-4596-c59e-d2671de5788b@denx.de>



On 04/10/2018 02:25 PM, Marek Vasut wrote:
> On 04/10/2018 08:56 PM, Dinh Nguyen wrote:
>>
>>
>> On 04/10/2018 01:29 PM, Marek Vasut wrote:
>>> On 04/10/2018 08:28 PM, Dinh Nguyen wrote:
>>>> Hi,
>>>>
>>>> I'm seeking advice with an observation that I'm seeing on the Cyclone5
>>>> devkit/sockit.
>>>>
>>>> I'm working with U-Boot version v2018.05-rc1. Building the
>>>> u-boot-with-spl.sfp, then writing the sfp file to the 0xa2 partition on
>>>> the SD card, does not boot, all I get is this:
>>>>
>>>> U-Boot SPL 2018.05-rc1 (Apr 10 2018 - 13:03:48 -0500)
>>>>
>>>> U-Boot SPL 2018.05-rc1 (Apr 10 2018 - 13:03:48 -0500)
>>>>
>>>> U-Boot SPL 2018.05-rc1 (Apr 10 2018 - 13:03:48 -0500)
>>>>
>>>>
>>>> This issue doesn't happen at all on the DE0 Nano SoC board. I compared
>>>> the defconfig and came across this. If I remove these config options in
>>>> the socfpga_sockit_defconfig, then SPL -> U-Boot works fine.
>>>>
>>>> -CONFIG_SPI_FLASH_MACRONIX=y
>>>> -CONFIG_SPI_FLASH_SPANSION=y
>>>> -CONFIG_SPI_FLASH_STMICRO=y
>>>>
>>>> I'll continue to debug of course, but was wondering if anyone might have
>>>> a better idea as to what could be happening, I'd appreciate the insight.
>>>
>>> Check the size of the SPL , could it be too big ?
>>>
>>
>> That's a good thought...it could be. The size of the default
>> u-boot-spl-dtb.bin is 58048, removing the SPI, brings that down to
>> 55616, that's smaller than the 64k of OCRAM for SPL?
> 
> Right, I think there's something about those last few kiB OR it's the
> stack that's overwriting piece of U-Boot or malloc area or something.
> How did it grow so big anyway ?
> 

Ah, looks like SYS_MALLOC_F_LEN is set to 8k, thus, we're over the 64k
limit. Setting SYS_MALLOC_F_LEN to 4k makes it work again. I'm not sure
how the SPL grew so big.

Dinh

  reply	other threads:[~2018-04-10 21:36 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10 18:28 [U-Boot] arm: socfpga: unable to boot cyclone5 devkit or SocKit Dinh Nguyen
2018-04-10 18:29 ` Marek Vasut
2018-04-10 18:56   ` Dinh Nguyen
2018-04-10 19:25     ` Marek Vasut
2018-04-10 21:36       ` Dinh Nguyen [this message]
2018-04-10 22:37         ` Marek Vasut
2018-04-11  2:21           ` Dinh Nguyen
2018-04-11  2:45             ` Dinh Nguyen
2018-04-11  2:52               ` Dinh Nguyen
2018-04-11  8:12                 ` Marek Vasut
2018-04-11 12:26                   ` Tom Rini
2018-04-11 12:37                     ` Marek Vasut
2018-04-11 12:55                       ` Alexander Graf
2018-04-11 14:43                         ` Dinh Nguyen
2018-04-12  8:01                           ` Alexander Graf
2018-04-12  8:37                             ` Marek Vasut
2018-04-12  9:15                               ` Alexander Graf
2018-04-12  9:17                                 ` Marek Vasut
2018-04-12  9:42                                   ` Alexander Graf
2018-04-12  9:43                                     ` Marek Vasut
2018-04-12 13:35                                       ` Dinh Nguyen
  -- strict thread matches above, loose matches on Subject: below --
2018-04-10 18:28 Dinh Nguyen

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=54e87513-18b7-ffa7-dc13-871ebe6aaf63@kernel.org \
    --to=dinguyen@kernel.org \
    --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.