Florian Gödden
2005-Jul-22 03:23 UTC
[Xen-devel] compiling dom0 Kernel with LSI MegaRAID Driver failed
Hello, we try to compile a dom0 kernel with LSI Logic MegaRAID Driver, but compiling breaks with following output: ... LD .tmp_vmlinux1 ld: BFD 2.15 assertion fail ../../bfd/linker.c:619 arch/xen/x86_64/kernel/built-in.o(.text+0x9101): In function `dma_unmap_sg'': : undefined reference to `dma_unmap_single'' drivers/built-in.o(.text+0x5945e): In function `cciss_ioctl'': : undefined reference to `dma_map_single'' drivers/built-in.o(.text+0x59551): In function `cciss_ioctl'': : undefined reference to `dma_unmap_single'' ... more undefined refernces ... drivers/built-in.o(.text+0x1285c4): In function `mptscsih_AddSGE'': : undefined reference to `dma_map_single'' drivers/built-in.o(.text+0x128b93): In function `mptscsih_io_done'': : undefined reference to `dma_unmap_single'' drivers/built-in.o(.text+0x128ca3): In function `mptscsih_flush_running_cmds'': : undefined reference to `dma_unmap_single'' drivers/built-in.o(.text+0x129e8a): In function `mptscsih_abort'': : undefined reference to `dma_unmap_single'' make: *** [.tmp_vmlinux1] Error 1 The attachment contains the complete error messages. The only options that were changed in the kernel config compared to a ''make kernels'' dom0 config: Device Drivers ---> SCSI device support ---> SCSI low-level drivers ---> [*] LSI Logic New Generation RAID Device Drivers <*> LSI Logic Managemen Module # changed from off to on <*> LSI Logic MegaRAID Driver # changed from off to on The system on which we compile is a Dell Power Edge 1850 with a Debian amd64 and 2.6.12''er kernel. The xen-unstable source tarball of Jul 21 is used. I reported a similar problem while trying to compile smp support into the dom0 kernel: http://lists.xensource.com/archives/html/xen-users/2005-07/msg00114.html Xen-unstable source tarballs with 2.6.11''er kernel don''t make problems while compiling LSI MegaRAID Driver into the kernel, but there are those problems with smp support. On our machine there is another Problem with 2.6.11''er dom0 or/and domU kernels: if in domU a network interface is brought up, the dom0 kernel crashes after a few seconds with : ... <0>Kernel panic - not syncing: Aiee, killing interrupt handler! If needed I can provide a full error message of this behavior. Perhaps this network problem is solved in the latest versions but we can''t give it a try because unfortunately we need the LSI MegaRAID Driver on our machine. Greetings, Florian Gödden _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Florian Gödden
2005-Jul-26 22:14 UTC
Re: [Xen-devel] compiling dom0 Kernel with LSI MegaRAID Driver failed
I figured out what the problem is, at least that with dma_*: A ''make kernels'' in the root directory of the xen source builds the dom0 kernel with this patch applied: Node ID c5db6fd54e36fb4475257172c3f1c8fa77b54745 Fix dma_map_single to work correctly with multi-page buffers A ''make kclean'' in the source root directory, or cd linux-2.6.12-xen0 make ARCH=xen clean deletes the patched files pci-dma.c and pci-nommu.c from /arch/xen/x86-64/kernel. After that, a new compilation replaces both deleted files with unpatched versions which do not work anymore. Copy pci-dma.c and pci-nommu.c manually from the xen-sparse tree in the dom0 tree after a clean solves the problem. Florian Gödden _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel