From: Wolfgang Denk Date: Tue, 28 Jan 2014 06:35:39 +0100 Subject: [U-Boot] [PATCH 1/3] powerpc/p1010rdb: SECURE BOOT- define CONFIG_SYS_RAMBOOT for NAND boot In-Reply-To: <7f771c64c5c44208b24e38c75e159f28@DM2PR03MB415.namprd03.prod.outlook.com> References: <1390209926-10115-1-git-send-email-aneesh.bansal@freescale.com>, <1390255477.24905.305.camel@snotra.buserror.net> <680c371d651d49a08b33ddd4d01fb3bd@DM2PR03MB415.namprd03.prod.outlook.com> <20140127142223.DDF2538033A@gemini.denx.de> <7f771c64c5c44208b24e38c75e159f28@DM2PR03MB415.namprd03.prod.outlook.com> Message-ID: <20140128053539.DE87A3801D7@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.