To enable KVM support on P5040DS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

To enable KVM support on P5040DS

10,175件の閲覧回数
manikanta
Contributor I

Hi,

Good day,

Need your help in bringup KVM support in PowerPC5040ds,

freescale-p5040ds_defconfig” file  edited with these options, and generated .conf file using 'bitbake –c menuconfig linux’

CONFIG_VIRTUALIZATION=y

CONFIG_KVM=y

CONFIG_KVM_EXIT_TIMING=y

CONFIG_KVM_E500=y

CONFIG_E500=y

these values are visible in .config file, and tried to compile for kernel image using (‘bitbake linux’) following error pops up, I needs your help to solve this issue and to bringup KVM in Powerpc 5040ds, please do the needful.

+ cd /nobackup/users/VTKernel/celt/mv/tmp/work/freescale-p5040ds-mv-linux/linux-2.6.32-1412251630/linux-2.6.32

+ do_compile

+ mvl_kernel_do_compile

+ kernel_do_compile

+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE

+ oe_runmake include/linux/version.h 'CC=powerpc-montavista-linux-gnu-gcc ' 'LD=powerpc-montavista-linux-gnu-ld '

+ '[' xmake = x ']'

+ oenote make -j4 include/linux/version.h 'CC=powerpc-montavista-linux-gnu-gcc ' 'LD=powerpc-montavista-linux-gnu-ld '

+ echo NOTE: 'make -j4 include/linux/version.h CC=powerpc-montavista-linux-gnu-gcc  LD=powerpc-montavista-linux-gnu-ld '

NOTE: make -j4 include/linux/version.h CC=powerpc-montavista-linux-gnu-gcc  LD=powerpc-montavista-linux-gnu-ld

+ make -j4 include/linux/version.h 'CC=powerpc-montavista-linux-gnu-gcc ' 'LD=powerpc-montavista-linux-gnu-ld '

  CHK     include/linux/version.h

  UPD     include/linux/version.h

+ '[' None '!=' 2.6 ']'

+ oe_runmake dep 'CC=powerpc-montavista-linux-gnu-gcc ' 'LD=powerpc-montavista-linux-gnu-ld '

+ '[' xmake = x ']'

+ oenote make -j4 dep 'CC=powerpc-montavista-linux-gnu-gcc ' 'LD=powerpc-montavista-linux-gnu-ld '

+ echo NOTE: 'make -j4 dep CC=powerpc-montavista-linux-gnu-gcc  LD=powerpc-montavista-linux-gnu-ld '

NOTE: make -j4 dep CC=powerpc-montavista-linux-gnu-gcc LD=powerpc-montavista-linux-gnu-ld

+ make -j4 dep 'CC=powerpc-montavista-linux-gnu-gcc ' 'LD=powerpc-montavista-linux-gnu-ld '

scripts/kconfig/conf -s arch/powerpc/Kconfig

*** Warning: make dep is unnecessary now.

+ oe_runmake vmlinux 'CC=powerpc-montavista-linux-gnu-gcc ' 'LD=powerpc-montavista-linux-gnu-ld '

+ '[' xmake = x ']'

+ oenote make -j4 vmlinux 'CC=powerpc-montavista-linux-gnu-gcc ' 'LD=powerpc-montavista-linux-gnu-ld '

+ echo NOTE: 'make -j4 vmlinux CC=powerpc-montavista-linux-gnu-gcc  LD=powerpc-montavista-linux-gnu-ld '

NOTE: make -j4 vmlinux CC=powerpc-montavista-linux-gnu-gcc  LD=powerpc-montavista-linux-gnu-ld

+ make -j4 vmlinux 'CC=powerpc-montavista-linux-gnu-gcc ' 'LD=powerpc-montavista-linux-gnu-ld '

  CHK     include/linux/version.h

  CHK include/linux/utsrelease.h

  UPD include/linux/utsrelease.h

  SYMLINK include/asm -> include/asm-powerpc

  HOSTCC  scripts/kallsyms

  HOSTCC  scripts/dtc/checks.o

  HOSTCC  scripts/genksyms/genksyms.o

  CC      scripts/mod/empty.o

  HOSTCC  scripts/dtc/data.o

  SHIPPED scripts/dtc/dtc-lexer.lex.c

  SHIPPED scripts/genksyms/lex.c

Thanks and Regards

Manikantag

0 件の賞賛
返信
26 返答(返信)

1,408件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Hello mani kanta,

KVM/QEMU solution for e500mc based  processor provided by Freescale is formally released since QorIQ SDK 1.2 release(Linux Kernel 3.0.9). I checked your source code, it looks that kvm for e500mc hasn't not been supported.

Please refer to the attached source code got from SDK 1.2, please try whether porting the attached source code to your project would be possible.


Have a great day,
Yiping

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

0 件の賞賛
返信

1,408件の閲覧回数
manikanta
Contributor I

Hi Yinping,

Which means the kernel version running in uut 2.6.32 doesn’t support the KVM/QEMU installation.

$ uname -a

Linux APPS_TLI 2.6.32.59-freescale-p5040ds.cge #1 SMP PREEMPT Mon Nov 24 17:05:30 PST 2014 ppc GNU/Linux

$

Workaround for this issue is,

Upgrade the kernel version from 2.6.32 to 3.0.9. or port the source code sdk 1.2 to my project (using makefile concept). Is there any procedure to be followed to port source code SDK1.2. please share the details of it.

Thanks

Manikantag

0 件の賞賛
返信

1,408件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Is it possible for you to use Linux Kernel 3.0.9 and update to SDK 1.2?

If not, you need to back port the code which I provided to 2.6.32 Kernel.


Have a great day,
Yiping

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

0 件の賞賛
返信

1,408件の閲覧回数
manikanta
Contributor I

Is it possible for you to use Linux Kernel 3.0.9 and update to SDK 1.2?

This option is not possible.

If not, you need to back port the code which I provided to 2.6.32 Kernel.

Need to check with DEV team about the possibilities, is there any procedure to do, so that I can try. Back port the code means kvm support code.

Thanks

Manikantag

0 件の賞賛
返信

1,408件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please try to use the kvm folder which I attached to replace your original kvm folder in 2.6.32, and configure Kernel as I mentioned previously, then rebuild the Kernel.

For any problem, please feel free to let me know.

Thanks,

Yiping

0 件の賞賛
返信

1,408件の閲覧回数
scottwood
NXP Employee
NXP Employee

Have you tested the combination you're proposing?  Do you even have the kernel tree that mani kanta is going to copy this code into?  I'm guessing not, since you asked for a tarball of just the kvm directory.  You can't just copy directories between kernel trees.  There are other dependencies outside arch/powerpc/kvm.

If they do upgrade, it should not be to SDK 1.2.  There have been numerous fixes, errata workarounds, and performance improvements since then.

If upgrading from this custom 2.6.32 kernel is "not possible", then there's nothing we can do through this forum to support their use of KVM.  If this is a critical issue, they should speak to their sales/FAE contact.

0 件の賞賛
返信