Skip to contentSkip to conversation

MPC83xx Ethernet bug

U-Boot-Users Joakim Tjernlund 4 participants 9 messages Nov 19, 2007 – Nov 25, 2007

lore
Share & tools
lore
#0 lore raw

Just tried to move my 83xx based board to latest u-boot and noticed an old problem. u-boot tries to bring up the ethernet at startup, not the first time it is used:

U-Boot 1.3.0-rc3-g992742a5-dirty (Nov 19 2007 - 16:45:18)

Reset Status: External/Internal Soft, External/Internal Hard

CPU:   e300c2, MPC8323E, Rev: 10 at 266.664 MHz, CSB:  133 MHz
Board: Transmode CU

I2C reset sequence.
I2C: ready
DRAM:
DDR RAM: 256 MB

FLASH: 128 MB
In:    serial
Out:   serial
Err:   serial
Net:   read wrong value : mii_id 3,mii_reg 2, base e0102320
read wrong value : mii_id 3,mii_reg 3, base e0102320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 3,mii_reg 1, base e0102320
read wrong value : mii_id 3,mii_reg 5, base e0102320
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
read wrong value : mii_id 4,mii_reg 2, base e0103320
read wrong value : mii_id 4,mii_reg 3, base e0103320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 5, base e0103320
FSL UEC1: Full Duplex
FSL UEC1: Speed 100BT
FSL UEC1: Link is up

FSL UEC0, FSL UEC1
read wrong value : mii_id 3,mii_reg 1, base e0102320

=>

#1 lore raw
Quoted 9 lines · Joakim Tjernlund

Just tried to move my 83xx based board to latest u-boot and noticed an old problem. u-boot tries to bring up the ethernet at startup, not the first time it is used:

U-Boot 1.3.0-rc3-g992742a5-dirty (Nov 19 2007 - 16:45:18)

Reset Status: External/Internal Soft, External/Internal Hard

CPU: e300c2, MPC8323E, Rev: 10 at 266.664 MHz, CSB: 133 MHz

Looked into uec_phy.c driver to find the source of:
read wrong value : mii_id 3,mii_reg 3, base e0102320
I don't have PHYs in my system and I wonder if there is a way to avoid this message?

Also, there is a udelay(100000) in that function, uec_read_phy_reg(), that slows it down alot. Is that really needed?

Jocke

#2 lore raw
In reply to Joakim Tjernlund

Hello Joakim,

I did the test u-boot-1.3.0 wolfgang just released on mpc832xemds board, I did not see the issue that you said.

U-Boot 1.3.0 (Nov 20 2007 - 13:30:24) MPC83XX

Reset Status:

CPU:   e300c2, MPC8323E, Rev: 10 at 264 MHz, CSB:  132 MHz
Board: Freescale MPC832XEMDS
I2C:   ready
DRAM:  128 MB
FLASH: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   UEC: PHY is Davicom DM9161A (181b8a0)
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
UEC: PHY is Davicom DM9161A (181b8a0)

FSL UEC0, FSL UEC1
Hit any key to stop autoboot: 0
=> ping 10.193.20.133
Using FSL UEC0 device
host 10.193.20.133 is alive
=>

Thanks,
Dave

Quoted 58 lines

-----Original Message-----
From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Joakim Tjernlund
Sent: 2007?11?19? 11:51 PM
To: U-BOOT
Subject: [U-Boot-Users] MPC83xx Ethernet bug

Just tried to move my 83xx based board to latest u-boot and noticed an old problem. u-boot tries to bring up the ethernet at startup, not the first time it is used:

U-Boot 1.3.0-rc3-g992742a5-dirty (Nov 19 2007 - 16:45:18)

Reset Status: External/Internal Soft, External/Internal Hard

CPU:   e300c2, MPC8323E, Rev: 10 at 266.664 MHz, CSB:  133 MHz
Board: Transmode CU
I2C reset sequence.
I2C:   ready
DRAM:  
   DDR RAM: 256 MB
