How to debug crash on laptop with no serial port

Bill Rugolsky Jr. brugolsky at telemetry-investments.com
Tue Feb 3 16:02:13 UTC 2004


On Tue, Feb 03, 2004 at 03:33:25PM +0000, Denis Hennessy wrote:
> That looked promising but when I try to insmod the netconsole module I 
> get this in the log:
> 
> Feb  3 15:26:58 lemming kernel: netlog: using network device <eth0>
> Feb  3 15:26:58 lemming kernel: netlog: eth0's network driver does not 
> implement netlogging yet, aborting.
> 
> eth0 is a Intel Corp. 82801BD PRO/100 VE (MOB) Ethernet Controller (rev 
> 81) handled by the e100 driver. I guess I could try to find a pcmcia 
> network card that's supported.
 
Try the eepro100 driver (which has support in the FC1 kernels) or try
the attached patch to the e100 driver (from the RHEL3 kernel SRPM
linux-2.4.18-netdump-drivers.patch); it still applies without rejects
to 2.4.22-1.2166.

Dave, any chance you could toss this into the next FC1 kernel, as
the eepro100 driver is deprecated?  The other drivers from RHEL3 are
already there.

Regards,

	Bill Rugolsky
-------------- next part --------------
--- linux-5790/drivers/net/e100/e100_main.c	
+++ linux-5800/drivers/net/e100/e100_main.c	
@@ -228,6 +228,9 @@ static void e100_set_bool_option(struct 
 unsigned char e100_wait_exec_cmplx(struct e100_private *, u32, u8, u8);
 void e100_exec_cmplx(struct e100_private *, u32, u8);
 
+/* for netdump / net console */
+static void e100_netpoll (struct net_device *dev);
+
 /**
  * e100_get_rx_struct - retrieve cell to hold skb buff from the pool
  * @bdp: atapter's private data struct
@@ -653,6 +656,10 @@ e100_found1(struct pci_dev *pcid, const 
 	if (bdp->flags & USE_IPCB)
 	dev->features = NETIF_F_SG | NETIF_F_HW_CSUM |
 			NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
+
+#ifdef HAVE_POLL_CONTROLLER
+	dev->poll_controller = e100_netpoll;
+#endif
 		
 	if ((rc = register_netdev(dev)) != 0) {
 		goto err_pci;
@@ -4355,3 +4362,19 @@ e100_cu_unknown_state(struct e100_privat
 }
 #endif
 
+#ifdef HAVE_POLL_CONTROLLER
+/*
+ * Polling 'interrupt' - used by things like netconsole to send skbs
+ * without having to re-enable interrupts. It's not called while
+ * the interrupt routine is executing.
+ */
+
+static void e100_netpoll (struct net_device *dev)
+{
+	if (!netdump_mode) disable_irq(dev->irq);
+	e100intr (dev->irq, dev, NULL);
+	if (!netdump_mode) enable_irq(dev->irq);
+}
+
+#endif
+


More information about the devel mailing list