Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
litesom:devicetree:eth [2017/05/16 18:15] filug [Device Tree configuration] |
litesom:devicetree:eth [2021/05/10 13:58] (current) kateryna.kozakova |
''i.MX6UL'' contains Dual-Megabit Ethernet Controller. Below you can see how this peripheral is configured for [[litesom:liteboard|the liteboard]]. | ''i.MX6UL'' contains Dual-Megabit Ethernet Controller. Below you can see how this peripheral is configured for [[litesom:liteboard|the liteboard]]. |
| |
===== LAN8720A - PHY device ===== | ===== PHY device ===== |
| |
<columns 100% 50% - -> | <columns 100% 50% - -> |
{{ :litesom:devicetree:liteboard_phy.png?direct&600 }} | {{ :litesom:devicetree:liteboard_phy.png?direct&600 }} |
<newcolumn> | <newcolumn> |
[[litesom:liteboard|Liteboard]] is using external [[http://www.microchip.com/wwwproducts/en/LAN8720A|LAN8720A]] 10BASE-T/100BASE-TX transceiver connected with [[:liteSOM]] via <tooltip title="Reduced Media Independent Interface">RMII™</tooltip> interface. | [[litesom:liteboard|Liteboard]] is using external [[https://www.microchip.com/wwwproducts/en/LAN8720A|LAN8720A]] 10BASE-T/100BASE-TX transceiver connected with [[:liteSOM]] via <tooltip title="Reduced Media Independent Interface">RMII™</tooltip> interface. |
| |
Following signals are required to connect [[:liteSOM ]] with [[http://www.microchip.com/wwwproducts/en/LAN8720A|LAN8720A]] via RMII™: | Following signals are required to connect [[:liteSOM ]] with [[https://www.microchip.com/wwwproducts/en/LAN8720A|LAN8720A]] via RMII™: |
| |
* ''ETH_TXD0/1'' - transit data, | * ''ETH_TXD0/1'' - transit data, |
* ''ETH_REFCLK'' - reference clock. | * ''ETH_REFCLK'' - reference clock. |
| |
In addition [[http://www.microchip.com/wwwproducts/en/LAN8720A|LAN8720A]] and [[:liteSOM]] are connected via <tooltip title="Serial Management Interface">SMI</tooltip> signals: | In addition [[https://www.microchip.com/wwwproducts/en/LAN8720A|LAN8720A]] and [[:liteSOM]] are connected via <tooltip title="Serial Management Interface">SMI</tooltip> signals: |
| |
* ''ETH_MDIO'' - SMI data input/output, | * ''ETH_MDIO'' - SMI data input/output, |
| |
===== Network configuration ===== | ===== Network configuration ===== |
| |
| Default [[litesom:buildroot|Buildroot]] configuration for [[litesom:liteboard|the liteboard]] is using <tooltip title="Dynamic Host Configuration Protocol">DHCP</tooltip> to configure internet connection. |
| This behavior can be changed via ''BR2_SYSTEM_DHCP'' configuration item. |
| |
| <button collapse="BR2_SYSTEM_DHCP">Show info about BR2_SYSTEM_DHCP</button> |
| <collapse id="BR2_SYSTEM_DHCP" collapsed="true"> |
| <well> |
| **Location** |
| |
| <code> |
| -> System configuration |
| -> Network interface to configure through DHCP |
| </code> |
| |
| **Help** |
| |
| <code> |
| Enter here the name of the network interface (E.G. eth0) to |
| automatically configure through DHCP at bootup. |
| |
| If left empty, no automatic DHCP requests will take place. |
| |
| For more complicated network setups use an overlay to overwrite |
| /etc/network/interfaces or add a networkd configuration file. |
| </code> |
| </well> |
| </collapse> |
| |
| If you want to modify ''/etc/network/interfaces'' file please read [[https://wiki.debian.org/NetworkConfiguration|Network Configuration]] howto from [[https://wiki.debian.org|Debian Wiki]]. |
| |
| ==== Network status ==== |
| |
Current network status you can verify by ''ifconfig eth0'' command | Current network status you can verify by ''ifconfig eth0'' command |
| |
<code> | <code> |
| # ifconfig eth0 |
eth0 Link encap:Ethernet HWaddr 9E:EE:5F:94:B8:D3 | eth0 Link encap:Ethernet HWaddr 9E:EE:5F:94:B8:D3 |
inet addr:10.42.0.133 Bcast:10.42.0.255 Mask:255.255.255.0 | inet addr:10.42.0.133 Bcast:10.42.0.255 Mask:255.255.255.0 |
| |
<code> | <code> |
| # ip address show eth0 |
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000 | 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000 |
link/ether 9e:ee:5f:94:b8:d3 brd ff:ff:ff:ff:ff:ff | link/ether 9e:ee:5f:94:b8:d3 brd ff:ff:ff:ff:ff:ff |