FLASH: 128 MB
In:    serial
Out:   serial
Err:   serial
Net:   read wrong value : mii_id 3,mii_reg 2, base e0102320
read wrong value : mii_id 3,mii_reg 3, base e0102320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 3,mii_reg 1, base e0102320
read wrong value : mii_id 3,mii_reg 5, base e0102320
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
read wrong value : mii_id 4,mii_reg 2, base e0103320
read wrong value : mii_id 4,mii_reg 3, base e0103320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 5, base e0103320
FSL UEC1: Full Duplex
FSL UEC1: Speed 100BT
FSL UEC1: Link is up

FSL UEC0, FSL UEC1
read wrong value : mii_id 3,mii_reg 1, base e0102320

=>

--------------------------------------------------------------
-----------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

#3 lore raw
Quoted 4 lines · Liu Dave

Hello Joakim,

I did the test u-boot-1.3.0 wolfgang just released on mpc832xemds board, I did not see the issue that you said.

But you did, see below

Quoted 18 lines

U-Boot 1.3.0 (Nov 20 2007 - 13:30:24) MPC83XX

Reset Status:

CPU:   e300c2, MPC8323E, Rev: 10 at 264 MHz, CSB:  132 MHz
Board: Freescale MPC832XEMDS
I2C:   ready
DRAM:  128 MB
FLASH: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   UEC: PHY is Davicom DM9161A (181b8a0)
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
UEC: PHY is Davicom DM9161A (181b8a0)
Quoted 1 line

FSL UEC0, FSL UEC1

Here it is, the network i/f is initialized without any network activity. This adds several extra seconds before prompt or boot as the mdio code has big delays in it.

Quoted 2 lines

Hit any key to stop autoboot: 0
=> ping 10.193.20.133

I should have been here as this is the first network operation.

Quoted 67 lines

Using FSL UEC0 device
host 10.193.20.133 is alive
=>

Thanks,
Dave

Quoted 58 lines

-----Original Message-----
From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Joakim Tjernlund
Sent: 2007?11?19? 11:51 PM
To: U-BOOT
Subject: [U-Boot-Users] MPC83xx Ethernet bug

Just tried to move my 83xx based board to latest u-boot and noticed an old problem. u-boot tries to bring up the ethernet at startup, not the first time it is used:

U-Boot 1.3.0-rc3-g992742a5-dirty (Nov 19 2007 - 16:45:18)

Reset Status: External/Internal Soft, External/Internal Hard

CPU:   e300c2, MPC8323E, Rev: 10 at 266.664 MHz, CSB:  133 MHz
Board: Transmode CU
I2C reset sequence.
I2C:   ready
DRAM:  
   DDR RAM: 256 MB
FLASH: 128 MB
In:    serial
Out:   serial
Err:   serial
Net:   read wrong value : mii_id 3,mii_reg 2, base e0102320
read wrong value : mii_id 3,mii_reg 3, base e0102320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 3,mii_reg 1, base e0102320
read wrong value : mii_id 3,mii_reg 5, base e0102320
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
read wrong value : mii_id 4,mii_reg 2, base e0103320
read wrong value : mii_id 4,mii_reg 3, base e0103320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 5, base e0103320
FSL UEC1: Full Duplex
FSL UEC1: Speed 100BT
FSL UEC1: Link is up

FSL UEC0, FSL UEC1
read wrong value : mii_id 3,mii_reg 1, base e0102320

=>

--------------------------------------------------------------
-----------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

#4 lore raw

Ping?

Jocke

Quoted 126 lines

-----Original Message-----
From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Joakim Tjernlund
Sent: den 20 november 2007 08:52
To: Liu Dave
Cc: U-BOOT
Subject: Re: [U-Boot-Users] MPC83xx Ethernet bug

Quoted 4 lines · Liu Dave

Hello Joakim,

I did the test u-boot-1.3.0 wolfgang just released on mpc832xemds board, I did not see the issue that you said.

But you did, see below

Quoted 18 lines

U-Boot 1.3.0 (Nov 20 2007 - 13:30:24) MPC83XX

Reset Status:

CPU:   e300c2, MPC8323E, Rev: 10 at 264 MHz, CSB:  132 MHz
Board: Freescale MPC832XEMDS
I2C:   ready
DRAM:  128 MB
FLASH: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   UEC: PHY is Davicom DM9161A (181b8a0)
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
UEC: PHY is Davicom DM9161A (181b8a0)
Quoted 1 line

