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 [2023/03/23 05:40]
xiong
products:sbc:common:add-ons:m2xeth [2024/03/19 03:46] (current)
ivan
Line 3: Line 3:
 ===== Introduction ===== ===== Introduction =====
  
-This document mainly introduces the usage of Ethernet on [[https://www.khadas.com/product-page/m2x-extension-board | M2X]] . 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 ====
  
Line 19: Line 20:
  
 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 51: Line 70:
 ``` ```
  
-===== Android ===== 
- 
-  *before you use the M2x ethernet ,you should enable m2x ethernet by two method 
- 
-===== Enable m2x ethernet on tv setting ===== 
- 
-  *Enter Droid Settings-> More settings-> Network&Internet-> Ethernet,pitch on Ethernet Port as following 
- 
-{{/products:sbc:vim3:add-ons:vim3-m2x-eth.png}} 
- 
-===== Enable m2x ethernet by kbi command ===== 
- 
-  *About kbi usage ,you can refer kbi guide,set command as followimg 
- 
-```shell 
-kvim3#kbi 
-kbi - Khadas Bootloader Instructions sub-system 
- 
-Usage: 
-kbi [function] [mode] [write|read] <value> 
- 
-kbi version - read version information 
-kbi usid - read usid information 
-kbi powerstate - read power on state 
-kbi poweroff - power off device 
-kbi ethmac - read ethernet mac address 
-kbi hwver - read board hardware version 
- 
-kbi led [systemoff|systemon] w <off|on|breathe|heartbeat> - set blue led mode 
-kbi led [systemoff|systemon] r - read blue led mode 
- 
-kbi forcereset [wol|gpio] w <0|1> - disable/enable force-reset 
-kbi forcereset [wol|gpio] r - read state of force-reset 
-[notice: the wol|gpio boot trigger must be enabled if you want to enable force-reset] 
- 
-kbi bootmode w <emmc|spi> - set bootmode to emmc or spi 
-kbi bootmode r - read current bootmode 
- 
-kbi portmode w <0|1> - set port as usb3.0 or pcie 
-kbi portmode r - read current port mode 
-kbi ext_ethernet w <0|1> - set ethernet from internal or m2x 
-kbi ext_ethernet r - read current ethernet mode 
-kbi tststatus r - read TST status 
-kbi tststatus clear - clear TST status 
- 
-kbi forcebootsd 
-kbi wolreset 
- 
-kbi ircode [customer1|customer2] w <ircode> 
-kbi ircode [customer1|customer2] r 
-kbi trigger [wol|rtc|ir|dcin|key|gpio] w <0|1> - disable/enable boot trigger 
-kbi trigger [wol|rtc|ir|dcin|key|gpio] r - read mode of a boot trigger 
-kvim3#kbi ext_ethernet w 1 
-[reg_31] 0x1d9a 
-[reg_16] 0x40 
-[reg_17] 0x7fbf 
-[reg_19] 0x0 
-[reg_31] 0x0 
-[reg_31] 0xd40 
-[reg_22] 0x0 
-[reg_31] 0x0 
-set m2x ethernet 
-kvim3#kbi ext_ethernet r 
-use m2x ethernet 
-kvim3# 
-``` 
- 
-  *kbi ext_ethernet w 1 is to use m2x ethernet,kbi ext_ethernet w 0 is to use internal ethernet 
  
Last modified: 2023/03/23 05:40 by xiong