All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] ARM: RealView boot problem
@ 2010-02-23 17:55 Christoffer Dall
  0 siblings, 0 replies; only message in thread
From: Christoffer Dall @ 2010-02-23 17:55 UTC (permalink / raw)
  To: qemu-devel

I am trying to emulate ARMv6 on QEMU and cannot get past the early
kernel boot process. I wish to emulate the arm1136 cpu on the
realview-eb platform.

The config file for the kernel and my binaries can be found here:
http://www.cs.columbia.edu/~cdall/qemu-realview.tar.gz

To configure and compile qemu, I use the following command:
# ./configure --target-list=arm-softmmu
# make

I am using the stable-0.12 branch on commit
307331a42a39b46487f8f4356eaa943101f6af4e

To run qemu, I use this command:
# qemu-system-arm -M realview-eb -cpu arm1136 -kernel
~/src/linux-arm/arch/arm/boot/zImage -nographic -append
"console=ttyAMA0 debug initcall_debug"

I know that I need a file system to boot, but I should at least get
kernel printout here right?

I've tracked the issue to occur in a ldrex instruction, which
generates a data abort:
start_kernel()
 -> boot_cpu_init()
    -> set_cpu_online(cpu, true)
        -> cpumask_set_cpu(...)
            -> set_bit()
                -> _set_bit_le()
                     ....
                     ldrexb   r2, [r1]

The instruction is in arch/arm/lib/bitops.h:8

I tried mocking around quite a bit in the kernel config, but got nowhere.

Any help is greatly appreciated here.


Thanks!

Regards,
Christoffer Dall

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-23 17:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-23 17:55 [Qemu-devel] ARM: RealView boot problem Christoffer Dall

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.