FSL UEC0, FSL UEC1

Here it is, the network i/f is initialized without any network activity.
This adds several extra seconds before prompt or boot as the mdio code has big delays in it.

Quoted 2 lines

Hit any key to stop autoboot: 0
=> ping 10.193.20.133

I should have been here as this is the first network operation.

Quoted 4 lines

Using FSL UEC0 device
host 10.193.20.133 is alive
=>

Quoted 63 lines

Thanks,
Dave

Quoted 58 lines

-----Original Message-----
From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Joakim Tjernlund
Sent: 2007?11?19? 11:51 PM
To: U-BOOT
Subject: [U-Boot-Users] MPC83xx Ethernet bug

Just tried to move my 83xx based board to latest u-boot and noticed an old problem. u-boot tries to bring up the ethernet at startup, not the first time it is used:

U-Boot 1.3.0-rc3-g992742a5-dirty (Nov 19 2007 - 16:45:18)

Reset Status: External/Internal Soft, External/Internal Hard

CPU:   e300c2, MPC8323E, Rev: 10 at 266.664 MHz, CSB:  133 MHz
Board: Transmode CU
I2C reset sequence.
I2C:   ready
DRAM:  
   DDR RAM: 256 MB
FLASH: 128 MB
In:    serial
Out:   serial
Err:   serial
Net:   read wrong value : mii_id 3,mii_reg 2, base e0102320
read wrong value : mii_id 3,mii_reg 3, base e0102320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 3,mii_reg 1, base e0102320
read wrong value : mii_id 3,mii_reg 5, base e0102320
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
read wrong value : mii_id 4,mii_reg 2, base e0103320
read wrong value : mii_id 4,mii_reg 3, base e0103320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 5, base e0103320
FSL UEC1: Full Duplex
FSL UEC1: Speed 100BT
FSL UEC1: Link is up

FSL UEC0, FSL UEC1
read wrong value : mii_id 3,mii_reg 1, base e0102320

=>

--------------------------------------------------------------
-----------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

--------------------------------------------------------------
-----------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

#5 lore raw
Quoted 5 lines · Joakim Tjernlund

Ping?

Jocke

ACK. Another reason it would be nice to have a PHY library that handles fixed connections. Stay tuned...

Quoted 104 lines
Quoted 104 lines

-----Original Message-----
From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Joakim Tjernlund
Sent: den 20 november 2007 08:52
To: Liu Dave
Cc: U-BOOT
Subject: Re: [U-Boot-Users] MPC83xx Ethernet bug

Quoted 5 lines · Liu Dave

Hello Joakim,

I did the test u-boot-1.3.0 wolfgang just released on mpc832xemds board, I did not see the issue that you said.

But you did, see below

Quoted 17 lines

U-Boot 1.3.0 (Nov 20 2007 - 13:30:24) MPC83XX

Reset Status:

CPU:   e300c2, MPC8323E, Rev: 10 at 264 MHz, CSB:  132 MHz
Board: Freescale MPC832XEMDS
I2C:   ready
DRAM:  128 MB
FLASH: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   UEC: PHY is Davicom DM9161A (181b8a0)
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
UEC: PHY is Davicom DM9161A (181b8a0)
Quoted 2 lines

FSL UEC0, FSL UEC1

Here it is, the network i/f is initialized without any network activity.
This adds several extra seconds before prompt or boot as the mdio code has big delays in it.

Quoted 3 lines

Hit any key to stop autoboot: 0
=> ping 10.193.20.133

I should have been here as this is the first network operation.

Quoted 54 lines

Using FSL UEC0 device
host 10.193.20.133 is alive
=>

Thanks,
Dave

Quoted 46 lines

-----Original Message-----
From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Joakim Tjernlund
Sent: 2007?11?19? 11:51 PM
To: U-BOOT
Subject: [U-Boot-Users] MPC83xx Ethernet bug

Just tried to move my 83xx based board to latest u-boot and noticed an old problem. u-boot tries to bring up the ethernet at startup, not the first time it is used:

U-Boot 1.3.0-rc3-g992742a5-dirty (Nov 19 2007 - 16:45:18)

Reset Status: External/Internal Soft, External/Internal Hard

CPU:   e300c2, MPC8323E, Rev: 10 at 266.664 MHz, CSB:  133 MHz
Board: Transmode CU
I2C reset sequence.
I2C:   ready
DRAM:  
   DDR RAM: 256 MB
FLASH: 128 MB
In:    serial
Out:   serial
Err:   serial
Net:   read wrong value : mii_id 3,mii_reg 2, base e0102320
read wrong value : mii_id 3,mii_reg 3, base e0102320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 3,mii_reg 1, base e0102320
read wrong value : mii_id 3,mii_reg 5, base e0102320
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
read wrong value : mii_id 4,mii_reg 2, base e0103320
read wrong value : mii_id 4,mii_reg 3, base e0103320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 5, base e0103320
FSL UEC1: Full Duplex
FSL UEC1: Speed 100BT
FSL UEC1: Link is up

FSL UEC0, FSL UEC1
read wrong value : mii_id 3,mii_reg 1, base e0102320

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

=>

I don't know why the calls to init_phy() and phy_change() are in uec_initialize() instead of uec_init(). Moving them should at least prevent this stuff at boot-up.

regards,
Ben

#6 lore raw
Quoted 8 lines

-----Original Message-----
From: Ben Warren [mailto:bwarren at qstreams.com]
Sent: den 21 november 2007 17:43
To: Joakim Tjernlund
Cc: 'Liu Dave'; 'U-BOOT'
Subject: Re: [U-Boot-Users] MPC83xx Ethernet bug

Joakim Tjernlund wrote:

Quoted 8 lines
Quoted 5 lines

Ping?

Jocke

ACK. Another reason it would be nice to have a PHY library that handles
fixed connections. Stay tuned...

Yes, got plenty of fixed PHYs, even a mix of real PHYs and fixed PHYs on the same board.

[SNIP]

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
In:    serial
Out:   serial
Err:   serial
Net:   read wrong value : mii_id 3,mii_reg 2, base e0102320
read wrong value : mii_id 3,mii_reg 3, base e0102320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 3,mii_reg 1, base e0102320
read wrong value : mii_id 3,mii_reg 5, base e0102320
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
read wrong value : mii_id 4,mii_reg 2, base e0103320
read wrong value : mii_id 4,mii_reg 3, base e0103320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 5, base e0103320
FSL UEC1: Full Duplex
FSL UEC1: Speed 100BT
FSL UEC1: Link is up

FSL UEC0, FSL UEC1
read wrong value : mii_id 3,mii_reg 1, base e0102320

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

=>

I don't know why the calls to init_phy() and phy_change() are in uec_initialize() instead of uec_init(). Moving them should at least prevent this stuff at boot-up.

Me neither, that is why I am bugging the Freescale guys who put it there :). Moving it before next release would be a good thing.

Quoted 3 lines

regards,
Ben

#7 lore raw
Quoted 46 lines
Quoted 8 lines

-----Original Message-----
From: Ben Warren [mailto:bwarren at qstreams.com]
Sent: den 21 november 2007 17:43
To: Joakim Tjernlund
Cc: 'Liu Dave'; 'U-BOOT'
Subject: Re: [U-Boot-Users] MPC83xx Ethernet bug

Joakim Tjernlund wrote:

Quoted 8 lines
Quoted 5 lines

Ping?

Jocke

ACK. Another reason it would be nice to have a PHY library that handles
fixed connections. Stay tuned...

Yes, got plenty of fixed PHYs, even a mix of real PHYs and fixed PHYs on
the same board.

[SNIP]

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
In:    serial
Out:   serial
Err:   serial
Net:   read wrong value : mii_id 3,mii_reg 2, base e0102320
read wrong value : mii_id 3,mii_reg 3, base e0102320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 3,mii_reg 1, base e0102320
read wrong value : mii_id 3,mii_reg 5, base e0102320
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
read wrong value : mii_id 4,mii_reg 2, base e0103320
read wrong value : mii_id 4,mii_reg 3, base e0103320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 5, base e0103320
FSL UEC1: Full Duplex
FSL UEC1: Speed 100BT
FSL UEC1: Link is up

