From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 14 Jul 2010 22:37:43 +0200 Subject: [U-Boot] (imp) uboot image size In-Reply-To: References: <20100714061023.59E49160691@gemini.denx.de> <4C3E0E3D.7060305@free.fr> Message-ID: <20100714203743.B7A59160691@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 Sagar Heroorkar, In message you wrote: > > I changed the TEXT_BASE to implement the uboot redundancy. I got in to > problem of having image size. > > See this: > > > I am planning to implement uboot redundancy. > This means having the following idea which we thought. > > Golden-Uboot which is flashed in the NOR-FLASH. This is not field > upgradable. > This golden uboot is going to have logic to pick the other uboot based on > certain flags or env vriables > > As i mentioned i wanted the uboot to be redundant. > So i will have 2 copies of uboot now. > Uboot1 > Uboot2 > > Golden uboot will pick either of one uboots mentioned above. If the uboot1 > which is picked fails to boot, then we will have uboot2 as back up to boot. > vice versa. You are miscounting. You are talking about 3 (three) instances (not copies, as these will NOT be identical copies) of U-Boot here. > Golden uboot recides in the address fffa0000 (start.s). > There is a relocation code which copies the code from flash to ram. if the > uboot which i have picked addressess will change , hence how can i do the > relocation? Frankly, you should try and get a better understanding of the innards of U-Boot before trying to implement such a relatively complicated feature. Instead of trying to use "copies" of the normal U-Boot images, you probably want to look into the equivalent of second-stage images as used for example with NAND-booting systems. 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 Keep your eyes wide open before marriage, half shut afterwards. -- Benjamin Franklin