Skip to contentSkip to conversation

EDK10.1 and emaclite

DISCUSSION Neeraj Garg 4 participants 8 messages Sep 9, 2008

lore
Share & tools
lore
#0 lore raw

Hi Georg,

Can you post linux bootup message where its says PHY is detected at paticular address, and check with your hardware what is actual address of PHY. Also I would like to know the configuration of your hardware whether its configured of 10MBPS OR 100MBPS.

------------------------------------------------------------------------------------------
--
Neeraj Garg

Message: 3
Date: Mon, 08 Sep 2008 18:29:53 +0200
From: Georg Schardt <[email protected]>
Subject: EDK10.1 and emaclite
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi all,

im trying to use the emaclite core which comes with the EDK10.1 with the 2.6.26 kernel from git.xilinx.com on virtex4fx12 minimodul. the emac is detect by the kernel:

xilinx_emaclite xilinx_emaclite.0: MAC address is now 2: 0: 0: 0: 0: 0 xilinx_emaclite xilinx_emaclite.0: using fifo mode.
xilinx_emaclite xilinx_emaclite.0: Xilinx EMACLite at 0x81000000 mapped to 0xC5060000, irq=0

i can change the mac-address with ifconfig and i can give an ip-address to the device, but a ping is not possible and arp is not working. i think that the phy is not working right.

has someone others the same problem ? what can i changed ? i have tried out all possible phy driver in the linux kernel

a setup with the lltemac is working fine, but i want to use the emaclite

thanks
regards
georg

#1 lore raw

Hi again,

mmh, there is no kernel message with PHY detection, but all PHY drivers are compiled in.
i looked at my xps project and there is only one ip-core "Ethernet_MAC" with type "xps_ethernetlite".
is it possible that the phy connection is missing ? i use the base system builder with the board support files supported from avnet.

where can i look for the ethernet speed ? the ethernetlite ip has no speed options

thanks for your help
georg

Quoted 39 lines · Neeraj Garg

Hi Georg,

Can you post linux bootup message where its says PHY is detected at paticular address, and check with your hardware what is actual address of PHY. Also I would like to know the configuration of your hardware whether its configured of 10MBPS OR 100MBPS.

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

Signature · 30 lines
Neeraj Garg



Message: 3
Date: Mon, 08 Sep 2008 18:29:53 +0200
From: Georg Schardt <[email protected]>
Subject: EDK10.1 and emaclite
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi all,

im trying to use the emaclite core which comes with the EDK10.1 with the 2.6.26 kernel from git.xilinx.com on virtex4fx12 minimodul. the emac is detect by the kernel:

xilinx_emaclite xilinx_emaclite.0: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_emaclite xilinx_emaclite.0: using fifo mode.
xilinx_emaclite xilinx_emaclite.0: Xilinx EMACLite at 0x81000000 mapped to 0xC5060000, irq=0

i can change the mac-address with ifconfig and i can give an ip-address to the device,
but a ping is not possible and arp is not working. i think that the phy is not working right.

has someone others the same problem ? what can i changed ? i have tried out all possible phy driver in the linux  kernel

a setup with the lltemac is working fine, but i want to use the emaclite

thanks
regards
georg
#2 lore raw

I am using Emac but the configuration is more or less same for the two.

Look at the messages that I am getting at startup

[    3.225313] xilinx_emac xilinx_emac.0: MAC address is now  0:a0:22: 1: 1:f2
[    3.264036] XEmac: using fifo mode.
[    3.288583] XEmac: *Detected PHY at address 0, ManufID 0x0040, Rev. 0x61e4*.
[    3.328138] eth0: Dropping NETIF_F_SG since no checksum feature.
[    3.368685] eth0: Xilinx 10/100 EMAC at 0x11000000 mapped to 0xC3020000, irq=5
[    3.404090] eth0: XEmac id 1.4a, block id 128, type 1

Points that you cant check

First look at ethernet interface RJ45 connector that power is coming, LED should blink.

1) check whether IRQ is right, its zero in your case. If it is right then issue ping and read interrupts arriving on your ethernet interface (cat /proc/interrupts), If number of interrupts are increasing then its sure that your PHY is ok , the problem is with mode selection (10 MBPS, or 100 MBPS) if that is the issue let me know , I'll tell you where to make changes in driver files.

2) If nothing of the above works then there is problem with PHY address detection. You have to look in hardware specification (your hardware board ) to find out PHY address.

