* See MIPS barebox run: step-by-step instruction
@ 2011-06-26 13:28 Antony Pavlov
2011-06-27 6:04 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 3+ messages in thread
From: Antony Pavlov @ 2011-06-26 13:28 UTC (permalink / raw)
To: barebox
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-27 7:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-26 13:28 See MIPS barebox run: step-by-step instruction Antony Pavlov
2011-06-27 6:04 ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-27 7:24 ` Antony Pavlov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox