From: Vlad Lungu <vlad.lungu@windriver.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] can u-boot run standalone in qemu(qemu-system-arm) without kernel image(for mainstone II)
Date: Fri, 30 May 2008 15:49:18 +0300 [thread overview]
Message-ID: <483FF7CE.2010302@windriver.com> (raw)
In-Reply-To: <3a3941f0805290542q5108422bxbce6cd3f29ebc6ca@mail.gmail.com>
wong wrote:
> hi, all
>
> I'm a newbie to both u-boot and qemu.
> Maybe it's a silly question, but I can not find the solution through the
> Internet for almost 2 weeks, sorry :(
>
> Here is my question:
>
> I wanna run u-boot as a standalone app (or image?) in qemu, and I do't wanna
> any create linux image.
> Is that possible? I just wanna to study u-boot.
I have no idea if it is possible with that particular emulation, but I did something similar
with qemu-system-mips. Qemu loads a bootloader binary image on startup (if available) with most
emulations, for you it should be named arm_bios.bin probably. You can tell Qemu from what directory
to load it with the -L option, so just create a symlink to u-boot.bin named arm_bios.bin and launch
qemu-system-mips -L . /dev/null (/dev/null is needed so it will not complain that you have no kernel
and no disk image)
When you pass the -kernel option to qemu, it usually has a very small internal bootloader to setup a
few registers and pass control to the kernel. I know it does this for mips.
> And now, my idea is to create a flash image with u-boot, how about this
> way?
>
It depends on how that particular machine is emulated. Check the -pflash option Qemu, it might help.
Regards,
Vlad
next prev parent reply other threads:[~2008-05-30 12:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-29 12:42 [U-Boot-Users] can u-boot run standalone in qemu(qemu-system-arm) without kernel image(for mainstone II) wong
2008-05-30 12:49 ` Vlad Lungu [this message]
2008-06-28 15:51 ` maxki
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=483FF7CE.2010302@windriver.com \
--to=vlad.lungu@windriver.com \
--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