Hi all,
We are trying to port Linux on Xilinx Board XUPV2Pro which is
similar in most aspects to the Xilinx ML300 board. Linux is up and
running for the original board i.e. having only one ethrnet interface.
Now since we wanted to have the board working as router, we designed a
daughter board with two ethernet phy interfaces. The MACs required for
that are instantiated in Xilinx and corresponding Board support
Packages are also created in Xilinx.
What all changes are required to make both the interfaces
visible in Linux?
Thank you in anticipation.
With regards,
Shantanu.
From: Antonio Di Bacco <hidden> Date: 2006-06-03 20:53:59
We are trying to port Linux on Xilinx Board XUPV2Pro which is
similar in most aspects to the Xilinx ML300 board. Linux is up and
running for the original board i.e. having only one ethrnet interface.
Now since we wanted to have the board working as router, we designed a
daughter board with two ethernet phy interfaces. The MACs required for
that are instantiated in Xilinx ....
You have already the driver for the first MAC, then you should start from that
modifying the init procedure for example and all the others. Your driver
should initialize both the MACs and also create two devices calling
init_etherdev tow times. If you post your driver I can suggest what to
change. It is not so difficult.
Bye,
Antonio.
From: Andy Fleming <hidden> Date: 2006-06-06 02:39:50
On Jun 3, 2006, at 15:55, Antonio Di Bacco wrote:
quoted
We are trying to port Linux on Xilinx Board XUPV2Pro
which is
similar in most aspects to the Xilinx ML300 board. Linux is up and
running for the original board i.e. having only one ethrnet
interface.
Now since we wanted to have the board working as router, we
designed a
daughter board with two ethernet phy interfaces. The MACs required
for
that are instantiated in Xilinx ....
You have already the driver for the first MAC, then you should
start from that
modifying the init procedure for example and all the others. Your
driver
should initialize both the MACs and also create two devices calling
init_etherdev tow times. If you post your driver I can suggest what to
change. It is not so difficult.
Generally, it's better to modify the driver so it can be used to
control any number of instances of the same ethernet hardware. Then
instantiate 2 (or how many you like) instances of the device, using
the device layer (typically done in the board-specific code).
Thanks for the reply.
The driver which we are using for the ethernet is provided by Xilinx.
In the Linux kernel source, it is located in net/xilinx_enet
directory. We are attaching the adapter file for the driver provided
by Xilinx for the ethernet.
When we gave a first try, it showed two ethernet interfaces eth0 and
eth1 as an output of ifconfig command but only eth0 works, when eth1
is disabled. When both interfaces are up, neither interface works.
While even when eth0 is disabled, eth1 interface doesn't work.
With regards,
Shantanu.
On 6/4/06, Antonio Di Bacco [off-list ref] wrote:
quoted
We are trying to port Linux on Xilinx Board XUPV2Pro which is
similar in most aspects to the Xilinx ML300 board. Linux is up and
running for the original board i.e. having only one ethrnet interface.
Now since we wanted to have the board working as router, we designed a
daughter board with two ethernet phy interfaces. The MACs required for
that are instantiated in Xilinx ....
You have already the driver for the first MAC, then you should start from that
modifying the init procedure for example and all the others. Your driver
should initialize both the MACs and also create two devices calling
init_etherdev tow times. If you post your driver I can suggest what to
change. It is not so difficult.
Bye,
Antonio.