All of lore.kernel.org
 help / color / mirror / Atom feed
From: matti kaasinen <matti.kaasinen@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] am335x board i2c_probe fails from nand boot
Date: Thu, 5 Jan 2017 12:09:26 +0200	[thread overview]
Message-ID: <CADnUhn3bFUMPOXwM4rSMtw-etb0G6XBhGf6uA9x8f9jXq0evcw@mail.gmail.com> (raw)
In-Reply-To: <CADnUhn3f0dg-kXyxzMgbCN7wC8ZC368LBjdRtvj8dT6vYyHkqQ@mail.gmail.com>

FIXME!! Pretty much everything I claim below is wrong and am335x_evm.h
correct.
Only the last notice is not totally wrong as space reserver for
NAND.u-boot-spl-os is not 0x2000.

2017-01-04 9:33 GMT+02:00 matti kaasinen <matti.kaasinen@gmail.com>:

> I noticed some nand related values that I'm not sure if they are correct.
> I get following nand partition listed from mmc boot:
> [    1.230539] Creating 10 MTD partitions on "8000000.nand":
> [    1.236229] 0x000000000000-0x000000020000 : "NAND.SPL"
> [    1.243121] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
> [    1.250614] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
> [    1.258121] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
> [    1.265515] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
> [    1.273167] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
> [    1.280890] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
> [    1.288255] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
> [    1.296430] 0x000000200000-0x000000a00000 : "NAND.kernel"
> [    1.309941] 0x000000a00000-0x000010000000 : "NAND.file-system"
>
> In am335x_evm.h there are following definitions:
> #define CONFIG_SYS_NAND_U_BOOT_OFFS    0x000c0000
> So, this is pointing to NAND.u-boot-spl-os, i.e os parameters in nand, not
> u-boot
>
> #define CONFIG_CMD_SPL_NAND_OFS    0x00080000 /* os parameters */
> This is pointing to NAND.SPL.backup3
>
> #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS    0x00200000 /* kernel offset */
> This is pointing to NAND.u-boot-env.backup1, not kernel
>
> #define CONFIG_CMD_SPL_WRITE_SIZE    0x2000
> 0x2000 does not match with 0x80000 that is reserved for NAND.u-boot-spl-os
> partition.
>

  reply	other threads:[~2017-01-05 10:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-03  9:26 [U-Boot] am335x board i2c_probe fails from nand boot matti kaasinen
2017-01-03 10:56 ` Yegor Yefremov
2017-01-03 11:02   ` matti kaasinen
2017-01-03 11:05     ` Yegor Yefremov
2017-01-03 11:10       ` matti kaasinen
2017-01-03 11:16 ` Lokesh Vutla
2017-01-03 12:33   ` matti kaasinen
2017-01-03 13:34     ` matti kaasinen
2017-01-03 14:37       ` matti kaasinen
2017-01-04  4:46         ` Lokesh Vutla
2017-01-04  7:33           ` matti kaasinen
2017-01-05 10:09             ` matti kaasinen [this message]
2017-01-05 13:01               ` matti kaasinen
2017-01-04 10:23           ` matti kaasinen

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=CADnUhn3bFUMPOXwM4rSMtw-etb0G6XBhGf6uA9x8f9jXq0evcw@mail.gmail.com \
    --to=matti.kaasinen@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.