From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 26 Feb 2009 13:47:03 +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: <20090226124703.GA10994@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 18:01 Thu 26 Feb , Rohit Hagargundgi wrote: > Hi, > > 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. as point out Wolfgang you can use the MONITOR_LEN. If you really need the u-boot.bin size you will need to built it first and then on the host calculate it and genereate a .h with its size. But IMHO the MONITOR_LEN will give enough information evenif it's not the real size to copy u-boot in memory Best Regards, J.