From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 24 Oct 2017 20:31:31 +0200 Subject: [U-Boot] qemu and baremetal arm prog In-Reply-To: References: Message-ID: <20171024183131.E13E2120201@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 Anupam, In message you wrote: > > printf "bootm 0x%X\n" $(expr $(stat -c%s u-boot.bin) + 65536) > bootm 0x218F20 The value 0x218F20 printed here is the offset where your image starts relative to the begin of the U-Boot binary. > **Then run :** > > qemu-system-arm -M vexpress-a9 -kernel flash.bin -m 128M -nographic > > Interrupted it and then run `bootm 0x218F20` > But it says > > Wrong Image Format for bootm command > ERROR: can't get kernel image! This can only be correct if your U-Boot binary was loaded to address 0x0000, which probably is not correct. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk 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 "We don't care. We don't have to. We're the Phone Company."