[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: qemu status on ARM



On 13/12/13 12:43, Riku Voipio wrote:
On Tue, Dec 10, 2013 at 11:51:41PM +0000, Tim Fletcher wrote:


To use kvm, you need to pass -enable-kvm to qemu-system-arm command
line. For example, if you want to try prebuilt linaro guest image from:

https://snapshots.linaro.org/ubuntu/images/kvm/263

You would run the following command:

qemu-system-arm -smp 2 -m 1024 -cpu cortex-a15 -M vexpress-a15 \
	-kernel ./zImage -dtb ./vexpress-v2p-ca15-tc1.dtb \
	-append 'root=/dev/mmcblk0p2 rw rootwait mem=1024M console=ttyAMA0,38400n8' \
	-drive if=sd,cache=writeback,file=kvm.qcow2 \
	-nographic -enable-kvm

If kvm kernel support is not available, qemu will refuse to start with -enable-kvm.

After some more tinkering I have now managed to boot this VM with KVM enabled, I have to use qemu 1.7.5 from git and change the cpu to be host rather than the a15 you suggested.

If I used the a15 you suggested I got the error:

kvm_init_vcpu failed: Invalid argument


bootlog from the VM boot included here for reference.

Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
    lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc053ee9c   (5340 kB)
      .init : 0xc053f000 - 0xc0574c40   ( 216 kB)
      .data : 0xc0576000 - 0xc05a3820   ( 183 kB)
       .bss : 0xc05a3828 - 0xc05cbe3c   ( 162 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16
Architected cp15 timer(s) running at 24.00MHz (virt).
Switching to timer-based delay loop
sched_clock: ARM arch timer >56 bits at 24000kHz, resolution 41ns
sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer freCuency.. 48.00 BogoMIPS (lpj=240000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
/cpus/cpu@1 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc03f5008 - 0xcC3f5060
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated.
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
of_amba_device_create(): amba_device_add() failed (-19) for /memory-controller@2b0a0000 of_amba_device_create(): amba_device_add() failed (-19) for /memory-controller@7ffd0000
of_amba_device_create(): amba_device_add() failed (-19) for /dma@7ffb0000
of_amba_device_create(): amba_device_add() failed (-19) for /smb/motherboard/iofpga@3,00000000/sysctl@020000 of_amba_device_create(): amba_device_add() failed (-19) for /smb/motherboard/iofpga@3,00000000/wdt@0f0000
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
Serial: AMBA PL011 UART driver
1c090000.uart: ttyAMA0 at MMIO 0x1c090000 (irq = 37, base_baud = 0) is a PL011 rev1
console [ttyAMA0] enabled
1c0a0000.uart: ttyAMA1 at MMIO 0x1c0a0000 (irq = 38, base_baud = 0) is a PL011 rev1 1c0b0000.uart: ttyAMA2 at MMIO 0x1c0b0000 (irq = 39, base_baud = 0) is a PL011 rev1 1c0c0000.uart: ttyAMA3 at MMIO 0x1c0c0000 (irq = 40, base_baud = 0) is a PL011 rev1
bio: create slab <bio-0> at 0
3V3: 3300 mV
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
kvm [1]: HYP mode not available
hw perfevents: enabled with ARMv7 Cortex-A15 PMU driver, 1 counters available
bounce pool size: 64 pages
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 1490
io scheduler noop registered (default)
clcd-pl11x: probe of 1c1f0000.clcd failed with error -22
Cores: 800 <--> 1050 mV at 900 mV
VIO: at 3300 mV
loop: module loaded
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
smsc911x: Driver version 2008-10-21
smsc911x 1a000000.ethernet (unregistered net_device): couldn't get clock -2
libphy: smsc911x-mdio: probed
smsc911x 1a000000.ethernet eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1a000000.etherne:01, irq=-1)
smsc911x 1a000000.ethernet eth0: MAC Address: 52:54:00:12:34:56
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-platform: EHCI generic platform driver
nxp-isp1760 1b000000.usb: NXP ISP1760 USB Host Controller
nxp-isp1760 1b000000.usb: new USB bus registered, assigned bus number 1
nxp-isp1760 1b000000.usb: Scratch test failed.
nxp-isp1760 1b000000.usb: can't setup: -19
nxp-isp1760 1b000000.usb: USB bus 1 deregistered
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
rtc-pl031 1c170000.rtc: rtc core: registered pl031 as rtc0
mmci-pl18x 1c050000.mmci: mmc0: PL181 manf 41 rev0 at 0x1c050000 irq 41,42 (pio)
mmc0: SD Status: Invalid Allocation Unit size.
mmc0: new SD card at address 4567
mmcblk0: mmc0:4567 QEMU! 1.00 GiB
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
 mmcblk0: p1 p2
input: AT Raw Set 2 keyboard as /devices/smb.14/motherboard.15/iofpga.16/1c060000.kmi/serio0/input/input0 aaci-pl041 1c040000.aaci: ARM AC'97 Interface PL041 rev0 at 0x1c040000, irq 43
aaci-pl041 1c040000.aaci: FIFO 512 entries
oprofile: using timer interrupt.
TCP: cubic registered
NET: Registered protocol family 17
rtc-pl031 1c170000.rtc: setting system clock to 2013-12-14 10:07:45 UTC (1387015665)
ALSA device list:
  #0: ARM AC'97 Interface PL041 rev0 at 0x1c040000, irq 43
input: ImExPS/2 Generic Explorer Mouse as /devices/smb.14/motherboard.15/iofpga.16/1c070000.kmi/serio1/input/input2 EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240) EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (244)
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 212K (c053f000 - c0574000)
init: ureadahead main process (611) terminated with status 5

--
Tim Fletcher <tim@night-shade.org.uk>


Reply to: