[ELDK] U-boot fails to load in QEMU
Stefano Babic
sbabic at denx.de
Tue Jun 19 09:11:33 CEST 2012
On 19/06/2012 08:19, Sarbojit Ganguly wrote:
> Hello all,
>
Hi Sarbojit,
> I compiled u-boot12012.04 for QEMU (emulating versatilepb arm926ej-s).
>
> make versatilepb_config ARCH=arm CROSS_COMPILE=arm-none-eabi-
> make all ARM=arm CROSS_COMPILE=arm-none-eabi-
>
> and ran qemu by the following command:
>
> qemu-system-arm -M versatilepb -m 128M -nographic -kernel ./u-boot.bin
>
> Output:
>
> qemu: fatal: Trying to execute code outside RAM or ROM at 0xffff07bc
>
> R00=fffcbf64 R01=ffff0000 R02=00000000 R03=0101c08c
> R04=ffff0000 R05=fffcbf64 R06=ffff0000 R07=00000000
> R08=008fff78 R09=feff0000 R10=0101c08c R11=00000000
> R12=fffcbfdc R13=fffcbf58 R14=ffff07bc R15=ffff07bc
> PSR=600001d3 -ZC- A svc32
> Aborted
>
>
> I had to patch the file include/configs/versatile.h with this
> #define CONFIG_ARCH_VERSATILE_QEMU
You have already answered your question. Of course,
CONFIG_ARCH_VERSATILE_QEMU must be set.
This is done automatically if you compile versatileqemu and not versatilepb
./MAKEALL versatileqemu
qemu-system-arm -M versatilepb -nographic -m 128M -kernel ./u-boot.bin
U-Boot 2012.04.01-00328-g094b92f (Jun 19 2012 - 09:06:13)
DRAM: 128 MiB
WARNING: Caches not enabled
Using default environment
In: serial
Out: serial
Err: serial
Net: SMC91111-0
VersatilePB #
>
> and after that it worked.
>
> But when I checked autoconfig.mk I found it is already declared. Am I
> missing anything or this is actually a u-boot bug?
>
> Please clarify.
>
This is a u-boot topic and has nothing to do with eldk. Please use the
u-boot Mailing List for u-boot questions.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the eldk
mailing list