All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] How do work qemu_mips image?
@ 2008-06-16 10:51 Nobuhiro Iwamatsu
  2008-06-16 11:05 ` Nobuhiro Iwamatsu
  2008-06-17 13:41 ` Vlad Lungu
  0 siblings, 2 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-06-16 10:51 UTC (permalink / raw)
  To: u-boot

Hi,  all.

I want to use MIPS archtechtute on Qemu.
I compiled qemu_mips and read doc/README.qemu_mips and was going
to work it, but U-boot boot stopped.
Is this right behavior?

Please give me advice to work a qemu_mips image on Qemu.

-------
U-boot version:
  Get from Git tree ( hash:a94f22f08f280905926219e568568964cb9eeb9d)

use cross compiller:
  $ mips-linux-gnu-gcc -v
  Using built-in specs.
  Target: mips-linux-gnu
  Configured with: ../src/configure -v
--enable-languages=c,c++,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/mips-linux-gnu/include/c++/4.2.4
--program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug
--disable-libssp --enable-checking=release
--program-prefix=mips-linux-gnu-
--includedir=/usr/mips-linux-gnu/include --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=mips-linux-gnu
  Thread model: posix
  gcc version 4.2.4 (Debian 4.2.4-2)

use Qemu version:
  0.9.1

U-boot log:
  $ ln -s u-boot.bin mips_bios.bin
  $ xps-iwamatsu(iwamatsu:)$ qemu-system-mips -L . /dev/null -nographic


  U-Boot 1.3.3-00235-ga94f22f-dirty (Jun 16 2008 - 19:18:35)

  Board: Qemu -M mips CPU: 24Kf proc_id=0x19300
  DRAM:  128 MB
  (stopped)

Best regards,
 Nobuhiro

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

* [U-Boot-Users] How do work qemu_mips image?
  2008-06-16 10:51 [U-Boot-Users] How do work qemu_mips image? Nobuhiro Iwamatsu
@ 2008-06-16 11:05 ` Nobuhiro Iwamatsu
  2008-06-17 13:41 ` Vlad Lungu
  1 sibling, 0 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-06-16 11:05 UTC (permalink / raw)
  To: u-boot

2008/6/16 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>:

> -------
> U-boot version:
>  Get from Git tree ( hash:a94f22f08f280905926219e568568964cb9eeb9d)
This hash is newest source code on u-boot.git.

Best regards,
 Nobuhiro

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

* [U-Boot-Users] How do work qemu_mips image?
  2008-06-16 10:51 [U-Boot-Users] How do work qemu_mips image? Nobuhiro Iwamatsu
  2008-06-16 11:05 ` Nobuhiro Iwamatsu
@ 2008-06-17 13:41 ` Vlad Lungu
  2008-06-18  1:58   ` Nobuhiro Iwamatsu
  1 sibling, 1 reply; 4+ messages in thread
From: Vlad Lungu @ 2008-06-17 13:41 UTC (permalink / raw)
  To: u-boot

Nobuhiro Iwamatsu wrote:
> Hi,  all.
> 
> I want to use MIPS archtechtute on Qemu.
> I compiled qemu_mips and read doc/README.qemu_mips and was going
> to work it, but U-boot boot stopped.
> Is this right behavior?

I forgot to look if the README is the right one, but ...

> Please give me advice to work a qemu_mips image on Qemu.
> 
> -------
> U-boot version:
>   Get from Git tree ( hash:a94f22f08f280905926219e568568964cb9eeb9d)
[snip]
> use Qemu version:
>   0.9.1
> 
> U-boot log:
>   $ ln -s u-boot.bin mips_bios.bin
>   $ xps-iwamatsu(iwamatsu:)$ qemu-system-mips -L . /dev/null -nographic
I think that's the problem. There was a patch to Qemu on April 23 to add flash support
to the qemu_mips target. Now you have to do qemu-system-mips -pflash filename. Just copy
u-boot.bin to filename before.

> 
>   U-Boot 1.3.3-00235-ga94f22f-dirty (Jun 16 2008 - 19:18:35)
> 
>   Board: Qemu -M mips CPU: 24Kf proc_id=0x19300
>   DRAM:  128 MB
>   (stopped)

If it says something like " invalid flash size 0Mb " after DRAM: 128 MB then it stops
that's definitely your problem. Use SVN HEAD from Qemu instead of 0.9.1.

Regards,
Vlad

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

* [U-Boot-Users] How do work qemu_mips image?
  2008-06-17 13:41 ` Vlad Lungu
@ 2008-06-18  1:58   ` Nobuhiro Iwamatsu
  0 siblings, 0 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-06-18  1:58 UTC (permalink / raw)
  To: u-boot

Hi, Vlad.

2008/6/17 Vlad Lungu <vlad.lungu@windriver.com>:
>> U-boot log:
>>   $ ln -s u-boot.bin mips_bios.bin
>>   $ xps-iwamatsu(iwamatsu:)$ qemu-system-mips -L . /dev/null -nographic
> I think that's the problem. There was a patch to Qemu on April 23 to add flash support
> to the qemu_mips target. Now you have to do qemu-system-mips -pflash filename. Just copy
> u-boot.bin to filename before.
>
>>
>>   U-Boot 1.3.3-00235-ga94f22f-dirty (Jun 16 2008 - 19:18:35)
>>
>>   Board: Qemu -M mips CPU: 24Kf proc_id=0x19300
>>   DRAM:  128 MB
>>   (stopped)
>
> If it says something like " invalid flash size 0Mb " after DRAM: 128 MB then it stops
> that's definitely your problem. Use SVN HEAD from Qemu instead of 0.9.1.

I used newist Qemu and use -pflash option.
Work fine!

Thank you for yor advice.

Best regards,
 Nobuhiro
-- 
----------------------------------
Nobuhiro Iwamatsu

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

end of thread, other threads:[~2008-06-18  1:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 10:51 [U-Boot-Users] How do work qemu_mips image? Nobuhiro Iwamatsu
2008-06-16 11:05 ` Nobuhiro Iwamatsu
2008-06-17 13:41 ` Vlad Lungu
2008-06-18  1:58   ` Nobuhiro Iwamatsu

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.