From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: See MIPS barebox run: step-by-step instruction
Date: Sun, 26 Jun 2011 17:28:54 +0400 [thread overview]
Message-ID: <BANLkTiny4P64rwkOYxvpqNtZkRy5Ys+1-w@mail.gmail.com> (raw)
Hi!
I have made small instruction to run mips barebox under qemu:
0. Change dir to barebox sources
$ cd barebox.mips.git
1. Apply patches (already posted to barebox@lists.infradead.org)
0001-include-linux-stat.h-make-MIPS-arch-possible.patch
0002-Add-MIPS-arch-support-to-barebox.patch
2. Configure & build barebox.bin
$ cp arch/mips/configs/generic_defconfig .config
$ make oldconfig ARCH=mips
$ make ARCH=mips CROSS_COMPILE=<your mips cross-compiler prefix>
3. Get qemu. My qemu:
$ qemu-system-mips --version
QEMU emulator version 0.14.0 (Debian 0.14.0+dfsg-5.1), Copyright
(c) 2003-2008 Fabrice Bellard
4. Run barebox under qemu:
$ qemu-system-mips -M malta -m 128 -bios ./barebox.bin -nodefaults
-serial stdio -nographic
or
$ qemu-system-mips64 -M malta -m 128 -bios ./barebox.bin
-nodefaults -serial stdio -nographic
4. Have fun!
Here is my barebox log.
barebox 2011.06.0-00012-gcc4a295 (Jun 26 2011 - 16:40:30)
Board: qemu malta
registered netconsole as cs1
Malloc space: 0xa0800000 -> 0xa0900000 (size 1 MB)
Open /dev/env0 No such file or directory
running /env/bin/init...
not found
uboot:/ devinfo
devices:
|----serial_ns165500
|----cs0
|----ramfs0
|----devfs0
|----mem0 (mem)
|----cs1
drivers:
serial_ns16550
ramfs
devfs
mem
cramfs
uboot:/
----
Best regards,
Antony Pavlov
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2011-06-26 13:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-26 13:28 Antony Pavlov [this message]
2011-06-27 6:04 ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-27 7:24 ` Antony Pavlov
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=BANLkTiny4P64rwkOYxvpqNtZkRy5Ys+1-w@mail.gmail.com \
--to=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
/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