From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Hubig Date: Fri, 27 Jul 2012 10:59:10 +0200 Subject: [U-Boot] [SOLVED] Need help to get u-boot running on the taskit stamp9g20 In-Reply-To: <20120724154328.GA2815@imko.de> References: <4FFE98AD.7070107@gmail.com> <20120712154945.GA12365@imko.de> <4FFF580E.4020602@googlemail.com> <20120718132100.GA11212@imko.de> <20120720130851.GA20267@imko.de> <20120720142655.GB20267@imko.de> <20120721220325.8565220310D@gemini.denx.de> <20120724154328.GA2815@imko.de> Message-ID: <20120727085910.GC18866@imko.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jul 24, 2012 at 05:43:28PM +0200, Markus Hubig wrote: > I looked at every single byte on the internet an I found some information > that in order to get this bad-ass relocation to work, one needs to adapt > at91bootstrap to work with u-boot. Could this be my problem? At the moment > I'm using the original at91bootstrap from taskit. > > Here is what I think the problem could, maybe, be: > > 1. Board gets powered on. > 2. at91bootstrap magically starts. > 3. It reads IMG_SIZE from IMG_ADDRESS and writes it to JUMP_ADDR in RAM. > - IMG_ADDRESS is where I write u-boot to inside NAND? > - IMG_SIZE should be the size of u-boot.bin? (exactly or is a bigger > size OK?) > - JUMP_ADDR is where u-boot is relocated to in RAM. Should be > CONFIG_SYS_TEXT_BASE? > 4. at91bootstrap sets the PC to JUMP_ADDR and starts u-boot. > > Since IMG_SIZE in at91bootstrap is not the size of my new u-boot.bin it > crashes after relocation! Year! This was exactly my problem! Building a new at91bootstrap with a bigger IMG_SIZE solved it. Now U-Boot starts up! Im getting closer to a patch! ;-) Cheers, Markus