This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:add-ons:m2xeth [2023/03/21 03:23] nick |
products:sbc:common:add-ons:m2xeth [2024/08/09 02:46] (current) xiong [Enable M2X ethernet via settings] |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | This document mainly introduces the usage of Ethernet on [[https:// | + | This document mainly introduces the usage of Ethernet on [[https:// |
| - | ===== Ubuntu | + | ===== Linux ===== |
| - | + | ||
| - | ==== System Configuration | + | |
| Please make sure you use the latest image, if not please follow [[/ | Please make sure you use the latest image, if not please follow [[/ | ||
| - | ==== Enable M2X Eth ==== | + | <tabbox Linux 4.9> |
| + | |||
| + | **Enable M2X Eth:** | ||
| Open ''/ | Open ''/ | ||
| Line 19: | Line 19: | ||
| 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. | Reboot to effect. | ||
| + | |||
| + | <tabbox Linux 5.15> | ||
| + | |||
| + | **Enable M2X Eth:** | ||
| + | |||
| + | Open '' | ||
| + | |||
| + | ```shell | ||
| + | $ sudo vim / | ||
| + | |||
| + | fdt_overlays=m2x-eth | ||
| + | ``` | ||
| + | ```shell | ||
| + | $ sync | ||
| + | ``` | ||
| + | Reboot to effect. | ||
| + | </ | ||
| ==== Check ==== | ==== Check ==== | ||
| Line 50: | Line 70: | ||
| ... | ... | ||
| ``` | ``` | ||
| + | |||
| + | ===== Android ===== | ||
| + | |||
| + | ==== Enable M2X ethernet via settings ==== | ||
| + | |||
| + | Enter '' | ||
| + | |||
| + | {{/ | ||
| + | |||
| + | ==== Enable m2x ethernet by kbi command ==== | ||
| + | |||
| + | About KBI usage, you can refer [[products/ | ||
| + | |||
| + | ```shell | ||
| + | kvim3#kbi | ||
| + | kbi - Khadas Bootloader Instructions sub-system | ||
| + | |||
| + | Usage: | ||
| + | kbi [function] [mode] [write|read] < | ||
| + | |||
| + | 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 < | ||
| + | kbi led [systemoff|systemon] r - read blue led mode | ||
| + | |||
| + | kbi forcereset [wol|gpio] w <0|1> - disable/ | ||
| + | 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 < | ||
| + | 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 < | ||
| + | kbi ircode [customer1|customer2] r | ||
| + | kbi trigger [wol|rtc|ir|dcin|key|gpio] w <0|1> - disable/ | ||
| + | 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# | ||
| + | ``` | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | |||