[U-Boot] qemu-mips usage

Luigi 'Comio' Mantellini luigi.mantellini.ml at gmail.com
Mon Jan 26 15:31:42 CET 2009


Dear All,

thanks for the help.
I used the last svn copy and it works fine:
URL: svn://svn.savannah.nongnu.org/qemu/trunk
Repository Root: svn://svn.savannah.nongnu.org/qemu
Repository UUID: c046a42c-6fe2-441c-8c8c-71466251a162
Revision: 6436

Anyway I created a trivial patch in order to permit to have an arbitrary flash 
size on mips board (I'm need to simulate a board with 32MB instead the usual 
4M). Using the patch, the flash memory placed at the end of 0xbfxxxxxxxx  
memory space:

4MB flash: start bfc00000 -> end bfffffff
8MB flash: start bf800000 -> end bfffffff
16MB flash: start bf000000 -> end bfffffff
32MB flash: start be000000 -> end bfffffff

The firmware must be placed always at address 0xbfc00000. these are the 
relative address on the file:

4MB flash: firmware offset +0
8MB flash: firmware offset +4MB
16MB flash: firmware offset +12MB
32MB flash: firmware offset +28MB

To create the image files, use the following  trivial script:

dd if=/dev/zero of=flash.img bs=$flashsize count=1 conv=sync
dd if=u-boot.bi of=flash.img bs=1 seek=$biosbase conv=notrunc


Thanks again for your support.

luigi


On Monday 26 January 2009 13:53:07 Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 10:13 Mon 26 Jan     , Luigi 'Comio' Mantellini wrote:
> > 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
>
> Please use the SVN version of qemu for the current u-boot version
>
> I'll update the README.qemu_mips to specify the last u-boot version for the
> old qemu
>
> Best Regards,
> J.

-- 
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips_r4k_aribtrary_flash_size.patch
Type: text/x-patch
Size: 1318 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090126/1fe90f8f/attachment.bin 


More information about the U-Boot mailing list