All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] MPC83xx Ethernet bug
@ 2007-11-19 15:51 Joakim Tjernlund
  2007-11-19 16:12 ` Joakim Tjernlund
  2007-11-20  5:29 ` Liu Dave
  0 siblings, 2 replies; 9+ messages in thread
From: Joakim Tjernlund @ 2007-11-19 15:51 UTC (permalink / raw)
  To: u-boot

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

=> 

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

* [U-Boot-Users] MPC83xx Ethernet bug
  2007-11-19 15:51 [U-Boot-Users] MPC83xx Ethernet bug Joakim Tjernlund
@ 2007-11-19 16:12 ` Joakim Tjernlund
  2007-11-20  5:29 ` Liu Dave
  1 sibling, 0 replies; 9+ messages in thread
From: Joakim Tjernlund @ 2007-11-19 16:12 UTC (permalink / raw)
  To: u-boot

On Mon, 2007-11-19 at 16:51 +0100, Joakim Tjernlund wrote:
> 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

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

* [U-Boot-Users] MPC83xx Ethernet bug
  2007-11-19 15:51 [U-Boot-Users] MPC83xx Ethernet bug Joakim Tjernlund
  2007-11-19 16:12 ` Joakim Tjernlund
@ 2007-11-20  5:29 ` Liu Dave
  2007-11-20  7:51   ` Joakim Tjernlund
  1 sibling, 1 reply; 9+ messages in thread
From: Liu Dave @ 2007-11-20  5:29 UTC (permalink / raw)
  To: u-boot

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

> -----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
> 

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

* [U-Boot-Users] MPC83xx Ethernet bug
  2007-11-20  5:29 ` Liu Dave
@ 2007-11-20  7:51   ` Joakim Tjernlund
  2007-11-21 16:02     ` Joakim Tjernlund
  0 siblings, 1 reply; 9+ messages in thread
From: Joakim Tjernlund @ 2007-11-20  7:51 UTC (permalink / raw)
  To: u-boot

On Tue, 2007-11-20 at 13:29 +0800, Liu Dave wrote:
> 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

> 
> 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

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.

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

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

> Using FSL UEC0 device
> host 10.193.20.133 is alive
> =>
> 
> Thanks,
> Dave
> 
> > -----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
> > 
> 
> 

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

* [U-Boot-Users] MPC83xx Ethernet bug
  2007-11-20  7:51   ` Joakim Tjernlund
@ 2007-11-21 16:02     ` Joakim Tjernlund
  2007-11-21 16:43       ` Ben Warren
  0 siblings, 1 reply; 9+ messages in thread
From: Joakim Tjernlund @ 2007-11-21 16:02 UTC (permalink / raw)
  To: u-boot

Ping?

Jocke 

> -----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
> 
> On Tue, 2007-11-20 at 13:29 +0800, Liu Dave wrote:
> > 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
> 
> > 
> > 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
> 
> 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.
> 
> > Hit any key to stop autoboot:  0
> > => ping 10.193.20.133
> 
> I should have been here as this is the first network operation.
> 
> > Using FSL UEC0 device
> > host 10.193.20.133 is alive
> > =>
> > 
> > Thanks,
> > Dave
> > 
> > > -----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
> 
> 

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

* [U-Boot-Users] MPC83xx Ethernet bug
  2007-11-21 16:02     ` Joakim Tjernlund
@ 2007-11-21 16:43       ` Ben Warren
  2007-11-21 17:29         ` Joakim Tjernlund
  2007-11-21 22:56         ` Andy Fleming
  0 siblings, 2 replies; 9+ messages in thread
From: Ben Warren @ 2007-11-21 16:43 UTC (permalink / raw)
  To: u-boot

Joakim Tjernlund wrote:
> Ping?
>
> Jocke 
>
>   
ACK. Another reason it would be nice to have a PHY library that handles 
fixed connections. Stay tuned...
>> -----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
>>
>> On Tue, 2007-11-20 at 13:29 +0800, Liu Dave wrote:
>>     
>>> 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
>>
>>     
>>> 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
>>>       
>> 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.
>>
>>     
>>> Hit any key to stop autoboot:  0
>>> => ping 10.193.20.133
>>>       
>> I should have been here as this is the first network operation.
>>
>>     
>>> Using FSL UEC0 device
>>> host 10.193.20.133 is alive
>>> =>
>>>
>>> Thanks,
>>> Dave
>>>
>>>       
>>>> -----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
>>>>
>>>> => 
>>>>         
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

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

* [U-Boot-Users] MPC83xx Ethernet bug
  2007-11-21 16:43       ` Ben Warren
@ 2007-11-21 17:29         ` Joakim Tjernlund
  2007-11-25 14:53           ` Joakim Tjernlund
  2007-11-21 22:56         ` Andy Fleming
  1 sibling, 1 reply; 9+ messages in thread
From: Joakim Tjernlund @ 2007-11-21 17:29 UTC (permalink / raw)
  To: u-boot

> -----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:
> > 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]

> >>>> 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
> >>>>
> >>>> => 
> >>>>         
> 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.

> 
> regards,
> Ben

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

* [U-Boot-Users] MPC83xx Ethernet bug
  2007-11-21 16:43       ` Ben Warren
  2007-11-21 17:29         ` Joakim Tjernlund
@ 2007-11-21 22:56         ` Andy Fleming
  1 sibling, 0 replies; 9+ messages in thread
From: Andy Fleming @ 2007-11-21 22:56 UTC (permalink / raw)
  To: u-boot

On Nov 21, 2007 10:43 AM, Ben Warren <bwarren@qstreams.com> wrote:
> Joakim Tjernlund wrote:
> > Ping?
> >
> > Jocke
> >
> >
> ACK. Another reason it would be nice to have a PHY library that handles
> fixed connections. Stay tuned...

AGREED.


>
> >> -----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
> >>
> >> On Tue, 2007-11-20 at 13:29 +0800, Liu Dave wrote:
> >>
> >>> 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
> >>
> >>
> >>> 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
> >>>
> >> 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.
> >>
> >>
> >>> Hit any key to stop autoboot:  0
> >>> => ping 10.193.20.133
> >>>
> >> I should have been here as this is the first network operation.
> >>
> >>
> >>> Using FSL UEC0 device
> >>> host 10.193.20.133 is alive
> >>> =>
> >>>
> >>> Thanks,
> >>> Dave
> >>>
> >>>
> >>>> -----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
> >>>>
> >>>> =>
> >>>>
> 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
>

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

* [U-Boot-Users] MPC83xx Ethernet bug
  2007-11-21 17:29         ` Joakim Tjernlund
@ 2007-11-25 14:53           ` Joakim Tjernlund
  0 siblings, 0 replies; 9+ messages in thread
From: Joakim Tjernlund @ 2007-11-25 14:53 UTC (permalink / raw)
  To: u-boot

> > -----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:
> > > 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]
> 
> > >>>> 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
> > >>>>
> > >>>> => 
> > >>>>         
> > 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

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

end of thread, other threads:[~2007-11-25 14:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-19 15:51 [U-Boot-Users] MPC83xx Ethernet bug Joakim Tjernlund
2007-11-19 16:12 ` Joakim Tjernlund
2007-11-20  5:29 ` Liu Dave
2007-11-20  7:51   ` Joakim Tjernlund
2007-11-21 16:02     ` Joakim Tjernlund
2007-11-21 16:43       ` Ben Warren
2007-11-21 17:29         ` Joakim Tjernlund
2007-11-25 14:53           ` Joakim Tjernlund
2007-11-21 22:56         ` Andy Fleming

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.