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: mar.krzeminski
Subject: Re: [Qemu-discuss] Qemu versatilepb booting u-boot from flash
Date: Fri, 27 Mar 2015 15:39:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0



W dniu 26.03.2015 o 19:32, Peter Maydell pisze:
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

I think you are right. My target was to run boot u-boot from flash, so in order to do that, I need to write some program that will copy u-boot from flash image and start it.



reply via email to

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