Changes

Jump to: navigation, search
Enabling dual Ethernet configuration in linux kernel
==Enabling dual Ethernet configuration in linux kernel==
To enable dual Ethernet user need needs to:* get the pre-built binaries from this [http://www.dave.eu/system/files/area-riservata/AN-BELK-006-sw.zip link].
Kernel Alternatively kernel and device tree can also be built from sources with the following procedure:
* update Bora kernel repository (as described [[Bora_Embedded_Linux_Kit_(BELK)#Updating_the_repositories_from_BELK_2.1.0_to_BELK_2.2.0|here]])
* apply the patch ''<code>0001-dts-bora-add-ETH1-phy-support.patch'' </code> included in the pre-build binaries package* build the updated kernel source as usual.
Here is the patch to enable dual Ethernet:
<pre>
From 8807f6acb794acafbe0f08efbacf4b7cfd2c18f5 Mon Sep 17 00:00:00 2001
From: Matteo Geromin <matteo.geromin@dave.eu>
Date: Fri, 11 Sep 2015 17:48:46 +0200
Subject: [PATCH] dts: bora: add ETH1 phy support
 
---
arch/arm/boot/dts/bora.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
 
diff --git a/arch/arm/boot/dts/bora.dts b/arch/arm/boot/dts/bora.dts
index 654770e..35697cd 100644
status = "okay";
broken-cd = <0x1>;
--
1.7.9.5
 
</pre>
Put the binaries on the first (FAT32) partition of your BELK 2.2.0 SD card, overwriting the original one if needed. Please note that you need the following files:
* <code>boot.bin</code>* <code>bora.dtb</code>* <code>uImage</code>* <code>fpga.bin</code>* <code>uEnv.txt</code>
Insert the SD card into BoraEVB and turn on the board.
RX bytes:788 (788.0 B) TX bytes:788 (788.0 B)
root@bora:~#
root@bora:~# ifconfig eth1 192.168.12.209
root@bora:~#
root@bora:~# [ 228.492886] xemacps e000c000.ethernet: Set clk to 0 Hz
[ 228.498079] xemacps e000c000.ethernet: link up (1000/FULL)
 
root@bora:~#
</pre>
===Performance testtests=== To test the performances of the second Ethernet interface an Iperf test has <code>iperf</code> based tests have been executed.====Test #1====
The two interfaces are connected on the same Host machine via a gigabit switch.
</pre>
====Test #2====
On another test setup the ETH0 is connected as before to a Linux Host machine via Gigabit switch. The ETH1 is point-to-point on a second Linux Host machine.
4,650
edits

Navigation menu