-------------------------------------------------------------------
Neeraj Garg

Quoted 51 lines · Georg Schardt

Hi again,

mmh, there is no kernel message with PHY detection, but all PHY drivers are compiled in.
i looked at my xps project and there is only one ip-core "Ethernet_MAC" with type "xps_ethernetlite".
is it possible that the phy connection is missing ? i use the base system builder with the board support files supported from avnet.

where can i look for the ethernet speed ? the ethernetlite ip has no speed options

thanks for your help
georg

Quoted 39 lines · Neeraj Garg

Hi Georg,

Can you post linux bootup message where its says PHY is detected at paticular address, and check with your hardware what is actual address of PHY. Also I would like to know the configuration of your hardware whether its configured of 10MBPS OR 100MBPS.

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

Signature · 30 lines
Neeraj Garg



Message: 3
Date: Mon, 08 Sep 2008 18:29:53 +0200
From: Georg Schardt <[email protected]>
Subject: EDK10.1 and emaclite
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi all,

im trying to use the emaclite core which comes with the EDK10.1 with the 2.6.26 kernel from git.xilinx.com on virtex4fx12 minimodul. the emac is detect by the kernel:

xilinx_emaclite xilinx_emaclite.0: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_emaclite xilinx_emaclite.0: using fifo mode.
xilinx_emaclite xilinx_emaclite.0: Xilinx EMACLite at 0x81000000 mapped to 0xC5060000, irq=0

i can change the mac-address with ifconfig and i can give an ip-address to the device,
but a ping is not possible and arp is not working. i think that the phy is not working right.

has someone others the same problem ? what can i changed ? i have tried out all possible phy driver in the linux  kernel

a setup with the lltemac is working fine, but i want to use the emaclite

thanks
regards
georg
#3 lore raw

Hi Neeraj Garg,

Quoted 1 line

First look at ethernet interface RJ45 connector that power is coming, LED should blink.

Yes, LEDs are blinking, an if a cable is connected the link leds are on. while pinging from the host pc the traffic led in front of the jack is blinking also

Quoted 2 lines

1) check whether IRQ is right, its zero in your case. If it is right then issue ping and read interrupts arriving on your ethernet interface (cat /proc/interrupts), If number of interrupts are increasing then its sure that your PHY is ok , the problem is with mode selection (10 MBPS, or 100 MBPS) if that is the issue let me know , I'll tell you where to make changes in driver files.

no interrupts on eth0:

 0:          0  Xilinx Interrupt Controller Edge      eth0
 1:        889  Xilinx Interrupt Controller Level     serial
Quoted 2 lines

2) If nothing of the above works then there is problem with PHY address detection. You have to look in hardware specification (your hardware board ) to find out PHY address.

Yes, i will try this. i use this board with the edk 8.2 a year ago. with this edk version the emaclite was working fine. but in this project there was an ip core "Hard Temac" this is missing now. i think i have an error in my edk project.

regards
georg

Quoted 59 lines

-------------------------------------------------------------------
Neeraj Garg

Quoted 51 lines · Georg Schardt

Hi again,

mmh, there is no kernel message with PHY detection, but all PHY drivers are compiled in.
i looked at my xps project and there is only one ip-core "Ethernet_MAC" with type "xps_ethernetlite".
is it possible that the phy connection is missing ? i use the base system builder with the board support files supported from avnet.

where can i look for the ethernet speed ? the ethernetlite ip has no speed options

thanks for your help
georg

Quoted 39 lines · Neeraj Garg

Hi Georg,

Can you post linux bootup message where its says PHY is detected at paticular address, and check with your hardware what is actual address of PHY. Also I would like to know the configuration of your hardware whether its configured of 10MBPS OR 100MBPS.

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

Signature · 30 lines
Neeraj Garg



Message: 3
Date: Mon, 08 Sep 2008 18:29:53 +0200
From: Georg Schardt <[email protected]>
Subject: EDK10.1 and emaclite
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi all,

im trying to use the emaclite core which comes with the EDK10.1 with the 2.6.26 kernel from git.xilinx.com on virtex4fx12 minimodul. the emac is detect by the kernel:

xilinx_emaclite xilinx_emaclite.0: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_emaclite xilinx_emaclite.0: using fifo mode.
xilinx_emaclite xilinx_emaclite.0: Xilinx EMACLite at 0x81000000 mapped to 0xC5060000, irq=0

