All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] powerpc/p1010rdb: SECURE BOOT- define CONFIG_SYS_RAMBOOT for NAND boot
Date: Tue, 28 Jan 2014 06:35:39 +0100	[thread overview]
Message-ID: <20140128053539.DE87A3801D7@gemini.denx.de> (raw)
In-Reply-To: <7f771c64c5c44208b24e38c75e159f28@DM2PR03MB415.namprd03.prod.outlook.com>

Dear Aneesh,

In message <7f771c64c5c44208b24e38c75e159f28@DM2PR03MB415.namprd03.prod.outlook.com> you wrote:
>
> Sorry for the misleading statement. Yes, CONFIG_SYS_RAMBOOT is for
> booting from RAM directly and we have used it for the same purpose in
> the patch. Let me try and explain.

Mind the "directly" in this sentence, and no, you have not used it in
this way.

> What I meant is that for P1010 like platforms for normal (non-secure)
> boot in case of NAND, we don't use the CONFIG_SYS_RAMBOOT as we
> don't boot from RAM directly in this case.

You also do not boot directly from RAM in the secure case.

> However in case of secure boot, even for NAND, we boot from RAM
> directly with boot ROM (ISBC) code copying the image from NAND to
> RAM. So in P1010RDB.h config file, for NAND Secure boot, we have

This is NOT a RAM boot.  This is a completely normal boot process from
NAND.  You must not declare this as RAM booting, as it is NOT.

> defined CONFIG_RAMBOOT_NAND and then further are enabling
> CONFIG_SYS_RAMBOOT for the same.

This is wrong.  You have the ROM boot loader booting from NAND and
not from RAM.

The name CONFIG_RAMBOOT_NAND is an oxymoron in itself (and it's
undocumented as well).   This should be fixed, as it makes no sense.

You cannot "RAM-boot form NAND" - you can always boot from a single
boot device only - either NOR or NAND or SDCard or ... or RAM.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Microsoft Multitasking:
                     several applications can crash at the same time.

  reply	other threads:[~2014-01-28  5:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20  9:25 [U-Boot] [PATCH 1/3] powerpc/p1010rdb: SECURE BOOT- define CONFIG_SYS_RAMBOOT for NAND boot Aneesh Bansal
2014-01-20 22:04 ` Scott Wood
2014-01-27  7:20   ` aneesh.bansal at freescale.com
2014-01-27 14:22     ` Wolfgang Denk
2014-01-28  4:47       ` aneesh.bansal at freescale.com
2014-01-28  5:35         ` Wolfgang Denk [this message]
2014-03-04 17:11           ` York Sun
2014-03-05  5:30             ` aneesh.bansal at freescale.com
2014-03-05 18:00               ` Scott Wood
2014-03-06  9:24                 ` aneesh.bansal at freescale.com
2014-03-07  0:35                   ` York Sun
2014-03-07 18:57                   ` Scott Wood
2014-03-07 19:01                     ` York Sun
2014-03-10  9:14                       ` aneesh.bansal at freescale.com
2014-03-10 15:26                         ` York Sun
2014-03-10 23:58                         ` Scott Wood
2014-03-11 15:53                           ` York Sun

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=20140128053539.DE87A3801D7@gemini.denx.de \
    --to=wd@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.