APSoC SDK 4.3.0.0 User’s Manual
MediaTek Inc.
RALINK AP SDK 4.3.0.0 USER’s
MANUAL
Copyright © 2014 MediaTek Inc.
All Rights Reserved.
This document is property of MediaTek Inc., receipt, or possession of this document does not
express, license, or imply any rights to use, sell, design, or manufacture from this information or the
software documented herein. No reproduction, publication, or disclosure of this information, in whole
or in part, shall be allowed, unless the prior written consent of MediaTek Inc. is obtained.
NOTE: THIS DOCUMENT CONTAINS SENSITIVE INFORMATION AND HAS RESTRICTED
DISTRIBUTION.
APSoC SDK 4.3.0.0 User’s Manual
Page 2 of 205
Proprietary Notice and Liability Disclaimer
The confidential Information, technology or any Intellectual Property embodied therein, including without
limitation, specifications, product features, data, source code, object code, computer programs, drawings,
schematics, know-how, notes, models, reports, contracts, schedules and samples, constitute the Proprietary
Information of MediaTek (hereinafter "Proprietary Information")
All the Proprietary Information is provided "AS IS". No Warranty of any kind, whether express or implied, is given
hereunder with regards to any Proprietary Information or the use, performance or function thereof. MediaTek
hereby disclaims any warranties, including but not limited warranties of non-infringement, merchantability,
completeness, accuracy, fitness for any particular purpose, functionality and any warranty related to course of
performance or dealing of Proprietary Information. In no event shall MediaTek be liable for any special, indirect
or consequential damages associated with or arising from use of the Proprietary Information in any way,
including any loss of use, data or profits.
MediaTek retains all right, title or interest in any Proprietary Information or any Intellectual Property embodied
therein. The Proprietary Information shall not in whole or in part be reversed, decompiled or disassembled, nor
reproduced or sublicensed or disclosed to any third party without MediaTek 's prior written consent.
MediaTek reserves the right, at its own discretion, to update or revise the Proprietary Information from time to
time, of which MediaTek is not obligated to inform or send notice. Please check back if you have any question.
Information or items marked as "not yet supported" shall not be relied on, nor taken as any warranty
or permission of use.
MediaTek Inc. (Taiwan)
5F, No.5, Tai-Yuen 1
st
Street,
ChuPei City
HsinChu Hsien 302, Taiwan, ROC
Tel +886-3-560-0868
Fax +886-3-560-0818
Sales Taiwan: Sales@ralinktech.com.tw
Technical Support Taiwan: FAE@ralinktech.com.tw
http://www.ralinktech.com/
APSoC SDK 4.3.0.0 User’s Manual
Page 3 of 205
TABLE OF CONTENTS
1 SDK History ................................................................................................................................. 10
2 Version History............................................................................................................................ 14
3 Overview of the Ralink AP Demo Board ................................................................................. 15
3.1 RT2880 ............................................................................................................................................. 15
3.2 RT3052 ............................................................................................................................................. 19
3.3 RT3883 ............................................................................................................................................. 21
3.4 RT3352 ............................................................................................................................................. 24
3.5 RT5350 ............................................................................................................................................. 26
3.6 RT6855 ............................................................................................................................................. 28
3.7 RT6856 ............................................................................................................................................. 29
3.8 MT7620 ............................................................................................................................................ 31
3.9 MT7621 ............................................................................................................................................ 35
3.10 MT7628 ................................................................................................................................... 39
4 AP SDK source code overview ................................................................................................ 42
5 Tool-chain .................................................................................................................................... 43
5.1 Install toolchain ................................................................................................................................ 43
5.2 Install LZMA Utility .......................................................................................................................... 43
5.3 Install mksquashfs utility ................................................................................................................ 44
6 Boot loader .................................................................................................................................. 46
6.1 Uboot Configuration ........................................................................................................................ 46
6.2 Build the uboot Image .................................................................................................................... 49
6.3 Burn the uboot image ..................................................................................................................... 50
APSoC SDK 4.3.0.0 User’s Manual
Page 4 of 205
7 User Library ................................................................................................................................. 51
7.1 Library Configuration ...................................................................................................................... 51
7.2 Library Porting ................................................................................................................................. 52
7.3 Build user library ............................................................................................................................. 53
8 User Application.......................................................................................................................... 54
8.1 Ralink Proprietary Applications ..................................................................................................... 54
8.2 accel-pptp ......................................................................................................................................... 62
8.3 bigpond ............................................................................................................................................. 62
8.4 bonnie++ .......................................................................................................................................... 62
8.5 bridge-utils ....................................................................................................................................... 62
8.6 busybox ............................................................................................................................................ 62
8.7 comgt-0.32 ....................................................................................................................................... 63
8.8 ctorrent-dnh3.2 ................................................................................................................................ 63
8.9 curl..................................................................................................................................................... 63
8.10 dhcp6 ....................................................................................................................................... 63
8.11 dnsmasq-2.40 ........................................................................................................................ 63
8.12 dropbear-0.52 ........................................................................................................................ 64
8.13 ebtables .................................................................................................................................. 64
8.14 ecmh ........................................................................................................................................ 64
8.15 GoAhead ................................................................................................................................. 64
8.16 igmpproxy ............................................................................................................................... 64
8.17 inadyn ...................................................................................................................................... 64
APSoC SDK 4.3.0.0 User’s Manual
Page 5 of 205
8.18 iperf .......................................................................................................................................... 65
8.19 iproute2 ................................................................................................................................... 65
8.20 iptables .................................................................................................................................... 65
8.21 lighttpd ..................................................................................................................................... 65
8.22 linux-igd ................................................................................................................................... 65
8.23 lldt(lld2d) ................................................................................................................................. 66
8.24 matrixssl-1.8.3 ........................................................................................................................ 66
8.25 miniupnpd-1.6 ........................................................................................................................ 66
8.26 mkdosfs-2.11 .......................................................................................................................... 66
8.27 mpstat-0.1.1 ........................................................................................................................... 66
8.28 mtd-utils .................................................................................................................................. 66
8.29 ntfs-3g ..................................................................................................................................... 67
8.30 ntfsprogs ................................................................................................................................. 67
8.31 ntpclient ................................................................................................................................... 67
8.32 nvram library .......................................................................................................................... 67
8.33 openl2tp-1.6 ........................................................................................................................... 67
8.34 openswan-2.6.38 ................................................................................................................... 67
8.35 p910nd .................................................................................................................................... 68
8.36 pciutils-3.0.0 ........................................................................................................................... 68
8.37 ppp-2.4.2 ................................................................................................................................. 68
8.38 pptp-client ............................................................................................................................... 68
8.39 proftpd ..................................................................................................................................... 68