QEMU KVM Setup for t1024rdb on Ubuntu VM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QEMU KVM Setup for t1024rdb on Ubuntu VM

Jump to solution
1,938 Views
zhicheng1
Contributor III

Hi, I am trying to setup QEMU with KVM  for t1024rdb on ubuntu(14.04) VM running on my windows machine.  I followed the steps in the document QorIQ-SDK-2.0-IC-Rev0.pdf. I  have been able to complete the fsl-image-virt and have verified that the linux kernel has all the required features enabled.

I also followed the instructions in section  12.2.3.6. I get some errors when I run command as follow

"------------------------------

"kvm" accelerator not found.

No accelerator found!

"----------------------------

the command log: 

$ ls -1 /var/lib/hugetlbfs/
pagesize-2MB
$ hugeadm --pool-list
Size Minimum Current Maximum Default
2097152 28 28 256 *
$ ~/yocto/build_t1024rdb/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc -enable-kvm -m 512 -mem-path /var/lib/hugetlbfs/pagesize-2MB -nographic -M ppce500 -kernel uImage -initrd fsl-image-core-t1024rdb.ext2.gz -append "root=/dev/ram rw console=ttyS0,115200" -serial tcp::4444,server,telnet
"kvm" accelerator not found.
No accelerator found!
$

zhangzhicheng@zhangzhicheng-VirtualBox:~/yocto/build_t1024rdb/tmp/work/t1024rdb-fsl-linux/fsl-image-virt/1.0-r0/rootfs/boot$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
zhangzhicheng@zhangzhicheng-VirtualBox:~/yocto/build_t1024rdb/tmp/work/t1024rdb-fsl-linux/fsl-image-virt/1.0-r0/rootfs/boot$
------------------------------------

Could you please tell me how to resolve this error?

 

Thanks,

Jayden

0 Kudos
Reply
1 Solution
1,920 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

No accelerator found means that is not found the emulator itself in the code, in this case you have to compile the code and check this situation.

Regards

View solution in original post

0 Kudos
Reply
3 Replies
1,891 Views
zhicheng1
Contributor III

I change the config file of the QEMU to enable "CONFIG_KVM", but compilation failure, so remove the option "enable-kvm" and change QEMU command as below:

sudo qemu-system-ppc -m 512 -M ppce500 -cpu e500mc -no-reboot -nographic -chardev stdio,id=con,mux=on -mon chardev=con,mode=readline -serial chardev:con -kernel uImage_new -initrd rootfs.ext2.gz -append "root=/dev/ram rw console=ttyS0,115200 ramdisk_size=1000000"

it can load kernel but fail to run the init command in the rootfs, the error log as below  and I create a question to track it.

Key type dns_resolver registered
fsl_generic: FSL DPAA Generic Ethernet driver
hctosys: unable to open rtc device (rtc0)
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 328K (c0962000 - c09b4000)
init[1]: unhandled signal 4 at b7ab466c **bleep** b7ab466c lr b7aafc98 code 30001
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

CPU: 0 PID: 1 Comm: init Not tainted 4.1.8-rt8+gbd51baf #2
Call Trace:
[da03bd60] [c074bd48] dump_stack+0x78/0xa0 (unreliable)
[da03bd70] [c0749d38] panic+0xd8/0x22c
[da03bdd0] [c0047b6c] do_exit+0x90c/0x910
[da03be10] [c0048a98] do_group_exit+0x48/0xb0
[da03be30] [c0054894] get_signal+0x264/0x540
[da03be80] [c0007444] do_signal+0x34/0x1c0
[da03bf30] [c00076b8] do_notify_resume+0x68/0x80
[da03bf40] [c000ffac] do_user_signal+0x74/0xc4
--- interrupt: 700 at 0xb7ab466c

0 Kudos
Reply
1,921 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

No accelerator found means that is not found the emulator itself in the code, in this case you have to compile the code and check this situation.

Regards

0 Kudos
Reply
1,905 Views
zhicheng1
Contributor III

Hi,

Do you mean " Building Linux with KVM "? I have done it but not work. Could you give me some suggestions to check it? 

Thanks,

Jayden

0 Kudos
Reply