i can change the mac-address with ifconfig and i can give an ip-address to the device,
but a ping is not possible and arp is not working. i think that the phy is not working right.

has someone others the same problem ? what can i changed ? i have tried out all possible phy driver in the linux  kernel

a setup with the lltemac is working fine, but i want to use the emaclite

thanks
regards
georg
#4 lore raw

sorry for the self-reply, but pinging from the minimodul increases the interrupts :-) can you tell me the changes in the driver file ?

thanks
georg

Quoted 78 lines · Georg Schardt

Hi Neeraj Garg,

Quoted 1 line

First look at ethernet interface RJ45 connector that power is coming, LED should blink.

Yes, LEDs are blinking, an if a cable is connected the link leds are on. while pinging from the host pc the traffic led in front of the jack is blinking also

Quoted 2 lines

1) check whether IRQ is right, its zero in your case. If it is right then issue ping and read interrupts arriving on your ethernet interface (cat /proc/interrupts), If number of interrupts are increasing then its sure that your PHY is ok , the problem is with mode selection (10 MBPS, or 100 MBPS) if that is the issue let me know , I'll tell you where to make changes in driver files.

no interrupts on eth0:

 0:          0  Xilinx Interrupt Controller Edge      eth0
 1:        889  Xilinx Interrupt Controller Level     serial
Quoted 2 lines

2) If nothing of the above works then there is problem with PHY address detection. You have to look in hardware specification (your hardware board ) to find out PHY address.

Yes, i will try this. i use this board with the edk 8.2 a year ago. with this edk version the emaclite was working fine. but in this project there was an ip core "Hard Temac" this is missing now. i think i have an error in my edk project.

regards
georg

Quoted 58 lines

-------------------------------------------------------------------
Neeraj Garg

Quoted 51 lines · Georg Schardt

Hi again,

mmh, there is no kernel message with PHY detection, but all PHY drivers are compiled in.
i looked at my xps project and there is only one ip-core "Ethernet_MAC" with type "xps_ethernetlite".
is it possible that the phy connection is missing ? i use the base system builder with the board support files supported from avnet.

where can i look for the ethernet speed ? the ethernetlite ip has no speed options

thanks for your help
georg

Quoted 39 lines · Neeraj Garg

Hi Georg,

Can you post linux bootup message where its says PHY is detected at paticular address, and check with your hardware what is actual address of PHY. Also I would like to know the configuration of your hardware whether its configured of 10MBPS OR 100MBPS.

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

Signature · 30 lines
Neeraj Garg



Message: 3
Date: Mon, 08 Sep 2008 18:29:53 +0200
From: Georg Schardt <[email protected]>
Subject: EDK10.1 and emaclite
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi all,

im trying to use the emaclite core which comes with the EDK10.1 with the 2.6.26 kernel from git.xilinx.com on virtex4fx12 minimodul. the emac is detect by the kernel:

xilinx_emaclite xilinx_emaclite.0: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_emaclite xilinx_emaclite.0: using fifo mode.
xilinx_emaclite xilinx_emaclite.0: Xilinx EMACLite at 0x81000000 mapped to 0xC5060000, irq=0

i can change the mac-address with ifconfig and i can give an ip-address to the device,
but a ping is not possible and arp is not working. i think that the phy is not working right.

has someone others the same problem ? what can i changed ? i have tried out all possible phy driver in the linux  kernel

a setup with the lltemac is working fine, but i want to use the emaclite

thanks
regards
georg

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#6 lore raw
In reply to Georg Schardt

Hi Georg,

There is no way to configure the PHY using the EMAC lite as that's part of what makes it "lite". =

So the PHY on the board has to be configured correctly by strapping it on the board.

Maybe you can include other PHY drivers to do this as I'm not sure about that.

Thanks,
John

Quoted 2 lines

-----Original Message-----
From: [email protected]

[mailto:linuxppc-embedded-

Quoted 11 lines

[email protected]] On Behalf Of Georg Schardt
Sent: Tuesday, September 09, 2008 1:30 AM
To: Neeraj Garg
Cc: [email protected]
Subject: Re: EDK10.1 and emaclite
=

Hi again,
=

mmh, there is no kernel message with PHY detection, but all PHY

drivers

Quoted 2 lines

are compiled in.
i looked at my xps project and there is only one ip-core

