136
edits
Changes
no edit summary
The following picture shows the block diagram of the Vivado project:
[[File:An-belk-005006-0201.png|800px]]
==Enabling dual Ethernet configuration in linux kernel==
To enable frame buffer driver dual Ethernet user need to:* get the pre-built binaries from this [http://www.dave.eu/system/files/area-riservata/AN-BELK-005006-sw.zip link].
Kernel and device tree can also be built 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]])
* checkout apply the patch ''bora0001-featdts-lcdbora-support'' branch (using ''git checkout boraadd-featETH1-lcdphy-support.patch'' command)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
--- a/arch/arm/boot/dts/bora.dts
+++ b/arch/arm/boot/dts/bora.dts
@@ -59,6 +59,25 @@
};
};
+&gem1 {
+ status = "okay";
+ phy-mode = "rgmii-id";
+ phy-handle = <&phy1>;
+ gmii2rgmii-phy-handle = <&phy2>;
+
+ phy1: phy@6 {
+ compatible = "micrel,ksz9031";
+ device_type = "ethernet-phy";
+ rxc-skew-ps = <1860>;
+ txc-skew-ps = <1860>;
+ reg = <6>;
+ };
+
+ phy2: phy@8 {
+ reg = <8>;
+ };
+};
+
&sdhci0 {
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:
Insert the SD card into BoraEVB and turn on the board.
During kernel bootstrapboot, user can check if the following messages are printed out on console, indicating framebuffer driver second ethernet interface has been loaded succesfully:<pre>root@bora:~# ifconfig -acan0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 NOARP MTU:16 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:60 eth0 Link encap:Ethernet HWaddr 00:50:C2:B9:CF:82 inet addr:192.168.0.209 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8424 errors:5 dropped:418 overruns:0 frame:0 TX packets:5964 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7562500 (7.2 MiB) TX bytes:922668 (901.0 KiB) Interrupt:54 Base address:0xb000 eth1 Link encap:Ethernet HWaddr 66:94:55:CB:B1:3E BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:77 Base address:0xc000
</pre>
===Performance test===
TBD