public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] qemu and baremetal arm prog
Date: Tue, 24 Oct 2017 20:31:31 +0200	[thread overview]
Message-ID: <20171024183131.E13E2120201@gemini.denx.de> (raw)
In-Reply-To: <CAEmaDyHtO=2+jZXLa=afZ6+oyxvndaRAbhfL-SSJhHV-kmzmyQ@mail.gmail.com>

Dear Anupam,

In message <CAEmaDyHtO=2+jZXLa=afZ6+oyxvndaRAbhfL-SSJhHV-kmzmyQ@mail.gmail.com> 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."

  reply	other threads:[~2017-10-24 18:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-24  8:30 [U-Boot] qemu and baremetal arm prog Anupam Datta
2017-10-24 18:31 ` Wolfgang Denk [this message]
     [not found]   ` <CAEmaDyELmBztEtFKtnYwQN0OYbq7QMH=G2k0fxwEH4scCzX+nA@mail.gmail.com>
2017-10-25  7:19     ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171024183131.E13E2120201@gemini.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox