All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] qemu-mips usage
@ 2009-01-26  9:13 Luigi 'Comio' Mantellini
  2009-01-26  9:25 ` Nobuhiro Iwamatsu
  2009-01-26 12:53 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 4+ messages in thread
From: Luigi 'Comio' Mantellini @ 2009-01-26  9:13 UTC (permalink / raw)
  To: u-boot

Hi ML,

I'm evaluating the qemu-mips to simulate a mips 4kec/24kec board. I'm working 
on the high level booting sequence (linux init scripts), and qemu+uboot should 
be a good choice to emulate a basic system (flash + dram + 4kec cpu).

Furthermore, also following the doc/README.qemu_mips, I'm not able to see the 
u-boot prompt on my qemu because the flash is not recognized. I haven't 
experience with qemu-mips and I don't understand where the flash is placed 
(canonical 0xbfxxxx address?) and how it is managed. Reading the 
configs/qemu_mips.h, It seems that the flash is managed as a common CFI flash 
placed to 0xbfc00000 address... but u-boot shows always "Unknown FLASH on Bank 
1" on startup.

Has anyone tried to use qemu-mips to boot a standard u-boot image (qemu_mips 
target on u-boot)?


Thanks for any suggestion.

luigi

########### Useful Infos ############

This is the qemu banner (on Ubuntu 8.10):

EMU PC emulator version 0.9.1, Copyright (c) 2003-2008 Fabrice Bellard

This is the execution log:

$ cp ../u-boot-vanilla/u-boot.bin mips_bios.bin
$ dd of=flash bs=1k count=4k if=/dev/zero
4096+0 records in
4096+0 records out
4194304 bytes (4,2 MB) copied, 0,046865 s, 89,5 MB/s
$ dd of=flash bs=1k conv=notrunc if=../u-boot-vanilla/u-boot.bin
163+1 records in
163+1 records out
167076 bytes (167 kB) copied, 0,00124954 s, 134 MB/s
$ qemu-system-mips -M mips -pflash flash -monitor null -nographic
qemu: Warning, could not load MIPS bios '/usr/share/qemu/mips_bios.bin'
Terminated

$ qemu-system-mips -L . -M mips -pflash flash -monitor null -nographic


U-Boot 2009.01-00080-g8f86a36 (gen 26 2009 - 09:23:04)

Board: Qemu -M mips CPU: 24Kf proc_id=0x19300
DRAM:  128 MB
## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB
Terminated
$



-- 
Luigi Mantellini
R&D - Software
Industrie Dial Face S.p.A.
Via Canzo, 4
20068 Peschiera Borromeo (MI), Italy
Tel.:  +39 02 5167 2813
Fax:   +39 02 5167 2459
Email: luigi.mantellini at idf-hit.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-26 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-26  9:13 [U-Boot] qemu-mips usage Luigi 'Comio' Mantellini
2009-01-26  9:25 ` Nobuhiro Iwamatsu
2009-01-26 12:53 ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-26 14:31   ` Luigi 'Comio' Mantellini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.