Ralink RT2880 User Manual

Ralink ap sdk 3.5.0.0 & demo board
Table of Contents

Advertisement

RALINK TECHNOLOGY, CORP.
RALINK AP SDK 3.5.0.0 USER'S
MANUAL
Copyright © 2010 Ralink Technology, Corp.
All Rights Reserved.
This document is property of Ralink Technology Corporation Transmittal, 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 Ralink Technology Corporation is obtained.
NOTE: THIS DOCUMENT CONTAINS SENSITIVE INFORMATION AND HAS RESTRICTED
DISTRIBUTION.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RT2880 and is the answer not in the manual?

Questions and answers

Summary of Contents for Ralink RT2880

  • Page 1 Copyright © 2010 Ralink Technology, Corp. All Rights Reserved. This document is property of Ralink Technology Corporation Transmittal, 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 Ralink Technology Corporation is obtained.
  • Page 2 Ralink reserves the right, at its own discretion, to update or revise the Proprietary Information from time to time, of which Ralink 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.
  • Page 3: Table Of Contents

    RALINK AP SDK 3.3.0.0 User's Manual TABLE OF CONTENTS 1 SDK History ..........................8 2 Version History ........................12 3 Overview of the Ralink AP Demo Board................13 RT2880..........................13 RT3052..........................15 RT3883..........................17 RT3352..........................20 4 AP SDK source code overview ..................22 5 Tool-chain ..........................23...
  • Page 4 RALINK AP SDK 3.3.0.0 User's Manual 8.1.1 ATED........................29 8.1.2 REG ......................... 29 8.1.3 FLASH ........................29 8.1.4 GPIO ........................30 8.1.5 MII_MGR......................... 30 8.1.6 MTD ......................... 31 8.1.7 NVRAM........................32 8.1.8 SPICMD........................33 8.1.9 I2CCMD ......................... 33 8.1.10 Script........................33 goahead ........................
  • Page 5 Port new user application ................... 38 9 Linux Kernel..........................40 Linux configuration ....................... 40 Change Flash/DRAM Size.................... 42 Change Switch Controller in RT2880 Platform ............42 Update User/Kernel default settings................43 Compile Linux image ....................44 Port new Linux kernel module..................44 Execute commands at boot up time ...............
  • Page 6 Example 2......................54 11.4 Enable Ethernet Converter Feature ................55 11.5 Change RF chip from RT2820 to RT2850 on the RT2880 platform......57 11.6 How to change the Ethernet MAC address ............57 11.7 How to configure GPIO ports..................58 11.8...
  • Page 7 11.21 How to enable USB Ethernet (example for ASIX AX88XXX)........85 11.22 How to build a single image for the RT2880 8M flash platform ......87 11.23 How to start a printer server (example for HP officejet 4355)....... 88 11.24 How to force the RT3052 link speed ................
  • Page 8: Sdk History

    RALINK AP SDK 3.3.0.0 User's Manual SDK HISTORY Release Features Platform Support Schedule 1.2 SDK OS: Linux 2.4.30 RT2880 Shuttle Support Formal: 2007/03/20 Bootloader: Uboot IC+ 5 ports 10/100 Switch Toolchain: GNU based Support cross-compiler Marvall Giga Single Phy Support...
  • Page 9 RALINK AP SDK 3.3.0.0 User's Manual (GPIO reference design) Wi-Fi features: AP-Client Ethernet Converter Support 2.2 SDK Feature parity with 2.0 SDK Vitesse Switch Support Formal: 2007/11/08 plus: AP version 1.6.0.0 STA version 1.4.0.0 Wi-Fi Certification: 802.11 b/g/n, WPA2, WMM,...
  • Page 10 RALINK AP SDK 3.3.0.0 User's Manual 8MB Flash Support – S29GL064N/MX29LV640 Storage Application – FTP/Samba 3.1 SDK Feature parity with 3.0 SDK Formal: 2008/07/30 plus: RT2880 platforms RT2860 AP driver v1.9.0.0 RT3052 platforms RT2860 STA driver v1.7.0.0 [RT3052] 16MB/32MB NOR...
  • Page 11 RALINK AP SDK 3.3.0.0 User's Manual RT3352 platforms Page 11 of 93...
  • Page 12: Version History

    Update FAQ Steven -How to enable software QoS - How to enable USB Ethernet - How to build a single image for the RT2880 8M flash platform - How to start printer server -How to force link speed - How to burn SPI Uboot firmware...
  • Page 13: Overview Of The Ralink Ap Demo Board

    OVERVIEW OF THE RALINK AP DEMO BOARD 3.1 RT2880 The RT2880 SOC combines Ralink’s 802.11n draft compliant 2T3R MAC/BBP, a high performance 266-MHz MIPS4KEc CPU core, a Gigabit Ethernet MAC and a PCI host/device, to enable a multitude of high performance, cost-effective 802.11n applications. The RT2880 has two RF companion chips: The RT2820, for 2.4G-band operation;...
  • Page 14 RALINK AP SDK 3.3.0.0 User's Manual Address Range (hex) Size Block Name 0000.0000 001F.FFFF Reserved 0020.0000 0020.1FFF Reserved 0020.2000 0020.3FFF Reserved 0020.2000 0020.5FFF Reserved 0020.6000 002F.FFFF 1024K Reserved 0030.0000 0030.00FF System Control 0030.0100 0030.01FF Timer 0030.0200 0030.02FF Interrupt Controller 0030.0300 0030.03FF...
  • Page 15: Rt3052

    USB OTG and a Gigabit Ethernet MAC. There are very few external components required for 2.4GHz 11n wireless products with the RT3052. It employs Ralink’s 2nd generation 11n technologies for longer range and better throughput. The embedded high performance CPU can process advanced applications effortlessly, such as routing, security and VOIP.
  • Page 16 RALINK AP SDK 3.3.0.0 User's Manual Figure 2 The RT3052 Demo Board Table 2 RT3052 Memory Mapping 0000.0000 03FF.FFFF SDRAM 0400.0000 0FFF.FFFF <<Reserved>> 1000.0000 1000.00FF SYSCTL 1000.0100 1000.01FF TIMER 1000.0200 1000.02FF INTCTL 1000.0300 1000.03FF MEM_CTRL (SDRAM & Flash/SRAM) 1000.0400 1000.04FF 1000.0500...
  • Page 17: Rt3883

    500MHz MIPS74Kec CPU core, a Gigabit Ethernet MAC, and a USB Host/Device. With the RT3883, there are very few external components required for 2.4/5GHz 11n wireless products. The RT3883 employs Ralink 2nd generation 11n technologies for longer range and better throughput.
  • Page 18 RALINK AP SDK 3.3.0.0 User's Manual Figure 3 The RT3883 Demo Board Page 18 of 93...
  • Page 19 RALINK AP SDK 3.3.0.0 User's Manual Table 3 RT3052 Memory Mapping Start Size Description 0000.0000 0FFF.FFFF 256 M DDR2 256MB/SDRAM 128MB 1000.0000 1000.00FF SYSCTL 1000.0100 1000.01FF TIMER 1000.0200 1000.02FF INTCTL 1000.0300 1000.03FF MEM_CTRL (SDR/DDR) 1000.0400 1000.04FF <<Reserved>> 1000.0500 1000.05FF UART 1000.0600...
  • Page 20: Rt3352

    PCI/PCIe Memory Space 3.4 RT3352 The RT3352 SOC combines Ralink’s 802.11n draft compliant 2T2R MAC/BBP/PA/RF, a high performance 400MHz MIPS24KEc CPU core, a Gigabit Ethernet MAC, 5-pors integrated 10/100 Ethernet Swtich/PHY and an USB Host/Device. With the RT3352, there are very few external components required for 2.4GHz 11n wireless products.
  • Page 21 RALINK AP SDK 3.3.0.0 User's Manual Figure 4 The RT3352 Demo Board Start Size Description 0000.0000 0FFF.FFFF 256 M DDR2 256MB/SDRAM 128MB 1000.0000 1000.00FF SYSCTL 1000.0100 1000.01FF TIMER 1000.0200 1000.02FF INTCTL 1000.0300 1000.03FF MEM_CTRL (SDR/DDR) 1000.0400 1000.04FF <<Reserved>> 1000.0500 1000.05FF UART 1000.0600...
  • Page 22: Ap Sdk Source Code Overview

    The source directory contains the subsequent directories. config : auto-configuration files images : Linux image : uClibc 0.9.28 linux-2.4.x : Linux kernel source for RT2880 linux-2.6.21.x : Linux kernel source for RT3052 romfs : root file system (uncompressed) tools : useful script to generate rootfs...
  • Page 23: Tool-Chain

    RALINK AP SDK 3.3.0.0 User's Manual TOOL-CHAIN The Ralink AP SDK uses buildroot to make the Linux kernel image. Buildroot is a set of Makefiles and patches. It is easy to make a cross-compilation toolchain and root file system for the target Linux system.
  • Page 24: Boot Loader

    RALINK AP SDK 3.3.0.0 User's Manual Linux-2.4.x Kernel Version #cd RT288x_SDK/toolchain/mksquash_lzma-3.0 #make #make install (install mksquashfs-lzma to /opt/buildroot-gdb/bin/mksquashfs_lzma-3.0) Linux-2.6.21.x Kernel Version #cd RT288x_SDK/toolchain/mksquash_lzma-3.2 #make #make install (copy mksquashfs/lzma_alone to /opt/buildroot-gdb/bin/) LZMA_ALONE IS NECESSARY TO MAKE YOUR OWN RAMDISK IMAGE, IF YOU TURN ON “COMPRESS RAMDISK BY LZMA”...
  • Page 25: Build The Uboot Image

    RALINK AP SDK 3.3.0.0 User's Manual W9825G6EH: 4Mx4Banksx16bits SDRAM: Row Address: A0-A12, Column address: A0-A8 DRAM Component=256Mb DRAM Bus =16bits W981216DH/W9812G6DH: 2Mx4Banksx16bits SDRAM: Row Address: A0-A11, Column address: A0-A8 DRAM Component=128Mb DRAM Bus =16bits IS42S32800B: 2Mx4Banksx32bits SDRAM: Row Address: A0-A11, Column address: A0-A8...
  • Page 26 RALINK AP SDK 3.3.0.0 User's Manual 2: Load system code then write to Flash via TFTP 3: Boot system code via Flash (default) 4: Enter boot command line interface 5: Load ucos code to SDRAM via TFTP You chose 9 9: System Load Boot Loader then write to Flash via TFTP.
  • Page 27: User Library

    RALINK AP SDK 3.3.0.0 User's Manual USER LIBRARY 7.1 Library Configuration RT288x_SDK uses ulibc 0.9.28 for user applications. The subsequent instructions show how to change the default library setting. # make menuconfig Kernel/Library/Defaults Selection ---> [ *] Customize uClibc Settings Figure 4 uClib configuration Menu 7.2 Library Porting...
  • Page 28: Build User Library

    RALINK AP SDK 3.3.0.0 User's Manual ifeq ($(CONFIG_LIB_LIBTEST_FORCE),y) @$(MAKE) -C libtest shared endif modify RT288x_SDK/source/config/config.in bool 'Build libtest' CONFIG_LIB_LIBTEST_FORCE #/ make menuconfig You can see the “Build libtest” on the menu. Figure 5 User Library Configure Menu 5. Compile your new library...
  • Page 29: User Application

    RALINK AP SDK 3.3.0.0 User's Manual USER APPLICATION Many useful network applications (e.g. wan protocol, http server, debugging tools, etc.) are supplied with the RT288x_SDK to make porting easier. 8.1 Ral ink Proprietary Applications 8.1.1 ATED Description: for rt2860 v1.4 ATE test program...
  • Page 30: Gpio

    RALINK AP SDK 3.3.0.0 User's Manual a. read: flash -r [offset(hex)] -c [num of bytes] b. write: flash -w [offset(hex)] -o [value(hex)] -c [num of bytes] c. erase: flash -f [first sector_num] -l [last sector_num Example: a. read: flash -r 370000 -c 4 b.
  • Page 31: Mtd

    RALINK AP SDK 3.3.0.0 User's Manual b. set: mii_mgr -s -p [phy number] -r [register number] -v [0xvalue] Example: a. get: mii_mgr -g -p 3 -r 4 set: mii_mgr -s -p 4 -r 1 -v 0xff11 Kernel Module: $SDK/source/$LINUX/drivers/net/raeth/mii_mgr.c $SDK/source/$LINUX/drivers/net/raeth/ra_ioctl.h...
  • Page 32: Nvram

    RALINK AP SDK 3.3.0.0 User's Manual Description: MTD writing program for firmware update Usage: mtd_write -r write [file] [device] Example: mtd_write -r write image.bin mtd4 8.1.7 NVRAM Description: a. get value in NVRAM for RT2860 or INIC platform b. set value in NVRAM for RT2860 or INIC platform c.
  • Page 33: Spicmd

    RALINK AP SDK 3.3.0.0 User's Manual a. nvram_get 2860 SSID /* get the SSID */ b. nvram_set 2860 SSID ralink /* set the SSID to ralink */ c. ralink_init gen 2860 /* generate the RT2860 .dat file from NVRAM */ d.
  • Page 34: Wsc_Upnp

    RALINK AP SDK 3.3.0.0 User's Manual 8.4 wsc_upnp Source code: RT288x_SDK/source/user/WSC_UPNP Description: Ralink WPS (Wi-Fi Protected Setup) UPNP Daemon Required library: libupnp, pthread 8.5 iptabl es Source code: RT288x_SDK/source/user/iptables # for Linux-2.4 RT288x_SDK/source/user/ iptables-1.4.0rc1 #for Linux-2.6 Description: Administration tool for IPv4 packet filtering and NAT.
  • Page 35: Wireless_Tools

    RALINK AP SDK 3.3.0.0 User's Manual Each of the Ethernets being connected corresponds to one physical interface in the bridge. These individual Ethernets are bundled into one bigger (’logical’) Ethernet. This bigger Ethernet corresponds to the bridge network interface. 8.10 wirel ess_tools Source code: RT288x_SDK/source/user/ wireless_tools Description: This package contains the Wireless tools.
  • Page 36: Radvd-1.0

    RALINK AP SDK 3.3.0.0 User's Manual and print services to all manner of SMB/CIFS clients, including the numerous versions of Microsoft Windows operating systems. Samba is freely available under the GNU General Public License. 8.16 radvd-1.0 Source code: RT288x_SDK/source/user/ radvd-1.0 Description: The router advertisement daemon (radvd) is run by Linux or BSD systems acting as IPv6 routers.
  • Page 37: Igmpproxy

    RALINK AP SDK 3.3.0.0 User's Manual Source code: RT288x_SDK/source/user/ dnsmasq-2.40 Description: Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network. It can serve the names of local machines which are not in the global DNS.
  • Page 38: Port New User Application

    RALINK AP SDK 3.3.0.0 User's Manual 8.26 Port new user application Example: Add hello application to /bin (a) Create hello directory in RT288x_SDK/source/user #mkdir RT288x_SDK/source/use/hello (b) Add Makefile to RT288x_SDK/source/user/hello EXEC = hello OBJS = hello.o CFLAGS += all: $(EXEC)
  • Page 39 RALINK AP SDK 3.3.0.0 User's Manual dir_$(CONFIG_USER_HELLO_WORLD) += hello (f) Turn on hello application #make menuconfig [*] hello_world (NEW) (g) Build new image #make dep #make (h) check file is correct #cd RT288x_SDK/source/romfs/bin #file hello #hello: ELF 32-bit LSB executable, MIPS, MIPS-II version 1 (SYSV), dynamically linked (uses...
  • Page 40: Linux Kernel

    8M/32M: 8M Flash and 32M DRAM for complete AP/NAS solution, including USB applications) Note: 1. Choose the target platform type (RT2880 or RT3052 or RT3883.) 2. Modify the User/Kernel Configuration or Load/Save User/Kernel Default setting. 3. Load the target platform setting from a file.
  • Page 41 *** Check the top-level Makefile for additional configuration. *** Next, you must run 'make dep'. Note: The default configuration file is stored in a different file, referring to the ‘Flash/DRAM size’ settings. Go to RT288x_SDK/source/vendors/Ralink/{RT2880/RT3052/RT3883}/config to see all the default setting files. a. Busybox default configuration files 2M_16M_config.busybox-2.4.x/2M_16M_config.busybox-2.6.21.x...
  • Page 42: Change Flash/Dram Size

    Root File System Type (RootFS_in_RAM) ---> 9.3 Change Switch Controller in RT2880 Pl atform The RT288x_SDK supports the IC+ 175C/D switch controller on the RT2880 platform at this time. You can use ‘make menuconfig’ to adjust the switch controller settings.
  • Page 43: Update User/Kernel Default Settings

    RALINK AP SDK 3.3.0.0 User's Manual #make menuconfig Kernel/Library/Defaults Selection ---> [*] Customize Kernel Settings Network device support ---> Ralink Driver ---> W/LLLL in the LAN/WAN Partition item means P0 is a WAN port, and LLLL/W means P4 is WAN Port.
  • Page 44: Compile Linux Image

    You can execute "make" to generate a new image (make = make lib_only user_only modules romfs Linux image) 9.6 Port new Linux kernel m odule Example: Port the hello networking module to the RT2880 platform Page 44 of 93...
  • Page 45 RALINK AP SDK 3.3.0.0 User's Manual 1. Add the source code to the rt2880 directory # mkdir RT288x_SDK/source/linux-2.4.x/drivers/net/hello #vi RT288x_SDK/source/linux-2.4.x/drivers/net/hello/Makefile O_TARGET := hello.o obj-y := main.o obj-m := $(O_TARGET) include $(TOPDIR)/Rules.make #vi RT288x_SDK/source/linux-2.4.x/drivers/net/hello/main.c #include <linux/init.h> #include <linux/module.h> static int hello_init(void) printk("hello world\n");...
  • Page 46: Execute Commands At Boot Up Time

    RALINK AP SDK 3.3.0.0 User's Manual #make menuconfig <M> Ralink hello module 5. Compile the source code #make dep #make 6. Test / # insmod hello hello world 9.7 Execute commands at boot up time Edit RT288x_SDK/source/vendors/Ralink/RT2880/rcS #!/bin/sh mount –a goahead&...
  • Page 47 RALINK AP SDK 3.3.0.0 User's Manual The MTD partitions are subsequently shown. RootFS in RAM Mode mtd 0 uboot mtd 1 config 0x30000 mtd 2 0x40000 0x50000 mtd 3 Kernel/RootFS 0x400000 RootFS in Flash Mode mtd 0 Uboot 0x30000 mtd 1...
  • Page 48 RALINK AP SDK 3.3.0.0 User's Manual #make image ..#===========<SquashFS Info>================= # Original Kernel Image Size 576110 /home/steven/RT288x_SDK/source/images/zImage.lzma # Padded Kernel Image Size 786368 /home/steven/RT288x_SDK/source/images/zImage.lzma # Original RootFs Size 4329746 /home/steven/RT288x_SDK/source/romfs # Compressed RootFs Size 1069056 /home/steven/RT288x_SDK/source/images/ramdisk # Padded Kernel Image + Compressed Rootfs Size 1855424 /home/steven/RT288x_SDK/source/images/zImage.lzma...
  • Page 49 RALINK AP SDK 3.3.0.0 User's Manual 0xE0000 Padding mtd 4 Root FS 0x400000 host:$ make menuconfig Hit 'Kernel/Library/Defaults Selection' to enter configuration menu. Leave configuration menu and save new kernel configuration. Page 49 of 93...
  • Page 50: Flash Layout And Firmware Upgrade

    10 FLASH LAYOUT AND FIRMWARE UPGRADE 10.1 Fl ash Layout Figure 7 Ralink SDK Flash Layout (4MB) In the ‘user configure switch parameter’ partition, the WLAN0 configuration is for built-in RT2860 parameters, the WLAN1 configuration is for iNIC parameters, and the WLAN2 configuration is for RT2561 parameters.
  • Page 51: By Uboot

    RALINK AP SDK 3.3.0.0 User's Manual 10.2.1 By Uboot 1. Select option 2 on the UBoot menu to burn the Linux image from 0x50000 to 0x400000. 2. Select option 9 on the Uboot menu to update your uboot from 0x0 to 0x30000.
  • Page 52 RALINK AP SDK 3.3.0.0 User's Manual File system in RAM - Burn Linux image to mtdblock3 (Kernel) File system in Flash - Burn first x bytes to mtdblock3, and others to mtdblock4 (ps. X byes = MTTD kernel partition size in “make menuconfig”...
  • Page 53: Faq

    User Name: admin Password: admin 11.2 System requirements for the host platform RT2880 SDK uses Fedora 6 Host to build the image. Change your Linux distribution if you cannot successfully build the image. Table 7 Requirements of Host Platform Item Value...
  • Page 54: How To Add New Default Parameter In Flash

    RALINK AP SDK 3.3.0.0 User's Manual 11.3 How to add new defaul t param eter in flash There are four default settings In RT288x_SDK/source/vendors/Ralink/RT2880, based on different platforms. RT2860_default_vlan: IC+ ( gateway mode)/Vitesse Platform RT2860_default_novlan: IC+ (bridge mode)/Marvell 1000 Phy platform...
  • Page 55: Enable Ethernet Converter Feature

    RALINK AP SDK 3.3.0.0 User's Manual radio = websGetVar(wp, T("radiohiddenButton"), T("2")); if (!strncmp(radio, "0", 2)) { nvram_bufset(RT2860_NVRAM, "RadioOn", radio); doSystem("ifconfig ra0 down"); websRedirect(wp, "wireless/basic.asp"); return; else if (!strncmp(radio, "1", 2)) { nvram_bufset(RT2860_NVRAM, "RadioOn", radio); doSystem("ifconfig ra0 up"); websRedirect(wp, "wireless/basic.asp"); return;...
  • Page 56 RALINK AP SDK 3.3.0.0 User's Manual The Wi-Fi Interface on the RT2880 platform should be configured for STA mode. All PCs under the RT2880 GMAC port connect to the AP via the RT2880 platform. Figure 9 Ethernet Converter Operation Diagram...
  • Page 57: Change Rf Chip From Rt2820 To Rt2850 On The Rt2880 Platform

    Figure 10 WebUI - STA Mode Setting 11.5 Change RF chip from RT2820 to RT2850 on the RT2880 pl atform The QA program can burn an RT2850 EEPROM binary file. Click the “Load File” button and choose your own EEPROM binary file. The QA program will immediately burn the binary file to flash.
  • Page 58: How To Configure Gpio Ports

    RALINK AP SDK 3.3.0.0 User's Manual Note: If you need the LAN/WAN Ports to have different MAC addresses, adjust the Ethernet driver to get GMAC0_ADDR for LAN, and GMAC1_ADDR for WAN. Use the QA program to modify your flash content.
  • Page 59: Use Gpio To Turn On Led

    SIGUSR1 is sent when the GPIO pin has been clicked once, and SIGUSR2 is send when the GPIO pin has been pressed for several seconds. 11.8 Use GPIO to turn on LED The following tables show the current GPIO definition for RT2880/RT3052/RT3883. Page 59 of 93...
  • Page 60 RALINK AP SDK 3.3.0.0 User's Manual Table 8 GPIO Usage of RT2880 Table 9 GPIO Usage of RT3052 Table 10 GPIO Usage of RT3883/RT3662 Page 60 of 93...
  • Page 61 Strapping GPIO8 Reserved for internal use. The Ralink SDK GPIO driver gives an interface to set the frequency of the LEDs connected to the GPIOs. Define RALINK_GPIO_LED_LOW_ACT to 1 at $SDK/linux-2.4.x/drivers/char/ralink_gpio.h if the LEDs are inactive. Otherwise, define it as 0.
  • Page 62 RALINK AP SDK 3.3.0.0 User's Manual unsigned int on unsigned int off unsigned int blinks unsigned int rests; unsigned int times; } ralink_gpio_led_info; Write the application to set the LED frequency through the ioctl interface of the GPIO device. Use the example application, gpio.
  • Page 63: Use Led Firmware To Turn On Led

    RALINK AP SDK 3.3.0.0 User's Manual Figure 13 LED Definition of WPS Specification Using the WPS PBC status LED as an example, the configurations would be: InProgress: gpio l <gpio> 2 1 4000 0 4000 (i.e. 2 ticks bright, 1 tick dark, blinking forever.) Error: gpio l <gpio>...
  • Page 64 RALINK AP SDK 3.3.0.0 User's Manual 2. Fill out flash content to control the LED behavior because the LED firmware will read the configuration from flash. Table 11 RT2880 LED Parameters in Flash Page 64 of 93...
  • Page 65 RALINK AP SDK 3.3.0.0 User's Manual The current Ralink default flash hex values are subsequently shown. RT2880 Flash Base Address=0x40000 4003B: 1 controlled by firmware Page 65 of 93...
  • Page 66: How To Start The Telnet Server

    RALINK AP SDK 3.3.0.0 User's Manual 4003C: 55 LED A/G don’t care 4003D: 77 LED A/G don’t care 4003E: A8 LED ACT radio off = solid on/off 4003F: AA LED ACT blink when transmitting data & management packet 40040: 8C LED Act positive polarity when radio off -> solid off 40041: 88 LED Act negative polarity when link to A/G ->...
  • Page 67 RALINK AP SDK 3.3.0.0 User's Manual Page 67 of 93...
  • Page 68: 11N Bit Rate Derivation

    RALINK AP SDK 3.3.0.0 User's Manual Figure 14 Configuration Procedure of Telnet Server 11.11 11n bit rate derivation 1. The 11n bit rate is calculated by the MAC driver. The MAC driver refers to the three subsequent factors. a. MCS b.
  • Page 69 RALINK AP SDK 3.3.0.0 User's Manual 3. Guard Interval: Definition: : 4 s ;Symbol Interval : 3.6 s ;Symbol interval of Short GI. syms Ratio of symbol interval on GI, refer to below EWC PHY Sepc. Tsym / Tsyms = 4 sec / 3.6 sec = 10/9 Example: MCS=15, 40MHz Bandwidth, and 400ns Short Guard Interval.
  • Page 70: How To Build A Single Image For The Flash Programmer

    11.12 How to build a singl e im age for the flash programmer Example: Make a 4M single image for the rt2880 platform (the Uboot partition is 192K, user configuration partition is 64K, and RF partition is 64K) # RT288x_SDK/tools/single_img #vi Makefile.4M...
  • Page 71 RALINK AP SDK 3.3.0.0 User's Manual #----------------------------------------------- USER_NAME = $(shell whoami) # Uboot Image Information UBOOT_DIR = . UBOOT_IMAGE = uboot.bin # Linux Kernel Image Information KERNEL_DIR = . KERNEL_IMAGE = steven_uImage # Single Image Information PACKED_DIR = . PACKED_IMAGE = steven_uImage.img #cp /tftpboot/uboot.bin .
  • Page 72: How To Power Down The Rt305X Ethernet Ports

    RALINK AP SDK 3.3.0.0 User's Manual - Packed Image Size 4194304 ./steven_uImage.img #ls –l -rw-r--r-- 1 steven users 3831 Jun 24 19:00 Makefile.16M -rw-r--r-- 1 steven users 2865 Jun 27 13:27 Makefile.4M -rw-r--r-- 1 steven users 3744 Jun 24 19:00 Makefile.8M -rw-r--r-- 1 steven users 2779348 Jun 27 13:34 steven_uImage -rwxr-xr-x 1 steven users 4194304 Jun 27 13:36 steven_uImage.img*...
  • Page 73: How To Enable Nfs Client

    RALINK AP SDK 3.3.0.0 User's Manual RESERVED 8h00 User Space: # mii_mgr -s -p 0 -r 0 -v 0x3900 //set port 0 register0 bit11 Set: phy[0].reg[0] = 3900 # mii_mgr -s -p 1 -r 0 -v 0x3900 //set port 1 register0 bit11 Set: phy[1].reg[0] = 3900...
  • Page 74 RALINK AP SDK 3.3.0.0 User's Manual #make menuconfig Kernel/Library/Defaults Selection---> Networking options ---> [*] IP: kernel level autoconfiguration File systems ---> Network File Systems ---> Linux 2.4: <*> NFS file system support [*] Provide NFSv3 client support [*] Allow direct I/O on NFS files (EXPERIMENTAL) [*] Root file system on NFS Linux 2.6...
  • Page 75: How To Add A New Language To The Web Ui

    RALINK AP SDK 3.3.0.0 User's Manual /dev/sda1 on /media/sda1 type vfat (rw,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1) 192.168.18.21:/tftpboot on /mnt type nfs (rw,vers=3,rsize=32768,wsize=32768,hard,nolock,proto=udp,timeo=7,retrans=3,sec=sys,addr=1 92.168.18.21) 11.15 How to add a new l anguage to the web UI The following instructions are an example and show how to add the Korean language to the web UI.
  • Page 76: How To Enable Watchdog In Rt305X

    RALINK AP SDK 3.3.0.0 User's Manual 6. RT288x_SDK/source/user/goahead/web/adm/management.asp Add to ‘initValue’ function: var lang_kr = "<% getLangBuilt("kr"); %>"; if (lang_kr == "1") lang_element.options[lang_element.length] = new Option('Korean', 'kr'); 7. RT288x_SDK/source/user/goahead/web/home.asp Fix ‘initLanguage’ function 8. make menuconfig Customize Vendor/User Settings ---> Network Applications ---> select Korean language pack 11.16...
  • Page 77 RALINK AP SDK 3.3.0.0 User's Manual Kernel/Library/Defaults Selection ---> [*] Customize Kernel Settings (NEW) Device Drivers ---> SCSI device support ---> <*> SCSI device support <*> SCSI disk support USB support ---> <*> Support for Host-side USB USB verbose debug messages USB device filesystem <*>...
  • Page 78: How To Enable Usb Automount On The Rt305X Platform

    Miscellaneous Applications ---> [*] ntfs-3g 11.19 How to enabl e software QoS To support the Ralink SW QoS, many menuconfig options in Ralink SDK must be enabled, including in kernel and application configs. Kernel IMQ config: Page 78 of 93...
  • Page 79 SWQoS support is introduced. This Ralink proprietary Netfilter option must be enabled to support Ralink SW QoS, or the classification of IP address may not work properly. If the Ralink SW QoS is not required, of course, it is recommended to leave this option blank to keep the Linux Netfilter architecture unchanged and expected.
  • Page 80 RALINK AP SDK 3.3.0.0 User's Manual -> Networking -> Networking support (NET [=y]) -> Networking options -> Network packet filtering framework (Netfilter) (NETFILTER [=y] -> Core Netfilter Configuration <*> Netfilter connection tracking support <*> "conntrack" connection tracking match support <*>...
  • Page 81: Software Qos Information

    The Ralink SoC SW QoS supports many different types of classification, rate limitation, and DSCP remarking. Ralink SoC SW QoS is based on the Linux Qdiscs, TC, and iptables. Ralink SoC SW QoS supports download and upload stream on a WAN interface.
  • Page 82: Software Qos - Usage

    11.20.3 Software QoS – Usage Conceptually, there are three main settings in Ralink SW QoS have to be specified : Global settings, Group settings, and Rule settings. Global settings: 1. Select ”upload to Internet “ or “download from Internet” on the web UI to enable the Ralink SW QoS.
  • Page 83 RALINK AP SDK 3.3.0.0 User's Manual 4. Select reserved bandwidth. The reserved bandwidth is out of the control of Ralink SW QoS. Group settings: Four QoS groups are shown after specifying Global settings in Ralink SW QoS. Now all packets through this gateway are classified into these four QoS groups according to the user’s QoS rules settings.
  • Page 84 RALINK AP SDK 3.3.0.0 User's Manual a. Rate: Set the guaranteed minimum bandwidth that this group can use. b. Ceil: Set the maximum bandwidth that this group can use. The first group named Highest has the highest priority. The next group named High has the second priority.
  • Page 85: How To Enable Usb Ethernet (Example For Asix Ax88Xxx)

    1) Rule attribute: a) Name: specifies this rules name b) Group: specifies which group this rule is belongs to. 2) Rule classifiers: Ralink SW QoS supports these classifiers currently: a) SRC/DSP IP address (with netmask) b) Packet length c) DSCP field...
  • Page 86 RALINK AP SDK 3.3.0.0 User's Manual Kernel/Library/Defaults Selection ---> [*] Customize Kernel Settings Device Drivers ---> USB support ---> USB Network Adapters ---> <M> Multi-purpose USB Networking Framework <M> ASIX AX88xxx Based USB 2.0 Ethernet Adapters <M> CDC Ethernet support (smart devices such as cable modems)
  • Page 87: How To Build A Single Image For The Rt2880 8M Flash Platform

    64 bytes from 10.10.10.3: seq=2 ttl=128 time=1.067 ms 64 bytes from 10.10.10.3: seq=3 ttl=128 time=1.069 ms 11.22 How to build a singl e im age for the RT2880 8M fl ash pl atform #cd Uboot #make menuconfig (128Mb) DRAM Component...
  • Page 88: How To Start A Printer Server (Example For Hp Officejet 4355)

    RALINK AP SDK 3.3.0.0 User's Manual |<----0x400000-->|<----0x50000->| ---------0x3B0000 --------->| 11.23 How to start a printer server (exam pl e for HP officejet 4355) Step1: SDK Configuration #make menuconfig Kernel/Library/Defaults Selection ---> [*] Customize Kernel Settings Device Drivers ---> USB support --->...
  • Page 89 RALINK AP SDK 3.3.0.0 User's Manual -> -> -> -> -> -> -> -> -> Page 89 of 93...
  • Page 90: How To Force The Rt3052 Link Speed

    RALINK AP SDK 3.3.0.0 User's Manual -> -> -> => 11.24 How to force the RT3052 link speed There are two kinds of force mode that refer to the configuration of the remote peer. 1. Force Mode (Both RT305x and remote peer disable auto negotiation algorithm)
  • Page 91 RALINK AP SDK 3.3.0.0 User's Manual 2. Auto negotiation (Both RT305x and remote peer enable auto negotiation algorithm) 10MB/Full: Set bit6=1 (reg_addr=4) 10MB/Half: Set bit5=1 (reg_addr=4) 100MB/Full: Set bit8=1 (reg_addr=4) 100MB/Half: Set bit7=1 (reg_addr=4) User Mode: # mii_mgr -s -p [port_no] -r [reg_addr] -v [Value]...
  • Page 92: How To Verify Igmp Snooping Function

    Network Applications ---> [*] igmp proxy (RFC4605) Step2: Enable IGMP Proxy in WebUI. Step3: Install windows server 2003 resource kit tools in your PCs. You can get the test application from the following link or Ralink SDK. HTTP://WWW.MICROSOFT.COM/DOWNLOADS/DETAILS.ASPX?FAMILYID=9D467A69-57FF-4A E7-96EE-B18C4790CFFD&DISPLAYLANG=EN RT288x_SDK/source/user/igmpproxy/tools/rktools.exe.
  • Page 93 RALINK AP SDK 3.3.0.0 User's Manual Step4: Start Multicast test Mcast server: C:\>mcast /GRPS:239.1.1.1 /SRCS:10.10.10.3 /NUMPKTS:1000 /INTVL:50 /SEND (Please use "/intf" argument to specify an interface to receive or send if you have multiple network interfaces.) Now, you can see the multicast packets will be generated by Mcast Server.

This manual is also suitable for:

Rt3052Rt3883Rt3352

Table of Contents

Save PDF