WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] compiling dom0 Kernel with LSI MegaRAID Driver failed

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] compiling dom0 Kernel with LSI MegaRAID Driver failed
From: Florian Gödden <florian.goedden@xxxxxx>
Date: Fri, 22 Jul 2005 05:23:05 +0200
Delivery-date: Fri, 22 Jul 2005 03:24:59 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.5 (Windows/20040207)
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

  CHK     include/linux/version.h
make[1]: `arch/x86_64/kernel/asm-offsets.s' is up to date.
  CHK     include/asm-xen/asm_offsets.h
make[1]: `arch/xen/x86_64/kernel/asm-offsets.s' is up to date.
  CHK     include/asm-x86_64/asm_offset.h
ln -fsn asm_offset.h include/asm-x86_64/offset.h
  CHK     include/linux/compile.h
  CHK     usr/initramfs_list
make -C arch/xen/i386/kernel vsyscall-note.S
make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent make 
rule.
make[2]: Nothing to be done for `vsyscall-note.S'.
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  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'
drivers/built-in.o(.text+0x59901): In function `cciss_ioctl':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x59a43): In function `cciss_ioctl':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x5a060): In function `fill_cmd':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x5a345): In function `sendcmd_withirq':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x5ac94): In function `sendcmd':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x5b02d): In function `do_cciss_request':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x5b513): In function `do_cciss_intr':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x5df5f): In function `e1000_clean_tx_ring':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x5e064): In function `e1000_clean_tx_ring':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x5e2e0): In function `e1000_clean_rx_ring':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x5e337): In function `e1000_clean_rx_ring':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x5f5c3): In function `e1000_xmit_frame':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x5f720): In function `e1000_xmit_frame':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x601d7): In function `e1000_clean_tx_irq':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x60341): In function `e1000_clean_tx_irq':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x6065e): In function `e1000_clean_tx_irq':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x607d4): In function `e1000_clean_rx_irq':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x60ccc): In function `e1000_clean_rx_irq_ps':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x60de4): more undefined references to 
`dma_unmap_single' follow
drivers/built-in.o(.text+0x61344): In function `e1000_alloc_rx_buffers':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x61401): In function `e1000_alloc_rx_buffers':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x615a9): In function `e1000_alloc_rx_buffers_ps':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x61653): In function `e1000_alloc_rx_buffers_ps':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x69dd8): In function `e1000_free_desc_rings':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x69e5b): In function `e1000_free_desc_rings':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x6a1b8): In function `e1000_setup_desc_rings':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x6a457): In function `e1000_setup_desc_rings':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x6aafe): In function `e1000_run_loopback_test':
: undefined reference to `dma_sync_single_for_device'
drivers/built-in.o(.text+0x6abba): In function `e1000_run_loopback_test':
: undefined reference to `dma_sync_single_for_cpu'
drivers/built-in.o(.text+0x6d9dc): In function `vortex_open':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x6e5db): In function `vortex_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x6e8a1): In function `boomerang_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x6e930): In function `boomerang_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x6e9ff): In function `boomerang_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x6ed12): In function `vortex_interrupt':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x6f0d2): In function `boomerang_interrupt':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x6f4d5): In function `vortex_rx':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x6f543): In function `vortex_rx':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x6f822): In function `boomerang_rx':
: undefined reference to `dma_sync_single_for_cpu'
drivers/built-in.o(.text+0x6f8da): In function `boomerang_rx':
: undefined reference to `dma_sync_single_for_device'
drivers/built-in.o(.text+0x6f985): In function `boomerang_rx':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x6fb3d): In function `boomerang_rx':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x6fe9a): In function `vortex_close':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x6ff62): In function `vortex_close':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x72bf6): In function `pcnet32_loopback_test':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x74449): In function `pcnet32_open':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x74563): In function `pcnet32_purge_tx_ring':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x74724): In function `pcnet32_init_ring':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x74b7a): In function `pcnet32_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x74e36): In function `pcnet32_interrupt':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x75242): In function `pcnet32_rx':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x752d9): In function `pcnet32_rx':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x7541b): In function `pcnet32_rx':
: undefined reference to `dma_sync_single_for_cpu'
drivers/built-in.o(.text+0x75468): In function `pcnet32_rx':
: undefined reference to `dma_sync_single_for_device'
drivers/built-in.o(.text+0x75635): In function `pcnet32_close':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x756d3): In function `pcnet32_close':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x77f50): In function `e100_clean_cbs':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x781dc): In function `e100_rx_clean_list':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x78398): In function `e100_rx_alloc_list':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x7849e): In function `e100_rx_alloc_list':
: undefined reference to `dma_sync_single_for_device'
drivers/built-in.o(.text+0x78763): In function `e100_poll':
: undefined reference to `dma_sync_single_for_cpu'
drivers/built-in.o(.text+0x787dc): In function `e100_poll':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x78a42): In function `e100_poll':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x78b48): In function `e100_poll':
: undefined reference to `dma_sync_single_for_device'
drivers/built-in.o(.text+0x78ccc): In function `e100_poll':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x7ab6b): In function `e100_xmit_prepare':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x7afc8): In function `acenic_remove_one':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x7b073): In function `acenic_remove_one':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x7b110): In function `acenic_remove_one':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x7c550): In function `ace_load_std_rx_ring':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x7c740): In function `ace_load_mini_rx_ring':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x7c8e9): In function `ace_load_jumbo_rx_ring':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x7ce1f): In function `ace_rx_int':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x7d63b): In function `ace_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x7d74e): In function `ace_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x7d844): In function `ace_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x816cb): In function `tg3_tx':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x81750): In function `tg3_tx':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x8196d): In function `tg3_alloc_rx_skb':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x81b7b): In function `tg3_rx':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x81c9f): In function `tg3_rx':
: undefined reference to `dma_sync_single_for_cpu'
drivers/built-in.o(.text+0x81cde): In function `tg3_rx':
: undefined reference to `dma_sync_single_for_device'
drivers/built-in.o(.text+0x82655): In function `tigon3_4gb_hwbug_workaround':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x826e6): In function `tigon3_4gb_hwbug_workaround':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x82a72): In function `tg3_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x82b6b): In function `tg3_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x82f64): In function `tg3_free_rings':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x83056): In function `tg3_free_rings':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x8314e): In function `tg3_free_rings':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x83192): In function `tg3_free_rings':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x88b24): In function `tg3_test_loopback':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x88c31): In function `tg3_test_loopback':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x88cdc): In function `tg3_test_loopback':
: undefined reference to `dma_sync_single_for_cpu'
drivers/built-in.o(.text+0x8cc9c): In function `alloc_rbufs':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x8cd4f): In function `free_rbufs':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x8ceb7): In function `free_tbufs':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x8d749): In function `rhine_start_tx':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x8dbc7): In function `rhine_tx':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x8deb1): In function `rhine_rx':
: undefined reference to `dma_sync_single_for_cpu'
drivers/built-in.o(.text+0x8df4f): In function `rhine_rx':
: undefined reference to `dma_sync_single_for_device'
drivers/built-in.o(.text+0x8dffd): In function `rhine_rx':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x8e0d6): In function `rhine_rx':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x933d3): In function `tulip_refill_rx':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x93682): In function `tulip_rx':
: undefined reference to `dma_sync_single_for_cpu'
drivers/built-in.o(.text+0x9371d): In function `tulip_rx':
: undefined reference to `dma_sync_single_for_device'
drivers/built-in.o(.text+0x937f2): In function `tulip_rx':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x93a48): In function `tulip_interrupt':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x93b18): In function `tulip_interrupt':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x95e6a): In function `tulip_up':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x969fe): In function `tulip_init_ring':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x96b0f): In function `tulip_start_xmit':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x96c50): In function `tulip_clean_tx_ring':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x96c7d): In function `tulip_clean_tx_ring':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x96f57): In function `tulip_close':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x96fbf): In function `tulip_close':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x97988): In function `set_rx_mode':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0xc7aef): In function `BusLogic_DeallocateCCB':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0xc7b12): In function `BusLogic_DeallocateCCB':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0xc8d6a): In function `BusLogic_QueueCommand':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0xc9095): In function `BusLogic_QueueCommand':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0xdd9c2): In function `ahc_linux_run_command':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0xde5d4): In function `ahc_done':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x106739): In function `ahd_linux_run_device_queue':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x1072e1): In function `ahd_done':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x10a904): In function `read_callback':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x10aa64): In function `write_callback':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x10ba6a): In function `aac_srb_callback':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x10bfd0): In function `aac_build_sg':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x10c140): In function `aac_build_sg64':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x10c934): In function `aac_send_raw_srb':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x10ca64): In function `aac_send_raw_srb':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x111d28): In function `megaraid_mbox_build_cmd':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x112119): more undefined references to 
`dma_map_single' follow
drivers/built-in.o(.text+0x1126d5): In function `megaraid_mbox_runpendq':
: undefined reference to `dma_sync_single_for_device'
drivers/built-in.o(.text+0x1128ff): In function `megaraid_mbox_prepare_pthru':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x112b3f): In function `megaraid_mbox_prepare_epthru':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x1131d5): In function `megaraid_mbox_dpc':
: undefined reference to `dma_sync_single_for_cpu'
drivers/built-in.o(.text+0x113201): In function `megaraid_mbox_dpc':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x114b63): In function `megaraid_mbox_mm_command':
: undefined reference to `dma_sync_single_for_device'
drivers/built-in.o(.text+0x116d1e): In function `tw_map_scsi_single_data':
: undefined reference to `dma_map_single'
drivers/built-in.o(.text+0x116da3): In function `tw_unmap_scsi_data':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x11a3c6): In function `ata_sg_clean':
: undefined reference to `dma_unmap_single'
drivers/built-in.o(.text+0x11a5f3): In function `ata_sg_setup_one':
: undefined reference to `dma_map_single'
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




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>