public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Using u-boot with qemu-system-mips(qemu-2.1.2) caused infinite loop
@ 2014-12-04  7:55 jiang
  2014-12-05 14:14 ` Daniel Schwierzeck
  0 siblings, 1 reply; 3+ messages in thread
From: jiang @ 2014-12-04  7:55 UTC (permalink / raw)
  To: u-boot

Hello all:
I just downloaded the latest u-boot source code,then compiled with:
make qemu_mips_defconfig
make CROSS_COMPILE=mips-linux-uclibc-
then create image:
# dd of=flash bs=1k count=4k if=/dev/zero
# dd of=flash bs=1k conv=notrunc if=u-boot.bin

run with:
qemu-system-mips -M mips -pflash flash -nographic

but I got nothing then I try to debug with gdb,I got this:

0xbfc001fc <_start+508>:    nop
0xbfc00200 <_start+512>:    b    0xbfc00200 <_start+512>
0xbfc00204 <_start+516>:    nop
0xbfc00208 <_start+520>:    nop

Another thing, the file u-boot.bin I got was 215k, is that ok?

What should I do to use u-boot in qemu?:)

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

* [U-Boot] Using u-boot with qemu-system-mips(qemu-2.1.2) caused infinite loop
  2014-12-04  7:55 [U-Boot] Using u-boot with qemu-system-mips(qemu-2.1.2) caused infinite loop jiang
@ 2014-12-05 14:14 ` Daniel Schwierzeck
  2014-12-06  3:41   ` jiang
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Schwierzeck @ 2014-12-05 14:14 UTC (permalink / raw)
  To: u-boot

Hi,

On 04.12.2014 08:55, jiang wrote:
> Hello all:
> I just downloaded the latest u-boot source code,then compiled with:
> make qemu_mips_defconfig
> make CROSS_COMPILE=mips-linux-uclibc-
> then create image:
> # dd of=flash bs=1k count=4k if=/dev/zero
> # dd of=flash bs=1k conv=notrunc if=u-boot.bin
> 
> run with:
> qemu-system-mips -M mips -pflash flash -nographic
> 
> but I got nothing then I try to debug with gdb,I got this:
> 
> 0xbfc001fc <_start+508>:    nop
> 0xbfc00200 <_start+512>:    b    0xbfc00200 <_start+512>
> 0xbfc00204 <_start+516>:    nop
> 0xbfc00208 <_start+520>:    nop

with recent Qemu versions there occurs a CPU exception in CFI probing

> 
> Another thing, the file u-boot.bin I got was 215k, is that ok?
> 
> What should I do to use u-boot in qemu?:)
> 

if you don't need 64bit support, you should use the malta board for Qemu

$ make malta_defconfig
$ make CROSS_COMPILE=mips-linux-uclibc-
$ qemu-system-mips -M malta -m 256 -nographic -bios u-boot.bin


U-Boot 2015.01-rc2-00163-g97cdf64 (Dec 05 2014 - 15:06:30)

Board: MIPS Malta CoreLV
DRAM:  256 MiB
Flash: 4 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   pcnet#0
Warning: pcnet#0 using MAC address from net device

malta #



-- 
- Daniel

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

* [U-Boot] Using u-boot with qemu-system-mips(qemu-2.1.2) caused infinite loop
  2014-12-05 14:14 ` Daniel Schwierzeck
@ 2014-12-06  3:41   ` jiang
  0 siblings, 0 replies; 3+ messages in thread
From: jiang @ 2014-12-06  3:41 UTC (permalink / raw)
  To: u-boot

Dear Daniel:
       Thanks for your guide,It's really helpful.Then last 
question,which version of qemu do you use?:)
? 2014/12/5 22:14, Daniel Schwierzeck ??:
> Hi,
>
> On 04.12.2014 08:55, jiang wrote:
>> Hello all:
>> I just downloaded the latest u-boot source code,then compiled with:
>> make qemu_mips_defconfig
>> make CROSS_COMPILE=mips-linux-uclibc-
>> then create image:
>> # dd of=flash bs=1k count=4k if=/dev/zero
>> # dd of=flash bs=1k conv=notrunc if=u-boot.bin
>>
>> run with:
>> qemu-system-mips -M mips -pflash flash -nographic
>>
>> but I got nothing then I try to debug with gdb,I got this:
>>
>> 0xbfc001fc <_start+508>:    nop
>> 0xbfc00200 <_start+512>:    b    0xbfc00200 <_start+512>
>> 0xbfc00204 <_start+516>:    nop
>> 0xbfc00208 <_start+520>:    nop
> with recent Qemu versions there occurs a CPU exception in CFI probing
>
>> Another thing, the file u-boot.bin I got was 215k, is that ok?
>>
>> What should I do to use u-boot in qemu?:)
>>
> if you don't need 64bit support, you should use the malta board for Qemu
>
> $ make malta_defconfig
> $ make CROSS_COMPILE=mips-linux-uclibc-
> $ qemu-system-mips -M malta -m 256 -nographic -bios u-boot.bin
>
>
> U-Boot 2015.01-rc2-00163-g97cdf64 (Dec 05 2014 - 15:06:30)
>
> Board: MIPS Malta CoreLV
> DRAM:  256 MiB
> Flash: 4 MiB
> *** Warning - bad CRC, using default environment
>
> In:    serial
> Out:   serial
> Err:   serial
> Net:   pcnet#0
> Warning: pcnet#0 using MAC address from net device
>
> malta #
>
>
>

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

end of thread, other threads:[~2014-12-06  3:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04  7:55 [U-Boot] Using u-boot with qemu-system-mips(qemu-2.1.2) caused infinite loop jiang
2014-12-05 14:14 ` Daniel Schwierzeck
2014-12-06  3:41   ` jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox