Skip to contentSkip to conversation

eth0 autonegotation 8260

DISCUSSION Samuel Osorio Calvo 4 participants 5 messages Jun 30, 2005

lore
Share & tools
lore
#0 lore raw

Hi!

First of all sorry if this answer has been answered before, I have looked = into the archives and did not find the answer.

We are using a 8260 processor with ELDK 3.1.1, kernel 2.4.25 patched with = lck1. We have configured the kernel with USE_MDIO and LXT971. The problem we face is that the boot process stops after displaying the = configuration of the card:
eth0: config: autonegotiation on, 100FDX,...
and after the board seems to freeze.

Following the code, I located the error in the startup command of the = LXT971, concretely in the line setting the autonegotiation:
{mk_mii_write(MII_REG_CR, 0x1200), NULL}, /* autonegotiate */=20

Can anybody provide some feedback on how to check what can be misconfigured=
or where to look for the error???=20

Thanks in advance,

Samuel.

Unclassified.

#1 lore raw
Quoted 1 line

We are using a 8260 processor with ELDK 3.1.1, kernel 2.4.25 patched with

lck1. We have configured the kernel with USE_MDIO >and LXT971.

Quoted 1 line

The problem we face is that the boot process stops after displaying the

configuration of the card:

Quoted 4 lines

eth0: config: autonegotiation on, 100FDX,...
and after the board seems to freeze.

Can anybody provide some feedback on how to check what can be misconfigured

or where to look for the error???

Check that the interrupt from the LXT971 is configured correctly. The code is probably waiting for this interrupt to tell it that negotiation is complete

Mark Chambers

#2 lore raw
Quoted 9 lines
Quoted 9 lines

We are using a 8260 processor with ELDK 3.1.1, kernel 2.4.25 patched with lck1. We have configured the kernel with USE_MDIO
and LXT971.
The problem we face is that the boot process stops after displaying the configuration of the card:
eth0: config: autonegotiation on, 100FDX,...
and after the board seems to freeze.

Quoted 7 lines
Quoted 2 lines

Can anybody provide some feedback on how to check what can be misconfigured or where to look for the error???

Check that the interrupt from the LXT971 is configured correctly. The code is probably waiting for this interrupt to tell it that negotiation is complete

On a similar note... I've noticed that the fcc_enet driver does not appear to detect when the link goes down, or re-autonegotiate when it comes back up. I wonder if anybody has a fix for this?

PS I too am using the ELDK 3.1.1 linux-2.4.25 kernel, but with a PM828 devel board.

#4 lore raw
In reply to Samuel Osorio Calvo
Quoted 9 lines

First of all sorry if this answer has been answered before, I have looked into the archives and did not find the answer.

We are using a 8260 processor with ELDK 3.1.1, kernel 2.4.25 patched with lck1. We have configured the kernel with USE_MDIO and LXT971. The problem we face is that the boot process stops after displaying the configuration of the card:
eth0: config: autonegotiation on, 100FDX,...
and after the board seems to freeze.

Following the code, I located the error in the startup command of the LXT971, concretely in the line setting the autonegotiation:
{mk_mii_write(MII_REG_CR, 0x1200), NULL}, /* autonegotiate */

I have the same here but it doesn't freezes, it just doesn't works :). (maybe it "freezes" because next step depends on the eth like RARP?) I digged into LXT971 datasheet and 0x1200 appears to be correct. I was thinking in add an module option to manually set it (and thus avoiding the need to use ethtool). Any MII guru around to help us on this?

--
Aristeu

#3 lore raw
In reply to Alex Zeffertt
Quoted 7 lines

On a similar note... I've noticed that the fcc_enet driver does not appear to detect when the link goes down, or re-autonegotiate when it comes back up. I wonder if anybody has a fix for this?

PS I too am using the ELDK 3.1.1 linux-2.4.25 kernel, but with a PM828 devel board.

Sorry all, I think I've spotted the problem now. From fcc_enet.c:

	/* Some boards don't have the MDIRQ line connected (PM826 is such a board) */

Alex