Changes

Jump to: navigation, search
Enabling dual Ethernet configuration in linux kernel
Alternatively kernel and device tree can 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 build the patch <code>0001-dts-bora-add-ETH1-phy-supportan006.patchdtb</code> included in the pre-build binaries packagedevicetree
* build the updated kernel source as usual.
 
Here is the patch to enable dual Ethernet:
<pre>
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>;
</pre>
Put the binaries on the first (FAT32) partition of your BELK SD card, overwriting the original one if needed. Please note that you need the following files:
* <code>uImage</code>
* <code>fpga.bin</code>
* <code>u-boot.img</code>
* <code>uEnv.txt</code>
a000298_approval, dave_user
551
edits

Navigation menu