"Ethernet_MAC"

Quoted 9 lines

with type "xps_ethernetlite".
is it possible that the phy connection is missing ? i use the base system builder with the board support files supported from avnet. =

where can i look for the ethernet speed ? the ethernetlite ip has no speed options
=

Quoted 9 lines

thanks for your help
georg
=

Quoted 4 lines · Neeraj Garg

Hi Georg,

Can you post linux bootup message where its says PHY is detected at paticular address, and check with your hardware what is actual

address

Quoted 5 lines
Quoted 5 lines

of PHY. Also I would like to know the configuration of your hardware whether its configured of 10MBPS OR 100MBPS.

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

Quoted 14 lines
Quoted 14 lines

--
Neeraj Garg

Message: 3
Date: Mon, 08 Sep 2008 18:29:53 +0200
From: Georg Schardt <[email protected]>
Subject: EDK10.1 and emaclite
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed

Quoted 7 lines
Quoted 7 lines

Hi all,

im trying to use the emaclite core which comes with the EDK10.1 with the 2.6.26 kernel from git.xilinx.com on virtex4fx12 minimodul. the emac is detect by the kernel:

xilinx_emaclite xilinx_emaclite.0: MAC address is now 2: 0: 0: 0:

0: 0

Quoted 9 lines
Quoted 9 lines

xilinx_emaclite xilinx_emaclite.0: using fifo mode. xilinx_emaclite xilinx_emaclite.0: Xilinx EMACLite at 0x81000000 mapped to 0xC5060000, irq=3D0

i can change the mac-address with ifconfig and i can give an ip-address to the device,
but a ping is not possible and arp is not working. i think that the phy is not working right.

Quoted 4 lines
Quoted 4 lines

has someone others the same problem ? what can i changed ? i have tried out all possible phy driver in the linux kernel

a setup with the lltemac is working fine, but i want to use the

emaclite

Quoted 11 lines
Quoted 5 lines

thanks
regards
georg

=

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately.

#7 lore raw

dear george,

Quoted 5 lines · John Linn

There is no way to configure the PHY using the EMAC lite as that's part of what makes it "lite".

So the PHY on the board has to be configured correctly by strapping it on the board.

as john pointed out you can not access the PHY using only the EMAC lite core. connect the MDIO and MDC lines of the PHY to a GPIO core.

then and use the bit banging driver of u-boot (start with #define CONFIG_MII and #define CONFIG_BITBANGMII) or linux (search for CONFIG_MDIO_BITBANG, i've not used it before).

fyi, on our minimodule boards the PHY is located at address #4, u-boot's "mii info" command says:

	PHY 0x04: OUI = 0x0818, Model = 0x0C, Rev = 0x01, 100baseT, FDX

for the inital setup you might want to connect the RJ45 of your minimodule directly to your host pc, probably that's the easiest way for you to see exactly what packets are travelling on the wire.

make sure that the negotiated speed is not 1000baseT, as the EMAC lite can not handle that.

Signature · 5 lines
mazsi

----------------------------------------------------------------
strawberry fields forever!                       [email protected]
----------------------------------------------------------------
#5 lore raw
In reply to Georg Schardt

dear georg,

Quoted 1 line · Georg Schardt

Yes, i will try this. i use this board with the edk 8.2 a year ago. with this edk version the emaclite was working fine. but in this project there was an ip core "Hard Temac" this is missing now. i think i have an error in my edk project.

for the EMAC lite you don't need the hard temac. the work done by the "hard temac" core and the plb_temac (or ll_temac) core together in your old project will be done by the EMAC lite core alone.

so the signals to/from the broadcom PHY on your minimodule should be connected directly to the EMAC lite core:

BEGIN opb_ethernetlite
PARAMETER INSTANCE = etherlite
PARAMETER HW_VER = 1.01.b
PARAMETER C_RX_PING_PONG = 1
PARAMETER C_TX_PING_PONG = 1
...
BUS_INTERFACE sopb = opb
PORT IP2INTC_Irpt = emac_interrupt
PORT phy_rx_data = phy_rxd
PORT phy_tx_data = phy_txd
PORT phy_dv = phy_rxdv
...
END

(but this is probably getting off topic for this list.)

Signature · 5 lines
mazsi

----------------------------------------------------------------
strawberry fields forever!                       [email protected]
----------------------------------------------------------------