FSL UEC0, FSL UEC1
read wrong value : mii_id 3,mii_reg 1, base e0102320

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

=>

I don't know why the calls to init_phy() and phy_change() are in uec_initialize() instead of uec_init(). Moving them should at least prevent this stuff at boot-up.

Me neither, that is why I am bugging the Freescale guys who put it there :). Moving it before next release would be a good thing.

Dave, have you had a chance to look into this?

Jocke

#8 lore raw
In reply to Ben Warren
Quoted 8 lines · Ben Warren
Quoted 5 lines · Joakim Tjernlund

Ping?

Jocke

ACK. Another reason it would be nice to have a PHY library that handles fixed connections. Stay tuned...

AGREED.

Quoted 124 lines
Quoted 105 lines
Quoted 105 lines

-----Original Message-----
From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Joakim Tjernlund
Sent: den 20 november 2007 08:52
To: Liu Dave
Cc: U-BOOT
Subject: Re: [U-Boot-Users] MPC83xx Ethernet bug

Quoted 5 lines · Liu Dave

Hello Joakim,

I did the test u-boot-1.3.0 wolfgang just released on mpc832xemds board, I did not see the issue that you said.

But you did, see below

Quoted 17 lines

U-Boot 1.3.0 (Nov 20 2007 - 13:30:24) MPC83XX

Reset Status:

CPU:   e300c2, MPC8323E, Rev: 10 at 264 MHz, CSB:  132 MHz
Board: Freescale MPC832XEMDS
I2C:   ready
DRAM:  128 MB
FLASH: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   UEC: PHY is Davicom DM9161A (181b8a0)
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
UEC: PHY is Davicom DM9161A (181b8a0)
Quoted 2 lines

FSL UEC0, FSL UEC1

Here it is, the network i/f is initialized without any network activity.
This adds several extra seconds before prompt or boot as the mdio code has big delays in it.

Quoted 3 lines

Hit any key to stop autoboot: 0
=> ping 10.193.20.133

I should have been here as this is the first network operation.

Quoted 54 lines

Using FSL UEC0 device
host 10.193.20.133 is alive
=>

Thanks,
Dave

Quoted 46 lines

-----Original Message-----
From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Joakim Tjernlund
Sent: 2007?11?19? 11:51 PM
To: U-BOOT
Subject: [U-Boot-Users] MPC83xx Ethernet bug

Just tried to move my 83xx based board to latest u-boot and noticed an old problem. u-boot tries to bring up the ethernet at startup, not the first time it is used:

U-Boot 1.3.0-rc3-g992742a5-dirty (Nov 19 2007 - 16:45:18)

Reset Status: External/Internal Soft, External/Internal Hard

CPU:   e300c2, MPC8323E, Rev: 10 at 266.664 MHz, CSB:  133 MHz
Board: Transmode CU
I2C reset sequence.
I2C:   ready
DRAM:
   DDR RAM: 256 MB
FLASH: 128 MB
In:    serial
Out:   serial
Err:   serial
Net:   read wrong value : mii_id 3,mii_reg 2, base e0102320
read wrong value : mii_id 3,mii_reg 3, base e0102320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 3,mii_reg 1, base e0102320
read wrong value : mii_id 3,mii_reg 5, base e0102320
FSL UEC0: Full Duplex
FSL UEC0: Speed 100BT
FSL UEC0: Link is up
read wrong value : mii_id 4,mii_reg 2, base e0103320
read wrong value : mii_id 4,mii_reg 3, base e0103320
UEC: PHY is Generic MII (ffffffff)
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 1, base e0103320
read wrong value : mii_id 4,mii_reg 5, base e0103320
FSL UEC1: Full Duplex
FSL UEC1: Speed 100BT
FSL UEC1: Link is up

FSL UEC0, FSL UEC1
read wrong value : mii_id 3,mii_reg 1, base e0102320

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

=>

I don't know why the calls to init_phy() and phy_change() are in uec_initialize() instead of uec_init(). Moving them should at least prevent this stuff at boot-up.

regards,
Ben

-------------------------------------------------------------------------

This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users