Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:add-ons:m2xeth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:add-ons:m2xeth [2022/07/08 03:20]
hyphop
products:sbc:common:add-ons:m2xeth [2024/03/19 03:46] (current)
ivan
Line 1: Line 1:
-====== M2X Ethernet ======+====== Ethernet on M2X ======
  
 ===== Introduction ===== ===== Introduction =====
  
-This document mainly introduces the usage of M2X Ethernet. The first part of the document is about how to use it under Ubuntu, and the second part is about how to use it under Android.+This document mainly introduces the usage of Ethernet on [[https://www.khadas.com/product-page/m2x-extension-board | M2X]] . Mainly about how to use it under Ubuntu.
  
 ===== Ubuntu ===== ===== Ubuntu =====
Line 11: Line 11:
 Please make sure you use the latest image, if not please follow [[/products/sbc/common/configurations/upgrade-system|Upgrade The System]] to upgrade your system. Please make sure you use the latest image, if not please follow [[/products/sbc/common/configurations/upgrade-system|Upgrade The System]] to upgrade your system.
  
 +===== For 4.9 kernel =====
 ==== Enable M2X Eth ==== ==== Enable M2X Eth ====
  
 Open ''/boot/env.txt'', add ''m2x-eth'' to overlay. Open ''/boot/env.txt'', add ''m2x-eth'' to overlay.
  
-```sh+```shell
 $ sudo vim /boot/env.txt $ sudo vim /boot/env.txt
  
 overlays=uart3 pwm_f i2c3 os08a10 --> overlays=uart3 pwm_f i2c3 os08a10 m2x-eth overlays=uart3 pwm_f i2c3 os08a10 --> overlays=uart3 pwm_f i2c3 os08a10 m2x-eth
 +```
 +```shell
 +$ sync
 ``` ```
  
 +Reboot to effect.
 +
 +===== For 5.15 kernel =====
 +==== Enable M2X Eth ====
 +
 +Open ''kvim*.dtb.overlay.env'', add ''m2x-eth'' to overlay,take VIM3 as an example.
 +
 +```shell
 +$ sudo vim /boot/dtb/amlogic/kvim3.dtb.overlay.env
 +
 +fdt_overlays=m2x-eth
 +```
 +```shell
 +$ sync
 +```
 Reboot to effect. Reboot to effect.
  
Line 27: Line 46:
 Get IP addresss. Get IP addresss.
  
-```sh+```shell
 khadas@Khadas:~$ ifconfig khadas@Khadas:~$ ifconfig
 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
Line 42: Line 61:
 Go online! Go online!
  
-```sh+```shell
 khadas@Khadas:~$ ping www.khadas.com khadas@Khadas:~$ ping www.khadas.com
 PING td-balancer-sv5-61-96.wixdns.net (185.230.61.96) 56(84) bytes of data. PING td-balancer-sv5-61-96.wixdns.net (185.230.61.96) 56(84) bytes of data.
Line 48: Line 67:
 64 bytes from 185.230.61.96 (185.230.61.96): icmp_seq=2 ttl=241 time=164 ms 64 bytes from 185.230.61.96 (185.230.61.96): icmp_seq=2 ttl=241 time=164 ms
 64 bytes from 185.230.61.96 (185.230.61.96): icmp_seq=3 ttl=241 time=165 ms 64 bytes from 185.230.61.96 (185.230.61.96): icmp_seq=3 ttl=241 time=165 ms
-……+...
 ``` ```
 +
 +
Last modified: 2022/07/08 03:20 by hyphop