I'm trying to build for versatile express to run under QEMU. When I boot under QEMU I get errors regarding the SD voltage, and it fails. I have not really used QEMU for testing before. Has anyone encountered this? It's likely I've got something basic wrong. Here is the command I'm using:
qemu-system-arm -kernel zImage -M vexpress-a9 -cpu cortex-a9 -serial stdio -m 1024 -initrd initrd \ -append 'root=/dev/mmcblk0p2 rw mem=1024M raid=noautodetect console=ttyAMA0,38400n8 rootwait vmalloc=256MB devtmpfs.mount=0' \ -sd sd.img -dtb vexpress-v2p-ca9.dtb
I made sd.img with l-m-c, and replaced the kernel and dtb with the output of my build.
-dl
On Tue, 2013-06-04 at 00:07 -0400, David Long wrote:
I've never really tried using QEMU so don't have any QEMU specific help to offer, but I have some questions...
What are the actual errors you get? What kernel config are you using? Do you have these options enabled?
CONFIG_VEXPRESS_CONFIG=y CONFIG_SENSORS_VEXPRESS=y CONFIG_REGULATOR=y CONFIG_REGULATOR_VEXPRESS=y CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y CONFIG_LEDS_GPIO=y
Does anyone know if QEMU emulates all the system register bits to actually get the above things working? Linux drivers to use these features were added to 3.7 so QEMU probably wouldn't have needed to support them 9 months ago.
On 4 June 2013 09:10, Jon Medhurst (Tixy) tixy@linaro.org wrote:
Yes, QEMU 1.5 supports these, so a sufficiently recent QEMU will work fine. If you get these messages then you need to update your QEMU or use the right dtb blob for your kernel or fix your kernel config as Tixy suggests.
thanks -- PMM
On 06/04/13 04:10, Jon Medhurst (Tixy) wrote:
What are the actual errors you get? What kernel config are you using? Do you have these options enabled?
The errors are:
mmc0: host doesn't support card's voltages mmc0: error -22 whilst initialising SD card SD: Unknown CMD1
The above repeats quite a lot, probably forever. The kernel is 3.10-rc3. The config is vexpress_defconfig.
Thanks. CONFIG_REGULATOR was not set and setting it seems to have gotten me further. Adding SENSORS_VEXPRESS (and hwmon), and the LED support made no incremental difference.
On 06/04/13 04:28, Peter Maydell wrote:
On 4 June 2013 09:10, Jon Medhurst (Tixy) tixy@linaro.org wrote:
$ qemu-system-arm -version
QEMU emulator version 1.4.0 (Debian 1.4.0+dfsg-1expubuntu4), Copyright (c) 2003-2008 Fabrice Bellard
So my QEMU may be stale, and that may explain why now I get:
clcd-pl11x: probe of 10020000.clcd failed with error -22 clcd-pl11x: probe of 1001f000.clcd failed with error -22 vexpress-sysreg 10000000.sysreg: error -22 VD10: no parameters vexpress-sysreg 10000000.sysreg: error -22 vexpress-sysreg 10000000.sysreg: error -22 VD10_S2: no parameters vexpress-sysreg 10000000.sysreg: error -22 vexpress-sysreg 10000000.sysreg: error -22 VD10_S3: no parameters vexpress-sysreg 10000000.sysreg: error -22 vexpress-sysreg 10000000.sysreg: error -22 VCC1V8: no parameters vexpress-sysreg 10000000.sysreg: error -22 vexpress-sysreg 10000000.sysreg: error -22 DDR2VTT: no parameters vexpress-sysreg 10000000.sysreg: error -22 vexpress-sysreg 10000000.sysreg: error -22 VCC3V3: no parameters vexpress-sysreg 10000000.sysreg: error -22 vexpress-sysreg 10000000.sysreg: error -22 VIO: no parameters vexpress-sysreg 10000000.sysreg: error -22
However it looks to me like the SD is working now. I think the real problem now is that it's not succesfully mounting udev or the SD root partition (even though it sees both partitions). At this point I kind of need to make some progress so I'm going back to just using my Panda board.
-dl
On 4 June 2013 16:54, David Long dave.long@linaro.org wrote:
Yes, you need to ugrade your QEMU. Upstream v1.5.0 should be good for a vexpress model.
-- PMM