Re: error: building kvm for powerpc using cross compiler on x86
On 11.01.2011, at 13:44, Dushyant Bansal wrote: On Monday 10 January 2011 05:59 PM, Alexander Graf wrote: $ cp arch/powerpc/configs/pmac32_defconfig .config $ make menuconfig ARCH=powerpc seems to work. I'm not sure what default config is taken by default, but apparently one of the KVM constraints isn't fulfilled. Since you want to build a kernel for a pmac32 anyways, just take that config as the basis or use the one from a VM you already have working :). Alex I tried to build kernel image for powerpc-750 u...@user:~/project/kvm$ cp arch/powerpc/configs/pmac32_defconfig .config u...@user:~/project/kvm$ make ARCH=powerpc menuconfig [I selected KVM support for PowerPC book3s_32 processors under virtualization menu. I have attached the final .config file] u...@user:~/project/kvm$ make ARCH=powerpc CROSS_COMPILE=powerpc-750-linux-gnu- [I get this error] CHK include/linux/version.h CHK include/generated/utsrelease.h CALLscripts/checksyscalls.sh CHK include/generated/compile.h CALLarch/powerpc/kernel/systbl_chk.sh CALLarch/powerpc/kernel/prom_init_check.sh AS arch/powerpc/kvm/fpu.o arch/powerpc/kvm/fpu.S: Assembler messages: arch/powerpc/kvm/fpu.S:244: Error: Unrecognized opcode: `frsqrtes.' arch/powerpc/kvm/fpu.S:250: Error: Unrecognized opcode: `fre.' arch/powerpc/kvm/fpu.S:259: Error: Unrecognized opcode: `fcpsgn.' make[1]: *** [arch/powerpc/kvm/fpu.o] Error 1 make: *** [arch/powerpc/kvm] Error 2 This means that your assembler doesn't understand some of the floating point instructions in the paired single emulation code. Since you don't need that code anyways, just comment them out. I was able to build kernel image for powerpc-44x [http://www.thebitsource.com/programming-software-development/how-to-install-debian-linux-on-an-embedded-system/] u...@user:~/project/kvm$ cp arch/powerpc/configs/sequoia_defconfig .config u...@user:~/project/kvm$ make ARCH=powerpc menuconfig u...@user:~/project/kvm$ make ARCH=powerpc CROSS_COMPILE=pwoerpc-405-linux-gnu- uImage But, I am still stuck with installing this new kernel in debian-powerpc which uses quik as the default bootloader. I tried a few things and posted the errors on http://unix.stackexchange.com/questions/5681/install-new-kernel-in-debian-powerpc The 440 is a completely different system that can't even load quik. Alex -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: error: building kvm for powerpc using cross compiler on x86
On 07.01.2011, at 14:38, Dushyant Bansal wrote: On Friday 07 January 2011 06:07 PM, Alexander Graf wrote: My aim is to install kvm on a powerpc system. I will give a detailed description of the environment. Host arch: x86 kernel: 2.6.32.25 (ubuntu 10.04 32 bit) I have emulated powerpc using qemu-system-ppc and installed debian on top of this. guest os: debian-507-powerpc (2.6.26-1-powerpc) contents of /proc/cpuinfo: processor : 0 cpu : 740/750 temperature : 62-64 C (uncalibrated) clock : 1000.00MHz revision: 3.1 (pvr 0008 0301) bogomips: 33.02 timebase: 16600733 platform: PowerMac model : Power Macintosh machine : Power Macintosh motherboard : AAPL,PowerMac G3 MacRISC detected as : 49 (PowerMac G3 (Silk)) pmac flags : pmac-generation : OldWorld This emulates a G3, not a 440 :). But you're lucky - the G3 is also supported by KVM. Mind if I ask why you want to virtualize inside of an emulated environment? But on http://www.linux-kvm.org/page/PowerPC, it states current development is aimed at running 440 linux kernel as guests on 440 linux hosts. I want to use kvm on powerpc but don't have powerpc hardware :) I see :). Keep in mind that running this in Qemu is really very slow and used 32-bit PowerPC hardware is very cheap on ebay these days and an order of magnitude faster than an emulated ppc machine. 3. How should I try to build kvm kernel module for guest os. I have two options: to compile kernel with kvm inside guest os or to cross compile kernel for powerpc on host os. I always compile natively on a real 970 box. But I don't see why cross-compilation would fail. Just make sure you're building for the correct target and you'll get an option in the Virtualiztion menu. When I run make menuconfig on the guest os (debian-powerpc), it gives KVM support for PowerPC book3s_32 processors under virtualization menu. Is it the correct KVM module for powerpc-750 ? (screenshot attached ) . And, during cross compiling on the host os, after running make ARCH=powerpc menuconfig the option KVM support disappears. $ cp arch/powerpc/configs/pmac32_defconfig .config $ make menuconfig ARCH=powerpc seems to work. I'm not sure what default config is taken by default, but apparently one of the KVM constraints isn't fulfilled. Since you want to build a kernel for a pmac32 anyways, just take that config as the basis or use the one from a VM you already have working :). Alex -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: error: building kvm for powerpc using cross compiler on x86
On 07.01.2011, at 07:52, Dushyant wrote: Hi, Thanks for the response. My aim is to install kvm on a powerpc system. I will give a detailed description of the environment. Host arch: x86 kernel: 2.6.32.25 (ubuntu 10.04 32 bit) I have emulated powerpc using qemu-system-ppc and installed debian on top of this. guest os: debian-507-powerpc (2.6.26-1-powerpc) contents of /proc/cpuinfo: processor : 0 cpu : 740/750 temperature : 62-64 C (uncalibrated) clock : 1000.00MHz revision : 3.1 (pvr 0008 0301) bogomips : 33.02 timebase : 16600733 platform : PowerMac model : Power Macintosh machine : Power Macintosh motherboard : AAPL,PowerMac G3 MacRISC detected as : 49 (PowerMac G3 (Silk)) pmac flags: pmac-generation : OldWorld This emulates a G3, not a 440 :). But you're lucky - the G3 is also supported by KVM. Mind if I ask why you want to virtualize inside of an emulated environment? I want to use kvm on this guest os. I have installed kvm-userspace application. Now, I require kvm kernel module. I have some questions. Just compile any recent qemu version (0.14 as soon as out, otherwise just take a git snapshot). 1. As x86 systems are distributed with kvm kernel module(kvm.ko, kvm-intel.ko, kvm-amd.ko), is there any powerpc system with kvm kernel modules. I'm not aware of any distribution that precompiles KVM. If you configure it as a module, you'll end up with kvm.ko. 2. Is it possible to run kvm on powerpc-750, powerpc-970 or both Both :). 3. How should I try to build kvm kernel module for guest os. I have two options: to compile kernel with kvm inside guest os or to cross compile kernel for powerpc on host os. I always compile natively on a real 970 box. But I don't see why cross-compilation would fail. Just make sure you're building for the correct target and you'll get an option in the Virtualiztion menu. Also, please don't top-post. Alex -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
error: building kvm for powerpc using cross compiler on x86
I want to build kvm kernel module for powerpc using cross compiler. I downloaded kernel source code from http://www.linux-kvm.org/page/PowerPC_440_Host_Kernel. Inside that kvm_source folder when I do make ARCH=powerpc menuconfig, inside virtualization menu, option kvm is not present. I have attached the screenshot. Thanks, attachment: problem.png
Re: error: building kvm for powerpc using cross compiler on x86
On Thu, Jan 6, 2011 at 10:39 AM, Dushyant Bansal cs5070...@cse.iitd.ac.in wrote: I want to build kvm kernel module for powerpc using cross compiler. I downloaded kernel source code from http://www.linux-kvm.org/page/PowerPC_440_Host_Kernel. Inside that kvm_source folder when I do make ARCH=powerpc menuconfig, inside virtualization menu, option kvm is not present. I have attached the screenshot. It's impossible to say from your description, but I would guess that you haven't configured for a 440 processor before visiting the Virtualization menu. -Hollis -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: error: building kvm for powerpc using cross compiler on x86
Hi, Thanks for the response. My aim is to install kvm on a powerpc system. I will give a detailed description of the environment. Host arch: x86 kernel: 2.6.32.25 (ubuntu 10.04 32 bit) I have emulated powerpc using qemu-system-ppc and installed debian on top of this. guest os: debian-507-powerpc (2.6.26-1-powerpc) contents of /proc/cpuinfo: processor : 0 cpu : 740/750 temperature : 62-64 C (uncalibrated) clock : 1000.00MHz revision: 3.1 (pvr 0008 0301) bogomips: 33.02 timebase: 16600733 platform: PowerMac model : Power Macintosh machine : Power Macintosh motherboard : AAPL,PowerMac G3 MacRISC detected as : 49 (PowerMac G3 (Silk)) pmac flags : pmac-generation : OldWorld I want to use kvm on this guest os. I have installed kvm-userspace application. Now, I require kvm kernel module. I have some questions. 1. As x86 systems are distributed with kvm kernel module(kvm.ko, kvm-intel.ko, kvm-amd.ko), is there any powerpc system with kvm kernel modules. 2. Is it possible to run kvm on powerpc-750, powerpc-970 or both 3. How should I try to build kvm kernel module for guest os. I have two options: to compile kernel with kvm inside guest os or to cross compile kernel for powerpc on host os. Thanks, On Thu, Jan 6, 2011 at 10:39 AM, Dushyant Bansal cs5070...@cse.iitd.ac.in wrote: I want to build kvm kernel module for powerpc using cross compiler. I downloaded kernel source code from http://www.linux-kvm.org/page/PowerPC_440_Host_Kernel. Inside that kvm_source folder when I do make ARCH=powerpc menuconfig, inside virtualization menu, option kvm is not present. I have attached the screenshot. It's impossible to say from your description, but I would guess that you haven't configured for a 440 processor before visiting the Virtualization menu. -Hollis -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html