qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] Qemu versatilepb booting u-boot from flash


From: Peter Maydell
Subject: Re: [Qemu-discuss] Qemu versatilepb booting u-boot from flash
Date: Thu, 26 Mar 2015 18:32:37 +0000

On 25 March 2015 at 11:08, Marcin Krzemiński <address@hidden> wrote:
> I want to start u-boot ( or any other bear metal program ) from flash in
> versatilepb board. I am usung a command:
>
> qemu-system-arm -M versatilepb -m 128M -serial stdio -pflash flash.bin
> -display none -monitor null
>
> No mateher what is in flash.bin file I am always get this error:
> qemu: fatal: Trying to execute code outside RAM or ROM at 0x0c000000

I'm afraid QEMU doesn't support mapping the flash device to
address zero on this board. Address zero is always RAM, and
since your command line doesn't put anything into the RAM
we will just execute the zero bytes (which happen to be NOP
instructions) until we run off the end of RAM.

If you want to run a bare metal program on this board you
need to link it into an ELF file that's located at address
zero and then use -kernel myimage.elf to load it into the
RAM.

> R00=00000000 R01=00000000 R02=00000000 R03=00000000
> R04=00000000 R05=00000000 R06=00000000 R07=00000000
> R08=00000000 R09=00000000 R10=00000000 R11=00000000
> R12=00000000 R13=00000000 R14=00000000 R15=0c000000

For me this fails at R15=0800000, but I think the
cause is the same.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]