public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v9 18/30] nand: mxc: Switch NAND SPL to generic SPL
Date: Tue, 9 Apr 2013 19:37:26 +0200 (CEST)	[thread overview]
Message-ID: <2019766061.1401728.1365529046069.JavaMail.root@advansee.com> (raw)
In-Reply-To: <715057052.1400157.1365526578689.JavaMail.root@advansee.com>

On Tuesday, April 9, 2013 6:56:18 PM, Beno?t Th?baudeau wrote:
> Hi Fabio,
> 
> On Tuesday, April 9, 2013 6:40:45 PM, Fabio Estevam wrote:
> > Hi Beno?t,
> > 
> > On Tue, Apr 9, 2013 at 11:38 AM, Beno?t Th?baudeau
> > <benoit.thebaudeau@advansee.com> wrote:
> > 
> > > Can you try different values for the following configs in mx31pdk.h?
> > >  - CONFIG_SYS_NAND_U_BOOT_SIZE
> > >  - CONFIG_SPL_TEXT_BASE
> > >  - CONFIG_SYS_TEXT_BASE
> > >  - (CONFIG_ENV_OFFSET)
> > >  - (CONFIG_ENV_OFFSET_REDUND)
> > >
> > > I would try:
> > >  - 0x40000 for CONFIG_SYS_NAND_U_BOOT_SIZE
> > >  - 0x86000000 for CONFIG_SPL_TEXT_BASE
> > >  - 0x87000000 for CONFIG_SYS_TEXT_BASE
> > 
> > Thanks, that did the trick!
> > 
> > With the changes below I am able to get into the U-boot prompt:
> > 
> > diff --git a/include/configs/mx31pdk.h b/include/configs/mx31pdk.h
> > index 8f12825..d82bf65 100644
> > --- a/include/configs/mx31pdk.h
> > +++ b/include/configs/mx31pdk.h
> > @@ -51,8 +51,8 @@
> >  #define CONFIG_SPL_MAX_SIZE	2048
> >  #define CONFIG_SPL_NAND_SUPPORT
> > 
> > -#define CONFIG_SPL_TEXT_BASE	0x87ec0000
> > -#define CONFIG_SYS_TEXT_BASE	0x87f00000
> > +#define CONFIG_SPL_TEXT_BASE	0x86000000
> > +#define CONFIG_SYS_TEXT_BASE	0x87000000
> > 
> >  #ifndef CONFIG_SPL_BUILD
> >  #define CONFIG_SKIP_LOWLEVEL_INIT
> > @@ -69,8 +69,6 @@
> > 
> >  #define CONFIG_MXC_UART
> >  #define CONFIG_MXC_UART_BASE	UART1_BASE
> > -#define CONFIG_HW_WATCHDOG
> > -#define CONFIG_IMX_WATCHDOG
> >  #define CONFIG_MXC_GPIO
> > 
> >  #define CONFIG_HARD_SPI
> > @@ -199,7 +197,7 @@
> > 
> >  /* Start copying real U-boot from the second page */
> >  #define CONFIG_SYS_NAND_U_BOOT_OFFS	CONFIG_SPL_PAD_TO
> > -#define CONFIG_SYS_NAND_U_BOOT_SIZE	0x32000
> > +#define CONFIG_SYS_NAND_U_BOOT_SIZE	0x40000
> >  /* Load U-Boot to this address */
> >  #define CONFIG_SYS_NAND_U_BOOT_DST	CONFIG_SYS_TEXT_BASE
> >  #define CONFIG_SYS_NAND_U_BOOT_START	CONFIG_SYS_NAND_U_BOOT_DST
> 
> Cool, then we need to determine the minimal change set required for v11, so
> can
> you retry with fewer of those changes to determine which ones are strictly
> necessary (apart from the watchdog removal that we already know is required)?

Especially, does it work with only:
-#define CONFIG_HW_WATCHDOG
-#define CONFIG_IMX_WATCHDOG
-#define CONFIG_SYS_NAND_U_BOOT_SIZE	0x32000
+#define CONFIG_SYS_NAND_U_BOOT_SIZE	0x3f800
?

> What is the size of u-boot-with-spl.bin without DEBUG?
> 
> Regarding the watchdog removal, it is unrelated to this patch, so do you want
> me
> to add a patch for it in this series, or will you handle it separately? And
> is
> the correct change to remove it as above, or to change its time-out
> somewhere? I
> think that it's probably better if you take care of this separately.

Best regards,
Beno?t

  reply	other threads:[~2013-04-09 17:37 UTC|newest]

