Home
RALINK AP SDK 3.3.0.0 User`s Manual
Contents
1. RT288x_SDK source user igmpproxy tools rktools exe Page 106 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Step4 Start Multicast test Client1 Server LAN T A Mcast server C gt 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 m Frame 42 290 bytes on wire 290 bytes captured lt Ethernet II Src Msi_9f da b7 00 16 17 9f da b7 Dst IPvd4mcast_01 01 01 01 00 5e 01 01 01 Destination IPv4mcast_01 01 01 01 00 5e 01 01 01 Source Msi_9f da b7 00 16 17 9f da b7 Type IP 0x0800 E Internet Protocol src 10 10 10 3 10 10 10 3 psr 239 1 1 1 239 1 1 1 version 4 Header length 20 bytes Differentiated services Field 0x00 DSCP 0x00 Default ECN 0x00 Total Length 276 Identification Ox5ael 23265 Flags 0x00 Fragment offset 0 Time to live 5 Protocol unknown COxff Header checksum Ox54fb correct Source 10 10 10 3 10 10 10 3 Destination 239 1 1 1 239 1 1 1 E Data 256 bytes Data FFEFFFFFFFFFFFFFFO102030405060708090A0BOCODOEOF10 Length 256 BE Mcast Client1 C gt mcast GRPS 239 1 1 1 RECV Step5 Starting network sniffer on Client1 and Client2 The right behavior is only Client1 can receive multicast packets 11 26 EHCI OHCI US
2. Kernel is linux 2 4 x ross Compiler Path opt buildroot gdb bin efault all settings lose changes ustomize Kernel Settings NEW ustomize Vendor User Settings LI ustomize Busybox Settings ustomize uClibc Settings Update Default Vendor Settings Select Exit to leave the configuration menu Select Yes to save the new kernel configuration Page 55 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Do you wish to save your new kernel configuration The script updates the User Kernel default settings 9 5 Compile Linux image make dep make The following files in RT288x_SDK images and user _ulmage will be copied to tftpboot by default a ramdisk gz root file system b user _ulmage Linux image Linux kernel rootfs c zlmage gz Izma compressed Linux kernel Note What kinds of make can be used a make Linux image if you modify kernel source files b make modules romfs Linux image if you modify the kernel module source files c make user_only romfs Linux image if you modify application source files d 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 module Example Port the hello networking module to the RT2880 platform 1 Add the source code to the rt2880 directory mkdir RT288x_SDK source linux 2 4 x drivers net hello vi RT288x_SDK source l nux 2 4 x drivers nethello
3. usb 1 1 SerialNumber 01 usb 1 1 configuration 1 chosen from 1 choice eth0 register asix at usb Im0 1 ASIX AX8817x USB 2 0 Ethernet 00 0e 2e 41 72 9e bret addif brO ethO device ethO entered promiscuous mode bret show bro bridge name bridge id STP enabled interfaces br 8000 000c43414367 no ra0 eth2 1 eth0 ifconfig eth0 up ADDRCONF NETDEV_CHANGE eth0 link becomes ready brO port 3 eth0 entering learning state eth0 link up 100Mbps full duplex Ipa OxC5E1 brO topology change detected propagating brO port 3 eth0 entering forwarding state ping 10 10 10 3 PING 10 10 10 3 10 10 10 3 56 data bytes Page 100 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 64 bytes from 10 10 10 3 seq 0 ttl 128 time 3 381 ms 64 bytes from 10 10 10 3 seq 1 ttl 128 time 1 038 ms 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 single image for the RT2880 8M flash platform cd Uboot make menuconfig 128Mb DRAM Component 32bits DRAM Bus 8M Flash Size cd RT288x_SDK source make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Machine selection gt 8M Flash Size cd RT288x_SDK tools single_img RT2880 vi Makefile 8M UBOOT_IMAGE rt2880_100phy_128Mbx16_8Mflash uboot KERNEL_IMAGE rt2880_100phy_128Mbx16_8Mflash linux PACKED
4. Character devices gt Watchdog Cards gt Watchdog Timer Support Customize Vendor User Settings Miscellaneous Applications gt Finally Enable watchdog in WebUl ag Administration L Re j iii 4 1 7 Management KD Upload Firmware Adminstrator Settings 0 Settings Management Account lain 0 Status L D Statistics Password 00000 MD System Command eg Log WatchDog enable O Disable i Zeen Ce e Kernel mode Watchdog make menuconfig Page 90 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Kernel Library Defaults Selection gt Customize Kernel Settings Machine selection gt Ralink WatchDog Reset Output NEW WatchDog Timer Unit lSec Max 305ec NEW WatchDog Refresh Interval Unit lSec Max 30Sec NEW 11 17 How to enable USB storage on the RT305x platform make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings NEW Device Drivers gt SCSI device support gt lt gt SCSI device support lt gt SCSI disk support USB support gt lt gt Support for Host side USB USB verbose debug messages USB device filesystem lt gt USB Mass Storage support Il USB Mass Storage verbose debug File systems gt lt gt Filesystem in Userspace support DOS FAT NT Filesystems gt lt gt VFAT Windows 95 fs support 437 Default codepage for FAT NEW iso8859 1 De
5. oor Ia aez a O asr foose assur CO f ooe Ia Joe CC poor ass Tapas CO Lee a CTN CO ooe Je Je oomoo ooo Je Je CC Tama Ia Ja woco oore Ia Je area ETC E meng Tamar Jg romeo soc Ei CC oar fek ETE CO oore Jr Jeer CC oore ax Jeer CO A EN Foo Tae Tep Tep Ei COC Tan Ier a o COC onse Ier row SOS ED EN COCO AN Taan o i CA CN Ta o COC Gp oom fe EN CA oee Ier EN ame Leem asx Porres Oi ame Leen z Jemen e leet Tex Jena emp Jemen Ta o emer Lem ex Joes o emr 7 Lem Tae o Te ore rou Jager Page 21 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual or up to 32MB external 16 bit flash is mapped 32MB 16 bit Flash When BOOT FROM 3 b001 or up to 16MB external 8 bit flash is mapped 16MB 8 bit Flash When BOOT_FROM 3 b010 3 b011 3 b100 16KB internal boot ROM is mapped 1E00 0000 1FFF FFFF We External SRAM Flash 2000 0000 el 2FFF FFFF 256 M PCI PCle Memory Space Page 22 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 3 4 RT3352 The RT3352 SOC combines Ralink s 802 11n draft compliant 2T2R MAC BBP PA RE 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 The RT3352 employs Ralink 2nd generation 11n technologies for longer range and better throughput The embedded high performance
6. 2 Fill out flash content to control the LED behavior because the LED firmware will read the configuration from flash Table 18 RT2880 LED Parameters in Flash Besides mode 1 additionally set LED signal strengt Le EE is vese im Page 78 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Address States 1 Bite RT2860 Pin 127_LED behavior 00 Reservede 1 0 01 Solid onv 1 110 Blink when transmitting data and management packete 11 Blink when transmitting data management packet and beacon Radio offe 0 Sold on when no traffic h 1 Slow blink when no raf E oy Ce 3Ehe p 00 Reserved 01 Solid on 15 41 10 Blinkwhen transmitting data and managementpacket 11 Blink when transmitting data management packet and beacon 0 Gold on when no traffic 1 Slow blink when no traffic 10 Blink when transmitting data and management packet 11 Blink whentransmitting data management packet andbeacon 0 Solid on whemno traffic 1 Slow blink when no trafic Mo Resemeda AT 10 Blink when transmitting data and management packet 11 Blink when transmitting data management packet and beacon Radio on andlinktoAe wf Gold on wen no traffic Radio on andlinkto 1 Slow blink when no traffic o ene O bit 0 LED G RUZ Y LEDA bitt LEDA l Positive polarity b Radio offe kecher T Wu dil muera LED AG gt 0 Reserved 1 LED ACT polarity inversion whentinkto A birosL
7. 665 ws Modulation NBPSCS SS NSD NSP NCBPS NDBPS GI GI ooo 900 el A Dy e 6 a ECC ae 6 EM E CM 10 11 lt 108 108 1 uom ede rom Jou Je c Sho man TT E 2 EWC PHY spec page 13 16 QAM 13 14 15 Page 83 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual EWC PHY spec v1 27 Parameter Value in legacy Value in Value in 40MHz 20MHz channel 20MHz HT channel channel HT Legacy format Duplicate frequency spacing Terr IFFT FFT 3 2usec 3 2usec 3 2uUsec period Tar Guard Interval 0 8usec Ter length Taw Double GI Double Gl F MS 1 6usec Kee Short Guard 0 4usec pee 0 Soss 0 IT A Interval length Testr Legacy Bjisec 10x Terri L A Short training sequence length Ture Legacy Long 8usec 2x training sequence Tret Taw de gt d Geen daal 4ul3 6u 1088 mora EE 3 EWC PHY spec page 13 K EWC PHY spec v1 27 transmission for a period of corresponding to the length of the rest of the packet When L SIG TXOP Protection is not used see L SIG TXOP Protection section of the EWC MAC spec the value to be transmitted is 3 Na Te Nu 3 3 where Nasta is the number of 4usec symbols in the data part of the packet While using short Gl Nasta is equal to the actual number of symbols in the data part of the packet multiplied by 2 Nizr is the number of HT training symbols The symbol x denotes the lowest integer greater or equal to x
8. Feature parity with 2 4 SDK RT3052 Support Formal 2008 06 06 plus Page 10 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual OS Linux 2 6 21 Linux2 4 for RT2880 Linux 2 6 for RT3052 8MB Flash Support S29GL064N MX29LV640 Storage Application FTP Samba 3 1 SDK Feature parity with 3 0 SDK plus RT2860 AP driver v1 9 0 0 RT2860 STA driver v1 7 0 0 RT3052 16MB 32MB NOR flash support RT3052 Boot from Oxbf00 0000 MA14 1 RT3052 Boot from Oxbfc0 0000 MA 14 0 RT2880 platforms RT3052 platforms Formal 2008 07 30 3 2 SDK Feature parity with 3 1 SDK plus RT2860 AP driver v2 0 0 0 RT2860 STA driver v1 8 0 0 GreenAP support Busybox 1 12 1 MTD Based Flash API RT2880 platforms RT3050 platforms RT3052 platforms Formal 2008 10 06 3 3 SDK Feature parity with 3 2 SDK plus RT2860 AP driver v2 2 0 0 RT2860 STA driver v2 1 0 0 RT2880 platforms RT3050 platforms RT3052 platforms Formal 2009 04 27 3 4 SDK Feature parity with 3 3 SDK plus RT2880 platforms RT3050 platforms RT3052 platforms RT3883 platforms RT3662 platforms Formal 2010 02 12 3 5 SDK Feature parity with 3 4 SDK plus RT2880 platforms RT3050 platforms RT3052 platforms RT3883 platforms Formal 2010 08 06 Page 11 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual RT3662 platforms RT3352 platforms RT5350 platforms 3
9. IPv6 Rapid Deployment 6RD EXPERIMENTAL To enable Ipv6 6rd the firmware should also support iproute2 utility Customize Vendor User Settings Network Applications gt iproute2 Fl ip After compile and download the firmware please use iproute2 s ip command to configure the IPv6 6rd function Page 126 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual ip tunnel add lt 6rd if name gt mode sit local lt WAN ipv4 address gt ttl lt ttl gt ip tunnel 6rd dev lt 6rd if name gt 6rd prefix lt ISP s 6rd prefix gt ip addr add lt 6rd ipv6 address gt dev lt 6rd if name gt ip link set lt 6rd if name gt up ip route add 0 via lt ISP s 6rd border router ipv4 address gt dev lt 6rd if name gt Note the lt 6rd ipv6 address gt should be generated from lt ISP s 6rd prefix gt and lt WAN IPv4 address gt for example if ISP s prefix is 2001 aaaa 32 and WAN ipv4 address is 100 1 1 1 then the 6rd address could be 2001 aaaa 6401 101 1 32 to add LAN ipv6 address you can use the following command ip addr add lt LAN ipv6 addr gt dev lt LAN if name gt Note the LAN ipv6 address should be same as 6rd s ipv6 address except address mask for example in above case the LAN ipv6 address will be 2001 aaaa 6401 101 1 64 to enable ipv6 forwarding please use this command echo 1 gt proc sys net ipv6 conf all forwarding The following figure shows an example that configu
10. RALINK AP SDK 4 0 0 0 User s Manual SES BIDI Ra EEN EC ENEE RER EIER 31 rn IRR S e E SIRSE HP Officejet 4300 series p910ndb PRE GES H Ox OSO S S ES l TR EIL SE E o Ee eem OSO lt F a gt WA TEASER ees PERRIER TER e Pee ECH HP Officejet 4300 series p910nd RAZR AHF ER IP_10 10 10 254 WR HP Officejet 4300 series TARE 5 ARA S EA E SD Sage lt t TED gt HUA lis HP Officejet 4300 series p910nd xe emp MEL HP Officejet 4300 series tii iiH reg EH TBE TP_10 10 10 254 a KE K 20 MA 1 gt 3 5 12 88 pls gt pls2 gt pls3 p 3 SES RE RRSP SAS Zen H KM FIEND LE L L EE TR L sg 11 24 How to force the RT3052 link speed mms L emesgo OEA O FRI TOE BRO 1 E 2 Si DENSA U 1 Bei REMO 1E y RAMEE gen wE RARA 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 10MB Full Set bit13 0 bit12 0 bit8 1 reg_addr 0 10MB Half Set bit13 0 bit12 0 bit8 0 reg_addr 0 100MB Full Set bit13 1 bit12 0 bit8 1 reg_addr 0 100MB Half Set bit13 1 bit12 0 bit8 0 reg_addr 0 Page 104 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual CR gt Address 00 d00 Reset State 3100 Bi
11. is fast and small 8 20 dhcp6 Source code RT288x_SDK source user dhcp6 Description DHCPV6 is a stateful address auto configuration protocol for IPv6 a counterpart to IPv6 stateless address auto configuration protocol It can be used independently or coexist with its counterpart protocol This protocol uses client server mode of operation but also provides support through a Relay Agent It is currently being defined by IETF DHC WG The specification is still in the draft form 8 21 dnsmasq 2 40 Source code RT288x_SDK source user dnsmasq 2 40 Description Dnsmasgq 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 The DHCP server integrates with the DNS server and allows machines with DHCP allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file Dnsmasq supports static and dynamic DHCP leases and BOOTP TFTP for network booting of diskless machines 8 22 igmpproxy Source code RT288x_SDK source user igmpproxy Description IGMPproxy is a simple mulitcast router for Linux that only uses the IGMP protocol 8 23 matrixssl 1 8 3 Source code RT288x_SDK source user matrixssl 1 8 3 Description MatrixSSL is an embedded SSL implementation designed for small footprint applications Page 48 of 132 MEDIATEK RALINK
12. 0 1 peer 192 0 0 2 dev tun0 ip route add 192 0 2 128 25 dev tun0 ip 6 addr add fe80 1 dev tunO ip 6 route add 2001 db8 1 dev tun0 aftr_stop set x ip link set tun0 down Another user could use Web GUI to set DS Lite IPv6 Setup IPv6 Connection Type r Operation Mode Tunneling Connection DS Lite v WANIPv6 Address 2001 db8 254 E R _ _ _ _ AFTR Servet E Address 2001 db8 1 Gateway IPv6 Address 2003 db8 1 Aa Page 132 of 132
13. 11 12 How to build a single image 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 Avi Maketile 4M Change uboot kernel size if necessary UBOOT_SIZE 0x50000 KERNEL_SIZE 0x3B0000 E am PAE Page 84 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual USER NAME shell whoami Uboot Image Information UBOOT_DIR UBOOT_IMAGE uboot bin A Linux Kernel Image Information KERNEL_DIR KERNEL_ IMAGE steven_ulmage Single Image Information PACKED_DIR PACKED_IMAGE steven_ulmage img cp tftpboot uboot bin cp tftpboot steven_ulmage make f Makefile 4M Flash layout Uboot UsrCfg REI Linux Kernel Image Original Uboot Image Size 149372 uboot bin Original Kernel Image Size 2779348 steven_ulmage Page 85 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Packed Image Size 4194304 steven_ulmage img Als I rw r r 1 steven users 3831 Jun 24 19 00 Makefile 16M rw r r 1 steven users 2865 Jun 27 13 27 Maketile 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_ulmage rwxr
14. 2x2 3x3 802 11n and 802 11ac wireless chips Integrated with a 32 bit MIPS 34Kc CPU a 5 port 10 100 switch PCI express port USB port interface NIC Intelligent NIC design that provides an easy and ideal solution to add high performance 802 11n 802 11ac to any embedded platforms Overview The RT6855 single chip network processor series contains an 32 bit MIPS O 34Kc CPU core a 5 port 10 100 Ethernet switch and a rich array of interfaces to enable interoperability with many possible applications such as dual PCI express port to connect to 802 11n wireless chip USB 2 0 port for network storage 3 4G connectivity and SPI Flash memory interface to support large bandwidth applications through the AP router Figure 6 The RT6855 Demo Board J 4 9080 EN Ai BH Ta a Ze WEEN H MIT H WW NOU ell 4 TT Page 28 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual ClockiTimeriResetIPLL SDRAM Controller SDRAM DDR1 Controller DDR1 UART Interface CTRLIPHY WC SE MIPS 34Kc 64K l Cache 32KD Cache USB 2 0 Interface SPIFlash engine GPIOILED Page 29 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 3 7 RT6856 Best in Class Network Processors for High Performance 802 11n AP Router High performance yet cost effective network processor that enable scalable Wi Fi AP Router designs when combined with Ralink 1x1 2x2 3x3 802 11n and 802 11ac wireless chips In
15. 6 SDK Feature parity with 3 5 SDK plus RT2880 platforms RT3050 platforms RT3052 platforms RT3883 platforms RT3662 platforms RT3352 platforms RT5350 platforms Formal 2011 07 15 4 0 SDK Feature parity with 3 6 SDK plus RT2880 platforms RT3050 platforms RT3052 platforms RT3883 platforms RT3662 platforms RT3352 platforms RT5350 platforms RT6855 platforms RT6856 platforms Formal 2012 02 22 Page 12 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 2 VERSION HISTORY Release Features Date Author 132 Initial release wy S iu 1 3 WebUI NTP DDNS NIC Y Steven Liu I2C SPI GPIO Linux driver se lt 210 Squashfs tools installation 4 b Steven LIU WebUl save restore configure WPS gt defa WebUl STA Ethernet Converter mode 2 2 WebUl Operation Mode reorganization f Steven Liu How to downsize image A 23 How to control GPIO and LED Rey Steven Liu Install mksquashfs Utility Q sel Describes Uboot configuration file Add new parameter in default aa CN 2 4 WebUl How to save the configurations to the flash Winfred Lu 3 0 Updated for RT3052 bh SC Steven Liu Chapter Re organization C dw 3 1 Update default parameter Tor LED firmware Steven Liu Update GPIO definton for d n Update FAQ ow N oh O Reorganize us d Steven Liu Update KN Winfred How to e Ch S stent Een e to webUl rade 5x Ethernet ports Ss able rss in RT305x platform
16. CPU can process advanced applications effortlessly such as WIFI data processing without overloading the host processor In addition the RT3352 has rich hardware interfaces SPI 12S 12C PCM UART USB GMAC to enable many possible applications Figure 4 The RT3352 Demo Board Wa AALE SE e n A DIVLINH T DO9907NH y Tn O fa Table 4 RT3352 Memory Mapping CCU Y CARNE Ie E CO en EEE moco Taa T an Tan T ara Taa T ae Tm T 1000 0500 BN 1000 05FF 256 UART weng Lies Je 0 1000 0300 D 1000 03FF 256 MEM_CTRL SDR DDR Page 23 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual meng Leen Ia meamess eener Leer Te Ta SSCS CO Lee Je Je eene Leer Je Je eme Lee Ia Je enen Leer Je mane o a mem oore Ia Ia meng Leen ax Tena O Foo Lem ax nero owsa CO Leen fak Tan EE y CCE EEN EN CC Tam Tae o ED CTE COCO E Tas O i COC wx Ta 0 SSS ns Tan ek Je eeg o forenoon Tae Ier aane o forenoon Tae wk Ta SSS ame oere fe ez o COC oore Ter EN COC oree ex CN COCO oere Tap nnm Oi CO oree e Jena CO oee asic Loes rame oree EN rem NN E 16KB ROM When system is power on 1C00 0000 1C00 3FFF 16KB internal boot ROM is mapped Page 24 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 3 5 RT5350 The RT5350 SOC combines Ralink s 802 11n draft compliant 1T1R MAC BBP PA RF a high performance 360MHz MIPS24KEc CPU core 5 ports integrated 10 100 Ethernet Swtich PHY and an
17. Click the Load File button and choose your own EEPROM binary file The QA program will immediately burn the binary file to flash MAC Adds LANMAC Adar WAN MAC Mi 1 EEPROM Type me High cc Low Active LEDO ke in A ea CS iia e READ WRITE 40 Raso On and Link Down T Pasdite Mode Kar Leitung lt vde Mode Lede Lat vA LED A lt Radio Off Radio On and Link Down f Link v 2 Lat wo A T LED ACT Ratio ot E GER Figure 16 QA Burn your own EEPROM binary file 11 6 How to change the Ethernet MAC address The Ralink Ethernet driver uses GMACO_ADDR to save its LAN WAN mac address If GMACO_ADDR is empty it will generate a random mac address instead define GMACO_ADDR RT_EEPROM_BASE 0x28 define GMAC1_ADDR RT_EEPROM_BASE 0x2E Page 71 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Note If you need the LAN WAN Ports to have different MAC addresses adjust the Ethernet driver to get GMACO_ADDR for LAN and GMAC1_ADDR for WAN Use the QA program to modify your flash content fa Ralink QA Test Program for RT2880 Figure 17 QA Modify GMAC Mac address 11 7 How to configure GPIO ports SDK source linux 2 4 x drivers char ralink_gpio c SDK source linux 2 4 x drivers char ralink_gpio h e RALINK_GPIO_SET_DIR Configure the direction of the GPIO pins using bitmaps Bit 1 is for output and bit 0 is for input For example value 0x5 is for configur
18. Description Library for nvram_get nvram_set and ralink_init 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 iptables 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 8 6 ntpclient Source code RT288x_SDK source user ntpclient Description ntpclient is an NTP RFC 1305 client for Unix like computers Its functionality is a small subset of xntpd but it appears to perform better or at least has the ability to function better within that limited scope It is much smaller than xntpd and is more applicable to embedded computers 8 7 mtd utils Page 45 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Source code RT288x_SDK source user mtd utils Description for jffs2 file system support erase format etc example mkfs jffs2 erase eraseall 8 8 ppp 2 4 2 Source code RT288x_SDK source user ppp 2 4 2 Description a package which uses the Point to Point Protocol PPP to supply Internet connections over serial lines 8 9 bridge utils Source code RT288x_SDK source user bridge utils Description brctl is used to set up maintain and inspect the Ethernet bridge configuration in the Linux kernel An Ethernet bridge is a device commonly used to connect different networks
19. Makefile O_TARGET hello o obj y main o obj m O_TARGET include TOPDIRY Rules make vi RT288x_SDk source inux 2 4 x drivers net hello main c Page 56 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Hinclude lt linux init h gt H include lt linux module h gt Static int hello_init void printk hello worldin return 0 d static void hello_exit void printk goodbye n module_init hello_init module_exit hello_exit MODULE_LICENSE GPL 2 Modify RT288x_SDK source linux 2 4 x drivers net Makefile subdir CONFIG_RT2880_HELLO hello 3 Modify Config in tristate Ralink hello module CONFIG_RT2880_HELLO 4 Turn on the hello module make menucontig lt M gt Ralink hello module 5 Compile the source code make dep make D Test Page 57 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual insmod hello hello world 9 7 Execute commands at boot up time Edit RT288x_SDK source vendors Ralink RT2880 rcS Y bin sh mount a goahead amp lt add new command here 9 8 Add new files in RootFs If you execute the make clean script it will delete RT288x_SDK source romfs directory You cannot copy the file to RT288x_SDK source romfs manually because it will disappear after executing make clean Example add xxx bin to rootfs a copy xxx bin to RT288x_SDK source vendors Ralink RT2880 RT3052 RT3883 RT3352 RT5350 b edit RT288x_SDK source
20. Manual QoS Download Settings Highest Ceil 100 ker rate 10 Ceil 100 9 Kean rate E Ceil 100 o kuch p0 Submit E B0 90 100 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 The third group named Default is the default group The last group named Low has the lowest priority High High group Rate 10 TES 100 Defaut Default Rate 10 Get 100 Low Lowest group Rate 10 jy Cell 100 lt Highest priority means the left available bandwidth will serve the group first but settings for guaranteed rate and ceil in every group are still met strictly For example people often hope VolP traffic is classified as the highest priority group for short latency and good quality and P2P traffic to be classified as the lowest priority and background traffic Rules settings The QoS rules are made to do classification and remarking One QoS rules are made of 3 parts attributes classifiers and remaker Add Download rules Di Delete Page 98 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 2 http 10 10 10 254 internet qosclassifier asp Google HAA http 10 10 10 254 intemet qosclassifier asp Direction Download
21. Page 81 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 1 The 11n bit rate is calculated by the MAC driver The MAC driver refers to the three subsequent factors a MCS b BW Gl Note the bit rate is primarily given by the PHY layer 2 Bandwidth Data subcarriers on different bandwidths 20MHz and 40MHz a Nep Number of data subcarriers Nso 40Mhz 108 Nso 20Mhz Nso 40Mhz Nso 20MHz 108 52 2 0769230769230769230769230769231 b Example MCS 15 Gl 800ns BW 20MHz DataRate 130Mbps MCS 15 Gl 800ns BW 40MHz DataRate 130 Nsa 4omnz Nsa 20mhz 130 108 52 270Mbps c Please refer to IEEE P802 11n D2 04 June 2007 on page 314 for subsequent table Table 207 MCS parameters for option ETS d 2 Nes 1 EOM 18 1 Data rate Mb s MCS Modulation K iss Ni N N Index BPSCS iss sP Neues ppp T 400 x cI NOTE QPSK 3 4 16 QAM 12 MEMES S Taan D Raa T 15 5 Page 82 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 3 Guard Interval a Definition Tsym Aus Symbol Interval Tsyms 3 6us Symbol interval of Short Gl b Ratio of symbol interval on Gl refer to below EWC PHY Sepc Tsym Tsyms 4usec 3 6usec 10 9 c Example MCS 15 40MHz Bandwidth and 400ns Short Guard Interval 270 0 10 9 300 0 for Short Gl d Reference 1 IEEE 802 11n draft 2 04 page 316 and Table 211 MCS parameters for optional 40 MHz NSS 2 NES 1 EQM
22. Pv6 IP in IPv6 tunnel RFC2473 Please check IPv6 IPv6 IP in IPv6 tunnel REC2473 To enable Ipv6 DS Lite the firmware should also support iproute2 utility Customize Vendor User Settings Network Applications gt iproute2 Fl ip After compiling and downloading the firmware please use iproute2 s ip command to configure the IPv6 DS Lite function Page 129 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual User B4 Element AFTR Element Server Internet brO eth2 2 eth4 eth0 dsitun unt 7 R lt a X 192 0 0 2 192 0 0 1 10 10 10 254 9001 db8 254 2001 db8 1 192 168 43 79 192 168 43 11 Pool 192 0 2 128 25 e Configuration on B4 Element IPv6 Address FIPv6 Routing Create DS Lite Interface adds the IPv4 default route to the server to forward all IPv4 packets to the ds lite interface dsltun IPv6 Default Route Static IPv6 Route e Configuration on AFTR http www isc org software aftr Page 130 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual IPv6 Address amp Routing Tunnel Interface Configuration aftr conf Routing to B4 Element FNAT aftr conf default tunnel mss on defmtu 1450 address endpoint 2001 db8 1 address icmp 198 18 200 10 pool 192 0 2 128 acl6 0 0 aftr script Page 131 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual aftr_start set x ip link set tunO up ip addr add 192 0
23. RALINK_DDR_SELF_REFRESH_POWER_SAVE_MODE OFF make e How to turn on DDR Self Refresh Power Save For RT3352 We can turn on DDR power save by Modifying config mk in Uboot and rebuild uboot firmware RALINK_DDR_CONTROLLER_OPTIMIZATION OFF RALINK_CPU_AUTO_FREQUENCY OFF RALINK_SDR_PRECHARGE_POWER_DOWN OFF RALINK_DDR_SELF_REFRESH_POWER_SAVE_MODE ON make 2 Setup in script sbin config powersave sh cpu 1 enable CPU autofrequency sbin config powersave sh cpu 0 disable CPU autofrequency sbin config powersave sh sdr 1 enable SDR precharge powersave sbin config powersave sh sdr 0 disable SDR precharge powersave Page 110 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual sbin config powersave sh ddr 1 enable DDR self auto refresh sbin config powersave sh ddr 0 disable DDR self auto refresh sbin config powersave sh ethernet 1 port enable Ralink ESW PHY powerdown sbin config powersave sh ethernet 0 port disable Ralink ESW PHY powerdown sbin config powersave sh usb 1 enable usb powerdown sbin config powersave sh usb 0 disable usb powerdown sbin config powersave sh wireless 1 enable wireless powerdown sbin config powersave sh wireless 0 disable wireless powerdown e Howto turn on CPU Auto Frequency For RT3352 RT5350 We can turn on CPU auto frequency function by Fconfig powersave sh cpu 1 e Howto turn on SDR Pre charge Power Down For RT3352 RT5
24. 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 Warning Erase Boot Loader in Flash then burn new one Are you sure Y N Please Input new ones Jor Ctrl C to discard Input device IP 10 10 10 123 Page 36 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Input server IP 10 10 10 99 Input Uboot filename uboot bin Page 37 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 7 USER LIBRARY 7 1 Library Configuration way T RT288x_SDK uses ulibc 0 9 28 for user applications The subsequent instructions show how to change the default library setting 8 make menuconfig Kernel Library Defaults Selection gt Customize uClibc Settings Ke Rb j de Figure 8 UClib configuration Menu 7 2 Library Porting Y G d The subsequent instructions show how to add a new library to the RT288x_SDK Example Port libtest to RT288x_SDK 1 cp rlibtest to RT288x_ SDK source lib 2 modify RT288x_SDK source lib libtest Makefile you can reference to libnvram Makefile 3 modify RT288x_SDK source lib Makefile ifeq 8 CONFIG_LIB_LIBTEST_FORCE y DIRS libtest Page 38 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual ifeq 8 CONFIG_LIB_LIBTEST_FORCE y MAKE C libtest shared endif 4 modify RT288x_SDK source config config in bool B
25. USB Host Device With the RT5350 there are very few external components required for 2 4GHz 11n wireless products The RT5350 employs Ralink 2nd generation 11n technologies for longer range and better throughput The embedded high performance CPU can process advanced applications effortlessly such as WIFI data processing without overloading the host processor In addition the RT5350 has rich hardware interfaces SPI 12S 12C PCM UART USB to enable many possible applications Figure 5 The RT5350 Demo Board Page 25 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Table 5 RT5350 Memory Mapping SS TS e e ze Le ez e se Tac Je zem Tac Je ze Tac mee S ze Tas Sei ze fos aw iene ee foe a EH CN EH T ea SCT ee EI EH E E CN sR ee fe ze owt few wre E SN ez CO a ees sa NS a ee pem fue fa ee ze were ee pere ee e pe Page 26 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual ze Tac be SHH CE ze we oe pos wx iio pros je poros a on poros ax a poros ar A pos ma awe Jee zem Tac awe Te ea JR e HO poros Tat E 16KB ROM When system is power on 1C00 0000 1C00 3FHRB 16KB internal boot ROM is mapped Page 27 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 3 6 RT6855 Best in Class Network Processors for 802 11n AP Router High performance yet cost effective network processor that enable scalable Wi Fi AP Router designs when combined with Ralink 1x1
26. a A EE 15 3 2 H EE EA fe E 18 3 3 E ee WE 20 3 4 OH ENEE p TT E 23 3 5 A n A E A acd cencteeth ESEA 25 3 6 H Eege fin EE cardad ds E A E 28 3 7 KHR eT mn E dE RE EE 20 4 AP SDK source Code OVEFVICW ENEE 32 A AAA cotter sca tesncace O E E ulate verity 33 5 1 Install tol CC AA e TEE 33 5 2 A A EE 33 5 3 Install mksquashfS a T 33 eg OIGA duras Wi E 35 6 1 S oot COMOUTAUON egi aaa E A A a 35 6 2 Build AS OOO Mage vicio 36 6 3 BW tne UbOOt Mage scudo 36 T Heer ici ies 38 T Library C elle IC Le 38 7 2 Library POING DE 38 Page 3 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 7 3 Build user Ia Egeter ta 39 8 User APplICA ON EE 40 8 1 Ralink Proprietary Applications NENNEN A0 8 1 1 ATED ata e un n ia 40 8 1 2 REG MO coi did 40 8 1 3 FLASH oi an O E 40 8 1 4 E Le Y s O A O eens 41 8 1 5 OTI d ET NO a cseu vate stanvardavees 41 8 1 6 IO IS O At tenets AS 42 8 1 7 NVRAM ainia a E 43 8 1 8 SPICMD ici Ml T 44 8 1 9 IZCOMD E A un E 44 8 1 10 SA PA a RN 45 8 2 ee ICT WE A e A oaeinn danas uated is 45 8 3 IMEI AAA T 45 8 4 WEE UIP NET d SE il E E 45 8 5 BBG DIES em TEE 45 8 6 Y EE 45 8 7 y T 45 8 8 e A EE ege NON 46 8 9 Re cuina a aa nara ia 46 8 10 Wireless e cia a eee eee A poe 46 8 11 Ile Vi DE 46 Page 4 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 8 12 zEbDra 0 IDa pd iia a iia 46 8 13 wpa supplicant0 Tiida da aa e 47 8 14 a oy EE PA AS 47 8 15 luet gf e A 47 8
27. enable USB automount in RT305x platform Update FAQ Steven How to ehable software QoS 7 How to enable USB Ethernet How To build a single image for the RT2880 8M flash platform l HOW to start printer server How to force link speed How to burn SPI Uboot firmware Steven How to enable new watchdog How to verify IGMP snooping Page 13 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Mars 3 5 Update How to enable Software QoS YY 4 0 Update concurrent AP porting Guide Roger Steven Red How to enable 6RD A How to enable DS Lite Page 14 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 3 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 RE Companion chips The RT2820 for 2 4G band operation and the RT2850 for dual band 2 4G or 5G operations In addition to traditional AP router applications the chipset can be implemented as a WLAN intelligent NIC drastically reducing the load on the host SOC such as DSL Cable or Multimedia Applications processors Users can treat the WLAN NIC as a simple Ethernet device for easy porting and guaranteed 802 11n WLAN performance without the need to upgrade to an expensive host SOC Figure 1 The RT2880 De
28. for HP officejet 4355 102 11 24 How to force the RT3052 link speed 104 11 25 How to verify IGMP snooping FUNCTION sss sese sese sese ee resse sese seene ennenen 106 11 26 EHGUORIGLUSB Power Saving EE 107 11 27 Auto frequency and Power Saving sese eee essen eee 108 11 28 oncurrent AP porting Guide eee eeeeeeseececeeneereeneneeseeneeesseenasseecneesseeaseeteseaseetanens 113 11 29 SUPEMDMZ USAGE GUIDE recocido 121 11 30 How to support IPV6 Ready Logo 122 Page 7 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 11 31 How to enable iPerf tool iesisicrrerseiirireiidiirei inrcte enninu EEEE ARTN 124 11 32 How to enable ebtables ooocoinnnnnininonnmcarncarcarcccrcc e 125 11 33 How to enable IPv6 Rapid Deployment Grd eee sese eee 125 11 34 How to enable IPV6 DSa LI6 aessaad narsatr azra nalane claro prono cnn ron 129 Page 8 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 1 SDK HISTORY Release Features Platform Support Schedule 1 2SDK 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 Driver UART Giga Ethernet Flash Wi Fi Driver Application Bridging Routing NAT PPPoE Web server DHCP client DHCP server Wi Fi features WMM WMM PS WEP WPA WPAZ2 personal WPA WPAZ2 Enterprise 1 3SDK Feature parity with 1 2 SDK RT2880 MP Support Beta 2007 04 30 plus Forma
29. for any particular purpose functionality and any warranty related to course of performance or dealing of Proprietary Information In no event shall Ralink 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 Ralink 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 Ralink s prior written consent 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 MediaTek Inc Taiwan 5F No 5 Tai Yuen 1st 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 Page 2 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual TABLE OF CONTENTS 1 SDK ele TE 9 2 Version lt Te E H T 13 3 Overview of the Ralink AP Demo Board AAA 15 3 1 KT a
30. function from system 2 super_dmz Enable Super DMZ function 3 super_dmz l ethO t 80 Enable Super DMZ function Assign eth0 as LAN interface Avoid tcp port 80 is forwarding To make web server on router reachable from WAN side 4 super_dmz w eth2 t 45 123 t 3128 u 10000 u 500 600 Enable Super DMZ function Assign eth2 as WAN interface Avoid tcp port 45 to 123 tcp port 3128 udp port 10000 and udp port 500 to 600 are forwarding Implementation note 1 When 1 system boot up 2 WAN IP is acquired or changed Ex PPPoE or DHCP on WAN 3 Virtual Server Port forwarding settings change the super_dmz have to re run super_dmz f super_dmz 11 30 How to support IPv6 Ready Logo The IPv6 Forum http www ipv6forum com IPv6 Ready Logo Program is a conformance and interoperability testing program intended to increase user confidence by demonstrating that IPv6 is available now and is ready to be used To pass Ipv6 Ready Logo Phase 2 please enable additional three applicantions Page 122 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual e ecmh Easy Cast du Multi Hub ecmh is a networking daemon that acts as a full IPv6 MLDv1 and MLDv2 Multicast Router make menuconfig Customize Vendor User Settings Miscellaneous Applications gt ecmh IPv6 multicast forwarding MLD daemon Exit gt Yes Ip command in iproute2 to flush neighbor cache during running w
31. gt if screen 1 bash chhung compiler R1280x_ SDK source Ralink Linux SDK 3 1 Configuration Arrow keys navigate the menu lt Enter gt selects submenus gt Highlighted letters are hotkeys Pressing lt Y gt includes lt N gt excludes lt M gt modularizes features Press lt Esc gt lt Esc gt to exit lt gt for Help Legend built in excluded lt M gt module lt gt module capable qqqaqgaqgaqgagaagagaagage maqqqgqqagqgaqgaqaagqagaaa al roducts WEIEN lash SDRAM Size Cp EII ES a gt lt Help gt And then please exit Select the Product you wish to target option and enter Kernel Library Defaults Selection option Page 116 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual e a 1 bash chhung compiler RT288x_SDK source Rakin sel DI gaggi Arrow keys navigate the menu lt Enter gt selects submenus gt Highlighted letters are hotkeys Pressing lt Y gt includes lt N gt excludes lt M gt modularizes features Press lt Esc gt lt Esc gt to exit lt gt for Help Legend built in excluded lt M gt module lt gt modul capable WEEN oad an Alternate Configuration File ave Configuration to an Alternate File S ze zez zez za zez Se CRL lt Help gt You must select Default all settings option to load default configuration first and select Customize Kernel Settings options to turn on 24 interface ke navigate the menu lt
32. options gt IP kernel level autocontiguration File systems gt Network File Systems gt Linux 2 4 lt gt NFS file system support Provide NFSv3 client support Allow direct I O on NFS files EXPERIMENTAL Root file system on NFS Linux 2 6 lt gt NFS file system support Provide NF Sv3 client support Provide client support for the NFSv3 ACL protocol extension Provide NFSv4 client support EXPERIMENTAL Allow direct I O on NFS files Kernel Library Defaults Selection gt Customize Kernel Settings NEW Customize Busybox Settings Linux System Utilities gt mount Support mount helpers Support mounting NFS file systems Example mount o nolock 192 168 18 21 tftpboot mnt mount dev sdai on media sda1 type vfat Page 88 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 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 32 768 hard nolock proto udp timeo 7 retrans 3 sec sys addr 192 16 8 18 21 11 15 How to add a new language to the web U The following instructions are an example and show how to add the Korean language to the web UI 1 Copy all the xml files under RT288x_SDK source user goahead web lang en to RT288x_SDK source user goahead web lang kr and translate the msgstr part in those files Note the tran
33. second wifi interface parameters and the STA cert configuration is stored certificate for station and the WAPI cert configuration is stored certificate for WAPI Beside Uboot and WLANO blocks you may use the free space to save your own parameters Another RT6855 and RT6856 are standalone solutions without WiFi So their LAN WAN MAC address is stored in OxE000 OxE00b in RF Parameter block of flash 0x40000 RF 1 parameter 0x40200 0x48000 0x48200 RF 2 parameter l l l l ORAE Standalone parameter 0x50000 WAN MAC Byte0 Oxb Figure 12 RF parameter block of Ralink SDK Flash Layout 10 2 SPI Flash vendor support At present SDK could support following SPI flash Vendor Type No Size AT25DF321 4M ATMEL AT26DF161 2M Page 63 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual FLO16AIF 2M FLO64AIF 8M S25FL128P 16M SPANSION S25FL129P 16M S25FLO32P 4M S25FLO64P 8M MX25L1605D 2M MX25L3205D 4M MXIC MX25L6405D 8M MX25L12805D 16M MX25L25635E 32M EN25F16 2M EN25F32 4M EON EN25Q32 4M EN25F64 EN25P64 8M EN25Q64 8M W25Q32BV 4M ap W25032BV 4M W25Q64BV S25FLO64K 8M W25Q128BV 16M 10 3 Firmware Upgrade 10 3 1 By Uboot Page 64 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 1 Select option 2 on the UBoot menu to burn the Linux image from 0x50000 to 0x400000 2 Select option 9 o
34. ulong dest_addr void config_usb_ehciohci void config_usb_ehciohci And then rebuild Uboot 11 27 Auto frequency and Power Saving The RT3352 RT5350 SOC has the capability of auto frequency and power saving Page 108 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual CPU Auto Frequency RT3352 RT5350 SDR Power Pre charge Power Down RT3352 RT5350 DDR self Refresh Power Save RT3352 Ethernet Power Down RT3352 RT5350 USB Power Down RT3352 RT5350 WIFI Power Down RT3352 RT5350 Notice Those new features are supported by SDK 3 5 2 0 and later version 1 Setup How to turn on CPU Auto Frequnecy For RT3352 RT5350 We can turn on CPU auto frequency function by Modifying config mk in Uboot and rebuild uboot firmware RALINK_DDR_CONTROLLER OPTIMIZATION OFF RALINK_CPU_AUTO_FREQUENCY lt ON RALINK_SDR_PRECHARGE_POWER_DOWN OFF RALINK_DDR_SELF REFRESH_POWER_SAVE_MODE OFF make Set Linux Kernel Configuration and then rebuild linux firmware make menuconfig gt Machine selection gt Ralink External Timer Page 109 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual make dep make e HOW to turn on SDR Pre charge Power Down For RT3352 RT5350 We can turn on SDR power save by Modifying config mk in Uboot and rebuild uboot firmware RALINK_DDR_CONTROLLER_OPTIMIZATION OFF RALINK_CPU_AUTO_FREQUENCY OFF RALINK_SDR_PRECHARGE_POWER_DOWN ON
35. xr x 1 steven users 4194304 Jun 27 13 36 steven_ulmage img rwxr xr x 1 steven users 149372 Jun 27 13 34 uboot bin The single image can now be burned using the flash programmer 11 13 How to power down the rt305x Ethernet ports Pot O 11121314 Map W LALL MII control register 15 mr_main_reset 1 Reset 0 Normal R W SC ThO reset all digital logic except phy_reg 14 loopback mi mii Mii loop back RW fe mg 13 force_speed 1 100Mbps 0 10Mbps when R W 1 h1 mr_autoneg_enable 1 b0 mr_autoneg_enable 1 Enabled 0 Normal RW Im 11 powerDown phy into power down power down 1 h0 AA TX analog RX analog AD 10 resemed Ro In mg mr_restart_negotiation a Restart Auto Negotiation R W SC Tho 0 Normal force_duplex 1 Full Duplex 0 Half Duplex when R W PC mr_autoneg_enable 1 b0 Page 86 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual User Space A mii mgr s p 0 r 0 v0x3900 set port 0 registerO bit11 Set phy 0 reg 0 3900 mii Mgr s p 1 r 0 v0x3900 set port 1 register bit11 Set phy 1 reg 0 3900 MIL Mgr S p 2 r 0 v Ox3900 set port 2 register bit11 Set phy 2 reg 0 3900 MiL Mgr S p 3 r 0 v0x3900 set port 3 registerO bit11 Set phy 3 reg 0 3900 MiL Mgr S p 4 r 0 v0x3900 set port 4 register bit11 Set phy 4 reg 0 3900 Kernel Space extern u32 mil_mgr_read unsigned int unsigned int uns
36. 0080 0000 0080 7FFF 32K Reserved 0080 8000 0080 FFFF 32K Reserved 0081 0000 0081 FFFF 64K Reserved 0082 0000 0082 FFFF 64K Reserved Page 16 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 0083 0000 0083 FFFF 64K Reserved 0084 0000 0088 FFFF 256K Reserved 0100 0000 01FF FFFF 16M External SRAM 0800 0000 OBFF FFFF 64M SDRAM 0C00 0000 OFFF FFFF 64M SDRAM 1000 0000 1003 FFFF 256K Reserved 1004 0000 1007 FFFF 256K Reserved 1008 0000 100B FFFF 256K Reserved 100C 0000 100F FFFF 256K Reserved 1010 0000 1BFF FFFF 192M Reserved 1C00 0000 1FFF FFFF 64M External Flash 2000 0000 2FFF FFFF 256M PCI Memory Space 3000 0000 FFFF FFFF 3 25G Reserved Page 17 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 3 2 RT3052 The RT3052 SOC combines Ralink s 802 11n draft compliant 2T2R MAC BBP RE a high performance 384MHz MIPS24KEc CPU core 5 port integrated 10 100 Ethernet switch PHY an 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 The USB port can be configured to access external storage for Digital Home applications The RT3052 also has rich hardwa
37. 16 s EE WEE Scere O A AAA 47 8 17 TS EE H Hn EE 47 8 18 SEENEN shins A TEE 47 8 19 AA O ETE T er E E 48 8 20 s eT fin A A E re ieeeseedia s 48 8 21 CNSMASG 2 40 IO A n J 48 8 22 Po A A ST A saseeuls solbduay thek 48 8 23 EIN E E AE e O E thet 48 8 24 TT A e AAN 49 8 25 ess T ginn B 5 en 49 8 26 Port new user application 49 9 Linux ET EE d Noia leal diet ER 9 1 ES CONTIG aR E A E 52 9 2 Ghange RASIWDRAM Size T 54 9 3 Change Switch Controller in RT2880 Platform 54 9 4 Update User Kernel default Settings AAA ER 9 5 Bompile LIMUX IMAGE ooomoocinnoninnonenicana a a ias 56 9 6 Port new Linux kernel module AAA 56 9 7 Execute Commands at boot up me sse esse eee eee eee 58 Page 5 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 9 8 Add new fileS In ROOES cuina ep 58 9 9 Image DOWNSIZE ani neil ah lee lee eds ae de deg 58 10 Flash Layout and Firmware Upgrade AANEREN 62 10 1 RER T e En saved say 62 10 2 SPI Flash vendor support NENNEN EENS aa c 63 10 3 Firmware Upgrade coin n H EE 64 10 3 1 BY UDOOt AAA y O A E eas iver aes 64 10 3 2 BY WebUl ET d n ME Mrt 65 be A n AA E AA oeresem nvtiacaiee 67 11 1 RT2880 Default password UART networking Setting AAA 67 11 2 System requirements for the host platform eee eee eee eee ee eee ee eee eee 67 11 3 How to add new default parameter in flash sees eee eee eee 68 11 3 1 ST e A TEE 68 11 3 2 SAS MM Ye dE 68 11 4 Enable Ethernet Converter Feature AA
38. 2 6 System type Ralink RT3052 board gt Soc Hardware Type RT3052 ASIC gt DRAM Size 32M gt Root File System Type Roo FS_ n_RAM gt 9 3 Change Switch Controller in RT2880 Platform The RT288x_SDK supports the 1C 175C D switch controller on the RT2880 platform at this time You can use make menuconfig to adjust the switch controller settings make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Network device support gt Ralink Driver gt Page 54 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual I MAC is connected to eal artition LAN WAN on IC W LLLL ANIWAN Partition W LLLL in the LAN WAN Partition item means PO is a WAN port and LLLL W means P4 is WAN Port The switch is configured by the script not the Ethernet driver Please see config vian sh in RT288x_SDK source user rt2880_app scripts RT2880 eh 3 eth2 1 Vlan 1 LAN WAN partition by vlan Figure 10 IC 10 100 Switch Operation Diagram 9 4 Update User Kernel default settings Modify the default setting if necessary Select the Kernel Library Defaults Selection item to enter the kernel application configuration menu After entering the menu select the Update Default Vendor Settings item to update the User Kernel default settings Note the new default setting will be saved in RT288x_SDK source vendors Ralink RT2880 RT3052 RT3883 config
39. 2 wireless security is enabled display security status on panele i S Reserved for system reboot R20 GPIO14 RXDe e a O LowActive outpute Table 7 GPIO Usage of RT3052 AP RT3052 V20RW 2X2 GPIO0 WPS Low Active signal input for U10 PBCe O WPS function wen push bottom over 3 second T10 GPIO1 I2C_SDe EE U9 GPIOS SPI_EN Gem e GPIOS GPIOS ANT diversity T9e GPIO4 SPI_CLKe 10 ANT 2 A o Us GPIOS SPI_DOUT RXSWN RTT OT ANT t GPIO6 SPI_DINe NIC Resistor strapping inpute R9e mode o 1 load codem selecte O ump switch modes switch modee G2e GPIO7 RTS_Ne Te fe SY F2e GPIO8 TXD lt GPIO9 CTS_ Ne System EE Active output Glo Power System status Power displaye LED GPIO10 RXD 1 SW RST ES e LOW Active signal input 2 Factory default push bottom over3 second J GPIOM DTRN gt H3 GPIO12 DCD_Ne LED mode display KA GP1014 RINe WPS e Low Active output LED R Indicate WPS PBC statuse Page 74 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Table 8 GPIO Usage of RT3883 RT3662 RT3883 RT3662 Ball name Function Description Ball Use for WPS LED on Reference board Use for Giga Switch reset on K8 GPIO1 GPHYRST_N Reference board RF 2 4GHzZ 5GHz Band L9 GPIO2 Band selection selection K9 WPS LED The Ralink SDK GPIO driver gives an interface to set the frequency of the LEDs connec
40. 256Mb 13 9 DRAM Bus 16bits 32bits Example e W9825G6EH 4Mx4Banksx16bits SDRAM o Row Address AO A12 Column address A0 A8 o DRAM Component 256Mb o DRAM Bus 16bits eW981216DH W9812G6DH 2Mx4Banksx16bits SDRAM o Row Address AO A11 Column address A0 A8 o DRAM Component 128Mb o DRAM Bus 16bits e1542532800B 2Mx4Banksx32bits SDRAM o Row Address A0 A11 Column address A0 A8 o DRAM Component 128Mb o DRAM Bus 32bits 2 LAN WAN Partition Page 35 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual The switch automatically operates in dump switch mode when the board turns on Clients on the LAN get the dynamic IP address from the remote DHCP server connected to the WAN port Set the LAN WAN partition to prevent the Client s DHCP request being sent to the WAN side 6 2 Build the uboot Image make 1 RT2880 RT3052 RT3883 RT3352 RT5350 e NOR Flash uboot bin is located in Uboot cp uboot bin tftpboot e SPI Flash uboot img is located in Uboot cp uboot img tftpboot e NAND Flash uboot img is located in Uboot cp uboot img tftpboot 2 RT6855 RT6856 e SPI Flash uboot bin is located in Uboot cp uboot bin tftpboot e NAND Flash uboot img is located in Uboot cp uboot img tftpboot 6 3 Burn the uboot image Press 9 on the Uboot menuconfig to open the invisible menu Set the operation 1 Load system code to SDRAM via TFTP 2 Load system code then write to Flash via
41. 350 We can turn on SDR power save by Fconfig powersave sh sdr 1 e Howto turn on DDR Self Refresh Power Save For RT3352 We can turn on DDR power save by Fconfig powersave sh ddr 1 e Howto turn on Ethernet Power Down For RT3352 RT5350 We can turn on Ethernet port 3 power down by Fconfig powersave sh ethernet 1 3 e Howto turn on USB Power Down For RT3352 RT5350 We can turn on USB power down by Fconfig powersave sh usb 1 L How to turn on WIFI Power Down Page 111 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual For RT3352 RT5350 We can turn on WIFI power down by config powersave sh wifi 1 3 Check Function CPU Auto Frequency Turn off ter base addr to 0000900 e SDR Pre charge Power Save Turn off ter base addr to Oxb0000300 e DDR Self Refresh Power Save Turn off Page 112 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Turn on 11 28 Concurrent AP porting Guide The APSOC has the capability of working 1st wireless interface and Znd wireless interfaces concurrently A The interface ra0 B The interface 2 rai0 Station can associate and execute WPS connection for any wireless interface Moreover user can configure the settings of any wireless interface by Web GUI You can refer to Ralink_AP_SDK_User s Manual for the Detail information 1 Setup If your SDK does not include RT309x RT539x RT3572 RT5572 RT5592 RT3593 support please refer the following
42. 888x_SDK source and execute make menuconfig like below Page 115 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual iF screen 1 bash chhung compiler R1288x_SDK source KEK Ral ink Linux SDK 3 3 3 1 Configu rati qgqq Arrow keys navigate the menu lt Enter gt selects submenus gt Highlighted letters are x hotkeys Pressing lt Y gt includes lt N gt excludes lt M gt modularizes features Press lt Esc gt lt Esc gt to exit lt gt for Help Legend built in excluded lt M gt module lt gt module capable qaqqqqaqqaqgaaqgages i gagaag9999999999999 4 x x x x x oad an Alternate Configuration File x ave Configuration to an Alternate File x x E x x x ul x S me de oe be Sa Sa De Sg S ELIT lt Help gt Please choose Select the Product you wish to target option to configure the main settings of your target platform lt lt Please select 4M 32M or 8M 64M Flash SDRAM size gt gt P screen 1 bash chung compiler RT280x SDK source Ral a E nux SDK 3 3 Arrow keys navigate the menu lt Enter gt selects submenus gt Highlighted letters are hotkeys Pressing lt Y gt includes lt N gt excludes lt M gt modularizes features Press lt Esc gt lt Esc gt to exit lt gt for Help Legend built in excluded lt M gt module lt gt module capable We e E gagag49a99999999999999999999999999999999 alink Products O lash SDRAM Size See Se n lt Help
43. A 69 11 5 Change RF chip from RT2820 to RT2850 on the RT2880 platform sss eee 71 11 6 How to change the Ethernet MAC address AAA 71 11 7 How to coiffure GPIO ports sese sese vereer sees essere nenen 72 11 8 Use SW to turn on LED ociosa e 73 11 9 Use LED firmware to turn on LED ENEE 77 11 10 mow to start the telnet ServVer oooonunciionicniininconnncan 80 1610 1 DUSYDOX SENNO tinca apta 80 R NNEN TT D 80 Page 6 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 11 11 Tin bitrate Iriver 81 11 12 How to build a single image for the flash programmer E 84 11 13 How to power down the rt305x Ethernet DOS sss esse ENEE 86 11 14 How to enable NES Ghent eeiuriiaiissnianardapa A m airasia 87 11 15 How to add a new language to the web U N 89 11 16 How to enable watchdog evt ccoo gorro cnn rra 90 11 17 How to enable USB storage on the RT305x platform eee eee eee eee 91 11 18 How to enable USB automount on the RT305x platform sss sese eee ee eee ee eee eee 92 11 19 How to enable software QoS ANEREN 93 11 20 Software QoS information H T p J ER 11 20 1 Software QoS Pr fac R as ssssesesen enen ER 11 20 2 Software QOS Concept 96 11 20 3 Software QoS Usage A S s ssss esser essere ennenen nenen nro nena nenen nenn 96 11 21 How to enable USB Ethernet example for ASIX AX88XXX e 99 11 22 How to build a single image for the RT2880 8M flash platform sese 101 11 23 How to start a printer server example
44. AP SDK 4 0 0 0 User s Manual and devices It is an open source software package available under the GNU license It consists of a single library file with a simple API set that an application writer can use to secure their application 8 24 rp pppoe 3 8 Source code RT288x_SDK source user rp pppoe 3 8 Description pppoe is a user space redirector which permits the use of PPPoE Point to Point Over Ethernet with Linux PPPoE is used by many DSL service providers 8 25 usb_modeswitch 0 9 5 Source code RT288x_SDK source user usb_modeswitch 0 9 5 Description USB_ModeSwitch is surprise a small mode switching tool for controlling flip flop multiple device USB gear Several new USB devices especially high speed WAN stuff they re expensive anyway have their MS Windows drivers onboard when plugged in for the first time they act like a flash storage and start installing the driver from there After that and on every consecutive plugging this driver switches the mode internally the storage device vanishes in most cases and a new device like an USB modem shows up Some call that feature ZeroCD 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 EXEC OBJS CC LDFLAGS 0 OBJS romfs ROM
45. B Power Saving Page 107 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual A potential issue may happen if user chooses a mixed version pair of SDK Linux and Uboot A confirmed pair is RT3883 RT3662 SDK3 5 Uboot SDK 3 4 Linux this pair may cause system to freeze during boot up To reduce power consumption and lower the working temperature SDK3 5 and later versions disable the USB power and clock gating during the boot loader initialization stage The advantage is more power saving The detail is SDK 3 5 Uboot would disable the USB HW module by default And then the SDK 3 5 EHCI OHCI Linux driver have to re enable USB HW module before accessing USB related registers However if user chooses an unexpected pair ex SDK3 5 Uboot SDK 3 4 Linux the system may freeze at OHCI initialization during boot up as following log This is because the SDK 3 5 or later Uboot would disable the USB HW module to save power but then the older SDK Linux SDK 3 4 EHCI OHCI driver does not re enable the USB HW module before accessing USB function rt3xxx ohci rt3xxx ohci RT3xxx OHCI Controller rt3xxx ohci rt3xxx ohci new USB bus registered assigned bus number 2 rt3xxx ohci rt3xxx ohci irq 18 io mem 0x101c1000 lt lt lt lt lt freeze at here To solve the issue freeze at OHCI init please disable the USB EHCI OHCI power saving feature in SDK 3 5 and later Uboot as following In Uboot lib_mips board c void board_init_r gd_t id
46. BFF FFFF 16MB External SRAM Flash 1C00 0000 1EFRF FFFF lt lt Reserved gt gt 1F00 0000 1FFF FFFF 16MB flash or When BOOT_FROM 2 b00 4KB ram or 8KB rom lt 16MB external 16 bit flash is mapped When BOOT_FROM 2 b01 lt 8MB external 8 bit flash is mapped When BOOT_FROM 2 b10 4KB internal boot RAM is mapped for boot from NAND application When BOOT_FROM 2 b11 8KB internal boot ROM is mapped for iNIC application Page 19 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 3 3 RT3883 The RT3883 SOC combines Ralink s 802 11n draft compliant 3T3R MAC BBP RF a high performance 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 The embedded high performance CPU can process advanced applications effortlessly such as WI FI data processing without overloading the host processor In addition the RT3883 has rich hardware interfaces SPI 1251 12C PCM UART USB PCI PCle RGMII MII to enable many possible applications Figure 3 The RT3883 Demo Board Page 20 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Table 3 RT3883 Memory Mapping CR C CE S COMA Tap Tease o COC Ta o a an poore Ts Tes SS aer pooo Ia Ja mens Tamar ass Taan aag S an
47. Enter gt selects submenus Haar letters are hotkeys Pressing lt Y gt includes R excludes lt M gt ularizes features Press lt Esc gt lt Esc gt to exit lt gt for Help Legend Isi built in J excluded lt M gt module lt gt module capable 2 6 21 inex Kernel Version ross Compiler Path opt buildroot 2cc342 bin or User ustonize Busy oe Settings wstomize wClib lt c Settings ustomize wClibc Settings L L L L L L L I J w d m m m pm m m m m m m m m m m mm Ah Exit gt yes Step After load default you can enter kernel configured main menu If 2nd wireless uses PCIE interface Please enter Machine selection and choice RT3883 PCI architecture to PCIE RC ONLY mode System type Ralink RT3883 board gt aie Hardware Type RT3883 RT3662 ASIC PCI architecture PCIE RC 0 ize 64M gt Flash Type NOR gt Dual Image Root File System Type RootFS_in_RAM gt 16384 Default RAM disk size Compress ramdisk by lzma instead of gzip Ralink DFS Timer Sees Leave Machine selection option Page 117 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Please enter Bus options PCI PCMCIA EISA ISA TC option and check whether PCI PCIE f support or not like below T Leave Bus options PCI PCMCIA EISA ISA TC option Please enter Ralink Module option 994 Klek 3499 q
48. FSINST bin EXEC Page 49 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual clean rm f EXEC elf gdb Co c Add hello c to RT288x_SDK source user hello main printf hello worldin d Edit RT288x_SDK source config config in mainmenu_option next_comment comment KKK Add on Applications bool hello_world CONFIG USER_HELLO WORLD endmenu e Edit RT288x_SDK source user Makefile 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 Shared libs stripped i Testing Page 50 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual BusyBox v1 4 2 2007 05 04 11 15 35 CST Built in shell ash Enter help for a list of built in commands 1H 1 hello hello world 1H Page 51 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 9 LINUX KERNEL 9 1 Linux configuration cd RT288x_SDK source make menucontig Select the Product you wish to target ernel Library Defaults Selection gt rand an Alternate Configuration File 1 ave Configuration to an Alternate File Use Select the Product you wish to target to set the target platform 2 Use the Flash SDRAM Size
49. H E GIR SIA eer keen ee a ee Windows GFS CAZAR gt A SES TRE gt AGRARIE E BSR EEES gt pe tee BE en RAEE et Senge OBRA Fals O tee RALINK AP SDK 4 0 0 0 User s Manual ABI Se t SE men RIE nT Rar O d EDERT ERRAN AERA OREIRO SHEE T EN lt t 0 UE WA ERNE TCP IP ES TETE E aiea TCPAP EIS E EUA gt SSR mme 2 ER BIE Pa RST e ERE TCP IP DIR TET pig ZE aat SHR DREI P KE gt REA gt Eat Ral IP HELA ARO RUE IP_10 10 10 254 BE TCP IP IAEA A E KEHREN SREE gt Ape EE 2 B RAER gt E lt EZ WA ERE TCP IP DII R Aes E SERA ERRE TCP IP REGERE DUE SALT AEA o SNMP EARE RE TRL PASH S RAW SES 2100 10 10 10 254 IP_10 10 10 254 Generic Network Card SIS ET ARE D B Sg WA KER LE W E EE ERARREDER SERRA EE RRE gt gt G SES Gestetner HP IBM infotec Iwatsu Gy Maier Cais gt ERES ES Windows XP ay ee Dears EHP Dese F300 series Dhur Photosmart C6100 series BT AER lt t tm gt ER Page 103 of 132 MEDIATEK RE TCP IP Fl Zee ae A ASHI AS E SERBS AME TCP IP FDA SES ET SAL STEERER gt SNMP S TABE RAW SIS 9100 RE 10 10 10 254 SEIER 1P_10 10 10 254 MFE Generic Network Card SEI ER ATRAE gt lt ER ARREA ETR HRS RS AIR O eegen ORAREEBO ORO STS ETO WA
50. IO_WRITE_BYTE Write a corresponding byte to the GPIO data For example byte 2 and value 0x33 mean to write value 0x33 to the third byte of the GPIO data e RALINK_GPIO_READ_INT Same as RALINK_GPIO_READ e RALINK_GPIO_WRITE_INT Same as RALINK_GPIO_WRITE e RALINK_GPIO_SET_INT Same as RALINK_GPIO_SET e RALINK_GPIO_CLEAR_INT Same as RALINK_GPIO_CLEAR e RALINK_GPIO_ENABLE_INTP Enable GPIO input interrupt e RALINK_GPIO_DISABLE_INT Disable GPIO input interrupt RALINK_GPIO_REG_IRQ Register to receive an interruption from a GPIO pin When the GPIO pin is interrupted a signal SIGUSR1 or SIGUSR2 will be sent to the registered user process id 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 RT3352 RT5350 Page 73 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Table 6 GPIO Usage of RT2880 GPIO IA V30RW FE Low Active signal input for WPS Wi Fi protection setup GPIO0 Reset 6 e functionand restore the to default setting to default value when push bottomfor 3 seconde GPIO8 DTR_Ne gt o 2 Reserved GPIO10 DCD_No Giga PEY Resete GPIO11 DSR_N System Low Active output for system GPIO12 CTS_Ne Status ready LED displaye Low Active output for s security LED indicates when GPIO13 RINo l J
51. Ls bulli M nodule nk gt nodule capable A Qota support Kerrel autonounter support Kernel autonounter version 4 support also supports v3 Reiserfs support AFS File sustos support EXPERIMENTAL Miga FFS File saten support EXPERIMENTAL rls HFS File sto support EXPERIMENTAL Benin HFS Extended WFS file systen support EXPERIMENTAL BeOS File systeny lt BeFS support fread only EXPERIMENTAL IFS File systen support EXPERIMENTAL Ext3 journalling File sustem support KS FAT Fs support EFS file systen sueport reed only EXPERIMENTAL Journal ling Flash File Syston JFFS support Journal ling Flash File Systes v2 JFFS2 support Compressed ROM File sustex support Sausched with LZMA file system support Additional options For asnory constrained sustens Virtual menory File masten support Forner she Fa 150 9660 COROM File susten support FS Filesysten support Minix fa support FrosvFS File susten suoport VERITAS VXFS TM compatible NIFS File systes support read only 05 2 HPFS File suster support Jpcc File aysten support dev file systen support EXPERIMENTAL Atonatically mount at boot E lt lt lt lt E t E lt lt gt ROM File sustem support Second extended fs support Seten V enix V7 Coherent File pusten support lt File system support read only D H eem wie Figure 20 Configuration Procedure of Telnet Server 11 11 11n bit rate derivation
52. Manual 11 32 How to enable ebtables The ebtables program is a filtering tool for a Linux based bridging firewall It enables transparent filtering of network traffic passing through a Linux bridge make menuconfig Customize Vendor User Settings Network Applications gt nsnasq DNS forwarder DHCP server isktype detect format of a disk _cho server torage enable chmod fdisk in busybox o ahead webserver nable IP 6 support i nable SSL support nable hostname support nable GreenAP support enable crond in busybox nable Wizard support Exit gt Yes Usage If router would like to block all packets of a host from intranet to internet ebtables A FORWARD s host MAC address j DROP Or ebtables A FORWARD p IPv4 ip src hos IP address j DROP 11 33 Howto enable IPv6 Rapid Deployment 6rd To enable IPv6 Rapid Deployment 6rd please include ipv6 6rd feature support in the kernel make menuconfig Customize Kernel Settings Page 125 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual In the kernel settings find The IPv6 protocol by select the following options Networking support gt Networking options gt lt gt The IPv6 protocol gt lt gt IPv6 IPv6 in IPv4 tunnel SIT driver N IPv6 IPv6 Rapid Deployment 6RD EXPERIMENTAL Please check both IPv6 IPv6 in IPv4 tunnel SIT driver and IPv6
53. MediaTek Inc RALINK AP SDK 4 0 0 0 USER s MANUAL Copyright O 2012 MediaTek Inc 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 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 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 Ralink 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 Ralink hereby disclaims any warranties including but not limited warranties of non infringement merchantability completeness accuracy fitness
54. Name Rule attribute Group Highest mac Address Dest IP address Src IP address ex Packet Length DCH Protocol Remark DSCP as Not change 1 Remarker Add Download rules 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 d ICMP TCP UDP port range e Layer 7 content inspection 3 Rule Remarker This argument specifies what DSCP value would be added to the packet as a remark which matches the rule 11 21 How to enable USB Ethernet example for ASIX AX88XXX Kernel Library Defaults Selection gt Page 99 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Customize Kernel Settings Device Drivers gt USB support gt USB Network Adapters gt lt M gt Multi purpose USB Networking Framework lt M gt ASIX AX88xxx Based USB 2 0 Ethernet Adapters lt M gt CDC Ethernet support smart devices such as cable modems CONFIG_USB_RTL8150 m insmod usbnet insmod cdc_ether usbcore registered new interface driver cdc_ether insmod asix ko usbcore registered new interface driver asix usb 1 1 new high speed USB device using dwc_otg and address 2 usb 1 1 Product USB2 0 usb 1 1 Manufacturer ASIX Elec Corp
55. Pressing gt includes QD excludes OD wodularizes features Press Tee to exit 07 Por Help Legend Le built in C 7 excluded ID nodule lt gt nodule capable Li Ralink EIS GPIO Support Es Ralark ETO LED Support lt gt Ralirk BIR SPI Support 7 5 Ralirk RT2800 120 Support E 3 Virtual terminal de Standard generic 8250 16550 ard compatible LARTS serial support _ Support For console 6h Serial port L J Extended dmb serial driver options 3 Non standard serial port support gt Cosputone Intellifort Plus serial support gt Control Rochstport support Gyeledes spe aux Support Migitoard Intelligent Mans Support Kera Pns Support gt Moca Irtelllo geet hes Saar support gt Multi Tech sultiport ear support EXPERIMENTAL gt Microgate ink card support SureLirk Multiport support gt BC Line discipline support gt SDLIRISCon 8 card support gt Sp cialix 108 card support gt Specialiix SK and SI card support fipecialix RIO sete support 3 Stallicn multiport serial support 1 DOE serial port sport 7 THTIGHOMEK serial port support Joysticks joysticks gt WH tape support gt IPHI top level Ses handler vy EE but Help gt Linx Kethel v24230 CTET aE ra Keys navigate the nend Enter selects submi ghted letters are hotkeys Pressing lt Y includes 7 excluded QD excludes HY scdularises features Press EsciEsc to exit lt 7 for Help Legend
56. T288x_SDK source images zlmage lzma Step2 Change mtdblock size 576110 0x8CAGE gt 0x90000 multiple of 0x10000 because the flash sector size 64KB 0x0 mtd 0 Uboot Page 60 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 0x30000 0x40000 ON mtd 1 Config mtd 2 RF Kernel 4 mtd 3 mtd 4 Root ES LN Padding A f 0x400000 host make menuconfig Hit Kernel Library Defaults Selection to enter config Customize Kernel Settings Machine selection Page 61 of 132 uration menu 0x50000 gt MEDIATEK 10 FLASH LAYOUT AND FIRMWARE UPGRADE RALINK AP SDK 4 0 0 0 User s Manual 10 1 Flash Layout Offset 0 192K bootloader 6x30000 64K User config Switch parameter 0x40000 X 0x50000 2T ADA 2 gt S 0325257 ise 2223 1 6875M Z ZIS SS HSE En a CH Q Ee KS gt ae amp S e salecls Z lt K ent GR S sl AS gt 0x200000 gt yo n 5 o 4 2 WW CG E y 2 da Q L o Z 2M 5 0x400000 WLANI for concurrent AP Figure 11 Ralink SDK Flash Layout 4MB Page 62 of 132 Offset 0 0x 1000 0x2000 0x6000 0x8000 0xa000 Oxf000 0x 10000 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual In the user configure switch parameter partition the WLANO configuration is for built in first wifi interface parameters the WLAN1 configuration is for
57. T3883_3T3R RT2860_default_novlan_3s letc_ro Wireless RT2860AP RT2860_default_novlan ROMFSINST e CONFIG_RALINK_RT3883_3T3R RT2860_default_vlan_3s letc_ro Wireless RT2860AP RT2860_default_vlan ROMFSINST e CONFIG_RALINK_RT3662_2T2R letc_ro Wireless RT2860AP RT2860_default_novlan Page 114 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual ROMFSINST e CONFIG_RALINK_RT3662_2T2R letc_ro Wireless RT2860AP RT2860_default_vlan ROMFSINST e CONFIG_RT3090_AP etc_ro Wireless iNIC RT2860AP dat ROMFSINST e CONFIG_RT3090_AP letc_ro Wireless RT2860AP RT3092_PCle_LNA_2T2R_ALC_V1_2 bin Stepe Please modify RT288x_SDK source user rt2880_app scripts internet sh ex ifRaxWdsxDown if SCONFIG_RTDEV o SCONFIG_RT2561_AP then ifRaixWdsxDown fi if SCONFIG_RT2860V2_AP then rmmod rt2860v2_ap_net rmmod rt2860v2_ap rmmod rt2860v2_ap_util fi if SCONFIG_RT2860V2_STA then rmmod rt2860v2_sta_net rmmod rt2860v2_sta rmmod rt2860v2_sta_util fi if RT2880v2_INIC_PCI nm 1 then rmmod iNIC_pci fi if SCONFIG_RT3090_AP then rmmod RT3090_ap_net rmmod RT3090_ap rmmod RT3090_ap_util fi RTDEV_PCI support if RT2880v2_INIC_PCI then insmod q iNIC_pci fi if 5SCONFIG_ RT3090_AP then insmod q RT3090_ap_util insmod q RT3090_ap insmod q RT3090_ap_net fi Step7 You must switch directory to RT2
58. UNIX98_PTY_COUNT 256 CONFIG_DEVPTS_FS y 3 File systems Page 80 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual l a PORNO Arros keys navigate the menu Enter are hotkeys Pressing Y incl QD excludes QO nodularizes features Press Ese to exit 7 For Help lt gt For Search Legend built in E 7 excluded lt M nodule lt gt module capable 1 Support for shadow passwords Use internal password and group functions rather than system functions 7 arat 7 delgroup 7 zr J deluser J getty 7 Support utap file Les for PAM Pluggable Authentication Modules Support For login scripts Support For etc nalogin Support For etc securetty err Sete eassud D bd ogir lock ENEE rr mie Lea ee est Arrow keys navigate the neru Enter selects Mied letters are hotkeys Prezeg M includes D excludes B sodularizes Features Press Esc Esc to exit lt gt for Help lt gt For Search Legend Le built in E J excluded WD scdule AFconfig Enable status reporting cutput k Enable slip specific options kespalive and outfall Enable options aem start ig addr mand ira Enable option hu ether only Set the brosdcsst automatically fmm em Linux Kernel v2 4 30 Configuration Arrow kes navigate th Se Enter selects sub ad letters are hotkeys
59. _IMAGE rt2880_100phy_128Mbx16_8Mflash uboot make f Makefile 8M Flash layout Er KERNEL Partili Uboot UsrCfg RET Kernel Partl lt 0x400000 gt lt 0x50000 gt 0x3B0000 gt Page 101 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 11 23 How to start a printer server example for HP officejet 4355 Step1 SDK Configuration make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Device Drivers gt USB support gt lt gt USB Printer support Customize Vendor User Settings Network Applications gt p910nd small printer daemon Step2 Plug in USB Printer usb 1 1 new full speed USB device using dwc_otg and address 2 usb 1 1 Product Officejet 4300 series usb 1 1 Manufacturer HP usb 1 1 SerialNumber CN864GZ1S004GR usb 1 1 configuration 1 chosen from 1 choice drivers usb class usblp c usblpO USB Bidirectional printer dev 2 if 1 alt O proto 2 vid 0x03F0 pid 0x5411 Step3 run the printer daemon p910nd f dev IpO Step4 Setup the printer in Windows Page 102 of 132 MEDIATEK Ape RTS ROTA SE BREE LL Bh SEN ARES IESE ARER Use em E Ga ANNEE amp ge R TAAT TEBE i 1394 gt See P E st TE PS s SIE Re ia C
60. _init renew 2860 ra dat set NVRAM values for RT2860 platform according to ra dat file f nvram_daemon start the nvram_daemon To avoid accessing NVRAM inconsistently sdk also supports Kernel mode NVRAM make menuconfig Customize Kernel Settings Machine selection gt System type Ralink RT305x RT3350 board gt Soc Hardware Type RT305x RT3350 ASIC gt Ralink RT3350 chipset DRAM Size 16M gt N NOR gt UDA ernel NVRA Root File System Type RootFS_in_RAM gt 92 Default RAM disk size Compress ramdisk by lzma instead of gzip Ralink WatchDog Ralink DFS Timer 8 Kd Kd Kd a 8 1 8 SPICMD Description SPI Toolkit for SPlEEPROM Read Write Program Usage spicmd read write parameters Note espicmd read the address espicmd writes the size address value esize is 1 2 4 bytes 8 1 9 122 CMD Description 12C Toolkit for EEPROM Read Write via 12C Interface Usage i2ccmd read write parameters Note ei2ccmd read the address ei2ccmd write the size address value Page 44 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual esize is 1 2 4 bytes 8 1 10Script Description WebUI configuration script Usage Refer to the script help message 8 2 goahead Source code RT288x_SDK source user goahead Description WebUI reference design of the AP Router Solution 8 3 nvram library Source code RT288x_SDK source lib libnvram
61. abled including in kernel and application configs Kernel IMQ config Since the Intermediate Queueing IMQ pseudo device are used to support Ralink SW QoS it must be enabled first or some needed options in Netfilter configs won t show up due to dependency Networking gt Device Drivers gt Network device support gt lt gt IMQ intermediate queueing device support IMQ behavior PRE POSTROUTING IMQ AB 2 Number of IMQ devices Kernel Netfilter configs In order to support Ralink SW QoS several necessary Netfilter modules are used including Netfilter match and target modules These modules must be enabled to let Ralink SW QoS work correctly But first of all a proprietary Ralink option in Netfilter has to be enabled To completely fit the requirement of Ralink SW QoS some changes are made in Linux Netfilter architecture For this changes a Ralink proprietary Netfilter option Netfilter Ralink 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 gt Networking gt Networking support NET y gt Networking options Page 93 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual gt Network packet filtering framework Netf
62. ablee 100 Base TX Half 1 Capable of Half Duplex hile Duplex Capable 0 Not Capablee 10 Base TFull Duplex 1 Capable of Full Duplex 1LOBASE Te ee Ihle Capablee 0 Not Capablee We 10 Base THalfDuplex 1 Capable of Half Duplex 108 el Ihle Capablee 0 Not Capablee 4 00 R We Selector Fielde Identifies type of messagee 5 hO1 User Mode mil mgr s p port_no r reg_adar v Value Kernel Space Page 105 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual extern u32 mil_mgr_write unsigned int unsigned int unsigned int mii_mgr_write port_noj reg_adar value NOTES IF BOTH RT305X SWITCH AND REMOTE PEER DO NOT USE THE SAME CONFIGURATION I E AUTO NEGOTIATION OR FORCE MODE IT CAN CAUSE A PROBLEM 11 25 How to verify IGMP snooping function Step1 Compiling IGMP proxy application make menuconfig Kernel Library Defaults Selection gt Customize Vendor User Settings NEW Network Applications gt igmp proxy RFC4605 Step2 Enable IGMP Proxy in WebUI 802 1d Spanning Tree Disable LLTD Disable liom Proxy Sas lt UPNP Disable v Router Advertisement Disable v DNS Proxy Disable vw Sech 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 2FAMIL YID 9D467A69 57FF 4AE7 96EE B 18C4790CFFD8DISPLA YLANG EN
63. ag 1994999999994 009909 9999999999999999 09C 000 Op aac Ka Ca Ka kata ba teka Ca Ko Ka La a Ca La a La f ER 999990990 e You must enter WiFi Driver Sup rt and select RT3090 moudule to to act 274 WiFi interface but one Page 118 of 132 TEK RALINK AP SDK 4 0 0 0 User s Manual y d z RT3090 802 4 Leave Ralink Module J Louw 5 tion and then exit jion MUY L WR J f d Linux Kernel Configuration p and to build image under the RT288x_SDK source Page 119 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual If the firmware is built successfully you can upgrade it into your RT3052 RT3883 RT3352 RT5350 RT6855 RT6856 reference board by TFTP Server or Web GUI After firmware upgrade you can use Web GUI or command line to to check if two wifi interfaces are successfully inserted and brought up or not Web GUI m ijm o ty Z Ralink K p Ralink APSoC open all close all Select Language Enghsh v Apy Status Statistic Man men BEIER CERTIFIED Wi Fi PROTECTED SETUP WEBSERVER o Command line 1st WiFi interface name ra0 2nd WiFi interface name rai0 ra0 s profile is located on etc Wireless RT2860 RT2860 dat and rai0 s profile is located on etc Wireless iNIC iINIC_ap dat To change rai0 s wireless settings you can edit its profile and re bring up it like ra0 Certainly rat and rai0 ar
64. bufset nvram_bufget nvram_commit in your CGI RT288x_SDK source user goahead src to use your feature 11 3 2Example 2 Save the RADIO ON OFF button in WebUI to flash 1 Adda line to RT288x_SDK source vendors Ralink RT2880 RT2860_default_vlan for the default value RadioOn 7 2 Modify RT288x_SDK source user goahead src wireless c function wirelessBasic to save the radio on off value to flash Page 68 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual radio websGetVar wp T radiohiddenButton T 2 if lstrncmp radio 0 2 f nvram_bufset RT2860_NVRAM RadioOn radio doSystem ifcontig ra0 down websRedirect wp wireless basic asp return else if Istrncmp radio 1 2 nvram_bufset RT2860_NVRAM RadioOn radio doSystem ifconfig ra0 up websRedirect wp wireless basic asp return 3 Modify the RT288x_SDK source user rt2880_app scripts internet sh script not to bring rat up if RadioOn value stored in flash is not 1 Change ifconfig ra0 0 0 0 0 to radio nvram_get 2860 RadioOn if Sradio 1 ifconfig ra0 0 0 0 0 up else ifconfig ra0 0 0 0 0 down 11 4 Enable Ethernet Converter Feature Page 69 of 132 MEDIATEK RALINK AP SDK 4 0 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 Eth0 192 168 0 254 Private IP m m
65. e development environment lt makes a directory equivalent to home user RT288x_SDK Har jxvf RT288x_SDK versionj date far bz2 e The RT288x_SDK package contains the subsequent directories o toolchain mips toolchain o source Linux kernel source o Tools useful script e The source directory contains the subsequent directories o config auto configuration files o Images Linux image o lib UClibc 0 9 28 o linux 2 4 x Linux kernel source for RT2880 o linux 2 6 21 x Linux kernel source for RT3052 RT3883 RT3352 RT3883 o linux 2 6 36MT x Linux kernel source for RT6855 RT6856 o romfs root file system uncompressed o tools useful script to generate rootfs o user user applications o vendor init scripts of target platform inittab rcS etc Page 32 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 5 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 Use the uClibc C library 5 1 Install toolchain cp RT288x_SDK toolchain builaroot gcc342 tar bz2 opt tar jxvf bulldroot gcc342 tar bz2 The extract procedure makes a directory equivalent to opt buildroot gdb 5 2 Install LZMA Utility Izma is necessary to make the compressed kernel image The Ralink RT2880 SDK uses Izma to compress the kernel image cd RT288x_SDK
66. e shown their detail information or configured settings by iwpriv command for example raU Page 120 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual iwprive ra0 set SSID RT3883AP iwprive raU stat rai iwprive rai0 set SSID RTDEV_AP iwprive rai0 stat 11 29 SuperDMZ usage guide Usage super_dmz f l lan_ifname w wan_ifname t tcp_port t tcp_port1 tcp_port2 u udp_port u udp_port1 udp_port2 f flush amp clear super_dmz functions from system Jan name Explicitly assign the LAN interface name ex brO or eth2 2 In Ralink SDK this argument is assigned automatically based on the current operation mode if it is not assigned explicitly w wan_ifname Explicitly assign the WAN interface name ex eth2 2 or opp In Ralink SDK this argument is assigned automatically based on the current WAN mode if it is not assigned explicitly t tcp_port TCP port tcp_port is the exception of DMZ forwarding ex 80 or 23 The most case here is 80 for AP web remote access t tcp_port1 tcp_port2 _ TCP port from tcp_port1 to tcp_port2 is the exception of DMZ forwarding u udp_port UDP port udp_port is the exception of DMZ forwarding u udp_port1 udp_port2 UDP port from udp_port1 to udp_port2 is the exception of DMZ forwarding Example Page 121 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 1 super_dmz f Clear Super DMZ
67. en LEDIG EEDA o gt Negative polariy bit2 LED Act bit3 0 Reserved 1 LED ACT polarity inversion whendink toA bit0 LED G Vienna 0 c c RIL LED A Radio on and nk To SLS 0 Fe polarity bit2 LED Act bit3 0 Reserved 1 LED ACT polarityinversionwhenlinkto A b but LED CG e S 1 Positive polarity Radio oitandlinktoAlj15 12 2 LE 2 P Negativepolariy bit 2 LED Ac bit3 0 Reserved 1 LED ACT polarity inversion when ink 10A The current Ralink default flash hex values are subsequently shown RT2880 Flash Base Address 0x40000 e 4003B 1 controlled by firmware e 4003C 55 LED A G dont care Page 79 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual e4003D 77 LED A G don t care e 4003E A8 LED ACT radio off solid on off e4003F AALED ACT blink when transmitting data amp management packet s 40040 8C LED Act positive polarity when radio off gt solid off s 40041 88 LED Act negative polarity when link to A G gt blink 11 10 How to start the telnet server Check RT288x_SDK source user busybox config 11 10 1 busybox setting CONFIG_FEATURE_DEVPTS y gt General Configuration CONFIG_FEATURE_SUID y General Configuration CONFIG_LOGIN y gt Login Password Management Utilities CONFIG_TELNETD y Networking utilities CONFIG_FEATURE_TELNETD_STANDALONE y Check RT288x_SDK source linux 2 4 x config 11 10 2 Linux setting CONFIG_UNIX98_PTYS y 3 Character devices CONFIG_
68. etails to make a good fit with the user s network environment e g ADSL 512k 64k Cable Modem 10M 10M 3 Select a QoS model DRR Deficit Round Robin SPQ Strict Priority Queue DRR SPQ 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 The four QoS groups are subsequently shown Quality of Service Settings You may setup rules to provide Quality of Service guarantees for specific applications QoS Setup Quality of Service Download from Internet v Download Bandwidth 32M v Bitsisec CO CE Reserved bandwidth 0 v 10 is recommanded QoS Download Settings 40 v Ceil 100 310 ei Ceil 100 10 ei Ceil 100 vw The default group is the group named Default the third group that means the packet would be classified into this group if it doesn t match with any rules QoS Download Settings Highest Rate 10 ei Ceil 100 ze l cei 100 ze 110 Ceil 100 vw 10 Ceil 100 e Ineach QoS group there are two attributes Rate and Ceil as shown in the subsequent figure Page 97 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s
69. fault iocharset for FAT NEW Partition Types gt Advanced partition selection IT PC BIOS MSDOS partition tables support NEW Page 91 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Native Language Support gt iso8859 1 Default NLS Option lt gt Codepage 437 United States Canada lt gt Traditional Chinese charset Big5 lt gt NLS ISO 8859 1 Latin 1 Western European Languages lt gt NLS UTF 8 Ralink Module gt lt M gt RALINK DWC_OTG support enable debug mode Pl HOST ONLY MODE DEVICE ONLY MODE CAUTION THE KERNEL SIZE CANNOT BE BIGGER THAN THE MTD KERNEL PARTITION SIZE IN ROOTFS IN FLASH MODE Original Kernel Image Size 1033369 home steven rt3052 RT288x_SDK source images zlmage Izma Padded Kernel Image Size 1048512 home steven rt3052 RT288x_SDK source images zlmage Izma Original RootFs Size 11 18 How to enable USB automount on the RT305x platform make menucontfig Kernel Library Defaults Selection gt Customize Busybox Settings Linux System Utilities gt mdev Support etc mdev conf Support subdirs symlinks NEW Support command execution at device addition removal Customize Vendor User Settings Page 92 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Miscellaneous Applications gt ntfs 3g 11 19 How to enable software QoS To support the Ralink SW QoS many menuconfig options in Ralink SDK must be en
70. i Ge make menuconfig Customize Vendor User Settings Network Applications gt Exit Yes e radvd radvd the Router Advertisement Daemon is an open source software product that implements link local advertisements of IPv6 router addresses and IPv6 routing prefixes using the Neighbor Discovery Protocol NDP as specified in RFC 2461 12 The Router Advertisement Daemon is Page 123 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual used by system administrators in stateless autoconfiguration methods of network hosts on Internet Protocol version 6 networks make menuconfig Customize Vendor User Settings Network Applications gt radvd Ro rertisement Daemon advd t2860apd 802 1x Authenticator t6lapd Legacy 802 1x Authenticator Exit gt Yes 11 31 How to enable Perf tool iPerf was developed by NLANR DAST as a modern alternative for measuring maximum TCP and UDP bandwidth performance Perf allows the tuning of various parameters and UDP characteristics Perf reports bandwidth delay jitter datagram loss make menuconfig Customize Vendor User Settings Miscellaneous Applications gt xia Endpoint mbench nd write m stat n tcat A n tetat nat Exit gt Yes Uasage Server sied iperf s Client side iperf c server s ip w 128k t 30 i 10 Page 124 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s
71. igned int extern u32 mil_mgr_write unsigned int unsigned int unsigned int mii_mgr_write 0 0 Ox3900 set port O registerO bit11 mii_mgr_write 1 0 Ox3900 set port 7 registerO bit11 mii_mgr_write 2 0 0x3900 set port 2 registerO bit11 mii_mgr_write 3 0 0x3900 set port 3 registerO bit11 mii_mgr_write 4 0 Ox3900 set port 4 registerO bit11 You also need to set POC 27 23 to disable Phy port RT288x_SDK source linux 2 6 21 x drivers net raeth rather c unsigned long 0xb0110090 0x0 207f7f POC1 Port Control O offset 0x90 Bits Type Name Description Initial value 31 30 RAW HASH_ADDR SHIFT ee table hashing algorithm option for member set 2 b0 Disable port 6 L Ke Wa DIS GN A 1 port disable if dumb mode default 0 Ki Disable port 5 f l l T iyw DIS_GMIL_PORT_0 1 port disable if dumb mode default 0 TR g Disable phy port S Wei MG BG 1 port disable if dumb mode default 0 Sh 22 16 R W DISRMC2 CPU 1 disable RMC packet to cpu 7 ho 15 RO Reserved 1 b0 l Enable pause flow control R 148 Wi ENZFC enable 802 3x flow control dhii H RO Reserved 1 b0 Enable back pressure F 6 HW Reserved 1 enable back pressure but need to qualify BP_mode ei 11 14 How to enable NFS client make menucontig Page 87 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Kernel Library Defaults Selection gt Networking
72. ilter NETFILTER y gt Core Netfilter Configuration Netfilter Ralink SWQoS support Marking after NAT Then please enable the following necessary netfilter and iptables modules to support Ralink SW Qos gt Networking gt Networking support NET y gt Networking options gt Network packet filtering framework Netfilter NETFILTER y gt Core Netfilter Configuration lt gt Netfilter connection tracking support lt gt conntrack connection tracking match support lt gt DSCP target support lt gt MARK target support lt gt DSCP match support lt gt helper match support lt gt length match support lt gt mac address match support lt gt state match support lt gt layer7 match support lt gt Ethernet port for incoming packets match support And gt Networking gt Networking support NET y Page 94 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual gt Networking options gt Network packet filtering framework Netfilter NETFILTER y gt P Netfilter Configuration gt lt gt P tables support required for filtering masq NAT lt gt Packet mangling lt gt IMQ target support Application configs Besides kernel configs there are also several application menuconfigs which has to be enabled to support Ralink SW QoS Customize Vendor User Settings Library Configuration gt Build libresolv Network A
73. ing GPIO pin O and 2 as output pins and the other pins as input pins e RALINK_GPIO_SET_DIR_IN Configure one or several GPIO pins as input pins using bitmaps For example value 0x5 is for configuring GPIO pin 0 and 2 as input pins and other pins are ignored e RALINK_GPIO_SET_DIR_OUT Configure one or several GPIO pins as output pins using bitmaps For example value 0x5 is for configuring GPIO pin O and 2 as output pins and other pins are ignored e RALINK_GPIO READ Read the value from the GPIO data e RALINK_GPIO_WRITE Write a value to the GPIO data e RALINK_GPIO_SET Set a value with corresponding bits on to the GPIO data For example value 0x5 means GPIO data bit 0 and 2 will be set to 1 and the other bits will be ignored Page 72 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual e RALINK_GPIO_CLEAR Clear a value with corresponding bits off the GPIO data For example value 0x5 means GPIO data bit 0 and 2 will clear to 0 and other bits will be ignored e RALINK_GPIO_READ_BIT Read the corresponding bit from the GPIO data For example bit 2 means read the third bit from GPIO data e RALINK_GPIO_WRITE_BIT Write a corresponding bit to the GPIO data For example bit 2 and value 1 mean to write value 1 to the third bit of GPIO data e RALINK_GPIO_READ_BYTE Read the corresponding byte from the GPIO data For example byte 2 means to read the third byte from GPIO data e RALINK_GP
74. ion flash read write test program Usage Page 40 of 132 MEDIATEK RALINK AP SDK 4 0 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 write flash w 370000 o 1234 c 4 c erase flash f 60 I 61 8 1 4 GPIO Description GPIO test program Usage GPIO r w i I The name of the GPIO testing user application is gp o e gpio w writing test output e gpio r reading test input e gpio i lt gpio gt interrupt test for GPIO number s gpio lt gpio gt lt on gt lt off gt lt blinks gt lt rests gt lt times gt set led on lt gpio gt 0 24 on off interval no of blinking resting cycles blinking time Pin sharing scheme It is important to know what normal function pins are shared with the GPIO pins Only one normal function and GPIO can operate at the same time e GPIOMODE GPIO purpose select Configure the pins to use as GPIO s PIODIR programmed UO direction Configure the direction of all GPIO pins to use as GPIO an output is set as 1 and an input pin is set as 0 s PIODATA programmed l O data Write data for output GPIO pins and read data for input GPIO pins PIOSET PIORESET PIOTOG are also used for adjusting GPIO data bits e PIOINT PIOEDGE PIORENA and PIOFMASK should be set when using GPIO pins for i
75. l 2007 05 25 Application NTP DDNS WebUl enhance Vista RG Native IPv6 LLTD Firewall Driver DC GP GPIO driver Wi Fi features Intergraded QA WPS mBSSID WDS STA mode 802 1x Concurrent AP support 2 0 SDK Feature parity with 1 3 SDK None Beta 2007 07 06 plus Formal 2007 07 20 File system support ramdisk and squashfs WebuUl save restore configure WPS PIN WPS PBC factory default STA mode support Page 9 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Application push button to load default configuration GPIO reference design Wi Fi features AP Client Ethernet Converter Support 2 2SDK 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 WMM PS WPS Operation Mode reorganization to Bridge Gateway and Ethernet Converter support iNIC driver Support Squash with LZMA file system 2 3 SDK Feature parity with 2 2 SDK IC 100Phy Formal 2008 01 16 plus Realtek 100Phy NIC v1 1 6 1 RT2561 driver v1 1 2 0 Spansion Flash Support RT2860 AP driver v1 7 RT2860 STA driver v1 5 RT2561 WebUl Multi Language WebUl support 2 4 SDK Feature parity with 2 3 SDK Mii NIC Formal 2008 04 07 plus NIC v1 1 7 4 RT2860 AP driver v1 8 1 0 RT2860 STA driver v1 6 0 0 Static Dynamic Routing Content Filtering 3 0 SDK_
76. m c display all configurations in NVRAM or generate dai files nvram_daemon is a daemon and register for NVRAM settings or setting NVRAM values referring to a given file It receives interruptions from GPIO pin 0 If SIGUSR1 is received user one clicked GPIO pin 0 button nvram_daemon tells the GoAhead web server to start the WPS PBC procedure by sending it SIGUSR1 If SIGUSR2 is received user pressed GPIO pin 0 button for several seconds nvram_daemon will restore the system configuration to the default values Usage a get nvram_get lt 2860 inic gt lt field gt b set nvram_set lt 2860 inic gt lt field gt c init ralink_init lt command gt lt platform gt lt file gt Commands s rt2860_nvram_show display rt2860 values in nvram e inic_nvram_show display inic values in nvram e show display values in nvram for lt platform gt e gen generate config file from nvram for lt platform gt e renew replace nvram values for lt platform gt with lt file gt Platform e 2860 rt2860 station einic intelligent nic File File name for renew command daemon nvram_daemon Example Page 43 of 132 MEDIATEK RALINK AP SDK 4 0 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 ralink_init show inic display the INIC configurations in NVRAM e ralink
77. m zl e e 192 168 0 1 168 0 168 192 168 0250 Figure 14 Ethernet Converter Operation Diagram If the RT2880 platform can be operated as an AP or Ethernet converter by WebUI Configuration make sure STA support and AP support as a Linux module is on in the rt2860v2 driver Turn on the rt2860v2 STA support if the RT2880 platform is an Ethernet converter only Select the operation mode on the Operation Mode Configuration web page Page 70 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 7 Ralink m i m 0 ily Operation Mode Configuration open all close all rt2860v2_sta o 9 RT2880 Setup You may configure the operation mode suitable for you environment 1 1 Operation Mode EC Internet Settings O wan O Bridge O LAN All ethernet and wireless interfaces are bridgedinto a single bridge H VPN Passthrough O galea E 3 Wireless Settings Gateway The first ethernet port is treated as WAN port The other ethernet ports and the wireless interface are bridged together and are treated as LAN ports Ethernet Converter ate is treated as WAN port and the ethernet ports are L Link Status L Site Survey 1 7 Statistics CH Advance J LAN ports D sin CH tin Configurations pply OH About Q wes CH Administration Figure 15 WebUl STA Mode Setting 11 5 Change RF chip from RT2820 to RT2850 on the RT2880 platform The QA program can burn an RT2850 EEPROM binary file
78. mo Board Page 15 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Table 1 RT2880 Memory Mapping Address Range hex Size Block Name 0000 0000 001F FFFF 2M Reserved 0020 0000 0020 1FFF 8K Reserved 0020 2000 0020 3FFF 8K Reserved 0020 2000 0020 5FFF 8K Reserved 0020 6000 002F FFFF 1024K Reserved 0030 0000 0030 00FF 256 System Control 0030 0100 0030 01FF 256 Timer 0030 0200 0030 02FF 256 Interrupt Controller 0030 0300 0030 03FF 256 Memory Controller 0030 0400 0030 04FF 256 Reserved 0030 0500 0030 05FF 256 UART 0030 0600 0030 06FF 256 Programmable UO 0030 0700 0030 07FF 256 Reserved 0030 0800 0030 08FF 256 Reserved 0030 0900 0030 09FF 256 DC 0030 0A00 0030 0AFF 256 Reserved 0030 0B00 0030 0BFF 256 SPI 0030 0C00 0030 0CFF 256 UART Lite 0030 0D00 0030 0DFF 256 Reserved 0030 0F00 0030 0FFF 256 Reserved 0030 1000 0030 FFFF 1020K Reserved 0040 0000 0040 FFFF 64K Frame Engine 0041 0000 lt 0041 FFFF 64K Embedded 16KB ROM wrap around in the 64KB space 0042 0000 0042 FFFF 64K PCM Controller 0043 0000 0043 FFFF 64K Reserved 0044 0000 0047 FFFF 256K PCI Host Device Controller 0048 0000 004B FFFF 256K 802 11n MAC BBP 004C 0000 004F FFFF 256K Reserved 0050 0000 0053 FFFF 256K Reserved 0054 0000 007F FFFF 2816K Reserved
79. n the Uboot menu to update your uboot from 0x0 to 0x30000 10 3 2By WebUI You can use WebUI to upgrade the Linux image Z Ralink m i m o t dd Upgrade Firmware d RT2880 Setup Upgrade the RT2880 firmware to obtain new functionality It takes about 1 D Operation Mode minute to upload amp upgrade flash and be patient please Caution A a Internet Settings corrupted image will hang up the system 2 3 Wireless Settings O Basic Update Firmware EEN Location D Security wes y Station List 2 3 Firewall Update Bootloader 2 Mac et aian 14 Port Forwardinc DMZ 2 53 Administration D Management Ji Q Settings Manac D Status Statistics O System Comme System Log SDK History Figure 13 WebUI Firmware Upgrade CG uses the mtd_write command to burn a Linux image e File system in RAM Burn Linux image to mtdblock3 Kernel Page 65 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual File system in Flash Burn first x bytes to mtdblock3 and others to mtdblock4 ps X byes MTTD kernel partition size in make menuconfig RT2880 ASIC T2880 Chip Type 32M RAM Size 4M lash Size RootFS in Flash T2880 Root File System B0000 MID Kernel Partition Size Unit Bytes NEW Page 66 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 11 FAQ 11 1 RT2880 Default password UART networking setting Table 4 Networking Setting LAN IP Addres
80. nput that causes an interruption 8 1 5 MII MGR Description mii register read write test program Usage Page 41 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual a get mii_mgr g p phy number r register number b set mii_mgr s p phy number r register number v Oxvalue Example a get mii_mgr g p 3 r 4 b 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 e OCTL Commands o RAETH_MIILREAD Get phy register via the mdc mdio interface o RAETH_MII_WRITE Set phy register via the mdc mdio interface e IOCTL interface typedef struct ralink_mii_ioct _data _ u32 phy id _ u32 reg num _u32 valin _ u32 val_out o phy_id Address of PHY device o reg num Register addresses within PHY device o val ine GET the phy register data that is read from phy SET the current register data after MDIO setting o Val out the phy register data that wants to be set O User applications run mii_mgr commands through the ioctl interface to the raeth driver 8 1 6 MTD Page 42 of 132 MEDIATEK RALINK AP SDK 4 0 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 platfor
81. of the Ethernet together so that the Ethernets will appear as one Ethernet to the participants 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 wireless_tools Source code RT288x_SDK source user wireless_tools Description This package contains the Wireless tools The wireless tools are used to control the Wireless Extensions The Wireless Extensions is an interface that lets you set the Wireless LAN specific parameters and get the specific stats 8 11 inadyn Source code RT288x_SDK source user inadyn Description INADYN is a dynamic DNS client It maintains the IP address of a host name It periodically checks if the IP address stored by the DNS server is the real current address of the machine that is running INADYN 8 12 zebra 0 95a_ripd Page 46 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Source code RT288x_SDK source user zebra 0 95a_ripd Description GNU Zebra is free software that manages various IPv4 and IPv6 routing protocols Currently GNU Zebra supports BGP4 BGP4 OSPFv2 OSPFv3 RIPv1 RIPv2 and RIPng 8 13 wpa_supplicant 0 5 7 Source code RT288x_SDK source user wpa_supplicant 0 5 7 Description WPA Supplicant Supported WPA IEEE 802 11 8 14 totd 1 5 Source code RT288x_SDK source user totd 1 5 Descrip
82. pplications gt iptables iproute2 FJ tc Ralink Proprietary Application gt Software QoS 11 20 Software QoS information 11 20 1 Software QoS Preface 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 95 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 11 20 2 Software QoS Concept The Ralink SoC SW QoS architecture is shown in the subsequent figure The Classifier module classifies incoming packets into the Shaper module The Shaper module has 4 queues groups to do rate limitation and then the Remark module rewrites the DSCP field of the packet if it is necessary SW QoS Classifier Remark ackets P packets 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 Quality of Service Settings You may setup rules to provide Quality of Service guarantees for specific applications Quality of Service Download from Internet x 1 Select upload to Internet or download from Internet on the web UI to enable the Ralink SW QoS Page 96 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 2 Enter the upload and download bandwidth d
83. re interfaces SP1 12S 2C UART GMAC to enable many possible applications Figure 2 The RT3052 Demo Board HHEH A667425 4005 ESCH CU CEERI Table 2 RT3052 Memory Mapping 0000 0000 O3FF FFFF 64M SDRAM 0400 0000 OFFF FFFF lt lt Reserved gt gt 1000 0000 1000 00FF 256 SYSCTL 1000 0100 1000 01FF 256 TIMER 1000 0200 1000 02FF 256 INTCTL Page 18 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 1000 0300 1000 03FF 256 MEM_CTRL SDRAM 4 Flash SRAM 1000 0400 1000 04FF 256 PCM 1000 0500 1000 05FF 256 UART 1000 0600 1000 06FF 256 PIO 1000 0700 1000 07FF 256 Generic DMA 1000 0800 1000 08FF 256 NAND Flash Controller 1000 0900 1000 09FF 256 12C 1000 0A00 1000 0AFF 256 125 1000 0B00 1000 0BFF 256 SPI 1000 0C00 1000 0CFF 256 UARTLITE 1000 0D00 100F FFFF lt lt Reserved gt gt 1010 0000 1010 FFFF 64K Frame Engine 1011 0000 1011 7FFF 32K Ethernet Switch 1011 8000 1011 9FFF 8K ROM 1011_a000 1011_FFFF lt lt Reserved gt gt 1012 0000 1012 7FFF 32K lt lt Reserved gt gt 1012 8000 1012 FFFF 32K lt lt Reserved gt gt 1013 0000 1013 7FFF 32K lt lt Reserved gt gt 1013 8000 1013 FFFF 32K lt lt Reserved gt gt 1014 0000 1017 FFFF 256K lt lt Reserved gt gt 1018 0000 101B FFFF 256K 802 11n MAC BBP 101C 0000 101F FFFF 256K USB OTG 1020 0000 1AFF FFFF lt lt Reserved gt gt 1B00 0000 1
84. res IPv6 6rd Page 127 of 132 RALINK AP SDK 4 0 0 0 User s Manual tunnel add 6rdtun mode sit local 111 80 78 ip tunnel 6rd dev 6rdtun 6rd pref 2001 e41 ip addr add 2001 e41 6f 50 4edc dev 6rdtun ip link st 6rdtun up ip route dd D via 61 211 224 125 dev 6brdtun ip addr add 20 50 4edc 64 da br echo 1 gt pro 1et ipv6 conf all forwarding ifconfig 6rdtun 6rdtun Link S 6 frame 0 carrier 0 0 dropped 0 0 dropped 0 overrun s 0 Penaeus 0 0 B HR Ch D ifconfig br brO Link encap Ethernet rice 4 e SE inet addr 10 10 10 dropped 0 overru dropped 0 overru q 8 5 KiB TX bytes 1072 1 0 KiB This example has a WAN IPv4 address 111 80 78 220 and 6rd prefix 2001 e41 32 and ISP s border server ipv4 address is 61 211 224 125 User also configures IPv6 RD settings via Web GUI IPv6 Setup IPv6 Operation Mode ISP 6rd Prefix Prefix Length ISP Border Relay IPv4 Address Tunneling Connection 6RD 2001 e41 32 61 211 224 125 Cancel Page 128 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 11 34 How to enable IPv6 DS Lite ve To enable IPv6 DS Lite please include ipv6 6rd feature support in the kernel make menuconfig Customize Kernel Settings In the kernel settings find The IPv6 protocol by select the following options Networking support gt Networking options gt lt gt The IPv6 protocol gt lt gt
85. s 10 10 10 254 Subnet 255 255 255 0 WAN IP Address DHCP Table 5 UART Setting Item Value Baud Rate 57600 Data bits 8 Parity None Stop Bit 1 Flow Control None Table 6 Web Setting Item Default Value 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 Linux Distribution Fedora 6 Kernel version 2 6 18 1 2798 fc6 RAM 512MB HD 40G Page 67 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 11 3 How to add new default parameter in flash There are four default settings In RT288x_SDK source vendors Ralink RT2880 based on different platforms e RT2860_default_vlan IC gateway mode Vitesse Platform e RT2860_default_novlan IC bridge mode Marvell 1000 Phy platform e RT2860_default_oneport IC 100 Phy platform eRT2561_default RT2561 PCI NIC RT2860 RT2561 concurrent 11 3 1Example 1 Add a new default parameter WHOAMI for IC platform 1 Edit RT288x_SDK source vendors Ralink RT2880 RT2860_default_vlan and add the following line WHOAMI steven 2 Push wps load_default button or execute the following commands ralink_init clear 2860 reboot 3 Use nvram_get to retrieve WHOAMI parameter in script file RT288x_SDK source user rt2880 app scripts or nvram_
86. s 2M 16M 2M Flash and 16M DRAM for pure AP solution pass Vista basic logo and Wi Fi certification b g n logo s 4M 16M 4M Flash and 16M DRAM for complete AP solution including AP STA mode e 8M 32M 8M Flash and 32M DRAM for complete AP NAS solution including USB applications Note A S Choose the target platform type RT2880 or RT3052 or RT3883 Modify the User Kernel Configuration or Load Save User Kernel Default setting Load the target platform setting from a file Save the target platform setting to a file Use Kernel Library Defaults Selection to open the configuration menu Use Default all settings W rnel cr Linux 2 4 x ross Compiler Path opt buildroot gdb bin efault all settings lose changes ustomize Kernel Settings NEW ustomize Vendor User Settings ustomize Busybox Settings ustomize uClibc Settings pdate Default Vendor Settings Page 52 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 3 Go out of the configuration menu and save the new kernel configuration Do you wish to save your new kernel configuration The script gets all user kernel default settings back The subsequent message is shown after getting the default settings back End of Linux kernel configuration 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
87. slation should be UTF 8 encoded 2 Add an entry to RT288x_SDK source config config in dep_bool language pack Korean CONFIG USER GOAHEAD LANG KR CONFIG_USER_GOAHEAD_HTTPD 3 Add an entry toRT288x_SDK source user goahead Makefile ifneq 5 CONFIG_USER_GOAHEAD LANG_KR y rm rf S ROMFSDIR ROOT_DIRECTORY J lang kr endif 4 RT288x_SDK source user goahead src utils c Add to getLangBuilt function else if strncmp lang kr 5 ifdef CONFIG_USER_GOAHEAD LANG KR return websWrite wp T 1 else return websWrite wp T 0O endif 5 RT288x_SDK source user goahead web overview asp Add to initValue function var Jang Kr lt getLangBuilt kr gt if ang kr ze 1 lang_element options lang_element length new Option Korean kri 6 RT288x_SDK source user goahead web adm management asp Add to initValue function var lang_kr lt getLangBuilt kr gt if ang kr 1 lang_element options lang_element length new Option Korean kri Page 89 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 7 RT288x_SDK source user goahead web home asp Fix initLanguage function 8 make menuconfig Customize Vendor User Settings gt Network Applications gt select Korean language pack 11 16 How to enable watchdog e User mode Watchdog make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Device Drivers gt
88. steps to install it Requirement e RT288x_SDK e RT3090 RT5392 RT3572 RT5572 RT5592 RT 3593 WiFi driver e RT3090 RT5392 RT3572 RT5572 RT5592 RT 3593 EEPROM binary files Procedure RT383 RT3090 as example Step7 Please copy RT309x WiFi driver to RT288x_SDK linux 2 6 xx x drivers net wireless ex cp RT3090_ap RT288x_SDK linux 2 6 xx x drivers net wireless Step2 Please modify RT288x_SDK linux 2 6 xx x drivers net wireless Makefile ex Page 113 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual ifneq CONFIG_RT2860V2_AP obj CONFIG_RT2860V2_AP rt2860v2_ap endif ifneq CONFIG_RT2860V2_STA obj CONFIG_RT2860V2_STA rt2860v2_sta endif ifneq CONFIG_RT3090_AP obj CONFIG_RT3090_AP RT3090_ap endif Step3 Please modify RT288x_SDK linux 2 6 xx x ralink Kconfig ex source drivers net wireless rt2860v2_sta Kconfig source drivers net wireless rt2860v2_apsta Kconfig source drivers net wireless RT3090_ap Kconfig config RT3090_AP_RF_OFFSET depends on RT3090 AP hex default 0x48000 Step4 If wifi driver support FLASH_SUPPORT please copy EEPROM binary file to RT288x_SDK source vendors Ralink RT3883 ex cp RT3092 PCle LNA 2T2R_ALC_V1_2 bin RT288x_SDK source vendors Ralink RT3883 RT3352 RT5350 Steps Please modify RT288x SDK source vendors Ralink RT3883 Makefile ex ROMFSINST e CONFIG_RALINK_R
89. t Read Write Name Description Default 15 R W SC MR_MAIN_RESET 1 Reset O Normal 1 ho reset all digital logic except phy_reg 14 R W LOOPBACK_MIl Mitloop back T ho 13 R W FORCE SPEED 1 100Mbps O 10Mbps when Ihi mr_autoneg enable 1 b0 12 R W MR_AUTONEG_ENABLE 1 Enabled O Normal 1 h1 11 R W POWERDOWN phy into power down power down analog TX 1 ho analog RX analog ADI 10 RO KR Reserved T ho 9 BIW SC MR_RESTART_NEGOTIATION 1 Restart Auto Negotiationi seer rere 1 ho 0 Normal 8 R W FORCE_DUPLEX 1 FullDuplex 0 Half Duplex when 1 h1 mr_autoneg_enable 1b0 tt 7 0 RO o Reserved 8h00 2 Auto negotiation Both RT305x and remote peer enable auto negotiation algorithm 10MB Full Get 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 ei gt Address 04 d04 ResetState 05ele Bit Read write Name Descriptions Defaut fase Ro Next Page Enablee 1 Settouse Next Page 0 Not to use Next Pages 1 h0 fas noe e Reserve SC 13 R We Remote FaultEnables 1 Auto Negotiation Fault Detected 1 h0 o 0 No RemoteFaulte 12 11e po Not mplementede Technology Ability A7 A6 2 h0 Technology Ability AS TE LS NotImplemented Technology Ability A4 1 h0 R We 100Base TX Full L Capableottull Duplex hile Duplex Capablee 0 Not Cap
90. ted 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 make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings NEW Character devices gt Ralink RT2880 GPIO Support Ralink GPIO LED Support The LED can be set to blink in different ways if RALINK_GPIO_LED has been built enabled The argument for RALINK_GPIO_LED_SET is ralink_gpio_led_info structure Page 75 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual typedef struct int gpio 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 make menuconfig Kernel Library Defaults Selection gt Customize Vendor User Settings Ralink RT288x Application gt RT2880 GPIO Test Usage gpio lt gpio gt lt on gt lt off gt lt blinks gt lt rests gt lt times gt egpio eon e off eblinks erests etimes GPIO number of the board number of ticks that the LED will be bright number of ticks that the LED will be dark number of on offs that the LED will blink number of on offs that the LED will rest number of blinks before the LED stops Note 1 tick is equal to 100ms The maxim
91. tegrated with a 32 bit MIPS 34Kc CPU a 5 port 10 100 switch dual PCI express ports USB ports interface NIC Intelligent NIC design that provides an easy and ideal solution to add high performance 802 11n 802 11ac to any embedded platforms Overview The RT6855 single chip network processor series contains an 32 bit MIPS 34Kc CPU core a 5 port 10 100 Ethernet switch and a rich array of interfaces to enable interoperability with many possible applications such as dual PCI express port to connect to 802 11n wireless chip USB 2 0 port for network storage 3 4G connectivity and printing PCM interface for analog and VoIP telephony and an 12S interface for audio streaming and dual SP Flash memory interface to support large bandwidth applications through the AP router Figure 7 The RT6856 Demo Board SE A os SIE re aa AE ISINA 99990ZNH o E ost FE Page 30 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual SDRIDDR1 Controller DDR2 Controller ClockiTimer ResetiPLL SDR DDR1 DDR2 2 UART Interface MIPS 34Kc 2 USB 2 0 Interface 700 MHz 64K LC ache pee 32KD Cache EEPROMIControl Audio Interface IPSec engine East Ethernet Switch HWNAT SPIFlashi SLIC prom l o 1 23 4 NAND Flash 8Gb Codec GPIOILED Page 31 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 4 AP SDK SOURCE CODE OVERVIEW The subsequent command is used in th
92. tion Totd is a small DNS proxy nameserver that supports IPv6 only hosts networks that communicate with the IPv4 world using some translation mechanism 8 15 samba 3 0 2 Source code RT288x_SDK source user samba 3 0 2 Description Samba is an Open Source Free Software suite that has since 1992 provided file 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 It sends Router Advertisement messages specified by RFC 2461 to a local Ethernet LAN periodically and when requested by a node sending a Router Solicitation message These messages are required for IPv6 stateless auto configuration 8 17 pptp client Source code RT288x_SDK source user pptp client Description pptp is an implementation of the PPTP protocol for Linux and other Unix systems 8 18 rp 12tp 0 4 Page 47 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual Source code RT288x_SDK source user rp 12tp 0 4 Description This is a user space implementation of L2TP RFC 2661 for Linux 8 19 ctorrent dnh3 2 Source code RT288x_SDK source user ctorrent dnh3 2 Description CTorrent is a BitTorrent Client program written in C C for FreeBSD and Linux CTorrent
93. to the Flash DRAM size settings Go to RT288x_SDK source vendors Ralink RT2880 RT 3052 RT3883 config to see all the default setting files a Busybox default configuration files v 2M_16M_config busybox 2 4 x 2M_16M_config busybox 2 6 21 x v 4M_16M_config busybox 2 4 x 4M_16M_config busybox 2 6 21 x v 8M_16M_config busybox 2 4 x 8M_16M_config busybox 2 6 21 x b User application default configure file v 2M_16M_config vendor 2 4 x 2M_16M_config vendor 2 6 21 x v 4M_16M_config vendor 2 4 x 4M_16M_config vendor 2 6 21 x v 8M_16M config vendor 2 4 x 8M_16M_config vendor 2 6 21 x C uClibc default configure file v 4M_16M_config uclibc 2 4 x 4M_16M_config uclibc 2 6 21 x v 2M_16M_config uclibc 2 4 x 2M_16M_config uclibc 2 6 21 x v 8M_16M_config uclibc 2 4 x8M_16M_config uclibc 2 6 21 x d Linux kernel 2 4 2 6 default configure file v 2M_16M_config linux 2 4 x 2M_16M_config linux 2 6 21 x Y 4M_16M_config linux 2 4 x 4M_16M_config linux 2 6 21 x Page 53 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual v 8M_16M_config linux 2 4 x 8M_16M_config linux 2 6 21 x Y 9 2 Change Flash DRAM Size Change the DRAM size setting using make menuconfig if you increase or decrease the size of DRAM make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings NEW Machine selection gt o Linux 2 4 RT2880 ASIC RT2880 Chip Type 32M DRAM Size 4M Flash Size 6 Linux
94. toolchain Izma 4 32 0beta3 configure make make install install ma to usr local bin Use gzip or Izma to compress the kernel image Make changes to RT288x_SDK source vendors Ralink Platform Makefile COMP gzip Use gzip to compress the Linux kernel image COMP Izma Use Izma to compress the Linux kernel image 5 3 Install mksquashfs utility Page 33 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual mksquashfs lzma is necessary to make the compressed rootfs The Ralink AP SDK uses mksquashfs with Izma to compress the root filesystem Linux 2 4 x Kernel Version cd RT288x_SDK toolchain mksquash_Izma 3 0 make make install install mksquashfs Izma to opt buildroot gdb bin mksquashfs_Izma 3 0 Linux 2 6 21 x Kernel Version cd RT288x_SDK toolchain mksquash_lzma 3 2 make make install copy mksquashfs Izma_alone to opt buildroot gdb bin LZMA_ALONE IS NECESSARY TO MAKE YOUR OWN RAMDISK IMAGE IF YOU TURN ON COMPRESS RAMDISK BY LZMA FOR RT3052 make menuconfig Kernel Library Defaults Selection gt Machine selection gt Compress ramdisk by Izma instead of gzip Page 34 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 6 BOOT LOADER 6 1 Uboot Configuration tar jxvf Uboot_ version BETA FINAL date tar bz2 cd Uboot make menuconfig 1 Set the DRAM Size DRAM Component Row Column 64Mb 12 8 128Mb 12 9
95. uild libtest CONFIG_LIB_LIBTEST_FORCE make menucontig You can see the Build libtest on the menu build Normally built when required old libgmp J old libm uild libpthread old libnvram old libupnp old libthreadutil old libixml uild zlib L L L L L L i uild libtest Figure 9 User Library Configure Menu 5 Compile your new library make dep make Iib_only 7 3 Build user library cd RT288x_SDK source make Iib_only Z make rom s The shared libraries are shown in RT288x_SDK source romfs lib Page 39 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual 8 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 Ralink Proprietary Applications 8 1 1 ATED Description for rt 2860 v1 4 ATE test program Usage ate Note e Execute ate on the demo board e Connect directly from the LAN port to the PC e Execute QA on the PC wait 30 seconds 8 1 2 REG Description register the read write test program Usage reg r w s offset value Note e To use system register reg s 0 e To use wireless register reg s 1 To use other base address offset reg s offset e The rt_rdm module must be put in first Example reg s0 regr 18 read AO300018 reg w 18 12345678 write 0x12345678 to AO300018 8 1 3 FLASH Descript
96. um number is 4000 at this time Page 76 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual On 0 2 0 2 0 2 a d lal lal Las ads InProgress yellow if multi color ds 0 1 0 1 0 1 0 1 Off 0 1 0 1 0 1 seconds Error red if multi color On 01 cee Off 110101 RB OT L TE seconds N 10 0 5 Session Overlap Detected red if multi color On Off 300 seconds Success green if multi color Figure 18 LED Definition of WPS Specification Using the WPS PBC status LED as an example the configurations would be 11 eInProgress gpio lt gpio gt 2 1 4000 0 4000 i e 2 ticks bright 1 tick dark blinking forever s Error gpio lt gpio gt 1 1 4000 0 4000 i e 1 tick bright 1 tick dark blinking forever e Session Overlap Detected gpio lt gpio gt 1 1 10 5 4000 i e 1 tick bright 1 tick dark blinking for 10 on offs resting for 5 on offs and never stops e Success gpio lt gpio gt 3000 1 1 1 1 i e 3000 ticks bright 1 tick dark blinking for one on offs and one time e To turn the LED on and keep it on gpio lt gpio gt 4000 0 1 0 4000 e To turn the LED off and keep it off gpio lt gpio gt 0 4000 0 1 4000 9 Use LED firmware to turn on LED 1 enable LED firmware make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Network device support gt Ralink Driver gt Page 77 of 132 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual
97. vendors Ralink RT2880 RT3052 RT3883 RT 3352 RT5350 Makefile romfs ROMFSINST etc_ro xxx bin The script will copy xxx bin to RT288x_SDK source romfs etc_ro after executing make romfs 9 9 Image DownSize The MTD partitions are subsequently shown RootFS in RAM Mode mtd 0 uboot 0x0 Page 58 of 132 MEDIATEK mtd 1 mtd 2 mtd 3 RootFS in Flash Mode mtd 0 mtd 1 mtd 2 mtd 3 mtd 4 RALINK AP SDK 4 0 0 0 User s Manual config RF Kernel RootFS Uboot Config RF Kernel Padding Root FS Page 59 of 132 0x30000 0x40000 0x50000 0x400000 0x0 0x30000 0x40000 0x50000 lt menuconfig gt 0x400000 MEDIATEK RALINK AP SDK 4 0 0 0 User s Manual In RootFS in Flash mode the image builder will add a padding bit to the end of kernel image if the kernel image size is smaller than the size of mtd3 The size of mtd3 must be adjusted to save flash memory Step1 Check the original kernel image size ex 446603 make image A Original Kernel Image Size 576110 home steven RT288x_SDK source images zlmage Izma Padded Kernel Image Size 786368 home stevern RT288x_SDK source images zimage zma A Original RootFs Size 4329746 home stever RT288x_SDkK source romts Compressed RootFs Size 1069056 home stever RT288x_SDK source images ramdisk Padded Kernel Image Compressed Rootfs Size 1855424 home stever R
Download Pdf Manuals
Related Search
Related Contents
une lecture biblique originale EXCAVATRICE 130G Acer Ez Dock II + Pro Range ENG56-400, ENG68-400, ENG56-600 自動車リサイクル法 フロン類回収業者登録申請の手引き Produktkatalog clino Systeme 21 詳細PDFダウンロードはこちら TiX640,660,1000 資料 LS-570 - I4Wifi Installation manual Manfrotto MHXPRO-3WG tripod head Copyright © All rights reserved.
Failed to retrieve file