Angel de Vicente
2007-Feb-08 14:57 UTC
[Xen-users] Problem with Tigon3 network card in Dom0
Hi, I''ve been fighting with this for a couple of days, so I think it is about time that I ask for help. I''m trying to install Xen 3.0.4-1 on Ubuntu 6.10 server for amd 64 in a Dell Precision 390, and I thought this could be easy (there is a wiki page for a similar setting at http://wiki.xensource.com/xenwiki/XenOnUbuntu64). The network card in this machine is (as reported by dmesg when booted with standard Ubuntu install): [ 59.434219] tg3.c:v3.59.1 (August 25, 2006) [ 59.434235] ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 17 (level, low) -> IRQ 177 [ 59.434243] PCI: Setting latency timer of device 0000:05:00.0 to 64 [ 59.459777] eth0: Tigon3 [partno(BCM95754) rev b002 PHY(5787)] (PCI Express) 10/100/1000BaseT Ethernet 00:13:72:34:30:d1 [ 59.459782] eth0: RXcsums[1] LinkChgREG[1] MIirq[1] ASF[0] Split[0] WireSpeed[1] TSOcap[1] [ 59.459785] eth0: dma_rwctrl[76180000] dma_mask[64-bit] But when I try to boot with the Xen kernel, there is no message about the card in dmesg and it just seems that it has vanished... I have tried changing the configuration for the kernel and adding the modules that I thought would be necessary for the driver to be loaded, but to no avail. For reference, I include below the changes I have made to the .config file from the original kernel .config file (some of the changes were to recognize the SAS drive, which was giving trouble at the beginning but it is OK now). The system boots OK, but if from the console I do ifconfig I obtain errors like: SIOCSIFADDR: No such device eth0: Error while getting interface flags: no such device SIOCSIFNETMASK: No such device Does anybody have a similar experience or knows where I could get help on this? Thanks, Ángel de Vicente ======================================================================== diff .config .config.ORIGINAL ----------------------------- 4c4 < # Thu Feb 8 14:52:57 2007 ---> # Tue Feb 6 14:04:17 2007191c191 < CONFIG_XEN_PCIDEV_FE_DEBUG=y ---> # CONFIG_XEN_PCIDEV_FE_DEBUG is not set193,194c193 < CONFIG_PCIEPORTBUS=y < # CONFIG_HOTPLUG_PCI_PCIE is not set ---> # CONFIG_PCIEPORTBUS is not set196c195 < CONFIG_PCI_DEBUG=y ---> # CONFIG_PCI_DEBUG is not set224c223 < CONFIG_HOTPLUG_PCI=y ---> CONFIG_HOTPLUG_PCI=m228,229c227 < CONFIG_HOTPLUG_PCI_SHPC=y < # CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE is not set ---> # CONFIG_HOTPLUG_PCI_SHPC is not set1004c1002 < CONFIG_SCSI=y ---> CONFIG_SCSI=m1010c1008 < CONFIG_BLK_DEV_SD=y ---> CONFIG_BLK_DEV_SD=m1015c1013 < CONFIG_CHR_DEV_SG=y ---> CONFIG_CHR_DEV_SG=m1029c1027 < CONFIG_SCSI_FC_ATTRS=y ---> CONFIG_SCSI_FC_ATTRS=m1031c1029 < CONFIG_SCSI_SAS_ATTRS=y ---> CONFIG_SCSI_SAS_ATTRS=m1059c1057 < CONFIG_MEGARAID_SAS=y ---> CONFIG_MEGARAID_SAS=m1143c1141 < CONFIG_FUSION_SAS=y ---> CONFIG_FUSION_SAS=m1305,1306c1303,1304 < CONFIG_TIGON3=y < CONFIG_BNX2=y ---> CONFIG_TIGON3=m > CONFIG_BNX2=m-- ---------------------------------- http://www.iac.es/galeria/angelv/ PostDoc Software Support Instituto de Astrofísica de Canarias _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Markus Schuster
2007-Feb-08 19:51 UTC
[Xen-users] Re: Problem with Tigon3 network card in Dom0
Angel de Vicente wrote:> The network card in this machine is (as reported by dmesg when booted with > standard Ubuntu install): > > [ 59.434219] tg3.c:v3.59.1 (August 25, 2006) > [ 59.434235] ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 17 (level, low) > [ -> IRQ 177 59.434243] PCI: Setting latency timer of device > [ 0000:05:00.0 to 64 59.459777] eth0: Tigon3 [partno(BCM95754) rev b002 > [ PHY(5787)] (PCI Express) 10/100/1000BaseT Ethernet 00:13:72:34:30:d1 > [ 59.459782] eth0: RXcsums[1] LinkChgREG[1] MIirq[1] ASF[0] Split[0] > [ WireSpeed[1] TSOcap[1] 59.459785] eth0: dma_rwctrl[76180000] > [ dma_mask[64-bit] > > > But when I try to boot with the Xen kernel, there is no message about the > card in dmesg and it just seems that it has vanished...Well, Ubuntu 6.10 comes with a 2.6.17 kernel that has support for your Broadcom NIC. But XENs 2.6.16 doesn''t have (it has support for Broadcom tg3 NICs of course, but not for your specific modell). The simplest way is to download Broadcoms open source drivers and compile them for your XEN kernel. I have the same problem here and it isn''t a big thing to do... Regards, Markus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Angel de Vicente
2007-Feb-09 11:29 UTC
Re: [Xen-users] Re: Problem with Tigon3 network card in Dom0
Hi,> > The network card in this machine is (as reported by dmesg when booted with > > standard Ubuntu install): > > > > [ 59.434219] tg3.c:v3.59.1 (August 25, 2006) > > [ 59.434235] ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 17 (level, low) > > [ -> IRQ 177 59.434243] PCI: Setting latency timer of device > > [ 0000:05:00.0 to 64 59.459777] eth0: Tigon3 [partno(BCM95754) rev b002 > > [ PHY(5787)] (PCI Express) 10/100/1000BaseT Ethernet 00:13:72:34:30:d1 > > [ 59.459782] eth0: RXcsums[1] LinkChgREG[1] MIirq[1] ASF[0] Split[0] > > [ WireSpeed[1] TSOcap[1] 59.459785] eth0: dma_rwctrl[76180000] > > [ dma_mask[64-bit] > > > > > > But when I try to boot with the Xen kernel, there is no message about the > > card in dmesg and it just seems that it has vanished... > > Well, Ubuntu 6.10 comes with a 2.6.17 kernel that has support for your > Broadcom NIC. But XENs 2.6.16 doesn''t have (it has support for Broadcom tg3 > NICs of course, but not for your specific modell). The simplest way is to > download Broadcoms open source drivers and compile them for your XEN > kernel. > I have the same problem here and it isn''t a big thing to do...Yes, thanks a lot, it was that... I had read somewhere that Broadcom NICs were supported in the kernel 2.6.16 and I assumed that it had to be something with my configuration, but just changing from 2.6.17 to 2.6.16 and having this specific model was a rare coincidence... In case someone finds a similar problem, I include below the changes that I had to do to a couple of files in the xen kernel sources to allow compilation. Basically I just copied the files tg3.c and tg3.h provided by Broadcom (http://www.broadcom.com/support/ethernet_nic/netxtreme_desktop.php) to xen-3.0.4_1-src/linux-2.6.16.33-xen/drivers/net and then did these changes in tg3.h: --------- 332c332 < /*static inline void netif_tx_lock(struct net_device *dev) ---> static inline void netif_tx_lock(struct net_device *dev)336c336 < }*/ ---> }338c338 < /*static inline void netif_tx_unlock(struct net_device *dev) ---> static inline void netif_tx_unlock(struct net_device *dev)342c342 < }*/ ---> }in the file include/linux/skbuff.h added the line for SKB_GSO_TCPV6: -------------------- SKB_GSO_UDPV4 = 1 << 1, /* This indicates the skb is from an untrusted source. */ SKB_GSO_DODGY = 1 << 2, SKB_GSO_TCPV6 = 1 << 4, }; /** * struct sk_buff - socket buffer * @next: Next buffer in list Then recompile, and presto, I can boot to Dom0 without (apparent) problems. Cheers, Angel de Vicente -- ---------------------------------- http://www.iac.es/galeria/angelv/ PostDoc Software Support Instituto de Astrofísica de Canarias _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Markus Schuster
2007-Feb-11 00:54 UTC
[Xen-users] Re: Re: Problem with Tigon3 network card in Dom0
Angel de Vicente wrote:> In case someone finds a similar problem, I include below the changes that > I had to do to a couple of files in the xen kernel sources to allow > compilation. > > and then did these changesWell, yes, now that you say that, I had to do the same changes to compile the source :) But good you found that out yourself and sent it to the ML. Regards, Markus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users