From: Wolfgang Denk Date: Thu, 26 Feb 2009 14:56:16 +0100 Subject: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB In-Reply-To: <49A68BA2.80807@samsung.com> References: <49A645E0.9060608@samsung.com> <20090226081323.GC25043@game.jcrosoft.org> <49A68BA2.80807@samsung.com> Message-ID: <20090226135616.3EDB3832E43F@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 Rohit Hagargundgi, In message <49A68BA2.80807@samsung.com> you wrote: > > Jean-Christophe PLAGNIOL-VILLARD wrote: > >> #define ONENAND_BLOCK_SIZE 2048 > >> +#define ONENAND_BOOTLOADER_SIZE 0x40000 > > why hardcoded value? > > Is it possible to get image size instead of hard value. > Then we can read exactly u-boot image size on boot up. Use CONFIG_SYS_MONITOR_LEN as I suggested in my previous message. 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 The philosophy exam was a piece of cake - which was a bit of a surprise, actually, because I was expecting some questions on a sheet of paper.