On 23 June 2011 18:56, Stefano Stabellini <stefano.stabell...@eu.citrix.com> wrote: > Thanks for the detailed explanation of the problem, I think I understand > what I have to do to fix. > However I would like to have a repro of the bug before sending any > patches, so that I am sure that the solution works correctly. > However I am not very familiar with ARM emulation in Qemu: could you > please let me know which target I have to compile, which machine I have > to emulate and what other steps do I have to take in order to see this > issue?
You'll need this not-yet-applied patch which adds cp15 perf reg support: http://patchwork.ozlabs.org/patch/92423/ I've temporarily put a test kernel and initrd here: http://people.linaro.org/~pmaydell/linaro-20110228.tar.gz configure qemu with --target-list=arm-softmmu and then you can run: ./arm-softmmu/qemu-system-arm -kernel linaro-20110228/vmlinuz-2.6.37-1003-linaro-vexpress -initrd linaro-20110228/initrd.img-2.6.37-1003-linaro-vexpress -M vexpress-a9 -cpu cortex-a9 -serial stdio -m 1024 -append 'root=/dev/mmcblk0p2 rw mem=1024M raid=noautodetect console=ttyAMA0,38400n8 rootwait vmalloc=256MB devtmpfs.mount=0' At the moment this aborts when the kernel tries to initialise the display; if you fix the problem it ought to display a penguin on the graphics window (although it will drop you into an initramfs prompt because you don't have a root filesystem sd card image). -- PMM