Thread overview: 95+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06 18:59 [U-Boot] [PATCH v9 01/30] mtd: nand: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 02/30] mtd: nand: mxc_nand: Fix is_16bit_nand() Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 03/30] nand: mxc: Prepare to add support for i.MX5 Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 04/30] nand: mxc: Add " Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 05/30] imx: mx5: lowlevel_init: Simplify code Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 06/30] imx: mx53ard: Add support for NAND Flash Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 07/30] nand: mxc: Fix debug trace in mxc_nand_read_oob_syndrome() Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 08/30] nand: mxc: Use appropriate page number in syndrome functions Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 09/30] arm: start.S: Fix _TEXT_BASE for SPL Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 10/30] arm: relocate_code() is no longer noreturn Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 11/30] arm1136: Remove redundant relocate_code() return Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 12/30] arm: relocate_code(): Remove useless relocation offset computation Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 13/30] arm: relocate_code(): Use __image_copy_end for end of relocation Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 14/30] arm: crt0.S: Remove bogus .globl Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 15/30] autoconfig.mk: Make it possible to define configs from other configs Benoît Thébaudeau
2013-03-06 21:06   ` Tom Rini
2013-03-07  6:57   ` Wolfgang Denk
2013-03-07 11:38     ` Benoît Thébaudeau
2013-03-07 17:23       ` Benoît Thébaudeau
2013-03-08  3:29     ` Marek Vasut
2013-03-08  5:25       ` Wolfgang Denk
2013-03-08 11:57         ` Benoît Thébaudeau
2013-03-08 14:08         ` Marek Vasut
2013-03-08 14:28           ` Wolfgang Denk
2013-03-08 14:40             ` Tom Rini
2013-03-08 14:54               ` Fabio Estevam
2013-03-13  8:01                 ` Stefano Babic
2013-03-13 13:35                   ` Benoît Thébaudeau
2013-03-13 13:56                     ` Tom Rini
2013-03-13 18:12                       ` Tom Rini
2013-03-16 10:54                         ` Albert ARIBAUD
2013-03-13 16:44                     ` Stefano Babic
2013-03-08 15:16               ` Wolfgang Denk
2013-03-08 12:14       ` Benoît Thébaudeau
2013-03-08 14:17         ` Marek Vasut
2013-03-06 18:59 ` [U-Boot] [PATCH v9 16/30] Makefile: Change CONFIG_SPL_PAD_TO to image offset Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 17/30] imx: Fix automatic make targets for imx images Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 18/30] nand: mxc: Switch NAND SPL to generic SPL Benoît Thébaudeau
2013-03-31 17:30   ` Albert ARIBAUD
2013-04-01  0:30     ` Benoît Thébaudeau
2013-04-01  8:26       ` Albert ARIBAUD
2013-04-01 13:13         ` Benoît Thébaudeau
2013-04-01 15:53           ` Albert ARIBAUD
2013-04-03  6:30             ` Benoît Thébaudeau
2013-04-03  8:05               ` Albert ARIBAUD
2013-04-03  8:51                 ` Albert ARIBAUD
2013-04-09 17:02                 ` Benoît Thébaudeau
2013-04-03 21:01               ` Fabio Estevam
2013-04-03 21:42                 ` Benoît Thébaudeau
2013-04-08 18:47                   ` Benoît Thébaudeau
2013-04-08 18:55                     ` Fabio Estevam
2013-04-09 12:30                       ` Fabio Estevam
2013-04-09 12:46                         ` Fabio Estevam
2013-04-09 14:32                           ` Benoît Thébaudeau
2013-04-09 14:33                             ` Benoît Thébaudeau
2013-04-09 14:38                           ` Benoît Thébaudeau
2013-04-09 15:04                             ` Benoît Thébaudeau
2013-04-09 15:12                               ` Benoît Thébaudeau
2013-04-09 16:40                             ` Fabio Estevam
2013-04-09 16:56                               ` Benoît Thébaudeau
2013-04-09 17:37                                 ` Benoît Thébaudeau [this message]
2013-04-09 18:07                                   ` Fabio Estevam
2013-04-09 18:10                                     ` Benoît Thébaudeau
2013-04-09 18:35                                       ` Fabio Estevam
2013-04-09 18:31                                         ` Benoît Thébaudeau
2013-04-04  9:07               ` Albert ARIBAUD
2013-04-04 14:05                 ` Benoît Thébaudeau
2013-04-04 14:16                   ` Albert ARIBAUD
2013-03-06 18:59 ` [U-Boot] [PATCH v9 19/30] arm926ejs: Remove deprecated and now unused NAND SPL Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 20/30] arm: Remove unused relocate_code() parameters Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 21/30] Makefile: Move SHELL setup to config.mk Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 22/30] .gitignore: Add /SPL Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 23/30] imx: Add u-boot-with-spl.imx make target Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 24/30] imx: Add u-boot-with-nand-spl.imx " Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 25/30] arm: Remove support for smdk6400 Benoît Thébaudeau
2013-03-21 21:43   ` Lukasz Majewski
2013-03-21 22:04     ` Benoît Thébaudeau
2013-03-22 10:12       ` Lukasz Majewski
2013-03-22 11:36         ` Benoît Thébaudeau
2013-03-22 12:21           ` Tom Rini
2013-03-22 14:20             ` Lukasz Majewski
2013-03-06 18:59 ` [U-Boot] [PATCH v9 26/30] Revert "mkconfig: start deprecating Makefile config targets" Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 27/30] arm: Remove support for unused s3c64xx Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 28/30] arm: Remove deprecated and now unused NAND SPL Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 29/30] arm1176: Remove unused MMU setup from start.S Benoît Thébaudeau
2013-03-06 18:59 ` [U-Boot] [PATCH v9 30/30] arm: Make all linker scripts compatible with per-symbol sections Benoît Thébaudeau
2013-03-06 19:25 ` [U-Boot] [PATCH v9 01/30] mtd: nand: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT Scott Wood
2013-03-14 11:51 ` marcio at netopen.com.br
2013-03-14 12:39   ` Fabio Estevam
2013-03-28  9:55 ` Albert ARIBAUD
2013-03-28 14:37   ` Benoît Thébaudeau
2013-03-28 15:16     ` Albert ARIBAUD
2013-03-28 16:33       ` Benoît Thébaudeau
2013-03-30  8:52 ` Albert ARIBAUD
2013-03-30 15:42   ` Benoît Thébaudeau

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=2019766061.1401728.1365529046069.JavaMail.root@advansee.com \
    --to=benoit.thebaudeau@advansee.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