If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:ethctl

From BoxMatrix


BoxMatrix >> Shell-Commands >> ethctl @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Chipset-Command

Goto:   Broadcom  -  Realtek  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

This is an "in-section" name collision covering 2 completely different files:   -   (this will be splitted one day)

Broadcom

ethctl is the Broadcom Ethernet Configuration Utility.

It is a commandline frontend to libethctl.so and is only used by libcms_core.so, see the Examples below.
Most binaries use libethctl.so instead.

7581 fw 7.17:

root@fritz:/var/mod/root# ethctl

Interface specific commands:
Usage: ethctl <interface> <command> [arguments...]

  media-type : Set/Get media type
  ethctl <interface> media-type [option] [port <sub_port#> ]
    [option]: auto - auto select
              2500FD - 2500Mb, Full Duplex
              1000FD - 1000Mb, Full Duplex
              1000HD - 1000Mb, Half Duplex
              100FD - 100Mb, Full Duplex
              100HD - 100Mb, Half Duplex
              10FD  - 10Mb,  Full Duplex
              10HD  - 10Mb,  Half Duplex
    [port <sub_port#>]: required if <interface> has Crossbar or Trunk port underneath

  phy-reset : Soft reset the transceiver
  ethctl <interface> phy-reset [port <sub_port#>]
    [port <sub_port#>]: required if <interface> has Crossbar or Trunk port underneath

  reg : Set/Get port mii register
  ethctl <interface> reg <[0-31]> [0xhhhh] [port <sub_port#>]
    [port <sub_port#>]: required if <interface> has Crossbar or Trunk port underneath

  phy-power : Phy power up/down control
  ethctl <interface> phy-power <up|down> [port <sub_port#>]
    [port <sub_port#>]: required if <interface> has Crossbar or Trunk port underneath

  vport : Enable/disable/query Switch for VLAN port mapping
  ethctl <interface> vport <enable|disable|query>

  stats : Display software stats
  ethctl <interface> stats

  ethernet@wirespeed : Enable/Disable ethernet@wirespeed
  ethctl <interface> ethernet@wirespeed <show|enable|disable> [port <sub_port#>]
    [port <sub_port#>]: required if <interface> has Crossbar or Trunk port underneath

Common commands:
Usage: ethctl <command> [arguments...]

  tx_iudma : Set/Get number of Tx iuDMA channels
  ethctl tx_iudma <[1-4]>

  rx_iudma : Set/Get number of Rx iuDMA channels
  ethctl rx_iudma <[1-4]>

  phy : Phy Access 
  ethctl phy int|ext|extsw|ext32 <phy_addr> <reg> [<value|reg2> [no_read_back]] [-d]
  ethctl phy i2c <reg> [<value|reg2> [no_read_back]] [-d] 
      <reg>: 0-0x1f: CL22 IEEE register; 0x1f-0xffff: Broadcom Extended Registers.
             0xffff-0x1fffff: CL45 IEEE Register, DeviceAddress + 2 byte Registers.
             0x20ffff-0xffffffff: Broadcom PHY 32bit address.
      <ext32>: Force to access Broadcom phy 32bit address.
  ethctl phy serdespower <phy_addr> [<power_mode>]
      [<power_mode>]: 0 - Non power saving mode; for loop back, inter connection
                      1 - Basic power saving mode; default mode
                      2 - Device Forced Off
  -d: Dump registers started from <reg> to <reg2>.
Examples

From libcms_core.so of a 7530ax fw 7.70:

ethctl %s vport query 2>/var/vcfgerr

Realtek

ethctl is the RTL96 Ethernet Configuration Utility.

5690pro fw 7.59:

Usage:

tx <packet_count>
	send number of <packet_count> packets
rx <time>
	gather statistics of rx packets in <time> seconds
on <phy>
	turn on the <phy> port of the switch
off <phy>
	turn off the <phy> port of the switch
r <phy> <reg> [<page>]
	read <reg> page <page> value of the <phy> port of the switch
w <phy> <reg> <hex-val> [<page>]
	write <hex-val> to <reg> page <page> of the <phy> port of the switch
	turn on all LED
gpio <index> <0/1>
	GPIO pin test
conntrack <killall/killtcpudp/killicmp>
	kill all/tcpand udp/icmp conntrack sessions
route <add/delete>
	add/delete static Route
dumpqos
	dump RTL8306 QoS
resetcnt
	reset RTL8306 MIB counter
dumpcnt
	dump RTL8306 MIB counter
vlaninfo
	dump VLAN info.
igmpinfo
	dump IGMP info.
debug igmp <0/1>
switch <vi/le>
	dump switch's vlan info/learning entry
pkt <no/all/tx/rx>
	dump nic <no/all/tx only/rx only> packets
addsmux protocol real_dev smux_dev [napt] [brpppoe] [vlan vid]
	protocol: bridge/ipoe/pppoe
	real_dev: smux device name
	smux_dev: real dev name
remsmux protocol real_dev smux_dev [vlan vid]
	protocol: bridge/ipoe/pppoe
	real_dev: smux device name
	smux_dev: real dev name
getsmux real_dev smux_dev
	real_dev: smux device name
	smux_dev: real dev name
setsmux real_dev smux_dev [carrier <0/1>]
	real_dev: smux device name
	smux_dev: real dev name
	carrier: config interface carrier
ignsmux method protocol
	protocol: ethernet protocol(ex: 0x8899)
	method: [dump|add|del]
mirror <wan_dev> <lan_dev> <action>
	Mirror <wan_dev> traffic to <lan_dev>.
	action = 0: off, 1: mirror tx, 2: mirror rx, 3: mirror both
enable_usb0_wan 0/1 
enable_nas0_wan 0/1/2
Examples

From udhcpc.sh fw 7.59:

ethctl route add

From libmib.so fw 7.59:

ethctl setipqos 1
ethctl setipqos 0
ethctl enable_nas0_wan 1
ethctl addsmux bridge %s %s
ethctl addsmux ipoe %s %s
ethctl addsmux pppoe %s %s
ethctl setsmux %s "*" carrier 1  

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-05-21 07:36 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Depends on lib ld.so 1 7.20 - 7.90 Dynamic linker / loader Linux
Depends on lib libc.so 5 6.54 - 7.90 Standard C library Linux
Depends on lib libethctl.so 3 6.98 - 7.90 Broadcom Ethernet Configuration API Broadcom
Depends on lib libmib.so 2 7.59 - 7.60 API to the Realtek XML-MIB storing residential gateway configuration. Realtek
Depends on lib librtk.so 2 7.59 - 7.60 RTL96 enhanced residential gateway API RTL96
5 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-05-21 05:10 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 5690 Pro (rtl) 7.59 - 7.60 /bin 14.0k
FRITZ!Box 7530 AX 7.20 - 7.90 /bin, /sbin 33.5k - 41.5k, Link
FRITZ!Box 7581 6.54 - 7.16 /bin, /sbin 13.9k - 14.9k, Link
FRITZ!Box 7582 6.83 - 7.17 /bin, /sbin 13.9k - 14.9k, Link
4 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-05-21 07:36 GMT.

Firmware Symbol
7.20 - 7.60 main
7.59 - 7.60 usage
2 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.