From: FengHua Date: Thu, 3 Oct 2013 01:16:55 +0800 (GMT+08:00) Subject: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t In-Reply-To: <1380732495.12932.7.camel@snotra.buserror.net> References: <55d239.1a4d4.140a68633c9.Coremail.fenghua@phytium.com.cn> <1377303422.20722.115.camel@snotra.buserror.net> <1378778083.12204.292.camel@snotra.buserror.net> <1380591826.24959.563.camel@snotra.buserror.net> <1380640031.10618.6.camel@snotra.buserror.net> <1380732495.12932.7.camel@snotra.buserror.net> Message-ID: <1309c8d.1d52.1417a2c262d.Coremail.fenghua@phytium.com.cn> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > > > > > -----????----- > > > ???: "Scott Wood" > > > ????: 2013?10?1? ??? > > > ???: FengHua > > > ??: "Simon Glass" , trini , u-boot > > > ??: Re: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t > > > > > > On Tue, 2013-10-01 at 19:05 +0800, FengHua wrote: > > > > How about place u-boot.bin at 0x90000000 and write a piece of code (elf format) > > > > jumping from 0x80000000 to 0x90000000. > > > > > > That seems even worse than converting the .bin back into an ELF... > > > > > Why? I could load u-boot.bin at 0x90000000 as data, I think it should works. > > Or maybe secure state make the program jumping to secure memory. > > so try switching to el2 before jumping. > > It requires building another program image (even if it's a relatively > simple one), as opposed to just invoking objcopy and ld, and it makes > invoking the simulator more complicated. Do not need to write a new program, just add the jumping code immediately after setup_el3 of current aarch64-uboot, it's the first booting program. compile another u-boot without jumping code at 0x90000000, it's the data. > > > Do you know why loading the raw image at 0x80000000 isn't working? > > The foundation model require a elf(axf) image being loaded, it use it to determine the entry point. > > Then why does it even try to start without an ELF being supplied (but > won't try to start if I don't supply ELF *or* raw data)? > Why is there no other way to supply an entry point (even just defaulting to the > beginning of the raw image if no ELF is provided)? Fast model for aarch64 support all of these. Maybe that's why Foundatiom model is free. > Why does it fail when I supply *both* the ELF and the raw image, in either order? The elf file will override the raw image if they are loaded at same address. David