All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ezra Buehler <ezra@easyb.ch>
To: u-boot@lists.denx.de
Subject: [PATCH v2 2/2] arm: mvebu: ds414: define CONFIG_SYS_U_BOOT_OFFS
Date: Sat,  9 May 2020 22:05:39 +0200	[thread overview]
Message-ID: <20200509200539.18377-3-ezra@easyb.ch> (raw)
In-Reply-To: <20200509200539.18377-1-ezra@easyb.ch>

Without CONFIG_SYS_U_BOOT_OFFS set to CONFIG_SYS_SPI_U_BOOT_OFFS, U-Boot
will be located at address 0x16000. But, SPL will try to load the
payload from 0x24000 causing the boot to hang.

Signed-off-by: Ezra Buehler <ezra@easyb.ch>
---

Changes for v2:
 - Tweaked commit message

 include/configs/ds414.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/configs/ds414.h b/include/configs/ds414.h
index e3693767b6..b179b99468 100644
--- a/include/configs/ds414.h
+++ b/include/configs/ds414.h
@@ -87,7 +87,10 @@
 #define CONFIG_SPL_STACK		(0x40000000 + ((192 - 16) << 10))
 #define CONFIG_SPL_BOOTROM_SAVE		(CONFIG_SPL_STACK + 4)

+#if defined(CONFIG_MVEBU_SPL_BOOT_DEVICE_SPI)
 /* SPL related SPI defines */
+#define CONFIG_SYS_U_BOOT_OFFS		CONFIG_SYS_SPI_U_BOOT_OFFS
+#endif

 /* DS414 bus width is 32bits */
 #define CONFIG_DDR_32BIT
--
2.26.2

  parent reply	other threads:[~2020-05-09 20:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-09 20:05 [PATCH v2 0/2] Fix boot from SPI flash on Synology DS414 Ezra Buehler
2020-05-09 20:05 ` [PATCH v2 1/2] arm: mvebu: ds414: add u-boot,dm-pre-reloc to spi0 Ezra Buehler
2020-05-11 12:22   ` [PATCH v2 1/2] arm: mvebu: ds414: add u-boot, dm-pre-reloc " Stefan Roese
2020-05-09 20:05 ` Ezra Buehler [this message]
2020-05-11 12:23   ` [PATCH v2 2/2] arm: mvebu: ds414: define CONFIG_SYS_U_BOOT_OFFS Stefan Roese
2020-05-10  1:12 ` [PATCH v2 0/2] Fix boot from SPI flash on Synology DS414 Chris Packham
2020-05-27  7:08 ` Stefan Roese

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=20200509200539.18377-3-ezra@easyb.ch \
    --to=ezra@easyb.ch \
    --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.