MTK-OpenWrt-3.10.14-SDK 下载本文

OpenWrt MediaTek AP Router

2.1.7 mii_mgr

mii register read/wirte test program.

Usage:

2.1.8 reg

A user tool to debug system register

Usage:

Please check the command help message.

2.1.9 shdump

A user tool to dump a file in hex view.

Usage:

shdump [options] Supported Options:

-j N #skip N bytes

-n N #dump up to N bytes

MediaTek Confidential

? 2014 - 2015 MediaTek Inc.

Page 29 of 34

This document contains information that is proprietary to MediaTek Inc.

Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.

OpenWrt MediaTek AP Router

2.1.10 switch

A user tool to configure Ethernet switch Usage: Check the command help message.

2.1.11 uci2dat

A user tool to translate OpenWrt uci configuration files into DAT files which can be loaded by Ralink wireless drivers.

Usage:

uci2dat -h # print help info

uci2dat -d devname -f dat filepath # devname is the “device“ name in uci file.

MediaTek Confidential ? 2014 - 2015 MediaTek Inc. Page 30 of 34

This document contains information that is proprietary to MediaTek Inc.

Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.

OpenWrt MediaTek AP Router

2.1.12 watchdog

An user space daemon to co-work with ralink watchdog hardware.

When this program started, it will wake up the watchdog hardware, and it feed the hardware every second. If watchdog program failed to function under some situations (like kernel oops, panic) , the system will be reset by watchdog hardware.

Usage:

watchdog & # silent daemon

2.2 Drivers

All drivers are put under {SDKRoot}/dl/ folder. You can choose the right driver for you device by: “make menuconfig” -> “ralink properties” -> “drivers”

Each driver has its own configuration menu, make sure you didn’t miss the features you want.

MediaTek Confidential ? 2014 - 2015 MediaTek Inc. Page 31 of 34

This document contains information that is proprietary to MediaTek Inc.

Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.

OpenWrt MediaTek AP Router

These drivers are all built as an OpenWrt packages, you can find the package definition under: {SDKRoot}/package/ralink/drivers/mtxxxx/

├── config.in # the configuration script, can be seen in menuconfig ├── files

│ ├── mt76xx.dat # default driver profile

│ └── mt76xx.sh # startup script, which co-work with OpenWrt framework ├── Makefile # OpenWrt package makefile

└── patches # patches which will be taken in during compiling ├── 001-xxxxxxx.patch …….

├── xxx-xxxxxxx.patch

2.2.1 MT7603e

Driver for MT7603 e

Driver configuration can be found at package/ralink/driver/mt7603e/config.in

2.2.2 MT76x2e

All in one driver for MT7602e (2.4G) and MT7612e (5G).

Driver configuration can be found at package/ralink/driver/mt76x2e / config.in

nd

Note: If your MT7612e is onboard, you shoud config EEPROM Type of 2 Card reading MT7612e’s caldata from flash, if not select efuse.

MediaTek Confidential ? 2014 - 2015 MediaTek Inc. Page 32 of 34

This document contains information that is proprietary to MediaTek Inc.

Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.