linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Problem using FEC on a860T
@ 2001-10-22  4:25 Jeremy Rosen
  2001-10-22 11:46 ` Laurent Pinchart
  0 siblings, 1 reply; 8+ messages in thread
From: Jeremy Rosen @ 2001-10-22  4:25 UTC (permalink / raw)
  To: linuxppc-embedded


hello everybody

I am still struggling with my FADS, and the 2.4.4-07.23 kernel from
Denx...

I am trying to have the FEC working, but I hqve problems..

when I compile without "MDIO for PHY configuration"
the kernel prints forever the message  "fec.c[1374] mii_link_interrupt:
unexpected Link interrupt
on the console at boottime.

when I compile with it, the kernel Oopses.
after carefull debugging, I tracked it down to the line 1367 in
arch/ppc/8xx_io/
    mii_do_cmd(dev, fep->phy->ack_int);

it is a kernel access of bad area.

It is possible that I have missed something in the configuration, but I
really can't guess what...

If anybody could help...

Thanks.

Jeremy


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Problem using FEC on a860T
@ 2001-10-22 11:38 Borracini Evandro-R45188
  0 siblings, 0 replies; 8+ messages in thread
From: Borracini Evandro-R45188 @ 2001-10-22 11:38 UTC (permalink / raw)
  To: 'Jeremy Rosen'; +Cc: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1201 bytes --]

> Jeremy Rosen wrote:
>
> I am still struggling with my FADS, and the 2.4.4-07.23 kernel from
> Denx...
>
> I am trying to have the FEC working, but I hqve problems..
>
> when I compile without "MDIO for PHY configuration"
> the kernel prints forever the message  "fec.c[1374]
> mii_link_interrupt:
> unexpected Link interrupt
> on the console at boottime.
>
> when I compile with it, the kernel Oopses.
> after carefull debugging, I tracked it down to the line 1367 in
> arch/ppc/8xx_io/
>     mii_do_cmd(dev, fep->phy->ack_int);
>
> it is a kernel access of bad area.
>
> It is possible that I have missed something in the
> configuration, but I
> really can't guess what...

No, You have not missed anything on configuration.

There is a problem in some FADS boards that makes the irq pin used for mii_link_interrupt always active. That is the reason why you are getting the unexpected mii_link_interrupt.

Firstly, apply the attached patch. This patch was written by Dave Ellis. It will disable the mii_link_interrupt when the "MDIO for PHY configuration" was not selected.

Secondly, you need compile without the "MDIO for PHY configuration". FADS does not use that.

I hope this helps

Evandro


[-- Attachment #2: fads0723_2.patch --]
[-- Type: application/octet-stream, Size: 4007 bytes --]

diff -Naur linux-2.4.4-2001-07-23.sxn/arch/ppc/8xx_io/fec.c linux-2.4.4-2001-07-23.sxn2/arch/ppc/8xx_io/fec.c
--- linux-2.4.4-2001-07-23.sxn/arch/ppc/8xx_io/fec.c	Mon Mar 12 10:48:01 2001
+++ linux-2.4.4-2001-07-23.sxn2/arch/ppc/8xx_io/fec.c	Tue Sep 11 16:30:54 2001
@@ -25,12 +25,6 @@
  * Copyright (c) 2000 Wolfgang Denk, DENX Software Engineering.
  */
 
-/* List of PHYs we wish to support.
-*/
-#undef	CONFIG_FEC_LXT970
-#define	CONFIG_FEC_LXT971
-#undef	CONFIG_FEC_QS6612
-
 #include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
@@ -59,6 +53,15 @@
 #include <asm/uaccess.h>
 #include "commproc.h"
 
+/* List of PHYs we wish to support.
+** If one or more is defined, just use it (or them), otherwise default
+** to LXT971.
+*/
+#if !defined(CONFIG_FEC_LXT970) && !defined(CONFIG_FEC_LXT971)\
+    && !defined(CONFIG_FEC_QS6612)
+#define	CONFIG_FEC_LXT971
+#endif
+
 #ifdef	CONFIG_USE_MDIO
 /* Forward declarations of some structures to support different PHYs
 */
@@ -1336,6 +1339,8 @@
 }
 #endif	/* CONFIG_USE_MDIO */
 
+#if defined(CONFIG_USE_MDIO) \
+    && (defined(PHY_INTERRUPT) || defined(CONFIG_RPXCLASSIC))
 /* This interrupt occurs when the PHY detects a link change.
 */
 static void
@@ -1345,7 +1350,6 @@
 mii_link_interrupt(int irq, void * dev_id, struct pt_regs * regs)
 #endif
 {
-#ifdef	CONFIG_USE_MDIO
 	struct	net_device *dev = dev_id;
 	struct fec_enet_private *fep = dev->priv;
 	volatile immap_t *immap = (immap_t *)IMAP_ADDR;
@@ -1357,25 +1361,15 @@
 	if ((ecntrl & FEC_ECNTRL_ETHER_EN) == 0) {
 		fecp->fec_ecntrl |= FEC_ECNTRL_ETHER_EN;
 	}
-#endif	/* CONFIG_USE_MDIO */
-
-#if 0
-	disable_irq(fep->mii_irq);  /* disable now, enable later */
-#endif
-
 
-#ifdef	CONFIG_USE_MDIO
 	mii_do_cmd(dev, fep->phy->ack_int);
 	mii_do_cmd(dev, phy_cmd_relink);  /* restart and display status */
 
 	if ((ecntrl & FEC_ECNTRL_ETHER_EN) == 0) {
 		fecp->fec_ecntrl = ecntrl;	/* restore old settings */
 	}
-#else
-printk("%s[%d] %s: unexpected Link interrupt\n", __FILE__,__LINE__,__FUNCTION__);
-#endif	/* CONFIG_USE_MDIO */
-
 }
+#endif	/* defined(CONFIG_USE_MDIO) && ... */
 
 static int
 fec_enet_open(struct net_device *dev)
@@ -1643,6 +1637,7 @@
 		panic("Could not allocate FEC IRQ!");
 
 #ifdef CONFIG_RPXCLASSIC
+#ifdef CONFIG_USE_MDIO
 	/* Make Port C, bit 15 an input that causes interrupts.
 	*/
 	immap->im_ioport.iop_pcpar &= ~0x0001;
@@ -1650,13 +1645,14 @@
 	immap->im_ioport.iop_pcso  &= ~0x0001;
 	immap->im_ioport.iop_pcint |=  0x0001;
 	cpm_install_handler(CPMVEC_PIO_PC15, mii_link_interrupt, dev);
+#endif
 
 	/* Make LEDS reflect Link status.
 	*/
 	*((uint *) RPX_CSR_ADDR) &= ~BCSR2_FETHLEDMODE;
 #endif
 
-#ifdef PHY_INTERRUPT
+#if defined(PHY_INTERRUPT) && defined(CONFIG_USE_MDIO)
 	if (request_8xxirq(PHY_INTERRUPT, mii_link_interrupt, 0, "mii", dev) != 0)
 		panic("Could not allocate MII IRQ!");
 
@@ -1706,12 +1702,12 @@
 #endif	/* CONFIG_USE_MDIO */
 
 	printk ("%s: FEC ENET Version 0.2, FEC irq %d"
-#ifdef PHY_INTERRUPT
+#if defined(PHY_INTERRUPT) && defined(CONFIG_USE_MDIO)
 		", MII irq %d"
 #endif
 		", addr ",
 		dev->name, FEC_INTERRUPT
-#ifdef PHY_INTERRUPT
+#if defined(PHY_INTERRUPT) && defined(CONFIG_USE_MDIO)
 		, PHY_INTERRUPT
 #endif
 	);
diff -Naur linux-2.4.4-2001-07-23.sxn/include/asm-ppc/fads.h linux-2.4.4-2001-07-23.sxn2/include/asm-ppc/fads.h
--- linux-2.4.4-2001-07-23.sxn/include/asm-ppc/fads.h	Tue Sep 11 15:46:25 2001
+++ linux-2.4.4-2001-07-23.sxn2/include/asm-ppc/fads.h	Tue Sep 11 16:13:02 2001
@@ -48,6 +48,7 @@
  */
 #define FEC_INTERRUPT	SIU_LEVEL1	/* FEC interrupt */
 #define PHY_INTERRUPT	SIU_IRQ2	/* PHY link change interrupt */
+#define	CONFIG_FEC_LXT970               /* many (all?) FADS use the LXT970 */
 
 /* We don't use the 8259.
  */
@@ -56,7 +57,5 @@
 /* Machine type
  */
 #define _MACH_8xx (_MACH_fads)
-
-#define PHY_INTERRUPT		SIU_IRQ2
 
 #endif

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Problem using FEC on a860T
  2001-10-22  4:25 Jeremy Rosen
@ 2001-10-22 11:46 ` Laurent Pinchart
  2001-10-22 12:38   ` Young-Han, Kim
  0 siblings, 1 reply; 8+ messages in thread
From: Laurent Pinchart @ 2001-10-22 11:46 UTC (permalink / raw)
  To: linuxppc-embedded


>
>
>when I compile without "MDIO for PHY configuration"
>the kernel prints forever the message  "fec.c[1374] mii_link_interrupt:
>unexpected Link interrupt
>on the console at boottime.
>
>when I compile with it, the kernel Oopses.
>after carefull debugging, I tracked it down to the line 1367 in
>arch/ppc/8xx_io/
>    mii_do_cmd(dev, fep->phy->ack_int);
>
>it is a kernel access of bad area.
>
There is a problem in the FEC driver. The MII link interrupt gets
enabled too soon, before the PHY interface chip is configured. I believe
that the problem has been fixed in the linuxppc_2_4_devel tree. It was
supposed to be fixed much sooner, but the patch got lost somewhere
between the developpers and the development tree.

The problem should not occur if a full duplex ethernet link is connected
to the board at boot time.

Laurent Pinchart


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Problem using FEC on a860T
  2001-10-22 11:46 ` Laurent Pinchart
@ 2001-10-22 12:38   ` Young-Han, Kim
  0 siblings, 0 replies; 8+ messages in thread
From: Young-Han, Kim @ 2001-10-22 12:38 UTC (permalink / raw)
  To: linuxppc-embedded, laurent.pinchart


Dear Reader!

  I was solved this problem...
  The season is relate with interrupt.
  The fec.c enable the interrupt so fast!
  And, the LINK interrupt of some PHYs use with the Duplex Indicator.
  So, we must clear the interrupt and must set the interrupt mode,
before install the PHY Link interrupt!

  Please refer my source code(comment with YHKIM) of fec_enet_init().

===== fec_enet_init ======
#ifdef CONFIG_RPXCLASSIC
        /* Make Port C, bit 15 an input that causes interrupts.
        */
        immap->im_ioport.iop_pcpar &= ~0x0001;
        immap->im_ioport.iop_pcdir &= ~0x0001;
        immap->im_ioport.iop_pcso  &= ~0x0001;
        immap->im_ioport.iop_pcint |=  0x0001;
        cpm_install_handler(CPMVEC_PIO_PC15, mii_link_interrupt, dev);

        /* Make LEDS reflect Link status.
        */
        *((uint *) RPX_CSR_ADDR) &= ~BCSR2_FETHLEDMODE;
#endif

/* YHKIM */
#ifndef CONFIG_DASAN_COMMON
#ifdef PHY_INTERRUPT
        if (request_8xxirq(PHY_INTERRUPT, mii_link_interrupt, 0, "mii", dev) != 0)
                panic("Could not allocate MII IRQ!");

        ((immap_t *)IMAP_ADDR)->im_siu_conf.sc_siel |=
                (0x80000000 >> PHY_INTERRUPT);
#endif
#endif  /* CONFIG_DASAN_COMMON */

        dev->base_addr = (unsigned long)fecp;
        dev->priv = fep;

        /* The FEC Ethernet specific entries in the device structure. */
        dev->open = fec_enet_open;
        dev->hard_start_xmit = fec_enet_start_xmit;
        dev->tx_timeout = fec_timeout;
        dev->watchdog_timeo = TX_TIMEOUT;
        dev->stop = fec_enet_close;
        dev->get_stats = fec_enet_get_stats;
        dev->set_multicast_list = set_multicast_list;

#ifdef  CONFIG_USE_MDIO
        for (i=0; i<NMII-1; i++)
                mii_cmds[i].mii_next = &mii_cmds[i+1];
        mii_free = mii_cmds;
#endif  /* CONFIG_USE_MDIO */

        /* Configure all of port D for MII.
        */
        immap->im_ioport.iop_pdpar = 0x1fff;

        /* Bits moved from Rev. D onward.
        */
        if ((mfspr(IMMR) & 0xffff) < 0x0501)
                immap->im_ioport.iop_pddir = 0x1c58;    /* Pre rev. D */
        else
                immap->im_ioport.iop_pddir = 0x1fff;    /* Rev. D and later */

#ifdef  CONFIG_USE_MDIO
        /* Set MII speed to 2.5 MHz
        */
        fecp->fec_mii_speed = fep->phy_speed =
                (( (bd->bi_intfreq + 500000) / 2500000 / 2 ) & 0x3F ) << 1;
#else
        fecp->fec_mii_speed = 0;        /* turn off MDIO */
#endif  /* CONFIG_USE_MDIO */

        printk ("%s: FEC ENET Version 0.2, FEC irq %d"
#ifdef PHY_INTERRUPT
                ", MII irq %d"
#endif
                ", addr ",
                dev->name, FEC_INTERRUPT
#ifdef PHY_INTERRUPT
                , PHY_INTERRUPT
#endif
        );
        for (i=0; i<6; i++)
                printk("%02x%c", dev->dev_addr[i], (i==5) ? '\n' : ':');

#ifdef  CONFIG_USE_MDIO /* start in full duplex mode, and negotiate speed */
        fec_restart (dev, 1);
#else                   /* always use half duplex mode only */
        fec_restart (dev, 0);
#endif

#ifdef  CONFIG_USE_MDIO
        /* Queue up command to detect the PHY and initialize the
         * remainder of the interface.
         */
        fep->phy_id_done = 0;
        fep->phy_addr = 0;
        mii_queue(dev, mk_mii_read(MII_REG_PHYIR1), mii_discover_phy);
#endif  /* CONFIG_USE_MDIO */

/* YHKIM */
#ifdef CONFIG_DASAN_COMMON
#ifdef PHY_INTERRUPT
        while(fep->phy == 0)
                udelay(5);

        mii_do_cmd(dev, fep->phy->ack_int);
        mii_do_cmd(dev, fep->phy->startup);
        {
                int tmp_i;

                for(tmp_i=0 ; tmp_i<50; tmp_i++)
                        udelay(5);
        }

        if (request_8xxirq(PHY_INTERRUPT, mii_link_interrupt, 0, "mii", dev) != 0)
                panic("Could not allocate MII IRQ!");

        printk("install fec link interrupt\n");

        ((immap_t *)IMAP_ADDR)->im_siu_conf.sc_siel |=
                (0x80000000 >> PHY_INTERRUPT);
#endif  /* PHY_INTERRUPT */
#endif  /* CONFIG_DASAN_COMMON */

        return 0;
}
====================


-
-                              ?
-                             '''
-                            (o o)
- -----------------------oOO--(_)--OOo-----------------------
- == English Version ==
- Young-Han, Kim
- Senior Research Engineer
-
- E-Mail : yhkim@da-san.com
- Direct : ++ 82 2 3484 6579
- H.P    : ++ 82 19 254 7566
-
-                        DASAN Co., Ltd.
- 6F KOSMO Tower 1002, Daechi-dong, Kangnam-ku, Seoul, Korea
-                         Zip : 135-280
-                    Tel : ++ 82 2 3484 6500
-                    Fax : ++ 82 2 3484 6501
-                    http://www.da-san.com
- ===========================================================
- == Korean Version ==
- 김영한   선임연구원 / 기술연구소
- E-Mail : yhkim@da-san.com
- 직통   : 02-3484-6579
- 핸드폰 : 019-254-7566
-
-                        (주)다산인터네트
-           서울시 강남구 대치동 1002 코스모 타워 6층
-                    우편번호 : 135-280
-                    Tel : 02-3484-6500
-                    Fax : 02-3484-6501
-                    http://www.da-san.com
-----------------------------------------------------------
----- Original Message -----
From: "Laurent Pinchart" <laurent.pinchart@capflow.com>
To: <linuxppc-embedded@lists.linuxppc.org>
Sent: Monday, October 22, 2001 8:46 PM
Subject: Re: Problem using FEC on a860T


>
> >
> >
> >when I compile without "MDIO for PHY configuration"
> >the kernel prints forever the message  "fec.c[1374] mii_link_interrupt:
> >unexpected Link interrupt
> >on the console at boottime.
> >
> >when I compile with it, the kernel Oopses.
> >after carefull debugging, I tracked it down to the line 1367 in
> >arch/ppc/8xx_io/
> >    mii_do_cmd(dev, fep->phy->ack_int);
> >
> >it is a kernel access of bad area.
> >
> There is a problem in the FEC driver. The MII link interrupt gets
> enabled too soon, before the PHY interface chip is configured. I believe
> that the problem has been fixed in the linuxppc_2_4_devel tree. It was
> supposed to be fixed much sooner, but the patch got lost somewhere
> between the developpers and the development tree.
>
> The problem should not occur if a full duplex ethernet link is connected
> to the board at boot time.
>
> Laurent Pinchart
>
>
>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Problem using FEC on a860T
@ 2001-10-22 14:51 Dave Ellis
  0 siblings, 0 replies; 8+ messages in thread
From: Dave Ellis @ 2001-10-22 14:51 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1666 bytes --]

Borracini Evandro wrote:
...
> Firstly, apply the attached patch. This patch was written by
> Dave Ellis. It will disable the mii_link_interrupt when the
> "MDIO for PHY configuration" was not selected.
>
> Secondly, you need compile without the "MDIO for PHY
> configuration". FADS does not use that.

With the patch the FADS should work with or without MDIO support.
At least my FADS (with an 855T) does.

This was discussed on the ppcboot-users list last month, but
my attachments apparently didn't survive in the archives
on geocrawler, so I am posting them here again. The patches
are for the Denx linux-2.4.4-2001-07-23 kernel.

from my post on Ppcboot-users (11-Sep-01):
> ... so I am attaching 2 patches and 2 configurations.
> fads0723.patch - my first patch to make FADS with FEC ethernet build
> fads0723_2.patch - this patch (which needs the first one) fixes:
>  * if CONFIG_USE_MDIO is disabled don't enable mii link interrupts,
>    since the link interrupt routine doesn't know what to do with them.
>  * make fec.c default to LXT971 PHY only if the PHY type is not
>    already configured. fads.h now defines CONFIG_FEC_LXT970.
>  * remove duplicate PHY_INTERRUPT #define from fads.h
> FADS860FNM_config - FADS 860 with FEC ethernet, CONFIG_USE_MDIO disabled
> FADS860FM_config - FADS 860 with FEC ethernet, CONFIG_USE_MDIO enabled

Dave

----------------------------------------
Dave Ellis - Director of Engineering
SIXNET  "Programmable I/O for Windows"
PO Box 767
Clifton Park, NY  12065
Tel. +1 (518) 877-5173
Fax. +1 (518) 877-8346
Mail: mailto:dge@sixnetio.com
product info at http://www.sixnetio.com
----------------------------------------



[-- Attachment #2: fads0723.patch --]
[-- Type: application/octet-stream, Size: 1040 bytes --]

diff -Naur linux-2.4.4-2001-07-23/arch/ppc/8xx_io/commproc.h linux-2.4.4-2001-07-23.sxn/arch/ppc/8xx_io/commproc.h
--- linux-2.4.4-2001-07-23/arch/ppc/8xx_io/commproc.h	Mon Jul 23 10:05:03 2001
+++ linux-2.4.4-2001-07-23.sxn/arch/ppc/8xx_io/commproc.h	Wed Sep  5 23:05:57 2001
@@ -732,7 +732,7 @@
 #define SICR_ENET_MASK	((uint)0x0000ff00)
 #define SICR_ENET_CLKRT	((uint)0x00002e00)
 
-# else
+# elif defined(CONFIG_SCC_ENET)
 #  error No SCC defined for Ethernet
 # endif
 
diff -Naur linux-2.4.4-2001-07-23/include/asm-ppc/fads.h linux-2.4.4-2001-07-23.sxn/include/asm-ppc/fads.h
--- linux-2.4.4-2001-07-23/include/asm-ppc/fads.h	Sun Jun 24 17:26:59 2001
+++ linux-2.4.4-2001-07-23.sxn/include/asm-ppc/fads.h	Wed Sep  5 21:30:28 2001
@@ -43,7 +43,6 @@
 #define BCSR4_FETHCFG1		((uint)0x00400000)	/* PHY autoneg mode */
 #define BCSR4_FETHFDE		((uint)0x02000000)	/* PHY FDX advertise */
 #define BCSR4_FETHRST		((uint)0x00200000)	/* PHY Reset */
-#endif /* !__ASSEMBLY__ */
  
 /* Interrupt level assignments.
  */

[-- Attachment #3: fads0723_2.patch --]
[-- Type: application/octet-stream, Size: 4007 bytes --]

diff -Naur linux-2.4.4-2001-07-23.sxn/arch/ppc/8xx_io/fec.c linux-2.4.4-2001-07-23.sxn2/arch/ppc/8xx_io/fec.c
--- linux-2.4.4-2001-07-23.sxn/arch/ppc/8xx_io/fec.c	Mon Mar 12 10:48:01 2001
+++ linux-2.4.4-2001-07-23.sxn2/arch/ppc/8xx_io/fec.c	Tue Sep 11 16:30:54 2001
@@ -25,12 +25,6 @@
  * Copyright (c) 2000 Wolfgang Denk, DENX Software Engineering.
  */
 
-/* List of PHYs we wish to support.
-*/
-#undef	CONFIG_FEC_LXT970
-#define	CONFIG_FEC_LXT971
-#undef	CONFIG_FEC_QS6612
-
 #include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
@@ -59,6 +53,15 @@
 #include <asm/uaccess.h>
 #include "commproc.h"
 
+/* List of PHYs we wish to support.
+** If one or more is defined, just use it (or them), otherwise default
+** to LXT971.
+*/
+#if !defined(CONFIG_FEC_LXT970) && !defined(CONFIG_FEC_LXT971)\
+    && !defined(CONFIG_FEC_QS6612)
+#define	CONFIG_FEC_LXT971
+#endif
+
 #ifdef	CONFIG_USE_MDIO
 /* Forward declarations of some structures to support different PHYs
 */
@@ -1336,6 +1339,8 @@
 }
 #endif	/* CONFIG_USE_MDIO */
 
+#if defined(CONFIG_USE_MDIO) \
+    && (defined(PHY_INTERRUPT) || defined(CONFIG_RPXCLASSIC))
 /* This interrupt occurs when the PHY detects a link change.
 */
 static void
@@ -1345,7 +1350,6 @@
 mii_link_interrupt(int irq, void * dev_id, struct pt_regs * regs)
 #endif
 {
-#ifdef	CONFIG_USE_MDIO
 	struct	net_device *dev = dev_id;
 	struct fec_enet_private *fep = dev->priv;
 	volatile immap_t *immap = (immap_t *)IMAP_ADDR;
@@ -1357,25 +1361,15 @@
 	if ((ecntrl & FEC_ECNTRL_ETHER_EN) == 0) {
 		fecp->fec_ecntrl |= FEC_ECNTRL_ETHER_EN;
 	}
-#endif	/* CONFIG_USE_MDIO */
-
-#if 0
-	disable_irq(fep->mii_irq);  /* disable now, enable later */
-#endif
-
 
-#ifdef	CONFIG_USE_MDIO
 	mii_do_cmd(dev, fep->phy->ack_int);
 	mii_do_cmd(dev, phy_cmd_relink);  /* restart and display status */
 
 	if ((ecntrl & FEC_ECNTRL_ETHER_EN) == 0) {
 		fecp->fec_ecntrl = ecntrl;	/* restore old settings */
 	}
-#else
-printk("%s[%d] %s: unexpected Link interrupt\n", __FILE__,__LINE__,__FUNCTION__);
-#endif	/* CONFIG_USE_MDIO */
-
 }
+#endif	/* defined(CONFIG_USE_MDIO) && ... */
 
 static int
 fec_enet_open(struct net_device *dev)
@@ -1643,6 +1637,7 @@
 		panic("Could not allocate FEC IRQ!");
 
 #ifdef CONFIG_RPXCLASSIC
+#ifdef CONFIG_USE_MDIO
 	/* Make Port C, bit 15 an input that causes interrupts.
 	*/
 	immap->im_ioport.iop_pcpar &= ~0x0001;
@@ -1650,13 +1645,14 @@
 	immap->im_ioport.iop_pcso  &= ~0x0001;
 	immap->im_ioport.iop_pcint |=  0x0001;
 	cpm_install_handler(CPMVEC_PIO_PC15, mii_link_interrupt, dev);
+#endif
 
 	/* Make LEDS reflect Link status.
 	*/
 	*((uint *) RPX_CSR_ADDR) &= ~BCSR2_FETHLEDMODE;
 #endif
 
-#ifdef PHY_INTERRUPT
+#if defined(PHY_INTERRUPT) && defined(CONFIG_USE_MDIO)
 	if (request_8xxirq(PHY_INTERRUPT, mii_link_interrupt, 0, "mii", dev) != 0)
 		panic("Could not allocate MII IRQ!");
 
@@ -1706,12 +1702,12 @@
 #endif	/* CONFIG_USE_MDIO */
 
 	printk ("%s: FEC ENET Version 0.2, FEC irq %d"
-#ifdef PHY_INTERRUPT
+#if defined(PHY_INTERRUPT) && defined(CONFIG_USE_MDIO)
 		", MII irq %d"
 #endif
 		", addr ",
 		dev->name, FEC_INTERRUPT
-#ifdef PHY_INTERRUPT
+#if defined(PHY_INTERRUPT) && defined(CONFIG_USE_MDIO)
 		, PHY_INTERRUPT
 #endif
 	);
diff -Naur linux-2.4.4-2001-07-23.sxn/include/asm-ppc/fads.h linux-2.4.4-2001-07-23.sxn2/include/asm-ppc/fads.h
--- linux-2.4.4-2001-07-23.sxn/include/asm-ppc/fads.h	Tue Sep 11 15:46:25 2001
+++ linux-2.4.4-2001-07-23.sxn2/include/asm-ppc/fads.h	Tue Sep 11 16:13:02 2001
@@ -48,6 +48,7 @@
  */
 #define FEC_INTERRUPT	SIU_LEVEL1	/* FEC interrupt */
 #define PHY_INTERRUPT	SIU_IRQ2	/* PHY link change interrupt */
+#define	CONFIG_FEC_LXT970               /* many (all?) FADS use the LXT970 */
 
 /* We don't use the 8259.
  */
@@ -56,7 +57,5 @@
 /* Machine type
  */
 #define _MACH_8xx (_MACH_fads)
-
-#define PHY_INTERRUPT		SIU_IRQ2
 
 #endif

[-- Attachment #4: FADS860FM_config --]
[-- Type: application/octet-stream, Size: 9386 bytes --]

#
# Automatically generated by make menuconfig: don't edit
#
# CONFIG_UID16 is not set
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# Loadable module support
#
CONFIG_MODULES=y
# CONFIG_MODVERSIONS is not set
CONFIG_KMOD=y

#
# Platform support
#
CONFIG_PPC=y
# CONFIG_6xx is not set
# CONFIG_4xx is not set
# CONFIG_POWER3 is not set
# CONFIG_POWER4 is not set
CONFIG_8xx=y
CONFIG_SERIAL_CONSOLE=y
# CONFIG_RPXLITE is not set
# CONFIG_RPXCLASSIC is not set
# CONFIG_BSEIP is not set
CONFIG_FADS860=y
# CONFIG_TQM823L is not set
# CONFIG_TQM850L is not set
# CONFIG_TQM855L is not set
# CONFIG_TQM860L is not set
# CONFIG_FPS850L is not set
# CONFIG_TQM860 is not set
# CONFIG_SPD823TS is not set
# CONFIG_IVMS8 is not set
# CONFIG_IVML24 is not set
# CONFIG_SM850 is not set
# CONFIG_HERMES is not set
# CONFIG_HERMES_SH is not set
# CONFIG_IP860 is not set
# CONFIG_LWMON is not set
# CONFIG_PCU_E is not set
# CONFIG_LANTEC is not set
# CONFIG_MBX is not set
# CONFIG_WINCEPT is not set
# CONFIG_PPC601_SYNC_FIX is not set
# CONFIG_ALL_PPC is not set
# CONFIG_SMP is not set
CONFIG_MACH_SPECIFIC=y
CONFIG_MATH_EMULATION=y
# CONFIG_SASH is not set

#
# General setup
#
# CONFIG_HIGHMEM is not set
# CONFIG_ISA is not set
# CONFIG_EISA is not set
# CONFIG_SBUS is not set
# CONFIG_MCA is not set
# CONFIG_PCI_QSPAN is not set
# CONFIG_PCI is not set
CONFIG_NET=y
CONFIG_SYSCTL=y
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_KCORE_ELF=y
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y
# CONFIG_BINFMT_MISC is not set
# CONFIG_HOTPLUG is not set
# CONFIG_PCMCIA is not set

#
# Parallel port support
#
# CONFIG_PARPORT is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Plug and Play configuration
#
# CONFIG_PNP is not set
# CONFIG_ISAPNP is not set

#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
# CONFIG_BLK_DEV_MD is not set
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_BLK_DEV_LVM is not set

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
CONFIG_NETLINK=y
# CONFIG_RTNETLINK is not set
# CONFIG_NETLINK_DEV is not set
# CONFIG_NETFILTER is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_PNP=y
CONFIG_IP_PNP_BOOTP=y
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_IPV6 is not set
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_LLC is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# ATA/IDE/MFM/RLL support
#
# CONFIG_IDE is not set
# CONFIG_BLK_DEV_IDE_MODES is not set
# CONFIG_BLK_DEV_HD is not set

#
# SCSI support
#
# CONFIG_SCSI is not set

#
# Network device support
#
CONFIG_NETDEVICES=y

#
# ARCnet devices
#
# CONFIG_ARCNET is not set
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
# CONFIG_ETHERTAP is not set
# CONFIG_NET_SB1000 is not set

#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
# CONFIG_MACE is not set
# CONFIG_BMAC is not set
# CONFIG_GMAC is not set
# CONFIG_NCR885E is not set
# CONFIG_OAKNET is not set
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set
# CONFIG_AT1700 is not set
# CONFIG_DEPCA is not set
# CONFIG_NET_ISA is not set
# CONFIG_NET_PCI is not set
# CONFIG_NET_POCKET is not set

#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_SK98LIN is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set

#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set

#
# Token Ring devices
#
# CONFIG_TR is not set
# CONFIG_NET_FC is not set
# CONFIG_RCPCI is not set
# CONFIG_SHAPER is not set

#
# Wan interfaces
#
# CONFIG_WAN is not set

#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set

#
# IrDA (infrared) support
#
# CONFIG_IRDA is not set

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# Old CD-ROM drivers (not SCSI, not IDE)
#
# CONFIG_CD_NO_IDESCSI is not set

#
# Console drivers
#

#
# Frame-buffer support
#
# CONFIG_FB is not set

#
# Input core support
#
# CONFIG_INPUT is not set

#
# Macintosh device drivers
#

#
# Character devices
#
# CONFIG_VT is not set
# CONFIG_SERIAL is not set
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=32

#
# I2C support
#
# CONFIG_I2C is not set

#
# Mice
#
# CONFIG_BUSMOUSE is not set
# CONFIG_MOUSE is not set

#
# Joysticks
#
# CONFIG_JOYSTICK is not set
# CONFIG_QIC02_TAPE is not set

#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_INTEL_RNG is not set
# CONFIG_NVRAM is not set
# CONFIG_RTC is not set
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_FLASH is not set

#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
# CONFIG_AGP is not set
# CONFIG_DRM is not set

#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set

#
# File systems
#
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_REISERFS_CHECK is not set
# CONFIG_ADFS_FS is not set
# CONFIG_ADFS_FS_RW is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_FAT_FS is not set
# CONFIG_MSDOS_FS is not set
# CONFIG_UMSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_JFFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_TMPFS is not set
# CONFIG_RAMFS is not set
# CONFIG_ISO9660_FS is not set
# CONFIG_JOLIET is not set
# CONFIG_MINIX_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS_RW is not set
# CONFIG_HPFS_FS is not set
CONFIG_PROC_FS=y
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set
CONFIG_DEVPTS_FS=y
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX4FS_RW is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_EXT2_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_SYSV_FS_WRITE is not set
# CONFIG_UDF_FS is not set
# CONFIG_UDF_RW is not set
# CONFIG_UFS_FS is not set
# CONFIG_UFS_FS_WRITE is not set

#
# Network File Systems
#
# CONFIG_CODA_FS is not set
CONFIG_NFS_FS=y
# CONFIG_NFS_V3 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFSD is not set
# CONFIG_NFSD_V3 is not set
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
# CONFIG_SMB_FS is not set
# CONFIG_NCP_FS is not set
# CONFIG_NCPFS_PACKET_SIGNING is not set
# CONFIG_NCPFS_IOCTL_LOCKING is not set
# CONFIG_NCPFS_STRONG is not set
# CONFIG_NCPFS_NFS_NS is not set
# CONFIG_NCPFS_OS2_NS is not set
# CONFIG_NCPFS_SMALLDOS is not set
# CONFIG_NCPFS_NLS is not set
# CONFIG_NCPFS_EXTRAS is not set

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not set
# CONFIG_MSDOS_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
# CONFIG_SMB_NLS is not set
# CONFIG_NLS is not set

#
# Sound
#
# CONFIG_SOUND is not set

#
# MPC8xx CPM Options
#
# CONFIG_SCC_ENET is not set
CONFIG_FEC_ENET=y
CONFIG_USE_MDIO=y
CONFIG_ENET_BIG_BUFFERS=y
CONFIG_SMC1_UART_RX_BDNUM=4
CONFIG_SMC1_UART_RX_BDSIZE=32
CONFIG_SMC1_UART_TX_BDNUM=4
CONFIG_SMC1_UART_TX_BDSIZE=32
CONFIG_SMC2_UART=y
# CONFIG_ALTSMC2 is not set
# CONFIG_CONS_SMC2 is not set
CONFIG_UART_MAXIDL_SMC2=1
CONFIG_SMC2_UART_RX_BDNUM=4
CONFIG_SMC2_UART_RX_BDSIZE=32
CONFIG_SMC2_UART_TX_BDNUM=4
CONFIG_SMC2_UART_TX_BDSIZE=32
# CONFIG_USE_SCC_IO is not set
CONFIG_8xx_COPYBACK=y
# CONFIG_8xx_CPU6 is not set
# CONFIG_UCODE_PATCH is not set
# CONFIG_8xx_LCD is not set
# CONFIG_8xx_BUZZER is not set

#
# USB support
#
# CONFIG_USB is not set

#
# Kernel hacking
#
# CONFIG_MAGIC_SYSRQ is not set
# CONFIG_KGDB is not set
# CONFIG_XMON is not set

[-- Attachment #5: FADS860FNM_config --]
[-- Type: application/octet-stream, Size: 9397 bytes --]

#
# Automatically generated by make menuconfig: don't edit
#
# CONFIG_UID16 is not set
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# Loadable module support
#
CONFIG_MODULES=y
# CONFIG_MODVERSIONS is not set
CONFIG_KMOD=y

#
# Platform support
#
CONFIG_PPC=y
# CONFIG_6xx is not set
# CONFIG_4xx is not set
# CONFIG_POWER3 is not set
# CONFIG_POWER4 is not set
CONFIG_8xx=y
CONFIG_SERIAL_CONSOLE=y
# CONFIG_RPXLITE is not set
# CONFIG_RPXCLASSIC is not set
# CONFIG_BSEIP is not set
CONFIG_FADS860=y
# CONFIG_TQM823L is not set
# CONFIG_TQM850L is not set
# CONFIG_TQM855L is not set
# CONFIG_TQM860L is not set
# CONFIG_FPS850L is not set
# CONFIG_TQM860 is not set
# CONFIG_SPD823TS is not set
# CONFIG_IVMS8 is not set
# CONFIG_IVML24 is not set
# CONFIG_SM850 is not set
# CONFIG_HERMES is not set
# CONFIG_HERMES_SH is not set
# CONFIG_IP860 is not set
# CONFIG_LWMON is not set
# CONFIG_PCU_E is not set
# CONFIG_LANTEC is not set
# CONFIG_MBX is not set
# CONFIG_WINCEPT is not set
# CONFIG_PPC601_SYNC_FIX is not set
# CONFIG_ALL_PPC is not set
# CONFIG_SMP is not set
CONFIG_MACH_SPECIFIC=y
CONFIG_MATH_EMULATION=y
# CONFIG_SASH is not set

#
# General setup
#
# CONFIG_HIGHMEM is not set
# CONFIG_ISA is not set
# CONFIG_EISA is not set
# CONFIG_SBUS is not set
# CONFIG_MCA is not set
# CONFIG_PCI_QSPAN is not set
# CONFIG_PCI is not set
CONFIG_NET=y
CONFIG_SYSCTL=y
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_KCORE_ELF=y
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y
# CONFIG_BINFMT_MISC is not set
# CONFIG_HOTPLUG is not set
# CONFIG_PCMCIA is not set

#
# Parallel port support
#
# CONFIG_PARPORT is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Plug and Play configuration
#
# CONFIG_PNP is not set
# CONFIG_ISAPNP is not set

#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
# CONFIG_BLK_DEV_MD is not set
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_BLK_DEV_LVM is not set

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
CONFIG_NETLINK=y
# CONFIG_RTNETLINK is not set
# CONFIG_NETLINK_DEV is not set
# CONFIG_NETFILTER is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_PNP=y
CONFIG_IP_PNP_BOOTP=y
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_IPV6 is not set
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_LLC is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# ATA/IDE/MFM/RLL support
#
# CONFIG_IDE is not set
# CONFIG_BLK_DEV_IDE_MODES is not set
# CONFIG_BLK_DEV_HD is not set

#
# SCSI support
#
# CONFIG_SCSI is not set

#
# Network device support
#
CONFIG_NETDEVICES=y

#
# ARCnet devices
#
# CONFIG_ARCNET is not set
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
# CONFIG_ETHERTAP is not set
# CONFIG_NET_SB1000 is not set

#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
# CONFIG_MACE is not set
# CONFIG_BMAC is not set
# CONFIG_GMAC is not set
# CONFIG_NCR885E is not set
# CONFIG_OAKNET is not set
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set
# CONFIG_AT1700 is not set
# CONFIG_DEPCA is not set
# CONFIG_NET_ISA is not set
# CONFIG_NET_PCI is not set
# CONFIG_NET_POCKET is not set

#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_SK98LIN is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set

#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set

#
# Token Ring devices
#
# CONFIG_TR is not set
# CONFIG_NET_FC is not set
# CONFIG_RCPCI is not set
# CONFIG_SHAPER is not set

#
# Wan interfaces
#
# CONFIG_WAN is not set

#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set

#
# IrDA (infrared) support
#
# CONFIG_IRDA is not set

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# Old CD-ROM drivers (not SCSI, not IDE)
#
# CONFIG_CD_NO_IDESCSI is not set

#
# Console drivers
#

#
# Frame-buffer support
#
# CONFIG_FB is not set

#
# Input core support
#
# CONFIG_INPUT is not set

#
# Macintosh device drivers
#

#
# Character devices
#
# CONFIG_VT is not set
# CONFIG_SERIAL is not set
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=32

#
# I2C support
#
# CONFIG_I2C is not set

#
# Mice
#
# CONFIG_BUSMOUSE is not set
# CONFIG_MOUSE is not set

#
# Joysticks
#
# CONFIG_JOYSTICK is not set
# CONFIG_QIC02_TAPE is not set

#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_INTEL_RNG is not set
# CONFIG_NVRAM is not set
# CONFIG_RTC is not set
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_FLASH is not set

#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
# CONFIG_AGP is not set
# CONFIG_DRM is not set

#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set

#
# File systems
#
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_REISERFS_CHECK is not set
# CONFIG_ADFS_FS is not set
# CONFIG_ADFS_FS_RW is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_FAT_FS is not set
# CONFIG_MSDOS_FS is not set
# CONFIG_UMSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_JFFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_TMPFS is not set
# CONFIG_RAMFS is not set
# CONFIG_ISO9660_FS is not set
# CONFIG_JOLIET is not set
# CONFIG_MINIX_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS_RW is not set
# CONFIG_HPFS_FS is not set
CONFIG_PROC_FS=y
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set
CONFIG_DEVPTS_FS=y
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX4FS_RW is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_EXT2_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_SYSV_FS_WRITE is not set
# CONFIG_UDF_FS is not set
# CONFIG_UDF_RW is not set
# CONFIG_UFS_FS is not set
# CONFIG_UFS_FS_WRITE is not set

#
# Network File Systems
#
# CONFIG_CODA_FS is not set
CONFIG_NFS_FS=y
# CONFIG_NFS_V3 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFSD is not set
# CONFIG_NFSD_V3 is not set
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
# CONFIG_SMB_FS is not set
# CONFIG_NCP_FS is not set
# CONFIG_NCPFS_PACKET_SIGNING is not set
# CONFIG_NCPFS_IOCTL_LOCKING is not set
# CONFIG_NCPFS_STRONG is not set
# CONFIG_NCPFS_NFS_NS is not set
# CONFIG_NCPFS_OS2_NS is not set
# CONFIG_NCPFS_SMALLDOS is not set
# CONFIG_NCPFS_NLS is not set
# CONFIG_NCPFS_EXTRAS is not set

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not set
# CONFIG_MSDOS_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
# CONFIG_SMB_NLS is not set
# CONFIG_NLS is not set

#
# Sound
#
# CONFIG_SOUND is not set

#
# MPC8xx CPM Options
#
# CONFIG_SCC_ENET is not set
CONFIG_FEC_ENET=y
# CONFIG_USE_MDIO is not set
CONFIG_ENET_BIG_BUFFERS=y
CONFIG_SMC1_UART_RX_BDNUM=4
CONFIG_SMC1_UART_RX_BDSIZE=32
CONFIG_SMC1_UART_TX_BDNUM=4
CONFIG_SMC1_UART_TX_BDSIZE=32
CONFIG_SMC2_UART=y
# CONFIG_ALTSMC2 is not set
# CONFIG_CONS_SMC2 is not set
CONFIG_UART_MAXIDL_SMC2=1
CONFIG_SMC2_UART_RX_BDNUM=4
CONFIG_SMC2_UART_RX_BDSIZE=32
CONFIG_SMC2_UART_TX_BDNUM=4
CONFIG_SMC2_UART_TX_BDSIZE=32
# CONFIG_USE_SCC_IO is not set
CONFIG_8xx_COPYBACK=y
# CONFIG_8xx_CPU6 is not set
# CONFIG_UCODE_PATCH is not set
# CONFIG_8xx_LCD is not set
# CONFIG_8xx_BUZZER is not set

#
# USB support
#
# CONFIG_USB is not set

#
# Kernel hacking
#
# CONFIG_MAGIC_SYSRQ is not set
# CONFIG_KGDB is not set
# CONFIG_XMON is not set

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Problem using FEC on a860T
@ 2001-10-22 21:47 Jeremy Rosen
  0 siblings, 0 replies; 8+ messages in thread
From: Jeremy Rosen @ 2001-10-22 21:47 UTC (permalink / raw)
  To: linuxppc-embedded


Thx everybody

after applying the patches and all the advices, it worked...

thx again

Jeremy

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Problem using FEC on a860T
@ 2001-10-23  1:00 Jeremy Rosen
  2001-10-23  8:59 ` Laurent Pinchart
  0 siblings, 1 reply; 8+ messages in thread
From: Jeremy Rosen @ 2001-10-23  1:00 UTC (permalink / raw)
  To: linuxppc-embedded


well, actually the patch worked only partially...

the driver compiles, and registers properly, but doesn't seem to handle
RPC correctly.

I have the following message :

when both fec and normal CPM ENET are compiled,
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get mountd port number from server, using default

then a second atempt on the default port, with the same error.

I have captured no packets on any of the interfaces.

when I compile only with fec ( no CPM ENET )

it blocks at
Looking up port of RPC 100003/2 on 172.16.0.1
I still can't capture any packets,
the feth enable led isn't lit,
and the collision and Tx leds of the board FOR THE CPM are blinking
continuously...

after a couple of seconds, the kernel starts scrolling
eth0: tx queue full!.

did I do something wrong ???
thx
Jeremy

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Problem using FEC on a860T
  2001-10-23  1:00 Jeremy Rosen
@ 2001-10-23  8:59 ` Laurent Pinchart
  0 siblings, 0 replies; 8+ messages in thread
From: Laurent Pinchart @ 2001-10-23  8:59 UTC (permalink / raw)
  To: linuxppc-embedded


>
>
>well, actually the patch worked only partially...
>
>...
>after a couple of seconds, the kernel starts scrolling
>eth0: tx queue full!.
>
Could you try the unpatched kernel, with a full duplex ethernet cable
plugged into the FEC RJ45 connector when you boot the board ?

Laurent Pinchart


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-10-23  8:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-22 21:47 Problem using FEC on a860T Jeremy Rosen
  -- strict thread matches above, loose matches on Subject: below --
2001-10-23  1:00 Jeremy Rosen
2001-10-23  8:59 ` Laurent Pinchart
2001-10-22 14:51 Dave Ellis
2001-10-22 11:38 Borracini Evandro-R45188
2001-10-22  4:25 Jeremy Rosen
2001-10-22 11:46 ` Laurent Pinchart
2001-10-22 12:38   ` Young-Han, Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).