KVM on E500 core cpu MPC8572_E

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

KVM on E500 core cpu MPC8572_E

Jump to solution
1,254 Views
manikanta
Contributor I

Hi,

MPC8572_E cpu is a dual core, we are using one core loaded with ios image and second core was brought up with Linux 2.6.32. we are looking for options to enable KVM on the dual core,

by editing /nobackup/usr1/sup2t/target/configs/p1021_c800_kernel_defconfig       
and adding vt and kvm config

CONFIG_VIRTUALIZATION=y
CONFIG_KVM=y
CONFIG_KVM_E500=y
CONFIG_TUN=y

and while building kernel image, following error message was displayed. "error: too many arguments to function 'trace_kvm_stlb_inval'"

please do the needful in helping to build kernel image with KVM support.

Error message:

bgl-ads-1348:240> make CWAN_PLATFORM=p1021_c800

Creating rootfs structure

Creating target root file
system...

----------- compile =>
/nobackup/usr1/sup2t/hostTools/tools -----------

----------- compile =>
/nobackup/usr1/sup2t/u-boot -----------

----------- compile =>
/nobackup/usr1/sup2t/kernel-2.6.32 -----------

make: ***
[compile_!nobackup!usr1!sup2t!kernel-2.6.32] Error 2

bgl-ads-1348:241>

Logs in buildlogs:

arch/powerpc/kvm/e500_tlb.c: In
function 'kvmppc_e500_stlbe_invalidate':

arch/powerpc/kvm/e500_tlb.c:229:
error: too many arguments to function 'trace_kvm_stlb_inval'

make[3]: ***
[arch/powerpc/kvm/e500_tlb.o] Error 1

make[2]: *** [arch/powerpc/kvm]
Error 2

make[2]: Leaving directory
`/nobackup/usr1/sup2t/kernel-2.6.32/linux-2.6.32'

make[1]: *** [compile] Error 2

make[1]: Leaving directory
`/nobackup/usr1/sup2t/kernel-2.6.32'

bgl-ads-1348:230>

Thanks

Manikantag

0 Kudos
1 Solution
1,007 Views
alexander_yakov
NXP Employee
NXP Employee

1. Which Freescale Linux BSP you are using?

2. Why "P1021" is mentioned here, if the device is MPC8572 ?

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
6 Replies
1,008 Views
alexander_yakov
NXP Employee
NXP Employee

1. Which Freescale Linux BSP you are using?

2. Why "P1021" is mentioned here, if the device is MPC8572 ?

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,007 Views
manikanta
Contributor I

Hi,

  MPC8572 is a dual core, in one core running ios image and we brought up second core with Linux image 2.6.32, this image was given by freescale team to boot up second core with Linux. P1021 is the image type used to turn on dual core, boot kernel and Linux OS.

p1021_c800-uboot-image.bin

rootfs_p1021_c800.ext2.gz.uboot

p1021_c800-linux-image.uImage

thanks

Manikantag

0 Kudos
1,007 Views
manikanta
Contributor I

hi,

I am looking for working KVM for 2.6.32 for MPC8572_E.

please share for the same.

Thanks

Manikantag

0 Kudos
1,007 Views
manikanta
Contributor I

Hi,

  Was able to find solution to this issue,

http://comments.gmane.org/gmane.comp.emulators.kvm.devel/53613

Now I am trying to bringup VT and KVM on it, is there any procedures to be followed to make it up. please share the info for the same.

Thanks

Manikantag

0 Kudos
1,007 Views
scottwood
NXP Employee
NXP Employee

Even if you get it working, you'll miss out on a lot of bugfixes and significant performance improvements.  I strongly recommend using a much newer kernel.

0 Kudos
1,007 Views
manikanta
Contributor I

any reply for this query......please help.

0 Kudos