Home
APSoC SDK 4.3.0.0 User`s Manual
Contents
1. SPIO Support Ralink GPIO LED Support Ralink DMA Ralink Ralink Falink EFalink udio Code Selection Select IM Oe SDMA Support Channel Allocation Mode All for Everybody AT 5680 SPI Support DIOU I C Support DCH Support Iz3 Support gt gt rma mma ma Lal kel kel Use Internal REFCLE As Selection For MCLE Select 12MHz External Xtal Virtual terminal fdev kmem virtual device support Non standard serial port support gt Serial WC DP BOUrce gt drivers 7 If you want to use 12 288MHz External Xtal you can enter Selection For MCLK Select 12MHz External Xtal as the following figure Page 184 of 205 APSoC SDK 4 3 0 0 User s Manual Selection For MCLE Use the arrow keys to navigate this window or press the hotkey of the item you wish to select followed by the lt SPACE Danz Press lt 97 gt for additional information about this option Select 12MHz External Etal Seleet 12 288MHe External Srel MEE How to enable ip command in user space application 1 Enter menuconfig Choose Kernel Library Defaults Selection and select Customize Vendor User Settings er gt selects submenus gt Highlighted letters are hotk Press Bsc Eac to exit lt gt for Help Legend h ross Compiler Path opt buildroot gec342 bin efault all settings lose changes ustomize Kernel Settings Customize Vendor User Settings NEW ustomize
2. everyday genius APSoC SDK 4 3 0 0 User s Manual c uClibc LANAA S default configure file 2M_16M_config uclibc 2 6 36 x 4M_32M_config uclibc 2 6 36 x 8M_32M_config uclibc 2 6 36 x for 8M 64M VOIP TRO69 setting 8M_64M_config uclibc 2 6 36 x d Linux kernel 2 6 36 default configure file Ze a SS 2M_16M_config linux 2 6 36 x 4M_32M_config linux 2 6 36 x 8M_32M_config linux 2 6 36 x for 8M 64M VOIP TRO69 setting 8M_64M_config linux 2 6 36 x Each platform supports Linux kernel Platform Linux Kernel RT2880 linux 2 4 x RT3052 linux 2 6 21 X RT3883 linux 2 6 27 X RT3352 linux 2 6 21 X RT5350 linux 2 6 21 X RT6855 linux 2 6 36MT_x RT6856 linux 2 6 36MT_x MT7620 linux 2 6 36 x default MT76271 linux 2 6 36 x default MT7628 linux 2 6 36 x default linux 3 10 14 x 9 2 Change Flash DRAM Size Change the DRAM size setting using make menuconfig if you increase or decrease the size of DRAM make menucontig Kernel Library Defaults Selection gt Customize Kernel Settings NEW Machine selection gt Page 76 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual MT 620 example ES DRAM Size 64M 9 3 Change Switch Controller in RT288x SDK The RT288x_SDK can configure the WAN LAN partition of the internal switch in the SoC You can use make menuconfig to adjust the switch controller settings make menuconfig Kernel Library Defaults Selection gt
3. 1 port disable if dumb mode default 0 nm Disable phy port a e MS PURI 1 port disable if dumb mode default 0 om Ee 16 E CPU 1 disable RMC packet to cpu Cd Reserved a FAF MEN pause flow control ajele EN_FC enable 802 3x flow control slid EE a S Enable back pressure R W R d 7 h7f ep pw Reserved 1 enable back pressure but need to qualify BP_mode ca The Ralink Ethernet driver can be referenced RT3x8x RT288x_SDK source linux 2 6 21 x drivers net raeth raether c MT 7628 RT288x_SDK source linux 2 6 36 x drivers net raeth raether c 11 17 How to power down the RT6855 RT6856 MT 620 build in 10 100 PHYs Please modify GPC1 29 24 to disable PHY ports by following command in console switch reg s 7014 e0000c GPC1 GIGA Port Control offset 0x7014 Reserved Disable Internal 5 port EPHY Furthermore MT7620 can save more power to stop the clock inside switch by modifying CKGCR 0 and CKGCR 1 via following command switch reg s 3ff0 1e03 Page 115 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 394 CKGCR Clock Gating Control Register offset Ox3FFO Bits Type Name Description Initial Value 31 16 Reserved Ox0000 15 8 RW LP TXIDLE THD Low Power Idle LPI Tx Idle Threshold Oxle When there is no packet to be transmitted and exceeds time period specified by LPI TXIDLE THD the TXMAC will automatically enter LPI mode and send EEE LPI f
4. Customize Kernel Settings Ralink Module gt DEE GMAC 18 connected to 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 vlan sh in RT288x_SDK source user rt2880_app scripts CPU CPU P6 contig vian sn 3 LLLLVV uge ENN pyip 2 P6 contig vian sh 3 WLLLL pvin 2 ENN pyp PO Pi P2 P3 D H f o Ent VEFANIN PO Pi P2 P3 P4 WARNI AN A Figure 10 MT7620 10 100 Switch Operation Diagram Page 77 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 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 Platform config Kernel is linux 2 4 x ross Compiler Path opt buildroot gdb bin etault all settings lose changes ustomize Kernel Settings NEW ustomize Vendor User Settings 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 Do you wish to save your new kernel confi
5. 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 soeed 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 usblp0 USB Bidirectional printer dev 2 if 1 alt O proto 2 vid Ox03F0 pid Page 136 of 205 everyday genius 0x541 1 Step3 run the printer daemon p910nd f dev Ip0 Step4 Setup the printer in Windows SOC E RU Pie Riss xB tae LL Te EN FER i MRSS US Bee SE RL QP Sigk BN IEEE oi MRSS E EE SS eles ale D Bls ZS SEH Zeg ee ORIEL Ze EE Er enn SIS SIS RE BAE Windows 138 TARARE arate T4 ate BS EAR 2E SCH PMA ee SISTA Eee eB Les EE E CBR rainen LPT1 GERR ORV C peste at Es bug Standard TCP IP Port v FAVE TCP IP ARRERA SIH E Pie SBR MEAGRE LPS RAS ane ACI RR GAS IP GH BREUER e EIS IP HEHEA 10 10 10 254 ERRA E IP_10 10 10 254 APSoC SDK 4 3 0 0 User s Manual STREKI E FARRAR fa Sra Se ADE Sean Eb EE SC oe ene eee E F ERRANEN ORRAT EES h ESERE i e e nnseeimeenet D sen eee E PAVE TCP IP FIZ RS Re Brie a E RU Aeris TCP Rate Ire roll DS TR Ehe RER o VEER REE L RECRE 2 ERS
6. module_init hello_init module_exit hello_exit MODULE_LICENSE GPL 2 Modify RT288x_SDK source linux 2 6 36 x drivers net Makefile obj CONFIG_MT7620_HELLO hello 3 Modify RT288x_SDK source linux 2 6 36 x ralink Kconfig Ski RT2886x_SDK source inux 2 6 36 x ralink Kcontig menu Ralink Module Page 80 of 205 everyday genius contig MT7620_HELLO tristate MT7620 hello module 4 Turn on the hello module make linux_menucontig Ralink Module gt lt M gt MT7620 hello module 5 Compile the source code make dep make 6 Load the image to MT7620 RFB 7 Testin MT7620 console insmod hello hello world rmmod hello goodbye APSoC SDK 4 3 0 0 User s Manual Page 81 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 9 7 Execute commands at boot up time Edit RT288x_SDK source vendors Ralink Platform rcS Y bin sh mount a mkdir p var run cat etc_ro motd nvram_daemon amp goahead amp for telnet debugging telnetd for syslogd mkdir p var log lt add new command after this line 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 Platform b edit RT288x_SDK sou
7. 2 Then enter Ralink Proprietary Application Page 190 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual alink Proprietary Application gt 3 Select SPDIF command SPDIF Command Page 191 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 47 4 SPDIF user command for PLAYBACK spdiftcmd This is Mediatek SPDIF Command Program Usage tmt 0 arate wordlen pathname imt 1 arate ravwtype pathname Cnt O 1 spdift pom raw data arate 22050 24000 32000 44100 48000 Hz sampling freqency rawtype for raw data ffmt 1 0 Null data 1 ACS data 3 wordlen 16 24 bits per sample downseanple 1 no down sample 2 2 down sample 4 As down sample fimt 2 pathname apdifcmd quit 1 Command for PCM data 16 bit word length spdifcmd 0 48000 16 lt etc_ro test_sound snd 2 Command for PCM data 24 bit word length spdifcmd 0 48000 24 lt etc_ro test_sound snd 3 Command for AC3 data spdifcmd 1 48000 1 lt etc_ro test_sound snd 11 48 How to enable Dual Image support 11 48 1 Dual Image function objective This function is used to prevent the device from being out of use because of firmware upgrade failure 11 48 2 How to configure Dual Image function Kernel 1 Enter menuconfig Choose Kernel Library Defaults Selection and select Customize Kernel Settings Page 192 of 205 everyday genius
8. 3 Check Function CPU Auto Frequency Turn off reg r 40 Ox34501 Turn on reg r 40 0x80035f41 SDR Pre charge Power Save Turn off reg s switch register base addr to OxbOO003S00 rey r 4 Oxe1110600 a reg sS switch register DDR Self Refresh Power Save Turn off reg s bOO switch register base addr to 0xb0000300 Turn on Page 147 of 205 APSoC SDK 4 3 0 0 User s Manual everyday genius APSoC SDK 4 3 0 0 User s Manual 11 32 Concurrent AP porting Guide The APSOC has the capability of working 1st wireless interface and Znd wireless interfaces concurrently A The interface1 ra B The interface 2 rau 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 RT 309x RT539x RT3572 RT5572 RT5592 RT3593 support please refer the following steps to install it Requirement RI288x_SDK D RT3090 RT5392 RT3572 RT5572 RT5592 RT3593 WiFi driver RT3090 RT5392 RT 3572 RT5572 RT5592 RT3593 EEPROM binary files Procedure RT3883 RT3090 as example Step1 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
9. Example 3g sh HUAWEI E169 3G dongle model supported by current SDK are HUAWEI E169 BandLuxe C270 MobilePeak Titan and DATANG M5731 11 44 How to enable Port Trigger function To support the Port Trigger function the menuconfig options in SDK must be enabled Networking Support gt Networking Options gt Network packet filtering framework Netfilter gt IP Netfilter configuration gt Page 179 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual lt gt TRIGGER target support 11 45 Port Trigger information 11 45 1 Port Trigger Concept Port trigger concept is shown in the subsequent figure Port triggering is a way to trigger port forwarding in which outbound traffic on predefined ports called trigger port causes inbound traffic to specific incoming ports to be dynamically forwarded to the initiating host in a limited period of time PC ftp client Internet Trigger port 80 Incoming port 21 ftp server 11 45 2 Port Trigger Usage WEB UI Page 180 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Z Ralink m i m o bility as Port Trigger Setting d Ralink You may setup Port Trigger services on Internet O DHCP clients zl VPN Passthrough AS Wireless Settings EC Firewall YY MAC IP Port Filtering Iincomin LUT ng Port a System Security lt L Content Filtering Comment SU Port Forwarding C Port Trigger DC sue H E Admin
10. Page 89 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 FAQ 11 1 Default password UART networking setting Table 4 Networking Setting IP Address 10 10 10 254 IP Address DHCP Table 5 UART Setting Baud Rate 57600 Data bits Stop Bit 1 Flow Control Table 6 Web Setting Default Value 11 2 System requirements for the host platform RT2880 SDK uses Ubuntu Host to build the image Change your Linux distribution if you cannot successfully build the image Table 7 Requirements of Host Platform Linux Distribution Kernel version 2 6 38 RAM 512MB Page 90 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 3 Quickly Build a Default Reference Image Following steps can help you to setup your own development environment and build a default firmware image of reference board for verification 1 Untar the SDK source Install the toolchain by Chapter 5 Do Wi Fi driver porting by Section 11 32 Concurrent AP porting Guide if needed Choose the platform and use the default setting by Section 9 1 Linux configuration St e Ser Je Compile and get a new firmware image with root file system by Section 9 5 Compile Linux image with root file system 6 Upgrade the new firmware image on reference board to verify the new firmware image by Section 10 2 Firmware Upgrade 11 4 How to configure MT 7620 to connect with the external switch There are three c
11. border server ipv4 address is 61 211 224 125 User also configures IPv6 RD settings via Web GUI IPv6 Setup Pv Operation Mode Tunneling Connection 6RD ISP 6rd Prefix Prefix Length 2001 e41 34 ISP Border Relay IPv4 Address 61 211 224 125 Page 165 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 38 How to enable IPv6 DS Lite 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 Pv6 IP in IPv6 tunnel RFC2473 Please check IPv6 IPv6 IP in IPv6 tunnel RFC2473 To enable lpv6 DS Lite the firmware should also support iproute2 utility Customize Vendor User Settings Network Applications gt iproute2 LEE Le Ka KA A Se bel proute arme netat tmon e m trixes After compiling and downloading the firmware please use iproute2 s ip command to configure the IPv6 DS Lite function Page 166 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual User B4 Element AFTR Element server Internet br eth2 2 eth4 ein dsitun un Ir lt ch Ge 192 0 0 2 192 0 0 1 10 10 10 254 2001 db8 254 2001 dbg 1 192 168 43 79 2003 dp EE 192 168 43 11 Pool 192 0 2 128 25
12. everyday genius APSoC SDK 4 3 0 0 User s Manual MediaTek Inc RALINK AP SDK 4 3 0 0 USER s MANUAL Copyright 2014 MediaTek Inc All Rights Reserved This document is property of MediaTek Inc receipt or possession of this document does not express license or imply any rights to use sell design or manufacture from this information or the software documented herein No reproduction publication or disclosure of this information in whole or in part shall be allowed unless the prior written consent of MediaTek Inc is obtained NOTE THIS DOCUMENT CONTAINS SENSITIVE INFORMATION AND HAS RESTRICTED DISTRIBUTION everyday genius APSoC SDK 4 3 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 MediaTek hereinafter Proprietary Information All the Proprietary Information is provided AS IS No Warranty of any kind whether express or implied is given hereunder with regards to any Proprietary Information or the use performance or function thereof MediaTek hereby disclaims any warranties including but not limited warranties of non infringement merchantability completen
13. opt buildroot 2gcc342 bin vendor User gt e ustomize Busybox Settings ustomize uClibc Settings ustomize uClibc Settings l Exit gt yes Step8 After load default you can enter kernel configured main menu If 274 wireless uses PCIE interface Please enter Machine selection and choice RT3883 PCI architecture to PCIE RC ONLY mode Sytem type Ralink RT3883 board gt soc Hardware Type RT2883 PC architecture PCIE RC ONLY DRAM Size 64H gt Flash Type WOR gt Dual Image Foot File Syetem Type RootFs_in RAW gt 16364 Default RAM disk size Compress ramdisk by lzma instead of gzip kalink DFS Timer Page 152 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Leave Machine selection option Please enter Bus options PCI PCMCIA EISA ISA TC option and check whether PCI PCIE support or not like below Ia upport for PCI controller Leave Bus options PCI PCMCIA EISA ISA TC option Please enter Ralink Module option Gebeess bash chhung compiler R1288x_SDK source inux F Se ee Ce E SE agai D KR p Reenert eetedl LE ei CR Ce SE E E SEH te E Ralink Module gt f x 49999999994 999qq999999999999999999979999999999999999999999999999999999977997999999979999499j E ae eee D lect You must enter WiFi D
14. 1000 03FF 1000 04FF 1000 05FF 1000 06FF 1000 07FF 1000 08FF 1000 09FF 1000 0AFF 1000 0BFF 1000 0CFF 1000 0DFF 1000 27FF 1000 2FFF 1000 37FF 1000 3FFF 100F FFFF 1010 FFFF 1011 7FFF 1011 BFFF 1011 FFFF 1012 7FFF 1012 FFFF 1013 7FFF 1013 FFFF 1017 FFFF 101B FFFF 101F FFFF 1023 FFFF 1027 FFFF APSoC SDK 4 3 0 0 User s Manual Description 256 M DDR2 256MB SDRAM 128MB SYSCTL TIMER INTCTL MEM_CTRL SDR DDR lt lt Reserved gt gt UART Flash Controller NOR SRAM NAND Controller I2C ES SPI UARTLITE lt lt Reserved gt gt PCM up to 16 channel Generic DMA up to 64 channel CODEC CODEC 2 lt lt Reserved gt gt lt lt Reserved gt gt lt lt Reserved gt gt USB Device lt lt Reserved gt gt lt lt Reserved gt gt lt lt Reserved gt gt DCH PCI Express 802 11n MAC BBP USB Host lt lt Reserved gt gt lt lt Reserved gt gt Sg Page 22 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual D When BOOT FROM 3 b000 16KB ROM up to 32MB external 16 bit flash is mapped or 32MB 16 bit When BOOT_FROM 3 b001 1C00 0000 1DFF FFFF Flash up to 16MB external 8 bit flash is mapped a or 16MB 8 bit When BOOT_FROM 3 b010 3 b011 3 b100 Flash 16KB internal boot ROM is mapped 1E00 0000 2000 0000 1FFF FFFF External SRAM Flash 2FFF FFFF 256 M PCI PCle Memory Space Page 23 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual
15. 1020 0000 1023 FFFF 256 KBytes lt lt Reserved gt gt 1024 0000 1027 FFFF 256 KBytes lt lt Reserved gt gt 1028 0000 1BFF FFFF lt lt Reserved gt gt 1C00 0000 1C00 7FFF 32 KB ROM When the system is powered on a 24 KB internal boot ROM is mapped Page 34 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 3 9 MT 621 The MT7621 SoC includes a high performance 880 MHz MIPS1004Kc CPU core and high speed USB3 0 PCle SDXC interfaces which is designed to enable a multitude of high performance cost effective IEEE 802 11n ac applications with a MediaTek Ralink WiFi client card There are several masters MIPS 1004KEc USB PCI Express SDXC FE in the MT7621 SoC on a high performance low latency Rbus Ralink Bus In addition the MT7621 SoC supports lower speed peripherals such as UART Lite GPIO NFI and SPI via a low speed peripheral bus Pbus The DDR2 DDR3 controller is the only bus slave on the Rbus It includes an Advanced Memory Scheduler to arbitrate the requests from bus masters enhancing the performance of memory access intensive tasks To CPU interrupts 16 Bit SN DDR3 Sg Ee e UI UU e l RGMII i SPDIF RJ45x5 TMII MII x1 Figure 10 MT7621A Demo Board everyday genius APSoC SDK 4 3 0 0 User s Manual SATA Powe eeeorre MT6605 Table 8 MT7621 Memory Mapping Page 36 of 205 everyday genius 1E100000 1E10E000 1E110000 1E118000 1E1200
16. APSoC SDK 4 3 0 0 User s Manual 5 After choosing Ralink DS Support you can see Audio Selection The default setting is Select WM8960 And you can also see Use Internal REFCLK AS MCLK Source is chosen as default config rill features able lt BEnter selects submenus gt Press Psoe ES to exit Balink Character devices Highlighted letters are hotke lt gt for Help lt gt for Search SPIO Support Ralink GPIO LED Support Ralink SDMA Ralink Ralink Ralink Ralink SDMA Support Channel Allocation Mode All for Everybody AT 6580 SPI Support DIOU Tac Support PCM Support Tas gt udio Code Selection Select wWwmM 260 Hupport gt Use Internal REFCLE As MCLE Source Selection For MCLE Select 12MHz Internal REFCLE gt Virtual terminal fdev kmem virtual device support Non standard serial port support Serial Unix 98 drivers gt Bit suppere Support multiple instances of devptes Legacy BaD PTY support 6 If you want to use external Xtal to provide MCLK to codec you can un choose Use Internal REFCLK AS MCLK Source as the following figure And you can see Selection For MCLK Select 12MHz External Xtal i a tures ile lt Enter gt selects submenus Press Esc gt Esc gt to exit Ralink Character devices gt Highlighted letters are botke lt gt for Help lt gt for Search
17. CG6KEB25 1Gb1 HITIGGEKE18 1Gb help 1 2 DRAM Component RT series MT7620 and MT7628 Ir ea DRAM Bus 16bits 32bits Example e W9825G6EH 4Mx4Banksx16bits SDRAM o Row Address AO A12 Column address AO A8 Page 48 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual o DRAM Component 256Mb o DRAM Bus 16bits e W981216DH W9812G6DH 2Mx4Banksx16bits SDRAM o Row Address AO A11 Column address AO A8 o DRAM Component 128Mb o DRAM Bus 16bits e 1842532800B 2Mx4Banksx32bits SDRAM o Row Address A0 A11 Column address A0 A8 o DRAM Component 128Mb o DRAM Bus 32bits 2 LAN WAN Partition 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 NOR Flash uboot bin is located in Uboot cp uboot bin tftpboot SPI Flash uboot img is located in Uboot cp uboot img tftpboot NAND Flash uboot img is located in Uboot cp uboot img tftpboot RT6855 RT6856 MT7620 MT 7621 SPI Flash uboot bin is located in Uboot cp uboot bin tftpboot NAND Flash uboot img is located in Uboot cp uboot img tftpboot Page 49 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual
18. IPv4mcast_OL 01 01 01 00 52 01 01 01 Source Msi_Sf da b 00 16 17 9f da b7 Type IP Ox0800 u d lw CH le e Tale BR Ree Dn Bu E Eu GE D i en es ste CL n Fein Een DE ee EC Gs ea Version 4 Header length 20 bytes Differentiated Services Field 0x00 DSCP 0x00 Default ECN 0x00 Total Length 276 Identification OxSael 23265 Flags 0x00 Fragment offset 0 Time to live 5 Protocol Unknown COxff Header checksum OxS4fb correct Source 10 10 10 3 10 10 10 3 Destination 239 1 1 1 239 1 1 1 Data 256 bytes Data FFFFFFFFFFFFFFFFOLO2030405060 0809040B0COD0E0F1O Length 256 RI i 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 30 EHCI OHCI USB Power Saving 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 regi
19. NFS file system support Provide NFSv3 client support Provide client support for the NFSv3 ACL protocol extension Provide NFSv4 client support EXPERIMENTAL Allow direct VO 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 Page 117 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual dev sda1 on media sda 1 type vfat rw fmask 0000 dmask 0000 codepage cp43 7 iocharset iso8859 1 192 168 18 21 tftpboot on mnt type nfs rw vers 3 rsize 32768 wsize 32768 hard nolock proto udp timeo 7 retrans 3 sec sys addr 192 16 8 18 21 11 19 How to add a new language to the web UI The following instructions are an example and show how to add the Korean language to the web Ul 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 translation should be UTF 8 encoded Add an entry to RT288x_SDK source config config in dep_bool language pack Korean CONFIG_USER_GOAHEAD_LANG_KR CONFIG_USER_GOAHEAD_HTTPD Add an entry toRT288x_SDK source user goahead Makefile ifneg CONFIG_USER_GOAHEAD_LANG_KR y rm rf RO
20. Page 61 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 2 accel pptp Source code RT288x_SDK source user accel pptp Description ACCEL PPTP is client server solution for Linux This project is based on POPTOP http www poptop org and PPTPCLIENT hittp pptpclient sourceforge net It uses kernel module to increase performance and decrease system usage 8 3 bigpond Source code RT288x_SDK source user bigpond Description This is a client to connect to Telstra s Big Pond Broadband powered by Cable 8 4 bonnie Source code RT288x_SDK source user bonnie Description Bonnie is a free file system benchmarking tool for Unix like operating systems Bonnie is a benchmark suite that is aimed at performing a number of simple tests of hard drive and file system performance 8 5 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 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 6 busybox Source code RT288x_SDK source user busyb
21. UPNP Daemon Required library libupnp pthread 8 54 zebra 0 95a_ripd 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 Page 71 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 55 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 o OBJS romts ROMFSINST bin EXEC clean rm f EXEC elf gdb o 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 XXX Add on Applications bool hello_worla CONFIG_USER_HELLO_WORLD endmenu e Edit RT288x_SDK source user Makefile Page 72 of 205 everyday genius dir_ CONFIG_USER_HELLO_WORLD f Turn on hello application make menucontig hello_world NEW g Build new image make dep make h Check file is correct cd RT288x_SDK source romfs bin file hello APSoC SDK 4 3 0 0 User s Manual hello hello ELF 32 bit LSB executable MIPS MIPS II version 1 SYSV dynamic
22. like raQ Certainly ra0 and raiO are shown their detail information or configured settings by iwpriv command for example Fal Page 155 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual iwprive ra0 set SSID RT3883AP iwprive raO stat raiO iwprive raid set SSID RTDEV_AP iwprive raiO stat 11 33 SuperDMZ usage guide Usage super_dmz f 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 lan_ifname 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 AN wan_ifname Explicitly assign the WAN interface name ex eth2 2 or ppp0 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 Page 156 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manua
23. make menuconfig Kernel Library Defaults Selection gt Machine selection gt Compress ramdisk by Izma instead of gzip Linux 2 6 36 x Linux 3 10 14 x Kernel Version make menuconfig Kernel Library Defaults Selection gt General setup gt TT Support initial ramdisks compressed using LZMA Page 45 of 205 everyday genius APSoC SDK 4 3 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 1 1 DRAM Component MT7621 For reference board please choose 512Mb for DDR2 1024Mb for DDR3 For DDR2 1066Mhz component or other dram size please follow the below table DRAM DDR AC Timing Speed DDR2 800Mz 512Mb No need to choose 1024Mb DDR2_Default 1Gb W971GG6KB25 1024Mb DDR2_W971GG6KB25 1Gb DDR2 1066 1066Mz W9751G6KB 512Mb DDR2_1066_W9751G6KB 512Mb W971GG6KB18 1024Mb DDR2_1066_W971GG6KB18 1Gb DDR3 1200Mz 1024Mb No need to choose 2048Mb DDR3_Default 2Gb 4096Mb DDR3_Default 4Gb Page 46 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual For example choose DDR2 1066 1Gb W971GG6KB18 Step 1 Choose DRAM component size to 1024Mb 1Gb ross Compiler Path opt mips 2012 03 bin ASIC hip Type MT 7621 hip ID GMACI1 se GEl or GEZ GE RGMII FORCE 1000 El connected to WAND lash Type 102 Ob DR Component 1l200Mhe RAM Speed CHHUMbz PU Frequ
24. 1 Select upload to Internet or download from Internet on the web UI to enable the Ralink SW QoS 2 Enter the upload and download bandwidth details 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 AUTO QoS DRR Deficit Round Robin SPQ Strict Priority Queue DRR SPQ Page 129 of 205 everyday genius 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 APSoC SDK 4 3 0 0 User s Manual settings The four QoS groups are subsequently shown The default group is the group named Default the third group that means the packet would be Quality of Service Settings You may setup rules to provide Quality of Service guarantees for specific applications CO oS Setup Download from Internet __ Bitsisec azil Bitsisec 10 is recommanded Rate Ceil Rate Ceil classified into this group if it doesn t match with any rules In each QoS group there are two attributes Rate and Ceil as shown in the subsequent figure i Hate Ceil 100 e Hate Ceil 100 e Low Rate 10 wl Ceil 100 Page 130 of 205 everyday genius APSoC SDK 4 3 0 0
25. 20 MHz Nes 2 Nes 1 EOM e GO SR Ee E a eo p e e tt A A3 K D mmm DEE ER EE Bam Ln i Psat I 3 Guard Interval a Definition Tsym Aus Symbol Interval Tsyms 3 6us Symbol interval of Short Gl b Ratio of symbol interval on GI 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 GI 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 a Data rate Data rate Mb s ad Modulation NBPSCS iSS NSD NSP NCBPS NDBPS naex Page 110 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual BPSK 1 2 1 108 216 108 27 0 afe fe fa foo wl ie RER mos fe ese Je frezo Des a fo wos fe ize eoa 2160 200 e is for aso 2700 os e 1296 1080 2700 2000 2 EWC PHY spec page 13 EN EWC PHY spec v1 27 Parameter Value in legacy Value in Value in 40MHz 20MHz channel 20MHz HT channel channel HT Legacy format Duplicate Teer IFFT FFT 3 2usec 3 2usec 3 2usec period Ta Guard Interval 0 8usec Ierd 0 8usec 0 8usec SE e Short Guard 0 4usec Trr 8 0 4usec 0 Interval length Tom Legacy 8usec 10x Ierd 8usec ieee Short training sequence length Tur Legacy Long 8usec 2x training sequence Tret Ta Aen e soni Zaiten Ans 4ul3 6u 101
26. 256 nan O 000 0900 M000 09FF 256 e SSS S E S A000 0A00 TO00 0AFF__ 256 DE 0000c 0000c 26 URE SSS EE SA 1000 0000 1000 0DFF_ 256 IPS CNT 0900 2000 1000 2 FF V 1000 2800 T000 2FFF__ mg 1000 37FF 2K E Ce e e 1000 3800 T000 3FFF_ ZE oana 1000 4000 Y TOURER CTOTT 0000____ T01T 7FFF___ 32K Ethernet Swtich SSCS CITE T071 BFFF_ 16K ROM SSCS SOS BIRSENS 20 UE eR toss oee a a a a a aeaaaee KECE USB Aot OoOO OoOo o o o o o ooo EE EE JZ4 QUOU Er Frrr Oe 1028 0000 1BFF FFFF 10KB ROM LNS EE system IS powe On 1600 0000 1C00 3FFF TERE RON 16KB internal boot ROM i mapped Page 27 of 205 everyday genius APSoC SDK 4 3 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 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 INIC 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 P
27. 3 1 SDK plus RT2880 platforms Formal 2008 10 06 Page 11 of 205 everyday genius 3 3 SDK 3 4 SDK 3 5 SDK 3 6 SDK RT2860 AP driver v2 0 0 0 RT2860 STA driver v1 8 0 0 GreenAP support Busybox 1 12 1 MTD Based Flash API Feature parity with 3 2 SDK plus RT2860 AP driver v2 2 0 0 RT2860 STA driver v2 1 0 0 Feature parity with 3 3 SDK plus Ralink Flow Classifier Linux based Watchdog driver More 3G data card support Video Flow Classification Command User space watchdog daemon Feature parity with 3 4 SDK plus support NAND SPI NOR in the same firmware support Hardware NAT on RT3052 RT3883 RT3352 support Software QoS super dmz support support kernel mode pptp I2tp to improve throughput significantly Feature parity with 3 5 SDK plus Support IPv6 Ready logo Support IPv6 MLD multicast proxy snooping Support skb recycling mechanism Support switch packet count debug Support phy register dump Supprot user and kernel mode watchdog module Support kernel mode nvram Support ert Support ebtables APSoC SDK 4 3 0 0 User s Manual RT3050 platforms RT3052 platforms RT2880 platforms RT3050 platforms RT3052 platforms RT2880 platforms RT3050 platforms RT3052 platforms RT3883 platforms RT3662 platforms RT2880 platforms RT3050 platforms RT3052 platforms RT3883 platforms RT3662 platforms RT3352 platforms RT5350 platforms RT2880 platforms RT3050 platforms RT3052 platforms RT3883 platforms RT3662 pl
28. 64 8 14 El EE 64 8 15 Een ON ME 64 8 16 Teleleieidet a EE 64 8 17 Jee Kn DEE 64 Page 4 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 18 INS GE 65 8 19 Ieige tt 65 8 20 OOS EE 65 8 21 Uer LEE 65 8 22 If N e EE 65 8 23 LOCALO PLO E 66 8 24 A SE O a E E A EE E N EN EE E EE 66 8 25 ali feele En 1G EEI EEN PE E ENE A E N E T E 66 8 26 MOOS IT E E EE cone 66 8 27 FSO E 66 8 28 A e E E E AE 66 8 29 FUT E 67 8 30 Helge Le 67 8 31 LDC MGIB dE ta E E E ET 67 8 32 PVE MOA E 67 8 33 STAN DAIO E 67 8 34 OS AS 2 E 67 8 35 SC REI Te BE 68 8 36 BONS RE EE 68 8 37 888 AN E 68 8 38 PTE CUS Ms E E S AAE EEE AAE EAE AAEE 68 8 39 BOT jie e PANA AE EA A E AA A A E AA E eran E AEA 68 Page 5 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 40 ee Da D 69 8 41 oa O EE 69 8 42 OO 20 E E 69 8 43 BUENO Eeer 69 8 44 SO E E E 69 8 45 See 70 8 46 EE 70 8 47 MS UNA EE 70 8 48 en EE 70 8 49 uSp MOSS WC UE E os sarees ea E e T E 70 8 50 WIV GS US E 71 8 51 WSS SS Eeer 71 8 52 wpa Deele ANNO E 71 8 53 WSS a e EEN 71 8 54 SEET eege eee ee ree eee 71 8 55 Port new user ee Mel e 72 MUM TR UNS E E ects cs ctl E E sew tee E A E E E E E 74 Ga EN COn oE EE 74 92 Change Flash DRAM EE 76 9 3 Change Switch Controller in RT288x SDK ceccccsssscceceessssssseeeeeecessesssaeeeeeeesssssseeeeeeeeeeees 77 9 4 Update User Kernel default settings een 78 9 5 Compile Linux image with root file system 79 Page 6 of 205 ever
29. 76 flash w 40008 o 21 flash w 40009 o 16 Page 99 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 10 How to configure GPIO ports SDkK source inux 2 6 21 x drivers char ralink_gpio c SDkK source linux 2 6 21 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 O is for input For example value 0x5 is for configuring GPIO pin 0 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 O 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 O and 2 will be set to 1 and the other bits will be ignored e RALINK_GPIO_CLEAR Clear a value with corresponding bits off the GPIO data For example value 0x5 means GPIO data bit O and 2 will clear to 0 and other bits will be ignored e RALINK_GPIO_READ_INT Same as RALINK_GPIO_READ e RALINK_GPIO_WRITE_INT Same as RALINK_G
30. 7628 Demo Borad age GH SS ye ttt ee everyday genius APSoC SDK 4 3 0 0 User s Manual Table 9 MT7628 Memory Mapping 0000 0000 OFFF FFFF 256MBytes DDR256MB 1000 0000 1000 00FF 256 Bytes SYSCTL 1000 0100 1000 01FF 256 Bytes TIMER 1000 0200 1000 02FF 256 Bytes INTCTL 1000 0300 1000 03FF 256 Bytes EXT_MC_ARB DDR DDRII 1000 0400 1000 04FF 256 Bytes Rbus Matrix CTRL 1000 0500 1000 05FF 256 Bytes MIPS CNT 1000 0600 1000 06FF 256 Bytes GPIO 1000 0700 1000 07FF 256 Bytes SPI Slave 1000 0800 1000 08FF lt lt Reserved gt gt 1000 0900 1000 09FF 256 Bytes He 1000 0A00 1000 0AFF 256 Bytes EK 1000 0B00 1000 0BFF 256 Bytes SPIMaster 1000 0C00 1000 0CFF 256 Bytes UARTLITE1 1000 0D00 1000 0DFF 256Bytes UARTLITE 2 1000 0E00 1000 0EFF 256Bytes UARTLITE 3 1000 0FOO 1000 0FFF lt lt Reserved gt gt 1000 1000 1000 17FF 2KBytes RGCTL 1000 1800 1000 1FFF lt lt Reserved gt gt 1000 2000 1000 27FF 2 KBytes PCM up to 16 channels 1000 2800 1000 2FFF 2 KBytes Generic DMA up to 16channels 1000 3000 1000 3FFF lt lt Reserved gt gt 1000 4000 1000 4FFF 4KBytes AES Engine 1000 5000 1000 5FFF 4 Kbytes PWM 1000 6000 100F FFFF lt lt Reserved gt gt 1010 0000 1010 FFFF 64 Kbytes Frame Engine 1011 0000 1011 7FFF 32KBytes Ethernet Switch 1011 8000 1011 FFFF lt lt Reserved gt gt 1012 0000 1012 7FFF 32 KBytes USB PHY 1012 8000 1012 FFFF lt lt Reserved gt gt 1013 0000 1013 7FFF 32 KBytes SDXC eMMC 1013 8000 1013 FFFF lt lt
31. APSoC SDK 4 3 0 0 User s Manual Customize Kernel Settings NEW 2 Enter Machine selection Linux Kernel Configuration H E o A A a A O eae EE EE E 3 Choose Dual Image Page 193 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 4 Select Flash Type for your platform 5 Select Flash Size for your platform oo Cer Co H E v Uboot 1 Enter menuconfig Choose Dual Image Page 194 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual at ual Tma ge NEW 2 Select Flash Size for your platform 11 48 3 Dual Image function flowchart 1 After enabling Dual Image function the Flash will be split to partitions Flash_1 Flash_2 and the size of each partition will be the half of original Flash size Page 195 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Flash_ 1 size X 2 MB Flash size X MB Flash_ 2 size X 2 MB 2 When boot up both Flash_1 and Flash_2 will be verified to see if the partition is valid or not If Flash_1 is valid but Flash_2 is not then the Kernel_Image1 will be copied to Flash_2 If Flash_2 is valid but Flash_1 is not then Kernel_Image2 will be copied to Flash_1 If both partitions are valid no action will be taken Uboot Uboot Config Config RF RF Flash_ 1 Flash_ 1 Kernel Image
32. C000 1012 0000 1012 8000 1013 0000 1013 8000 1014 0000 1018 0000 101C 0000 1020 0000 1024 0000 1028 0000 1C00 0000 1C00 3FFF 16KB internal boot ROM is mapped Page 25 of 205 everyday genius APSoC SDK 4 3 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 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 I2S 12C PCM UART USB to enable many possible applications Figure 5 The RT5350 Demo Board Table 5 RT5350 Memory Mapping Page 26 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual San ERREECHEN 0000 0000 D fg FFFF SDRAM 64MB 0400 0000____ UFFF FFFF__ eA R ss SSS SSS ooo 1000 00FF 258 Sse 1000 0100 TO00 01FF__ e e D L a SOS 1000 0200 0002F L pp Net OOOO 1000 0300 1000 03FF 256 MEMCIRCSDR o 1000 0400 100004 REES 1000 0500 T000 05FF__ 256 UR SSS SS SSS 1000 0700 T000 07FF__ 256 nan S 1000 0800 T000 08FF__
33. CoS Rae TE SER RIR TA ERT e HERRAN MERRIE RE Ree S 1 RECIENTE 2 BUI SHEI EROM A gt BCEE eR SS o SR US EECHER TEEN SEET E OREO Generic Network Can O Network Card RE _ Ge j ane v OBIO SEE Page 137 of 205 everyday genius FAVE TCP IP Fl Fer Re Tie i TRIREME TCP IP FARR SS HET AALA TENDER o SNMP 5 WANE RAW 3282 9100 RE 10 10 10 254 Eea IP_10 10 10 254 EFE Generic Network Card RRI TERK RERE PAVE TCP IP ARRERA BAE TRIGE TCP IP FUR RSS EST AAA TRENDER SNMP E WARE RAW EHE 9100 Ecg 10 10 10 254 Eee IP_10 10 10 254 DEFE Generic Network Card SE TEAC RERE Bi SS El Ae BE RR i LEE OH ABH ARE GEIR APSoC SDK 4 3 0 0 User s Manual Bi FS El Ae ee Se Fe E ERARRSHE Bove ea ee LAF eS BE RET LA RADSEERSESSE Windows XP HIER TA Ste E E OUR Gi E SEI DEA EISE IR DH Windows XP IS SS SS Pe Gestetner kor Officejet 6300 series u oija s300 series infot EY HP Deskjet F300 series Iwatsu k EF HP Photosmart C6100 series BT E SBE REF RED BS EI Zee Se Bn ARE PRE BAB e n REISER Ier SREB 31 UMAR ae ROE Se See RRE REN EUR Hr Officejet 4300 series p910ndp SEs ORE aR IS Ow OTO AURA SSH Alia ENR gt WEE HRA o Sn LR Aaa A BATES o EAER ERAS ERARA o RE SIS 2E JEFESCRR STIS El RE OEE Dep Take ERTS WR RE ENEE AB HP Officejet 4300 series p9 10
34. Driver Support Choose First WiFi Interface AF7620 for rlt wifi driver gt Choose Second WiFi Interface None gt lt gt Ralink RT2860 6802 11in AP support LED Support WSC WiFi Simple Config WSC 2 0 WiFi Simple Config 2 0 Es LLTD Link Layer Topology Discovery Protocol 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 HW controle Kl CERAN mode Driver sets MAC register and MAC controls FW default modee Thefirmware controls how LED blinks e 2 1 Sens ame as LEI mode 1 except that fast blink for 8sec when doing i scanning e Besides mode 1 additionally set LED signal strength LedParam1 0 GPIO polarity 0 is negative LedParam0 Signal strength Valid value are 0 1 3 7 15 31 0 is the eakest e GPIO Polarity ss Bit LED Mode Mode Description 64e Signal strength settinge RT2360 Pin 127_LED behaviore 00 Reservede 4 0 01 Solid one DE ug Biet when transmittin go data and management packet f 11 Blink when transmitting data management packet and beacon Radio offe 0 Solid on when notraffic 1 Slow blink when po traffic Reservede SEh DU Reserved m 01 Solid one DAF up Blink when transmittin qdata and management packet 11 Blink when transmitting data management packet and beacon Radio on butlink down 0 Solid on when no traffic 1 Slow bli
35. I Pv6 Address Configuration on B4 Element Create DS Lite Interface adds the IPv4 default route to the server to forward all IPv4 packets to the ds lite interface dsltun Pv6 Default Route Static IPv6 Route Configuration on AFTR http www isc org software aftr Page 167 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Pv6 Address amp Routing Tunnel Interface Configuration aftr conf Routing to B4 Element ANAT 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 168 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual aftr_start set x ip link set tunO up ip addr add 192 0 0 1 peer 192 0 0 2 dev tunO ip route add 192 0 2 128 25 dev tunO ip 6 addr add fe80 1 dev unt ip 6 route add 2001 db8 1 dev Tun aftr_stop set x ip link set tunO down Another user could use Web GUI to set DS Lite IPv6 Setup IPv6 Connection Type IPv6 Operation Mode Tunneling Connection DS Lite Tunneling Connection D Lite Setup WAN IPv6 Address 2001 Ob 24 AFTR Server wi Address Gateway IPv6 Address pep Page 169 of 205 everyday genius 11 39 APSoC SDK 4 3 0 0 User s Manual How to modify flash layout Basically you can make uboot and RF parameters use same flash sector t and it can save up to 3 flash sector compared to original des
36. Kernel Imagel CODY Flash_2 Flash_2 Kernel Image2 Page 196 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual ES Flash_1 is valid no Bo up unt Copy Kernel_Imagel to Kernel_Image2 Copy Kernl_ Image2 to Kernel_Imagel lt No Flash_2 is valid Yes Load Kernel_ Imagel Page 197 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 49 Howto enable NFC support 11 49 1 How to compile NFC code a Enable Wifi config in make menuconfig CONFIG_WSC_NFC_SUPPORT y b config menuconfig gt Proprietary Application gt NFC Service Daemon nfcsd will communicates with nfc middleware gt nfc middleware will communicates with MT6605 driver NFC Handover Daemon nfchodis communicates with nfcsd via socket get data from MT6605 and pass to WiFi driver via ioctl c linux _menuconfig gt Device Drivers gt Character devices gt lt M gt Ralink RT2880 DC Support CONFIG _RALINK_1I2C NFC Support CONFIG_MTK_NFC_SUPPORT MT6605 NFC Simulation CONFIG_MTK_NFC_MT6605_ SIM optional Device Drivers gt Network device support gt lt gt MediaTek R NFC support CONFIG _MT6605_NFC 11 49 2 Where to buy NFC tag Customer can buy NFC tag from below website http www amazon com Tags Chip Pack Keychain Bonus dp BOOCE6QGLU http search taobao com search q nf
37. Linux kernel source for MT7628 rootfs root file system uncompressed tools useful script to generate rootfs user user applications vendor init scripts of target platform inittab rcS etc everyday genius APSoC SDK 4 3 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 1 The extract procedure makes a directory equivalent to opt buildroot gdb For RT series MT 7620 cp RT288x_SDkK toolchain bulldroot gcc34Z2 tar bz2 opt tar jxvf buildroot gcc342 tar bz2 For MT7621 MT 7628 Decompress buildroot gcc463_32bits tar bz2 for 32 64 bits Host Linux or buildroot gcc463_64bits tar bz2 for 64 bits Host Linux only to opt in order to build your own Linux image 2 Decompress mips 2012 03 tar bz2 to opt for 32 64 bits Host Linux in order to build your own Uboot image 5 2 Install LZMA Utility Izma is necessary to make the compressed kernel image The Ralink RT288x SDK uses Izma to compress the kernel image cd RT288x_SDK toolchain Izma 4 32 0beta3 configure make make install install Izma 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 Page 43 of
38. Makefile Add this line dir_y openssl 1 0 1f 7 Run OpenSSL with AES Engine insmod mtk_aes b 16 insmod cryptodev mdev s openssl speed evp aes 256 cbc elapsed engine cryptodev ens speed evp aes cbc ed engine crypto ARNING can t open config file JusP local s lt l opence 1 cnf engine cryptodev set ou have chosen to measure elapsed time instead of user CPU time aes 256 cbc for 3s on 16 size blocks 140259 aes Oke che s in 3 s aes 256 cbc for on 64 size blocks 140034 aes 256 cbc S in 3 s aes 256 cbc for on 256 size blocks 139504 aes 256 cbc s in 3 1s aes 256 cbc for on 1024 size blocks 137592 aes 256 cbc s in 3 s aes 256 cbc for 3s on 8192 size blocks 36100 aes 256 cbc s in 3 Q 1s 0 1f 6 Jan 2014 Mon Mar 31 13 33 06 CST 2014 pptions bn 64 32 rc4 ptr char desCidx cisc 16 long ass partial EE Deg LehiE opt bui ldroot gocs42 bin mipsel linux gcc 02 fo fr SE linux D__linux D ED E EE perforce ws _ chin_temp WIFI_ Se SA Tapkaeoutee zl ib include I home c ert TRENTO OBSO qwert chin_temp WIFI SEN EC _SDK7source fPIC DOPENSSL_PIC DOPENSSL_THREADS D REENTRANT DDSO_BLFCN BHAVE DLFCN_H DHAYE_CRYPTODEY DUSE gt CRYPTODEV _DIGESTS DTERMIO 03 fomit frame poi er Wa he numbers are in EE of bytes per second processed ype bytes bytes bytes 1024 bytes 8192 bytes aes 256 cbc oR Ok 2987 39k 11864 79k 46964 74k 98249 57k Page 205 of 205
39. User s Manual Table 1 RT2880 Memory Mapping mm Jm aw ewes oo mm Jm ex ewes w200 ooa ex Rewes o zm Jan f rea ooo owo Ise mn Rewnes SSS vm oowoo ase Tewm o nn foore Jm e mmm Lesen ase Treron mmm Lesen Im Loes nm Lesen rea oOo mm sm f In mm sn 28 Povemo mmm sen rea ooo mmm sn ree OOO wwo sm Jm e SSS nn sn lm ewes ooo vm sm Jm e nn Jesse lm om ooo me mme Rewnes SSS nn 1 mmm Ines oOo vm 1 Jam Im ness OoOO nm Im Im Ieper 0041 0000 0041 FFFF Embedded 16KB ROM wrap around in the 64KB space um mem ex Ire oo nm Jam fow rens OoOO mum Jm oe Jmzsgesrerg mm mm mem Innen ooo ene Jm me Ins oooO mm Im mm Ines ooo mmm Jm mm Ins ooo mm Jm am Ise ooo mm Jam am Ise ooo em oorsee Im Ins ooo Page 17 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 0082 FFFF 0083 FFFF 0088 FFFF O1FF FFFF OBFF FFFF OFFF FFFF 1003 FFFF 1007 FFFF 100B FFFF 100F FFFF 1BFF FFFF 1FFF FFFF 2FFF FFFF FFFF FFFF Page 18 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 3 2 RI3052 The RT3052 SOC combines Ralink s 802 11n draft compliant 2T2R MAC BBP RF 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 Ral
40. Write Program Usage spicmd read write parameters Note e spicmd read the address e spicmd writes the size address value e sizeis 1 2 4 bytes 8 1 10I2CCMD Description 12C Toolkit for EEPROM Read Write via I2C Interface Usage i2ccmd read write parameters Note e i2ccmd read the address e i2ccmd write the size address value e sizeis 1 2 4 bytes Page 60 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 1 1112SCMD Description 12S Toolkit for raw playback record via 12S Interface Usage i2scmd cmd srate vol lt playback files Note cmd O 1 i2s raw playback record srate 8000 16000 32000 44100 48000 Hz playback sampling rate E vol 10 2 db playback volumn Example e i2scmd 0 48000 2 lt etc_ro test_sound snd 8 1 12SPDIFCMD Description SPDIF Toolkit for raw playback via SPDIF Interface Usage fmt 0 srate wordlen pathname fmt 1 srate rawtype pathname fmt 0 1 spdif pcm raw data srate 22050 24000 32000 44100 48000 88200 96000 176400 192000 Hz sampling frequency rawtype for raw data fmt 1 0 Null data 1 AC3 data 3 Pause wordlen 16 24 bits per sample downsample 1 no down sample 2 2x down sample 4 4x down sample fmt 2 pathname Example for PCM data 16 bit spdifcmd 0 48000 16 lt etc_ro test_sound snd 8 1 13Script Description WebUI configuration script Usage Refer to the script help message
41. 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 Page 70 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 50 uvc_stream Source code RT288x_SDK source user uvc_stream Description uvc_stream is a command line application to stream JPEG files over an IP based network from the webcam to a viewer like Firefox Cambozola Videolanclient or even to a Windows Mobile device running the TCPMP Player 8 51 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 52 wpa_supplicant 0 5 7 Source code RT288x_SDK source user wpa_supplicant 0 5 7 Description WPA Supplicant Supported WPA IEEE 802 111 8 53 wsc_upnp Source code RI288x_SDK source user WSC_UPNP Description Ralink WPS Wi Fi Protected Setup
42. force_duplex 1 Full Duplex 0 Half Duplex when R W PC mr_autoneg_enable 1 b0 User Space ZS mil_mgr s p 0 r 0 v 0x3900 set port 0 registerO bit11 Set phy 0 reg 0 3900 mii _ Mgr S p 1 r 0 v 0x3900 set port 1 register bit11 Set phy 1 reg 0 3900 ZS mil_mogr S p 2 r 0 v 0x3900 set port 2 register bit11 Set phy 2 reg 0 3900 ZS mil_mogr S p 3 r 0 v 0x3900 set port 3 register bit11 Set phy 3 reg 0 3900 mil_mgr S p 4 r 0 v 0x3900 set port 4 register bit11 Set phy 4 reg 0 3900 Kernel Space extern u32 mii_mgr_read unsigned int unsigned int unsigned int Page 114 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual extern u32 mil_mgr_write unsigned int unsigned int unsigned int mit_mgr_write 0 0 Ox3900 set port O registerO bit17 mit_mgr_write 1 0 Ox3900 set port 1 registerO bit17 mit_mgr_write 2 0 Ox3900 set port 2 registerO bit11 mit_mgr_write 3 0 Ox3900 set port 3 registerO bit11 mil_mgr_write 4 0 Ox3900 set port 4 registerO bit17 You also need to set POC1 27 23 to disable Phy port unsigned long Oxb01 10090 0x0 07f7f POC1 Port Control 0 offset 0x90 Bits Type Name Description Initia value Sek aw HASH ADR SHIFT eleng table hashing algorithm option for member set ae port 6 zs Rw DIS_GMIl_PORT_1 1 port disable if dumb mode default 0 om o Disable port 5 l MI PORT nm Rw DIS_G
43. g i I The name of the GPIO testing user application is gpio e gpio w write test Note that all GPIO pins will be changed to output direction when writing e gpio r read test Note that all GPIO pins will be changed to input direction when reading e gpio g lt gpio gt read the target GPIO pin Note that the target GPIO pin will be changed to input direction when reading Page 55 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual e gpio i lt gpio gt interrupt test for GPIO number e 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 e PIODIR programmed I O 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 e PIODATA programmed I 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 input that causes an interruption 8 1 6 MI MGh Description mii register read write test program Usage a get mii
44. int flash_read_mac char buf d int fd ret if buf return 1 fd mtd_open Bootloader O_RDONLY if fd lt 0 fprintf stderr Could not open mtd device n return 1 if defined NO_WIFI_SOC Iseek fd Ox1FC2E SEEK_SET Iseek fd Ox1FCO6 SEEK_SET endif Page 171 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual ret read fd buf 6 close fd return ret 6 Modify drivers mtd maps ralink flash h define MTD_BOOT_PART_SIZE 0x20000 define MTD_CONFIG_PART_SIZE Ox10000 define MTD_FACTORY_PART SIZE 0x00000 7 Modify drivers mtd ralink ralink_spi c drivers mtd maps ralink flash c drivers mtd ralink ralink_nand c or drivers mtdralink ralink_nand_rt3052 c which depended on your flash type name Factory size MTD_FACTORY_PART_SIZE offset MTDPART_OFS_APPEND endif 8 Modify Uboot include configs rt2880 h define CFG_BOOTLOADER_SIZE 0x20000 define CFG_FACTORY_SIZE 0x000 Page 172 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 40 How to reduce Linux FW size 1 Modify vendors config mips config arch CFLAGS S if S LOPT S LOPT Os fomit frame pointer CFLAGS S if S UOPT S UOPT Os fomit frame pointer 2 Modify Kernel configuration to save Linux FW size General setup gt Optimize for size Look out for broken compilers Configure standard kernel features for small systems gt En
45. s Manual 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 Se RALINK_DDR_CONTROLLER_OPTIMIZATION OFF RALINK_CPU_AUTO_ FREQUENCY 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 make dep make 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 aaa RALINK_DDR_CONTROLLER_OPTIMIZATION OFF BAUNK CRU AUTO FREQUENCY OFF Page 144 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual RALINK_SDR_PRECHARGE_POWER_DOWN ON RALINK_DDR_SELF_REFRESH_ POWER SAVE_MODE OFF make 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 eooo O 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 enable CPU autofrequency sbin config powersave sh cpu disable CPU autofrequency sbin config powersave sh sdr enable SDR precharge powersav
46. sustens Virtual memory file system support former sha fs gt ISO 9660 CDROM file system support gt FS Filesystem support gt Minix fs support gt Free xFS File sustes support VERITAS VxFS TM compatible gt NIFS file system support read only lt gt 05 2 HPFS file susten support proc File system support vg file systea support EXPERIMENTAL GAN Automatically ount at boot lt gt ROM File sustes support lt gt Second extended fs support gt Sustem V Kanix Coherent file systes support lt gt UDF File spater support read only Bit gt lt Help gt Figure 20 Configuration Procedure of Telnet Server 11 14 11n bit rate derivation 1 The 11n bit rate is calculated by the MAC driver The MAC driver refers to the three subsequent factors a MCS b BW c Gl Note the bit rate is primarily given by the PHY layer 2 Bandwidth Data subcarriers on different bandwidths 20MHz and 40MHz a Nsp Number of data subcarriers Nsp 40Mhz 108 Nsp 20Mhz 52 Nsp 40Mhz Nsp 20MHz 108 52 2 0769230769230769230 769230769231 b Example Page 109 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual MCS 15 Gl 800ns BW 20MHz DataRate 130Mbps MCS 15 Gl 800ns BW 40MHz DataRate 130 Nsa 4omhz Nsa zomhz 130 108 52 2 0Mbps c Please refer to IEEE P802 11n D2 04 June 2007 on page 314 for subsequent table Table 207 MCS parameters for option
47. that acts as a full IPv6 MLDv1 and MLDv2 Multicast Router make menuconfig Customize Vendor User Settings Miscellaneous Applications gt S adie Wide ALE re 1 JILL Lt IIL LILO ee ecmh IP v6 multicast forwarding MLD daemon emp proxy RFC4605 al nadyn DDWS Client Exit gt Yes Example 1 ecmh e i eth2 2 2 VLC server 0 8 6d Page 158 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual ges Directshow es Ed F Documents and Settings Adminis DEIER PS SIPEG HT Ogg S ASE Fibs Se evs Svat pees ew b z be z ma P E F Documents and Settings Ac 3 VLC client 2 0 5 gt open network streaming 1000 See OD Dies DO Co lffle el 1234 network caching 1000 4 dump switch table and see join port is at port 3 Page 159 of 205 everyday genius E gn Leem fen ech switch dump bh porti0 f fid d 0 1 Fa Fa i bb EE co Oo Et I 5 i e en a D Fa Co Ma fo D pa Fa i m me Lod Low amp ip command in iproute2 APSoC SDK 4 3 0 0 User s Manual mMac address LC S nn eh Lit LA I ri EEN 071 I P n e ee h Sy co CCH i C71 ON C71 Okt P POT Fa fe Oo C11 CT C71 CT CTF E F _ nl Ka AFP UiduSeftttta In to flush neighbor cache during running test log make menuconfig Customize Vendor User Settings Network Applica
48. uClibe Settings ustomize uClibet Settings ustomize Busybox Settings pdate Default Vendor Settings 2 Enter Proprietary Application ects submenus gt Highlighted letters are hotk BEscr lt Esc gt to exit Hz for Help Legend SI ibrary Configuration gt TNT ip ape a N twork Applications gt M scellaneous Applications gt Proprietary Application gt indows Rally Program gt oad an Alternate Configuration File ave Configuration to an Alternate File Page 185 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 3 Choose 12S command EE Proprietary Application ects submenus gt Highlighted Lett Esch Esc gt to exit Hz for Help L roprietary Application TE Agent egister B W Ob lash iW NAT W NAT M iMgr M RAM ayer Management S L PI Command 20 a M mory usage 0f Support oftware God uper DMa mbedded Switch Command DMA Command 25 Cormand CM Command EDIF Command P Fi le rz F i Fi PO PO PO PO Fi Fi TF PO PO PO PO Fi TF F i Fi TF 11 46 4 I2S user command for PLAYBACK and RECORD omd arat yol lt playback file te cmd arate vol aize cmd U l 12s raw playback record srate 8000 16000 32000 44100 48000 Hz playback sampling rate yol 10 2 db playback volumn Lesacomd quit 1 Command of PLAYBACK function Example i2scmd 0 48000 100 lt etc_
49. 00 1E130000 1E138000 1E140000 1E180000 1BFFFFFF 1DFFFFFF 1EQ000FF 1E0001FF 1E0002FF 1EQ003FF 1EQ004FF 1E0005FF 1EQ006FF 1E0007FF 1E0008 LEQOOFFF 1E0017FF 1E001FFF 1E0027FF 1E002FFF 1E0037FF 1E003FFF 1EQ04FFF 1E005FFF 1E006FFF 1E007FFF LEOOFFFT 1EOFFFFF 1E10DFFF 1E10FFFF 1E117FFF 1E11FFFF 1E12FFFF 1E137FFF 1E13FFFF 1E17FFFF 1E1BFFFF 1E1FFFFF 1E23FFFF 1E24FFFF Size 32M 256 256 256 256 256 256 256 256 256 256 256 256 256 256 256 256 2K 2K 2K 2K ZK MESES K 960K 56K 32K 32K 32K 32K 256K 256K 256K 256K APSoC SDK 4 3 0 0 User s Manual Description DRAM Direct Map lt lt lt Reserved gt gt S SCTL TIMER INTCTL Flash Controller WOR SRAM SDRAM Rbus Matrix CTRL MIPS CNT GPIO S PDIF DMA_CFG_ARB LA 25 SPI CSR WARTLITE 1 UARTLITE 2 UARTLITE 3 ANACTL lt lt Reserved gt gt lt lt Reserved gt gt PCM up to 16 channel Generic DMA up to 64 channel NAND Controller actually 1K in Module NAND ECC Controller actually 3K in module Crypto Engine MEM _ CTRL DDRII DDRIN EXT MC_ARB HS DMA lt lt Reserved gt gt lt Reserved gt gt Frame Engine FE SRAM 0x1E108000 0x1 ELODFFF PCle SRAM Ethemet GMAC ROM lt lt Reserved gt gt SDXC lt lt Reserved gt gt PCI Express lt lt Reserved gt gt USB Host U2 U3 lt lt Reserved gt gt lt lt Res
50. 08 card support Specialix SX and SI card support Specialix RIO system support iport serial support serial port support O serial port support ue ER A A wy Maxinun mueber of Unix38 PTYs in use Hice oysticks gt QIC 02 tape support IPMI top level message hardler wit m lt Help Linz Kernel v2 4 30 Configuration rrou keys navigate the menu lt Enter gt selects gt excludes M gt nodularizes features Press ec gt module lt gt nodule capable g ted letters are hotkeys Pressing Y includes gt for Help Legend ei built in J excluded C J Quota support C gt Kernel autoeounter support gt Kernel automounter version 4 support also supports v3 gt Reiserfe support C gt AOFS file system support EXPERIMENTAL gt Miga FFS file system support DPERIMENTAL gt feple HFS file system support EXPERIMENTAL gt Apple HFS Extended HFS File system support ENPERIMENTAL gt BOS file systemy BeFS support read only EXPERIMENTAL gt BFS file sten support EMPERIMENTAL gt Ext3 journslling file syster support gt BOS FAT fs support gt EFS File systern support read only EXPERIMENTAL gt Journalling Flash File Sustem JFFS support gt Journslling Flash File System v2 JFFS2 support lt gt Compressed ROM file system support lt gt Gquashed with LZMA file system support Additional options for memory constrained
51. 2 6 xx x drivers net wireless Makefile ex pe Page 148 of 205 everyday genius APSoC SDK 4 3 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 Steps Please modify RT288x_SDK source vendors Ralink RT3883 Makefile ex ROMFSINST e CONFIG_RALINK_RT3883_3T3R RT2860_default_novlan_3s etc_ro Wireless RT2860AP RT2860_default_novlan ROMFSINST e CONFIG_RALINK_RT3883_3T3R RT2860_default_vlan_3s etc_ro Wireless RT2860AP RT2860 _default_vlan Page 149 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual ROMFSINST e CONFIG_RALINK_RT3662_2T2R etc_ro Wireless RT2860AP RT2860_default_novlan ROMFSINST e CONFIG_RALINK_RT3662_2T2R etc_ro Wireless RT2860AP RT2860_default_vlan ROMFSINST e CONFIG_RT3090_AP etc_ro Wireless iNIC RT2860AP dat ROMFSINST e CONFIG_R
52. 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Use gzip to compress the Linux kernel image COMP Izma Use Izma to compress the Linux kernel image Notes Izma algorithm is not backward compatible so you have to use this Izma 4 32 0beta3 tool to compress your kernel image otherwise you will encounter Izma decompression issue 5 3 Install mksquashfs utility mksquashfs Izma 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 lzma to opt buildroot gcc342 bin mksquashfs_Izma 3 0 Linux 2 6 21 x Kernel Version cd RT288x_SDK toolchain mksquash_Izma 3 2 make make install copy mksquashfs to opt buildroot gcc342 bin mksquashfs_Izma 3 2 amp Izma_alone to opt buildroot gcc342 bin Linux 2 6 36 x Linux 3 10 14 x Kernel Version cd RT288x_SDK toolchain mksquash_Izma 3 2 make make install copy ma alone to opt buildroot gcc463 usr bin tar xvf squashfs4 2 tar bz2 cd squashfs4 2 squashfs tools make cp mksquashfs opt buildroot gcc342 bin mksquashfs_ lzma 4 2 LZMA_ALONE IS NECESSARY TO MAKE YOUR OWN RAMDISK IMAGE IF YOU TURN ON COMPRESS RAMDISK BY LZMA ON LINUX 2 4 2 6 21 2 6 36 3 10 14 KERNEL Page 44 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Linux 2 4 x Linux 2 6 21 x Kernel Version
53. 3 4 RI3352 The RT3352 SOC combines Ralink s 802 11n draft compliant 2T2R MAC BBP PA RF a high performance 400MHz MIPS24KEc CPU core a Gigabit Ethernet MAC 5 pors integrated 10 100 Ethernet Swtich PHY and an USB Host Device With the RT3352 there are very few external components required for 2 4GHz 11n wireless products The RT3352 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 RT3352 has rich hardware interfaces SPI I2S I2C PCM UART USB GMAC to enable many possible applications Figure 4 The RT3352 Demo Board Son SONM 909902NH dE EL Hi pe ze Table 4 RT3352 Memory Mapping ERR e foe oo ooo orrereer asom oore zsemeeora TOMB ooo somoore 25 eeng somone To eem Le To eem Loser To 1000 0500 e 1000 05FF 256 UART om Lee Te Joe 1000 0300 aS 1000 03FF 256 MEM_CTRL SDR DDR Page 24 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual lt lt Reserved gt gt lt lt Reserved gt gt SS 1000 0700 1000 07FF 1000 0800 1000 08FF 1000 0900 1000 09FF 1000 0A00 1000 0AFF 1000 0B00 1000 0C00 16KB ROM When system is power on 1000 0D00 1000 2000 1000 27FF 1000 2800 1000 2FFF 1000 3000 1000 37FF 1000 3800 1000 3FFF 1000 4000 1010 0000 1011 0000 1011 8000 1011
54. 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 TFTP 3 Boot system code via Flash default 4 Enter boot command line interface 7 Load Boot Loader code then write to Flash via Serial 9 Load Boot Loader code then write to Flash 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 or Ctrl C to discard Input device IP 10 10 10 123 Input server IP 10 10 10 3 Input Uboot filename uboot bin Page 50 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 7 USER LIBRARY 7 1 Library Configuration RT288x_SDK uses uClibc 0 9 28 0 9 33 2 for user applications The subsequent instructions show how to change the default library setting RT series MT7620 use uClibc 0 9 28 MT7621 MT 7628 use uClibc 0 9 33 2 make menuconfig Kernel Library Defaults Selection gt Customize uClibc Settings Figure 8 1 uClib 0 9 28 configurations Menu Figure 8 2 uClib 0 9 33 2 configurations Menu Page 51 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 7 2 Library Porting The subsequent instructions show how to add a new library to the RT288x_SDK Example Port libtest to RT288x_SDK 1 cp r libtest to RT288x_S
55. 8 bit flash is mapped When BOOT_FROM 2 b10 4KB internal boot RAM is mapped for boot from NAND application When BOOT_FROM Zb 8KB internal boot ROM is mapped for iNIC application Page 20 of 205 everyday genius APSoC SDK 4 3 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 SOOMHz 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 I2S 12C PCM UART USB PCI PCle RGMII MII to enable many possible applications Figure 3 The RT3883 Demo Board Page 21 of 205 everyday genius Table 3 RT3883 Memory Mapping Start 0000 0000 1000 0000 1000 0100 1000 0200 1000 0300 1000 0400 1000 0500 1000 0600 1000 0700 1000 0800 1000 0900 1000 0A00 1000 0B00 1000 0C00 1000 0D00 1000 2000 1000 2800 1000 3000 1000 3800 1000 4000 1010 0000 1011 0000 1011 8000 1011 C000 1012 0000 1012 8000 1013 0000 1013 8000 1014 0000 1018 0000 101C 0000 1020 0000 1024 0000 End OFFF FFFF 1000 00FF 1000 01FF 1000 02FF
56. 9 pital E E a Interval tise Sisco tise Bynic Steng TemsTos 3 EWC PHY spec page 13 SW 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 lz Nun 3 3 where Nasa is the number of 4usec symbols in the data part of the packet While using short GI Nase is equal to the actual number of symbols in the data part of the packet multiplied by 2 Aur is the number of HT training symbols The symbol x denotes the lowest integer greater or equal to x Page 111 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 15 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 Ski Makefile 4M Change ubootkernel size if necessary UBOOT_SIZE 0x50000 KERNEL_SIZE 0x3B0000 EE USER_NAME amp shell whoami Uboot Image Information UBOOT_DIR UBOOT_IMAGE uboot bin Linux Kernel Image Information KERNEL_DIR KERNEL_IMAGE steven_ulmage Single Image Information PACKED_DIR PACKED_IMAGE steven_ulmage img Page 112 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual cp tftpboot
57. C SDK 4 3 0 0 User s Manual uClibe version 0 9 33 2 Cross Compiler Path opt buildroot g ec463 usr bin Default all settings lose changes ustomize Kernel Settings NENT ustomize Vendor User Settings ustomize Busybox Settings ustomize uClibe Settings ustomize uClibc Settings pdate Default Vendor Settings 4 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 Maketile for additional configuration Next you must run make dep Note The default configuration file is stored in a different file referring to the Flash DRAM size settings Go to RT288x_SDK source vendors Ralink Platform config to see all the default setting files For example following are the default configuration files of MT 7620 a Busybox default configuration files XK NN 2M_16M_config busybox 2 6 36 x 4M_32M_config busybox 2 6 36 x 8M_32M_config busybox 2 6 36 x for 8M 64M VOIP TRO69 setting 8M_64M_config busybox 2 6 36 x b User application default configure file XK NN 2M_16M_config vendor 2 6 36 x 4M_32M_config vendor 2 6 36 x 8M_32M_config vendor 2 6 36 x for 8M 64M VOIP TRO69 setting 8M_64M_config vendor 2 6 36 x Page 75 of 205
58. CI 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 Lui One e OT d mnia K TT D gt d WI a ra s D ke Ae A D wy 4s H sel vw u r 2 Wlan e a E LE H E XPZOLLdOZ H Szot NOLL Page 28 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 3 7 RI6856 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 Integrated with a 32 bit MIPS 34Kc CPU a 5 port 10 100 switch dual PCI express ports USB ports interface INIC 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 2S interface for audio streaming and dual SPI Flash memory interface t
59. CONFIGURATION I E AUTO NEGOTIATION OR FORCE MODE IT CAN CAUSE A PROBLEM 11 29 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 Page 140 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Step2 Enable IGMP Proxy in WebUI D d Spanning Tree LT liom Proxy Enable w UPNF Router Advertisement ous Proxy ES 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 DE TAILS ASPX FAMIL YID 9D467A69 57F F 4AE 7 96EE B18C4 90CFFD amp DISPLA YLANG EN RT288x_SDK source user igmpproxy tools rktools exe Step4 Start Multicast test Clienti WAN I Server Lan Client2 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 Page 141 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual mm Frame 42 290 bytes on wire 290 bytes captured Ethernet II Src Msi_9f da b 00 16 17 9fFf da b7 Dst IPv4mcast_O1 01 01 01 00 5e 01 01 01 Destination
60. D A G don t care e 4003E A8 LED ACT radio off solid on off e 4003F AA LED ACT blink when transmitting data amp management packet e 40040 8C LED Act positive polarity when radio off gt solid off e 40041 88 LED Act negative polarity when link to A G gt blink ETS How to start the telnet server Check RT288x_SDK source user busybox config 11 13 1 busybox setting CONFIG_FEATURE_DEVPTS y gt General Configuration CONFIG_FEATURE_SUID y gt 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 13 2 Linux setting Page 107 of 205 everyday genius CONFIG_UNIX98_PTYS y gt Character devices CONFIG_UNIX98_PTY_COUNT 256 CONFIG_DEVPTS_FS y File systems APSoC SDK 4 3 0 0 User s Manual Basybox D 8 2 Configuration Arrow keys navigate the meru lt Enter gt selects s d letters are hotkeys Pressing lt y gt includes lt N gt excludes M modularizes features Press lt Esc gt lt Esc gt to exit lt gt for Help lt gt for Search Legend built in C J excluded lt gt module lt gt nodule capable See lots nore probably urrecessaru configuration options Enable options for full blown desktop systems Show terse applet usage messages Show verbose applet usage messages Store applet usage nessages in compressed forn Support install Cal to install a
61. DkK source ib 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 endif ifeq 8 CONFIG_LIB_LIBTEST_FORCE y MAKE C libtest shared endif 4 modify RT288x_SDK source config config in bool Build test CONFIG_LIB_LIBTEST_FORCE make menuconfig You can see the Build libtest on the menu Force build Normally built when required uild libgmp uild libm uild libpthread uild libnvram uild libupnp build libthreadutil build libixml old zlib uild libtest Figure 9 User Library Configure Menu 5 Compile your new library make deo make lib_only Page 52 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 7 3 Build user library cd RT288x_SDK source make lib_only make romfs The shared libraries are shown in RT288x_SDK source romfs lib Page 53 of 205 everyday genius APSoC SDK 4 3 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 Except for the Ralink Proprietary Application described in the section 8 1 most applications are ported from open source for reference only Developers can upgrade modify change applications by themselves for customize purpose 8 1 Ralink Propri
62. E EEE D al OOOOOOOOOOOOOOOOO Select the Product you wish to target oad an Alternate Configuration File ave Configuration to an Alternate File SJ ope be be zg De Sa za ze S lt Select gt lt EAGT gt lt Help gt 28 E ze ag zg og zg og ag ORR RR ORR Ae 2 OO 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 ree screen 1 bash chhung compiler RT288x SDK source Ralink Linux SDK 3 3 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 Ma module lt gt module capable EE EN Ralink Products lash SDRAM Size SJ e pe pe De De De S Se e E pe Be be Be pe Be be pe pe pe De ze oe ze hyla EE SE GZ screen 1 bash chhung compiler RT288x_SDK source Ralink Linux SDK 3 3 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 erit lt gt for Help Legend built in excluded lt M gt module lt gt nodule capable Iogoggogg 000 000 0000 000 OO tee mqgqqa
63. I based Watchdog Cards lt gt Berkshire Products PCI PC Watchdog lt gt PCI WDTSOO 501 Watchdog timer USB based Watchdog Cards tt lt gt Berkshire Products USB PC Watchdog Customize Vendor User Settings Miscellaneous Applications gt TI susb ab modeswitch atchdag Page 119 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Finally Enable watchdog in WebuUI BS Administration att Loe 0 Management D Upload Firmware Adminstrator Settings Settings Management account 4 Status eegen L System Command 17 System Log EE Enable Disable WR e Kernel mode Watchdog make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Machine selection gt gt Ralink Hardware TimerO Timerl ae Ralink TimerO lt gt WatchDog Timer 3 Ralink WatchDog Reset Output NENT 10 WatehDog Timer Unit 15ec Max 305ec NEW i4 VatchDog Refresh Interval Unit 15ec Max 305ec NEW NOTES PLEASE ENABLE ONE MODE AT A TIME 11 21 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 IT USB verbose debug messages USB device filesystem lt gt USB Mass Storage suppor
64. K User config Us 1000 Switch parameter 4KB Ox40000 Ox2000 64K RF parameter 512B 16KB 0x50000 0x6000 e Wa Ei oe 2 EIE SE SIE S S 8KB WN S SIS o 9 O CS 3 S R d for concurrent AP 0x8000 OO E SERA EK SKB 1 6875M 2 3 z SA alo v A Z a f S S Oxa000 Oc O Gi A A lt S S D E S Ces z N WS aen vg sec EH _ emm emm 5 ei 5 S Ox 10000 CH 2 a QM L Ox400000 Figure 11 Ralink SDK Flash Layout 4MB In the user configure switch parameter partition the WLANO configuration is for built in first wifi interface parameters the WLAN1 configuration is for second wifi interface parameters and the STA Page 87 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 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 RT6856 and MT7621 are standalone solutions without WiFi So their LAN WAN MAC address is stored in 0xE000 0xE00b in RF Parameter block of flash 0x40000 RF I parameter i WW tee 0x48200 parameter Ox4E000 Standalone parameter Ox50000 E LAN MAC Byte5 Figure 12 RF parameter block of Ralink SDK Flash Layout Page 88 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 10 2 Firmware Upgrade 10 2 1 By Uboot A TFTP
65. MAC is connected to RGMII FORCE 1000 GigaSW CPU gt Ralink Embedded Switch sl LaN WaN Partition Switch Board Layout Type W LLLL gt el GHAC Support Page 92 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 6 How to add new default parameter in flash There are four default settings In RT288x_SDK source vendors Ralink RT 2880 based on different platforms e RT2860_default_vian IC gateway mode Vitesse Platform e RI2860_default_novlan IC bridge mode Marvell 1000 Phy platform e RI2860_default_oneport IC 100 Phy platform e RT2561_default RT2561 PCI NIC RT2860 RT2561 concurrent 11 6 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 WHOAM 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_bufset nvram_bufget nvram_commit in your CGI RT288x_SDK source user goahead src to use your feature 11 6 2Example 2 Save the RADIO ON OFF button in WebUI to flash 1 Add a line to RI288x_SDK source vendors Ralink RT2880 RT2860_default_vlian for the default value RadioOn 7 2 Modify RT288x_SDK source user goahead src wireless c function wirelessBasic to save the radio on off
66. MFSDIR ROOT_DIRECTORY lang kr endif 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 0 endif RT288x_SDK source user goahead web overview asp Add to initValue function var lang_kr lt getLangBuilt kr gt Page 118 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual if ang kr 1 lang_element options lang_element length new Option Korean kri 6 RI288x_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 7 RT288x_SDK source user goahead web home asp Fix inittLanguage function 8 make menuconfig Customize Vendor User Settings gt Network Applications gt select Korean language pack 11 20 How to enable watchdog User mode Watchdog make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Device Drivers gt Watchdog Timer Support gt Watchdog Timer Support E Disable watchdog shutdown on close Watchdog Device Drivers lt gt Software watchdog lt gt ALi M7101 PMU Computer Watchdog vi E Ralink APSoC Hardware Watchdog Ralink WatchDog Reset Output NEW ttt PC
67. N Lan A DHCP clients C Advanced Routing A IPv6 WPS Current Status ER EI ci Wireless Settings wes Configured No i Bask WPS SSID RalinkintAP_766200 4 Se WPS Auth Mode WPA2 PSK OH Sec 3 wes WPS Encryp Type AES C Station List WPS Default Key index 2 3 Statistics WPS Key ASCil 12345678 Gj Wireless Settings AP PIN 77583369 Generate L Basic ees 3 Advanced Reset OO8 Station List Bee A Statistics Step 3 MT7621 NFC Enable Web browser address http 10 10 10 254 Administration gt System Command Command Line nfchod s ra0 amp Apply Command Line iwpriv ra set NfcStatus 1 Apply hiia J meiate onse System Command open all close all Run a syste command as root System command J per Moat Internet Setting Commana Cros 00 amp D lt t 0 t 1 NAT Se O Ap ae ae t MM r PHONE MT6595 Step 4 MT6595 WPS start On home screen tap R gt Key 3646633 Page 200 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual zgi Gallery Settings In Connectivity select WPS NFC make 3 items been checked if need please phone reboot then Tap NFC A Ss a AM A 5 pap ST EngineerMode Ki WPS NFC Connectivity marawa Enable WPS Wifi Setting Enable WPS P2p Setting FM Transmitter Enable NFC Wfa Certification mode NFC MT6605 NFC NFC DTA WiFi WiFi CTIA WiFi Display WPS NFC ED select Nego Handover then select Enr
68. N gt excludes lt M gt modularizes features Press lt Esc gt lt Esc gt to exit lt gt for Help lt gt for Search Legend built in excluded lt M gt module lt gt module capable Hardware crypto devices Support for MediaTek AES Engine 5 Run AES Engine Driver and Kernel Test Module insmod mtk_aes b 16 insmod tcrypt mode 200 Then test result will show the performance of aes cbc and aes ecb insmod terypt mode 7b0 esting sp key key key key key key key key key key key key key key key 1 operation in 22 usec 64 bytes i operation in Se usec C256 bytes operation in 2 2 usec gh ee bytes operation in 44 usec 4096 bytes 1 operation in 120 usec 16284 bytes operation ee usec operation in 22 usec operation in 2 usec gh ee bytes operation in 44 usec 4096 bytes 1 operation in 130 usec 162384 bytes operation in ee usec 64 bytes operation in Se usec 256 bytes operation in 22 usec 102Z bytes operation in 44 usec oo eT 1 operation in 140 usec 162384 bytes bel el L scht OU 1 1 1 1 1 1 C1 1 1 1 d d d d MNININININDNNNNK ARO DOOzsn0zmunnecmu0 DOZUNA e ee Pe UI kd bei LUD ee 8 e UI UI ee i i keet H 8 8 8 eil ee 8 8 GG 1 2 3 4 E 8 E L L 1 1 1 NNNN OUR OOO 6 Build OpenSSL Page 204 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Edit source user
69. PIO_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_INTP Disable GPIO input interrupt Page 100 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual e 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 SIGUSR 1 is sent when the GPIO pin has been clicked once and SIGUSR2 is send when the GPIO pin has been pressed for several seconds Page 101 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual db a Use GPIO to turn on LED The following tables show the current GPIO definition for RT2880 RT3052 RT3883 RT3352 RT5350 Table 6 GPIO Usage of RT2880 RT2880 GPIO i en Low Active signalinput Tor WA Wi Fi protection setup GP1O0 Reset eo function and restore the to defaulte setting to default value when push bottom for 3 seconde GPIOBDTR_N Reserved i i Giga PHY l Low Active output for GPIO1ODCD_N Seen GPIOTIDSR_N Reserved system Low Active output Tor system GPIO12 CTS_Ne status ready LED display Power LED Low Active output Tor an security LED indicates when GPIO13 RINe etd wireless security is enabled display security status on panele Reserved for systemreboot ela haan i w w i Low Act
70. RSION HISTORY Release 1 2 1 3 2 0 2 2 2 3 2 4 3 0 3 1 SE 3 3 3 4 3 5 Features Date Author Initial release Steven Liu WebUI NTP DDNS iNIC Steven Liu DC SPI GPIO Linux driver Squashfs tools installation Steven Liu WebUI save restore configure WPS factory default WebUI STA Ethernet Converter mode WebUI Operation Mode reorganization Steven Liu How to downsize image How to control GPIO and LED Steven Liu Install mksquashfs Utility Describes Uboot configuration file Add new parameter in default setting WebUI How to save the configurations to the flash Winfred Lu Updated for RT3052 Steven Liu Chapter Re organization Update default parameter for LED firmware Steven Liu Update GPIO definition for RT3052 platform Update FAQ Reorganize user manual Steven Liu Update FAQ Winfred How to enable NFS Client How to add new language to webUI How to Power down rt305x Ethernet ports How to enable USB storage in RT305x platform How to enable USB automount in RT305x platform Update FAQ Steven How to enable software QoS How to enable USB Ethernet How to build a single image for the RT2880 8M flash platform How to start printer server How to force link speed How to burn SPI Uboot firmware Steven How to enable new watchdog How to verify IGMP snooping Update How to enable Software QoS YY Page 14 of 205 everyday genius APSoC SDK 4 3 0 0 Use
71. Reserved gt gt 1014 0000 1017 FFFF 256KBytes PCI Experss Page 40 of 205 APSoC SDK 4 3 0 0 User s Manual everyday genius 1018 0000 101B FFFF lt lt Reserved gt gt 101C 0000 101F FFFF 256KBytes USB Host Controller 1020 0000 102F FFFF 1 MBytes lt lt Reserved gt gt 1030 0000 103F FFFF 1 MBytes WLAN MAC BBP 1040 0000 1BFF FFFF lt lt Reserved gt gt 1C00 0000 1C3F FFFF 4 MBytes SPI Flash Direct Access 1C40 0000 1FFF FFFF lt lt Reserved gt gt 2000 0000 2FFF FFFF 256 MBytes PCIE Direct Access 3000 9999 3FFF FFFF lt lt Reserved gt gt Page 41 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 4 AP SDK SOURCE CODE OVERVIEW The subsequent command is used in the development environment It makes a directory equivalent to home user RT288x_SDk tar jxvf RT288x_SDK_ version _ date tar bz2 e The RT288x_SDK package contains the subsequent directories O O O O doc toolchain source tools User manual and useful documents mips toolchain Linux kernel source useful script e The source directory contains the subsequent directories O O O config auto configuration files images Linux image lib uClibc 0 9 28 linux 2 4 x Linux kernel source for RT2880 linux 2 6 21 x Linux kernel source for RT3052 RT3883 RT3352 RT3883 linux 2 6 36MT x Linux kernel source for RT6855 RT6856 linux 2 6 36 x Linux kernel source for MT7620 MT7621 MT 7628 linux 3 10 14 x
72. T Settings CH Storage 9 Administration Operation Mode Configuration You may configure the operation mode suitable for you environment Bridge All ethernet and wireless interfaces are bridged into a single bridge interface Q Gateway To first ethernet port is treated as YVAN port The other ethernet ports and the wireless Seit bridged together and are treated as LAN ports AP Client Fess apcli interface is treated as WAN port and the wireless ap interface and the ethernet ports are LAN ports NAT Enabled TCP Timeout UDP Timeout HWNAT Enabled Figure 15 2 WebUl AP Client Mode Setting Page 97 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 8 How to change the Ethernet MAC address The Ralink Ethernet uses Factory MTD block to save its LAN WAN MAC address If the setting is empty it will generate a random MAC address instead Factory MTD Base Address 0x40000 LAN MAC Address WAN MAC Address MT7620 MT 7628 0x28 0x2E MT7621 RT6856 OxE000 OxE006 Other RT series 0x28 Ox2E 0x40000 RF 1 parameter 0x40200 E RF 2 parameter LAN MAC Byte5 0x0 S LAN MAC Byte4 0x1 l 0x48000 0x48200 ae Standalone parameter i 0x50000 a ee a nes A a eS The following tools can help to modify the MAC address setting in the flash 1 eth mac 2 flash For example Set the LAN eth2 1 MAC address of MT7620 as 00 0 43 76 21 01 1 eth_mac
73. T3090_AP etc_ro Wireless RT2860AP RT3092_PCle_LNA_ 2T2R_ALC_V1_2 bin Step6 Please modify RT288x_SDK source user rt2880_app scripts internet sh ex ifRaxWdsxDown if CONFIG_RTDEV o CONFIG_RT2561_AP J then ifRaixWdsxDown fi if SCONFIG_RT2860V2_AP ml then rmmod rt2860v2_ap_net rmmod rt2860v2_ap rmmod rt2860v2_ap_util fi if CONFIG_RT2860V2_STA J then rmmod rt2860v2_sta_net rmmod rt2860v2_sta rmmod rt2860v2_sta_util fi if RT2880v2_INIC_PCI hen 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 SRT2880v2_INIC_PCI ben insmod q INIC_pci fi if 6CONFIG_RT3090_AP then insmod q RT3090_ap_util insmod q RT3090_ap insmod q RT3090_ap_net Page 150 of 205 APSoC SDK 4 3 0 0 User s Manual Stlep You must switch directory to RT2888x_SDK source and execute make menuconfig like below Gi screen 1 bash chhung compiler RT288x SDK source PEs Ralink Linux SDK 3334 3 d Configuration 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 HESCSEESC 0 ege forHelp Lerend P emt ff excluded lt Meenodite lt gt nodule capable l OOOOOOOOOOOOOOOOO ZK PE EEE EEE EE EEE EE EEE EEE EEC EEE EEE EEE EE
74. User s Manual QoS Download Settings 100 e High 100 e 100 0 0 a anmos el Fo Ceil 100 Default IQ E OD Ka rb OW e Si Ee Submit 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 QoS Download Settings Highest Highest group Rate Ceil 100 High group Rate 10 Ceil 100 ei Defaut Default Rate 10 Ceil 100 i 3 Sdt Low Lowest group Rate 10 e Ceil 100 ze Submit 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 VoIP 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 DN Delete Page 131 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manua
75. _mgr g p phy number r register number b set mii_mgr s p phy number r register number v Oxvalue Example a get mil_mgr g p3 r4 b set mii_mgr s p 4 r 1 v Oxff11 Kernel Module SDK source LINUX drivers net raeth mii_mgr c SDK source LINUX drivers net raeth ra_ioctl h e lOCTL Commands o RAETH_MIILREAD Get phy register via the mdc mdio interface o RAETH_MII_LWRITE Page 56 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Set phy register via the mdc mdio interface e OCT interface typedef struct ralink_mil_toctl_data _ u32 phy id _ u32 reg DU _ u32 valin _ u32 kal Out o phy_id Address of PHY device o Ted 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 7 MTD Description MTD writing program for firmware update Usage mtd_write r write file device Example mtd_write r write image bin mtd4 8 1 8 NVRAM 8 1 8 1 Basic feature Description a get value in NVRAM for RT2860 or INIC platform b set value in NVRAM for RT2860 or INIC platform c display all configurations in NVRAM or generate dat files nvram_daemon is a daemon and register for NVRAM settings or setting NVRAM values referring to a
76. able printk function in the kernel 3 Use miniupnpd instead of linux igd amp wscd Customize Vendor User Settings NEW Network Applications gt miniupnpd linux igd wscd WSC WPS 4 Modify user rt2880_app switch switch c or gsw_switch c Change all keyword from CONFIG_RT2860V2_AP_MEMORY_OPTIMIZATION to CONFIG_CC_OPTIMIZE_ FOR_SIZE 5 Modify user rt2880_app nvram ralink_init c Change all keyword from CONFIG_RT2860V2_AP_MEMORY_OPTIMIZATION to CONFIG_CC_OPTIMIZE_FOR_SIZE 6 Modify user wireless_tools Makefile BUILD_STATIC y BUILD_WE_ESSENTIAL y Page 173 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 41 How to change internal GSW PHY Base Address 1 Please change internal PHY base address to gt 5 RT6855 6 set Oxbfb5f014 0x10000c RT7620 set Oxb0117014 0x10000c GPC GIGA Port Control offset 0x7014 Internal EPHY Based Addresse THe base PHY address of the internal 5 port EPHY canbe PHY BASE assigned by this regsiter value When you change the default 0x0e value you need to reset EPHY again to get the new regsiter value 2 Reset PHY RT6855 6 set Oxbfb00834 24 1 then set Oxbfb00834 24 0 RT7620 set Oxb0000034 24 1 then set 0xb0000034 24 0 RSTCTRL2 offset 0x834 Write 1 to this bit will reset Ethernet PHY block 24 RW EPHY_RST Write O to de assert reset Page 174 of 205 everyday genius APSoC SDK 4 3 0 0 User s Man
77. ally linked uses shared libs stripped i Testing BusyBox v1 4 2 2007 05 04 11 15 35 CST Built in shell ash Enter help for a list of built in commands hello hello world Page 73 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 9 LINUX KERNEL 9 1 Linux configuration cd RT288x_SDK source make menucontig velect the Product you wish to target ernel Library Defaults Selection gt oad an Alternate Configuration File ave Configuration to an Alternate File Note 1 Choose the target platform type RT series MT7620 MT7621 and MT7628 2 Modify the User Kernel Configuration or Load Save User Kernel Default setting 3 Load the target platform setting from a file 4 Save the target platform setting to a file Steps 1 Use Select the Product you wish to target to set the target platform RT series MT7620 MT7621 and MT7628 2 Use the Flash SDRAM Size e 2M 16M AP 2M Flash and 16M DRAM for pure AP solution pass Vista basic logo and Wi Fi certification b g n logo e 4M 32M AP NAS 4M Flash and 32M DRAM for complete AP NAS solution including USB applications e 8M 64M VOIP TRO6G9Y 8M Flash and 64M DRAM for VOIP TRO69 solution e 8M 64M FULL 8M Flash and 64M DRAM for full reference setting 3 Use Kernel Library Defaults Selection to open the configuration menu Use Default all settings Page 74 of 205 everyday genius APSo
78. aqgaaagaaaggaaaaaa A A A A A A A A A m lt Exit gt lt Help gt e E a e e a e Tag e e Te Te Te Fei fe Page 151 of 205 APSoC SDK 4 3 0 0 User s Manual And then please exit Select the Product you wish to target option and enter Kernel Library Defaults Selection option Gi screen 1 bash chhung compiler RT288x SDK source Ralink Linux SDK 3 3 3 1 Configuration qi ggi gdi 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 ESCo lt ESC gt tO x11 lt gt for Help Legend FEI Bunt im xelnud d lt Me module lt gt nodule capable l EE oad an Alternate Configuration File ave Configuration to an Alternate File Ei ze ze zg zg Sg Sg Sg Sg ze lt Help gt k x x x x x x x x x x H D x x x u x You must select Default all settings option to load default configuration first and select Customize Kernel Settings options to turn on 2 9 interface 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 gz for Help Legend built in excluded lt M gt module lt gt module capable C2 26 2b inux Kernel Version ross Compiler Path
79. arizes features Press lt Esc gt lt Esc gt to exit lt gt for Help lt gt for Search Legend built in excluded lt M gt module lt gt module capable gt RIPEMD 128 digest algorithm gt RIPEMD 160 digest algorithm gt RIPEMD 256 digest algorithm gt RIPEMD 320 digest algorithm gt SHA1 digest algorithm gt SHA224 and SHAZ56 digest algorithm gt SHA384 and SHAS512 digest algorithms gt Tiger digest algorithms gt Whirlpool digest algorithms KEK Gd phers AES cipher algorithms Anubis cipher algorithm ARC4 cipher algorithm Blowfish cipher algorithm Camellia cipher algorithms CASTS CAST 128 cipher algorithm CAST6 CAST 256 cipher algorithm DES and Triple DES EDE cipher algorithms FCrypt cipher algorithm Khazad cipher algorithm SEED cipher algorithm Serpent cipher algorithm TEA XTEA and XETA cipher algorithms Twofish cipher algorithm Compression Deflate compression algorithm SE Zlib compression algorithm lt gt LZO compression algorithm k x Random Number Generation Pseudo Random Number Generation for Cryptographic modules ardware cryp evices gt AAA Fe tan Pay ADA TA ADNA A En E Tah tay oak Pal ant MM Mk A GV A K 4 Enter Hardware crypto devices select Support for MeidaTek AES Engine Hardware crypto devices Arrow keys navigate the menu lt Enter gt selects submenus gt Highlighted letters are hotkeys Pressing lt Y gt includes lt
80. ase use this command echo 1 gt proc sys net ipv6 conf all forwarding The following figure shows an example that configures IPv6 6rd Page 164 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 1p tunnel add 6rdtun mode sit local 111 8 ip tunnel brd dey 6rdtun 6rd prefiz 001 041 0732 ip addr ace fU01 241 6650 dedc 1 32 dey 6rdtun ip link set brdtun up ip route add lU via 61 211 2244 125 dev 6rdtun ip addr add 2001 e41 6 50 4edc 1 64 dex bri echo 1 gt proc sys net ipvb cont all ftorwarding afconfig brdtun brdtun Link encap I Py6 1n IPy4 ine t addr HUT ech bf 50 4edc 132 Scope Global inet addr 0 70 2207 128 Scope Compa t UP RUNNING HOARP HTU 1480 Metric 1 RH packets 0 errors dropped overruns 0 frame TH packets 0 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txequeuelen RE byte s 0 0 0 B TH bytes 0 0 0 Bi Du ifconfig br ek Link encap Ethernet HWaddr ee se J inet addr 10 10 10 254 Bcast 10 10 10 255 Nach inet addr 4001 eal btol tede 1 64 Soope Global inet addr fesu B3f3 64 Scope Link UP BROADCAST RUNNING 5 HULTICA AG HTU 1500 WMetric 1 RH packets 31 errors dropped 0 overruns 0 frame TH packets 12 errors D dropped 0 overruns 0 carrier collisions 0 tequeuelen U RH bytes 8771 8 5 KiB TH bytes 1072 1 0 EiB This example has a WAN IPv4 address 111 80 78 220 and 6rd prefix 2001 e41 32 and ISP s
81. ases of configuration Case 1 and Case 2 Case 3 CPU P onfig vian sh 3 LLV ESW P4 P5 n lis viia S PY Wi TT Tat RGMII RGMII f lt P reat mode Tagged packet MT 7530 Dumb switch e Can reach 2G HNAT wire speed transfer Case 1 MT7620 MT7530 2 RGMII and PO as WAN port Target Mode MT 530 Giga gt W RGMIT gt Page 91 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Case 2 MT 7620 3 party GSW 2 RGMII and PO as WAN port YY L L rL Lr LL L KA Lall y Hu L Loy bY ke EEN WE ef Part 4 5upport 3 Mode iga Phy RGMII gt Case 3 MT7620 3 party GSW 1 RGMII and PO as WAN port AN WAN Partition D C CO yout Type W LLLL gt ort 4 Support ort 11 5 How to configure MT 621 internal switch to get more GPIO pins MT7621 default configuration sets GMAC1 RGMII1 connecting to GSW and GMAC2 RGMII2 connecting to GSW PO as Phy Port mode In the default case it can reach 2G HNAT wire speed transfer between LAN and WAN If more GPIO pins are needed the GMAC2 RGMII2 can be configured into GPIO mode In this case it only can reach 1G HNAT wire speed Default Case GMAC2 as GPIO mode Case Default Case MAC is connected to RGMIT FORCE 1000 GigaSW CPU gt alink Embedded Switch AN WAN Partition witch Board Layout Type W LLLL gt MAC2 Support GMAC is connected to Internal GigaPHY GMAC2 as GPIO mode Case G
82. atforms RT3352 platforms RT5350 platforms Formal 2009 04 27 Formal 2010 02 12 Formal 2010 08 06 Formal 2011 07 15 4 0 SDK Feature parity with 3 6 SDK RT2880 platforms Formal 2012 02 22 Page 12 of 205 everyday genius support IPv6 Rapid Deployment support IPv6 DS Lite support two giga phy port display AP Client site_survey Feature parity with 4 0 SDK plus Feature parity with 4 1 SDK plus GCC 4 6 3 compiler uClibc 0 9 33 Samba 3 6 6 Support software QoS for linux 2 6 36 Add SFQ schedule for SW QoS Shrink memory requirement Support ethtool for linux 2 6 36 Support PPTP L2TP accelerator Support lighthttpd web server BSD licensed Support port trigger Support NFC MT6605 APSoC SDK 4 3 0 0 User s Manual RT3050 platforms RT3052 platforms RT3883 platforms RT3662 platforms RT3352 platforms RT5350 platforms RT6855 platforms RT6856 platforms RT2880 platforms RT3050 platforms RT3052 platforms RT3883 platforms RT3662 platforms RT3352 platforms RT5350 platforms RT6855 platforms RT6856 platforms MT7620 platforms RT2880 platforms RT3050 platforms RT3052 platforms RT3883 platforms RT3662 platforms RT3352 platforms RT5350 platforms RT6855 platforms RT6856 platforms MT7620 platforms MT7621 platforms Page 13 of 205 Formal 2013 10 31 4 3 SDK Feature parity with 4 2 SDK plus MT7628 platforms Alpha 2014 05 09 everyday genius APSoC SDK 4 3 0 0 User s Manual 2 VE
83. ation gt Page 133 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual oS Support i Hardware on 11 25 How to enable USB Ethernet example for ASIX AX88XXX Kernel Library Defaults Selection gt 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 usb 1 1 SerialNumber 01 usb 1 1 configuration 1 chosen from 1 choice ethO register asi at usb lm0 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 Dr 8000 000c43414367 no ra0 eth2 1 ethO ifconfig ethO up Page 134 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual ADDRCONF NETDEV_CHANGE eth0 link becomes ready brO port 3 ethO entering learning state ett link up 100Mbps full duplex Ipa OxC5E1 Dr topology change detected propagating brO port 3 ethO entering forwarding sta
84. c ta Sag Ada Chu 886 4 2492 5298 Dynacard Eddie Lee 886 3 4834868 Basically we need to use MT6595 based phone to do the test Me1Zu phone will be MP in 2014 8 Page 198 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 49 33 NFC command and How to test DUT MT7621 AP MT6595 Phone N Step 1 MT6595 Enable NFC P2P mode open OOO d Lei Wireless amp networks Step 2 Airplane mode Default SMS app Messaging NFC Tethering amp portable hotspot VPN USB Internet Sharing Windows PC internet via USB cable MT7621 WPS Enable MT6605 NFC NFC a LJ s til 3 NFC Allow data exchange when the phone touches another device P2P MODE P2P mode Send or receive App content Android Beam Ready to transmit app content via NFC TAG MODE Tag reading amp writing Read from or write to a tag CARD EMULATION MODE Card emulation SIM1 TAP amp PAY Tap amp pay Using device to TAP amp PAY as Google wallet credit card etc vs D eg ll sl Web browser address http 10 10 10 254 id admin pwd admin WPS Config Enable Page 199 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual le AEE use Wi Fi Protected Setup open all close all You could setup security easily by choosing PIN or PEC method to do Wi Fi Protected Setup 4 Ralink A Wizard C Ope Mod WPS Config Sc Inter Setti L WAN A
85. e make menuconfig Kernel Library Defaults Selection gt Customize Busybox Settings Linux System Utilities gt mdev Support etc mdev conf Support subdirs symlinks TT Support regular expressions substitutions when renaming device Support command execution at device addition removal Step2 Kernel configuration USB Host driver cd RI288x_SDK source make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Device Drivers gt USB support gt lt gt Support for Host side USB USB device filesystem lt gt EHCI HCD USB 2 0 support Page 176 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Ralink EHCI HCD support lt gt OHCI HCD support Ralink OHCI HCD support USB 3G dongle driver cd RT288x_SDK source make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Device Drivers gt USB support gt USB Serial Converter support gt USB driver for GSM and CDMA modems PPP driver cd RT288x_SDK source make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Device Drivers gt Network device support gt Il PPP point to point protocol support PPP support for async serial ports Device hot plugging Page 177 of 205 everyday genius APSoC SDK 4 3 0 0 U
86. e sbin config powersave sh sdr disable SDR precharge powersave sbin config powersave sh ddr enable DDR self auto refresh sbin config powersave sh ddr disable DDR self auto refresh sbin config powersave sh ethernet 1 port enable Ralink ESW PHY powerdown Page 145 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual sbin config powersave sh ethernet O 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 O disable wireless powerdown How to turn on CPU Auto Frequency For RT3352 RT5350 We can turn on CPU auto frequency function by config powersave sh cpu 1 How to turn on SDR Pre charge Power Down For RT3352 RT5350 We can turn on SDR power save by config powersave sh sdr 1 How to turn on DDR Self Refresh Power Save For RT3352 We can turn on DDR power save by config powersave sh ddr 1 How to turn on Ethernet Power Down For RT3352 RT5350 We can turn on Ethernet port 3 power down by config powersave sh ethernet 1 3 How to turn on USB Power Down For RT 3352 RT5350 We can turn on USB power down by config powersave sh usb 1 How to turn on WIFI Power Down For RT3352 RT5350 We can turn on WIFI power down by config powersave sh wifi 1 Page 146 of 205 everyday genius
87. e and only support Playback function MT7621 SPDIF support two data format PCM and AC3 and support sampling rate 22 05KHz 24KHz 32KHz 44 1KHz 48KHz To test SPDIF you can set the test environments as below Page 187 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual kl PCM test environment MT7621 Put PCM sound file from user space SPDIF out Output SPDIF date with PCM format G PC ssoundcard Ss with SPDIF interface Play music AC3 test environment MT7621 Put AC3 sound file from user space Uu SPDIF out Output SPDIF date with AC3 format Media player which supports AC3 decode Play music 11 47 2 How to build ulmage with SPDIF enabling 1 Enter menuconfig Choose Kernel Library Defaults Selection and select Customize Kernel Settings Page 188 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Customize Kernel Settings NEW 2 Then enter Device Driver evice Drivers gt 3 After entering Device Driver select Ralink SPDIF Support Page 189 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual lt gt Ralink SPDIF Support 11 47 3 Howto enable SPDIF command in user space application 1 Enter menuconfig Choose Kernel Library Defaults Selection and select Customize Vendor User Settings Customize Vendor User Settings NEM
88. e user proftpd Description ProFTPD grew from a desire for a secure and configurable FTP server It was inspired by a significant admiration of the Apache web server Unlike most other Unix ftp servers it has not been derived from the old BSD ftpd code base but is a completely new design and implementation Page 68 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 40 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 41 rp I2tp 0 4 Source code RT288x_SDK source user rp 2tp 0 4 Description This is a user space implementation of L2TP RFC 2661 for Linux 8 42 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 43 samba Source code RT288x_SDK source user samba 3 0 2 RT288x_SDK source user samba 3 6 6 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 Micros
89. efault configuration GPIO reference design Wi Fi features AP Client Ethernet Converter Support Feature parity with 2 0 SDK plus Vitesse Switch Support Formal 2007 11 08 AP version 1 6 0 0 STA version 1 4 0 0 Page 10 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 2 3 SDK 2 4 SDK 3 0 SDK 3 1 SDK 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 Feature parity with 2 2 SDK plus IC 100Phy Formal 2008 01 16 INIC v1 1 6 1 Realtek 100Phy RT2561 driver v1 1 2 0 Spansion Flash Support RT2860 AP driver v1 7 RT2860 STA driver v1 5 RT2561 WebUI Multi Language WebUI support Feature parity with 2 3 SDK plus Mii iNIC Formal 2008 04 07 INIC v1 1 7 1 RT2860 AP driver v1 8 1 0 RT2860 STA driver v1 6 0 0 Static Dynamic Routing Content Filtering Feature parity with 2 4 SDK plus RT3052 Support Formal 2008 06 06 OS Linux 2 6 21 Linux2 4 for RT2880 Linux 2 6 for RT3052 8MB Flash Support S29GLO64N MX29LV640 Storage Application FTP Samba Feature parity with 3 0 SDK plus Formal 2008 07 30 RT2860 AP driver v1 9 0 0 RT2880 platforms RT2860 STA driver v1 7 0 0 RT3052 platforms RT3052 16MB 32MB NOR flash support RT3052 Boot from Oxbf00 0000 MA14 1 RT3052 Boot from Oxbfc0 0000 MA14 0 3 2 SDK Feature parity with
90. emory Mapping an ee lae omeen 0000 0000 OFFF FFFF 256 MBytes DDR2 256 MB DDR1 256 MB SDRAM 128 MB 1000 0000 1000 00FF 256 Bytes SYSCTL 1000 0100 1000 01FF 256 Bytes TIMER 1000 0200 1000 02FF 256 Bytes INTCTL 1000 0300 1000 03FF 256 Bytes MEM_CTRL SDR DDR 1000 0400 1000 04FF 256 Bytes Rbus Matrix CTRL 1000 0500 1000 05FF 256 Bytes UART 1000 0600 1000 06FF 256 Bytes PIO 1000 0700 1000 07FF 256 Bytes lt lt Reserved gt gt 1000 0800 1000 08FF 256 Bytes NAND Controller 1000 0900 1000 09FF 256 Bytes I2C 1000 0A00 1000 0AFF 256 Bytes EK 1000 0B00 1000 0BFF 256 Bytes SPI 1000 0C00 1000 0CFF 256 Bytes UARTLITE 1000 0D00 1000 0DFF 256 Bytes MIPS CNT 1000 2000 1000 27FF 2 KBytes PCM up to 16 channels 1000 2800 1000 2FFF 2 KBytes Generic DMA up to 64 channels Page 33 of 205 APSoC SDK 4 3 0 0 User s Manual e a everyday genius 1000 3000 1000 37FF 2 KBytes lt lt Reserved gt gt 1000 3800 1000 3FFF 2 KBytes lt lt Reserved gt gt 1000 4000 100F FFFF lt lt Reserved gt gt 1010 0000 1010 FFFF 64 KBytes Frame Engine 1011 0000 1011 7FFF 32 KBytes Ethernet Swtich 1011 8000 1011 FFFF 32 KBytes ROM 1012 0000 1012 7FFF 32 KBytes USB Device Control 1012 8000 1012 FFFF 32 KBytes lt lt Reserved gt gt 1013 0000 1013 3FFF 16 KBytes SDHC 1013 4000 1013 FFFF 48 KBytes lt lt Reserved gt gt 1014 0000 1017 FFFF 256 KBytes PCI Express 1018 0000 101B FFFF 256 KBytes WLAN BBP MAC 101C 0000 101F FFFF 256 KBytes USB Host
91. emote peer enable auto negotiation algorithm e 10MB Full Set bit6 1 reg_addr 4 e 10MB Half Set bits 1 reg_addr 4 e 100MB Full Set bit8 1 reg_addr 4 e 100MB Half Set bit7 1 reg_addr 4 Page 139 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Auto Negotiation advertisement register CR gt era Reset State gt 05ele Bit Read Write Namev Description Default CEN Next Page Enablee 1 Set to use Next Page 0 Notto use Next Pagee aa w o fe O ees O i f 13 R We Remote Fault Enablee 1 Auto Negotiation Fault Detected vm hoe 0 No Remote Fault oi KR Not Implemented Technology Ability A7 A6 lt Phoe Technology Ability A5 Thef e o fa NotImplementede Technology Ability A4 Thoe 100Base TX Full 1 Capable of Full Duplex ee se f Duplex Capablee 0 Not Capablee 100 Base TX Half 1 Capable of Half Duplex 220 22 Thie f Duplex Capablee 0 Not Capablee 10 Base T Full Duplex 1 CapableofFull Duplex 1DBASET cl Thie Capable 0 Not Capablee 10 Base THalf Duplex 1 Capable of Half Duplex LOBASE Te eeh Thie Capablee 0 Not Capablee Selector Field Identifies typeof messagee Shole User Mode ZS mil_mogr S p oort_no r reg_addr v Value Kernel Space extern u32 mil_mgr_write unsigned int unsigned int unsigned int mil_mgr_write foort_no reg_addr value NOTES IF BOTH RT305X SWITCH AND REMOTE PEER DO NOT USE THE SAME
92. enL2TP is a complete implementation of RFC2661 Layer Two Tunneling Protocol Version 2 able to operate as both a server and a client 8 34 openswan 2 6 38 Source code RT288x_SDK source user openswan 2 6 38 Description Openswan is an IPsec implementation for Linux It has support for most of the extensions Page 67 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual RFC IETF drafts related to IPsec including IKEv2 X 509 Digital Certificates NAT Traversal and many others 8 35 p910nd Source code RT288x_SDK source user p910nd 0 91 Description p910nd is a small non spooling printer daemon that is suitable for diskless hosts particularly hosts that have been booted via the network or run an embedded OS but have a printer attached It accepts jobs from a spooling host over a TCP connection 8 36 pciutils 3 0 0 Source code RT288x_SDK source user pciutils 3 0 0 Description The PCI Utilities package contains a library for portable access to PCI bus configuration registers and several utilities based on this library 8 3 7 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 38 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 39 proftpd Source code RT288x_SDK sourc
93. ency ual Image ual Core Support artition LAN WAN DR ACTiming Setting oad an Alternate Configuration File ave Configuration to an Alternate File DDR Component Use the arrow keys to navigate this window or press the hotkey of the item you wish to select followed by the lt SPACEH BAR gt Press lt gt for additional information about this option Uso RF OF 6M Step 2 Choose DRAM speed 1066Mhz DRAM Use the arrow keys to navigate this window or press the hotkey of the item you wish to select followed by the lt SPACE BAR gt Press lt 77 gt for additional information about this option Page 47 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Step 3 Choose DDR AC Timing Setting ross Compiler Path opt mips 2012 03 bin ASIC hip Type MT7T621 hip ID SRPTACT se GRILL or GEZ tek DEER E PARCS LUT GalL connected Ee WAND lash Type loS24Mb DE Component lOU66Mhzez RAM Speed ee0hMhez BU Frequency ual Image leg D DE Sere Supper Bee Load an Alera Won hacia t ene Ed ale Aave Configuration to an Alternate File Step 4 Select DDR AC Timing Setting by different DDR component W971GG6KB18 DDE Chip Use the arrow keys to navigate this window or press the hotkey of the item you wish to select followed by the SPACE BAR gt Press lt gt for additional information about this option ae Deise ne We ele EE faUl ESEME DDR2 1066 W9751G6KB 512M DRS Default i1Gbt
94. er seconds InProgress yellow if multi color On 0 1 0 1 0 1 0 1 Off 0 1 0 1 0 1 seconds Error red 1f multi color On 01 u Off seconds 1 0 0 5 Session Overlap Detected red 1f multi color 300 seconds Success green 1f multi color Figure 18 LED Definition of WPS Specification Using the WPS PBC status LED as an example the configurations would be 11 e nProgress gpio lt gpio gt 2 1 4000 0 4000 i e 2 ticks bright 1 tick dark blinking forever e 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 12 Use LED firmware to turn on LED 1 Enable LED firmware RT2880 make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Network device support gt Ralink Driver gt Page 105 of 205 APSoC SDK 4 3 0 0 User s Manual everyday genius APSoC SDK 4 3 0 0 User s Manual MT 7620 make linux_menuconfig Ralink Module gt WiFi Driver Support gt WiFi
95. ers 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 Il Ralink GPIO LED Support Page 103 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 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 typedef struct d int gplio unsigned int on unsigned int off unsigned int blinks unsigned int rests unsigned int times ralink_gpio_led_into 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 Note gpio GPIO number of the board on number of ticks that the LED will be bright off number of ticks that the LED will be dark blinks number of on offs that the LED will blink rests number of on offs that the LED will rest times number of blinks before the LED stops 1 tick is equal to 100ms The maximum number is 4000 at this time Page 104 of 205 everyday genius Ba 0 2 S 0 2 Off sg 0 1 0 1 h
96. erved gt gt Page 37 of 205 everyday genius 1E7FFFFF 1EBFFFFF 1FBBFFFF 1FBDFFFF 1FBEFFFF 1FBF7FFF 1FBFFFFF 1FFFFFFF 23FFFFFF SFFFFFFF 6FFFFFFF 7FFFFFFF 58 24K 16128K 128 GAK 32K 32K 4M 960M 256M 256M APSoC SDK 4 3 0 0 User s Manual lt lt Reserved gt gt PCIE Direct Access for NIC lt lt Reserved gt gt CM_GIC cReserved gt gt CM_CPC CM_GCR ROM SPI FLASH Direct Access DRAM Re Map lt lt Reserved gt gt PCIE Direct Access lt lt Reserved gt gt Page 38 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 3 10 MT7628 The MT7628 SoC includes a high performance 580 575 MHz MIPS24KEc CPU core and high speed USB2 0 PCle interfaces which is designed to enable a multitude of high performance cost effective IEEE 802 11n applications with a MediaTek WiFi client card ech DBDR1 DDR2 MT7628 Block Diagram To CPU nemps SDXC Host USB Host PCle Host it i R455 There are several masters MIPS 24KEc USB PCI Express SDXC FE in the MT7628 SoC on a high performance low latency Rbus In addition the MT7628 SoC supports lower speed peripherals such as UART Lite GPIO DC and SPI via a low speed peripheral bus Pbus The DDR DDR2 controller is the only bus slave on the Rbus It includes an Advanced Memory Scheduler to arbitrate the requests from bus masters enhancing the performance of memory access intensive tasks Figure 11 The MT
97. ess accuracy fitness for any particular purpose functionality and any warranty related to course of performance or dealing of Proprietary Information In no event shall MediaTek be liable for any special indirect or consequential damages associated with or arising from use of the Proprietary Information in any way including any loss of use data or profits MediaTek retains all right title or interest in any Proprietary Information or any Intellectual Property embodied therein The Proprietary Information shall not in whole or in part be reversed decompiled or disassembled nor reproduced or sublicensed or disclosed to any third party without MediaTek s prior written consent MediaTek reserves the right at its own discretion to update or revise the Proprietary Information from time to time of which MediaTek is not obligated to inform or send notice Please check back if you have any question Information or items marked as not yet supported shall not be relied on nor taken as any warranty or permission of use MediaTek Inc Taiwan SF No 5 Tai Yuen 1 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 205 everyday genius APSoC SDK 4 3 0 0 User s Manual TABLE OF CONTENTS T DIN STONY EE 10 2 MSV SIO I elen EE 14 A Overview of the Ral
98. etary Applications 8 1 1 ATED Description for rt2860 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 s b0000000 regr18 read b0000018 4 reg w 18 12345678 write 0x12345678 to b0000018 Y Page 54 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 1 3 FLASH Description flash read write test program Usage 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 I 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 1 61 D 4 EIH MAC Description flash read write program to update Ethernet MAC address Usage a read eth_macr lt lan wan gt b write eth _mac w lt lan wan gt lt MACADDR 0 gt lt MACADDR 1 gt lt MACADDR 2 gt lt MACADDR 3 gt lt MACADDR 4 gt lt MACADDR 5 gt Example a read eth_macr lan b write eth_mac w lan 00 Oc 43 76 21 01 8 1 5 GPIO Description GPIO test program Usage GPIO r w
99. 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 Lighttpd web server to start the WPS PBC procedure by Page 57 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 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 rtdev gt lt field gt b set nvram_set lt 2860 rtdev gt lt field gt c init ralink_init lt command gt lt platform gt lt file gt lt Commands gt e rt2860_nvram_show display rt2860 values in nvram e rtdev_nvram_show display rtdev 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 lt Platform gt e 2860 rt2860 station or the first Wi Fi interface e rtdev intelligent nic or the second Wi Fi interface lt File gt File name for renew command Example 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 rtdev display the INIC configurations in NVRAM e ralink_init renew 2860 ra dat set NVRAM values for RT2860 platform according to ra dat f
100. guration The script updates the User Kernel default settings Page 78 of 205 APSoC SDK 4 3 0 0 User s Manual everyday genius 9 5 Compile Linux image with root file system make dep make The following files in RT288x_SDK source images and user _ulmage will be copied to tftpboot by default a user _ulmage Linux image Linux kernel rootfs b zlmage gz lzma compressed Linux kernel roottfs Note What kinds of make can be used make Linux image if you modify kernel source files a 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 Page 79 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 9 6 Port new Linux kernel module Example Port the hello networking module to the MT 7620 platform 1 Add the source code to the module directory mkdir RT288x_SDkK source inux 2 6 36 x drivers net hello vi RT288x_SDkK source inux 2 6 36 x drivers net hello Makeftile obj CONFIG_MT7620_HELLO hello o vi RT288x_SDkK source inux 2 6 36 x drivers nethello hello c Hinclude lt linux init h gt include lt linux module h gt static int hello_init void printk hello worldin return 0 j static void hello_exit void f printk goodbye n
101. h as a USB port for accessing external storage The following table covers the main features offered by the MT7620N and MT7620A Overall the MT7620N supports the requirements of an entry level AP router while the more advanced MT 7620A supports a number of interfaces together with a large maximum RAM capacity CPU Total DMIPs l Cache D Cache L2 Cache HNAT HQoS Memory DRAM Controller SDRAM DDR1 DDR2 NAND SPI Flash SD RF PCle USB 2 0 Switch MIPS24KEc 580 MHz 580 x 1 6 DMIPs 64 KB 32 KB n a HNAT 16 b 512 Mb 120 MHz 512 Mb 193 MHz n a n a 3B addr mode max 128Mbit 4B addr mode max 512Mbit n a 2T2R 802 11n 2 4 GHz n a 1 5p FE SW MIPS24KEc 580 MHz 580 x 1 6 DMIPs 64 KB 32 KB n a HNAT 2 Gbps forwarding 16 b 512 Mb 120 MHz 1 Gb 193 MHz 2 Gb 193 MHz Small page 512Byte max 512M bit Large page 2Kbyte max 8G bit 3B addr mode max 128Mbit 4B addr mode max 512Mbit SD HC class 10 32GB 2T2R 802 11n 2 4 GHz 1 1 Sp FE SW RGMII 1 4p FE SW RGMII 2 everyday genius APSoC SDK 4 3 0 0 User s Manual TT nenn enee I2S n a 1 PCM n a 1 I2C 1 1 UART 1 Lite 2 Lite Full JTAG 1 1 Package DRQFN148 12 mm x 12 mm TFBGA265 11 mm x 11 mm Figure 8 MT7620N Demo Board U TRON 1031s e HTA 1614B R Figure 9 MT7620A Demo Board Page 32 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Table 7 MT7620 M
102. id Deployment 6RD EXPERIMENTAL Please check both IPv 6 IPv6 in IPv4 tunnel SIT driver and IPv6 IPv6 Rapid Deployment 6RD EXPERIMENTAL To enable Ipv6 6rd the firmware should also support iproute2 utility Customize Vendor User Settings Network Applications gt iproute2 ip Page 163 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual After compile and download the firmware please use iproute2 s ip command to configure the IPv6 6rd function 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 ple
103. ide iperf c Server s ip w 128k t 30 i 10 Page 161 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 36 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 nemasq DNS forwarder DHCP server isktypefdetect format of a disk ocho server toragefenable chmod fdisk in busybox o ahead webserver nable F76 support nable SSL support nable hostname support nable Green amp P 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 hos MAC address j DROP Or ebtables A FORWARD p IPv4 ip src hos IP address j DROP 11 37 Howto enable IPv6 Rapid Deployment 6rd To enable IPv6 Rapid Deployment 6rd please include ipv6 6rd feature support in the kernel make menuconfig Page 162 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 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 Pv6 IPv6 in IPv4 tunnel SIT driver WM IPv6 IPv6 Rap
104. ign Default Flash layout New flash layout 64K 64K 1 6875M IFLWXNUITF 2M Offset 0 192K bootloader 6x30000 4KB User config Switch parameter 4KB 0x40000 S 16KB l 0x50000 sy SEI Si TJER g ma v Bic SIS 3 8KB mlm g Bee g S N S SS SI g i a i e E NN gt 0x200000 Ei Co zf E o S RN 2 da Q 2 lt S 0x400000 Offset 128K WIK 3 90HE bootloader User configurations Linux Image Ox400000 Page 170 of 205 SKB WLANI K for concurrent AP Reserved 227K Offset 0 0x 1000 0x2000 0x6000 0x8000 0xa000 Oxf000 0x 10000 Offset Os 19000 On Lic Oe 20000 everyday genius APSoC SDK 4 3 0 0 User s Manual 1 modify rt2860v2 os linux rt_linux c to set flash partition name ra_mtd_read_nm Bootloader a amp OxFFFF size_t b p 2 Modify rt2860v2 include iface rtmp_rbs h to set the offset of RF parameter define RF_OFFSET Ox1FCOO last 1Kbyte in flash sector 1 3 Modify raeth raether c i ra_mtd_read_nm Bootloader GMACO_OFFSET 6 addr sa_ data i ra_mtd_read_nm Bootloader GMAC2_OFFSET 6 addr sa_ data 4 Modify raeth raether h define GMAC2_OFFSET Ox1FC22 if defined CONFIG_RALINK_RT6855A define GMACO_OFFSET Ox1FC28 else define GMACO_OFFSET Ox1FCOO endif define GMAC1_OFFSET Ox1FC2E 5 Modify lib libnvram flash_api c
105. ile f nmvram_daemon A start the nvram_daemon 8 1 8 2 Kernel NVRAM To avoid accessing NVRAM inconsistently sdk also supports NVRAM in Kernel mode How to use S make menuconfig Kernel Library Defaults Selection gt Page 58 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Customize Kernel Settings gt Exit gt Yes Machine selection gt 1 NVRAM If developer needs another flash block as SEH nvram SDK already provided sample solution like Config2 block Offset 0 192K bootloader Offset 6x30000 0 64K User config 0x1000 Switch parameter 0x40000 0x2000 64K RF parameter 512B 3 St gooo 0x6000 S d WLANI S for concurrent AP 5 0x8000 su 1 6875M PF 0xa000 CB gt S py A Se S N 0xf000 RB 0x200000 Reserve E EE 0x10000 SS 0x0 0x8000 0x 10000 Config2 Page 59 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual How to use S make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings gt Exit gt Yes Machine selection gt Dual Image Eernel NVRAM NVRAPM Extension The sample MTD partition Config2 implements MTD CONFIG _PART_SIZE bytes and it begins from MTD _CONFIG2_ PART OFFSET Developer can configure two definitions to assign the maximum size and start address of 2 NVRAM 8 1 9 SPICMD Description SPI Toolkit for SP EEPROM Read
106. ilter NETFILTER y gt IP Netfilter Configuration gt lt gt IP 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 Applications gt iptables iproute2 TT Te Ralink Proprietary Application gt Software QoS Kernel linux 2 6 36 x config Networking support gt Networking options gt Network packet filtering framework Netfilter gt Page 125 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual ail advanced netfilter configuration QoS and or fair queueing gt all selected IP Netfilter Configuration ee oe connection tracking support reguired for HATI Core Netfilter Configuration EXPERIMENTAL y Page 126 of 205 APSoC SDK 4 3 0 0 User s Manual WAT Types Restricted Cone EXPERIMENTAL ZP match support Page 127 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Device drivers gt Network device support gt DU intermediate queueing device support ING behavior PRE FOSTROUTING IMQ AB gt 2 Number of ID devices Customize uClibc Settings Target Architecture Features and Options gt Enable full C99 math library s
107. ink 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 hardware interfaces SPI I2S I2C UART GMAC to enable many possible applications Figure 2 The RT3052 Demo Board UR iage Table 2 RT3052 Memory Mapping pn Teen SDRAM on mm Lopes ooo 1000 0000 e 1000 00FF SYSCTL 1000 0100 1000 01FF TIMER 1000 0200 e 1000 02FF INTCTL Page 19 of 205 everyday genius 1000 0300 1000 0400 1000 0500 1000 0600 1000 0700 1000 0800 1000 0900 1000 0A00 1000 0B00 1000 0C00 1000 0D00 1010 0000 1011 0000 1011 8000 1011_a000 1012 0000 1012 8000 1013 0000 1013 8000 1014 0000 1018 0000 101C 0000 1020 0000 1B00 0000 1C00 0000 1F00 0000 1000 03FF 1000 04FF 1000 05FF 1000 06FF 1000 07FF 1000 08FF 1000 09FF 1000 0AFF 1000 0BFF 1000 0CFF 100F FFFF 1010 FFFF 1011 7F FF 1011 9F FF 1011_FFFF 1012 7F FF 1012 FFFF 1013 7F FF 1013 FFFF 1017 FFFF 101B FFFF 101F FFFF TAFF FFFF 1BFF FFFF TEFF FFFF TFFF FFFF APSoC SDK 4 3 0 0 User s Manual 256 ES 256 UARTLITE OOo i e Ooo i e OOo i ee Lopes 16MB flash or When BOOT FROM 2 b00 4KB ram or lt 16MB external 16 bit flash is mapped 8KB rom When BOOT_FROM 2 b01 lt 8MB external
108. ink AP Demo Board uu ecessccssnccessecesececssnecssececssseecssacecssaceessaeeons 15 eh RT OOO ea E E E 15 22 A EE 19 De FR GO en a E E E T E E 21 SE WER AE 24 o RE GO E 26 iO TRO E 28 i At 29 Bg ONE 31 INNO E 35 3 10 Ee E 39 4 AP SDK source code OVEFVIOW c ccessesesteresserensersnsersnserenseronseronseronsenonserenseronserenserennerente 42 s OOP CIV Un DEE 43 eM MNS CANN OCU E EE 43 NN Eltere 43 5 3 Install mksquashfs utility ee ceesccessseeeessseecessnseecessseeesseeeeessueeessesseeseeseeeesseseeesesseeseseeeeesss 44 OO OAC CI EE 46 DI Uppoo ee le UEL eee ee tr ne me eee nee ear E ta are eet 46 6 2 Build heuboot an Ce TEE 49 SE SN Ein the VID OO Ton e 50 Page 3 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual MISSI ie e EE 51 7 14 Library Configuration 0 cceecsscccccesssesseceeceeeseesneeeeeeeesseesseeeeeeeesceeseeeeeceeseeeesaeeeeeeessesenaeeeeeesesegs 51 f2 Library PONING E 52 ZA Build user library 0 0 eee cceesssececeeeesssssseeeecesessessseeeeeeeesseesseeeeeeeeseessseeeeeeesseeecsaeeeeeeeesseessaeeeeeeeeeegs 53 o USAP AMOI DEE 54 8 1 Ra lnk PFODMETANY E ee leen EE 54 EE EE 62 Go DIDON erei E tenis nd E semen ian denpaes asonatec tush E EA a nantes sesianasmencataenias 62 GA enn Fe E 62 SD DIA SUTIN E 62 66 DUSYDOK eeh 62 Or COMICO 2er E tenes E E E A A E E E 63 6 9 e elt Eu EE 63 a EI EE 63 8 10 CUT EE 63 8 11 CIS Ee FeO BEE 63 8 12 al 0 8 0 o12 EE 64 8 13 EE ebe
109. inux that only uses the IGMP protocol 8 17 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 Page 64 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 18 iperf Source code RT288x_SDK source user iperf 2 0 5 Description iPerf was developed by NLANR DAST as a modern alternative for measuring maximum TCP and UDP bandwidth performance iPerf allows the tuning of various parameters and UDP characteristics iPerf reports bandwidth delay jitter datagram loss 8 19 iproute2 Source code RT288x_SDK source user iproute2 2 6 24 rc7 for Linux 2 6 21 RT288x_SDK source user iproute2 2 6 38 for Linux 2 6 36 Description iproute2 is a collection of utilities for controlling TCP IP networking and traffic control in Linux 8 20 iptables Source code RT288x_SDK source user iptables for Linux 2 4 RT288x_SDK source user iptables 1 4 0rc 1 for Linux 2 6 21 RT288x_SDK source user iptables 1 4 10 for Linux 2 6 36 Description Administration tool for Pv4 packet filtering and NAT 8 21 lighttpd Source code RT288x_SDK source user lighttpd 1 4 20 Description New WebUI reference design of the AP Router Solution 8 22 linux igd Source code RT288x_SDK source user linux igd Description It i
110. istration The maximum rule countis 32 Current Port Tigger in system Current Current Current Current No Trigger Trigger Incoming Incoming Comment Protocol Port Protocol Part hol tee so top a Delete Selected 11 46 How to enable 12S Codec function 11 46 1 12S concept I2S is an Audio interface It can provide PLAYBACK and RECORD function with proper codec This SDK support I2S WM8960 codec 12S is in slave mode while WM8960 codec is in master mode This SDK also provide internal REFCLK to codec as its MCLK 11 46 2 How to enable 12S WM8960 codec 1 Enter menuconfig Choose Kernel Library Defaults Selection and select Customize Kernel Settings Page 181 of 205 APSoC SDK 4 3 0 0 User s Manual KRernel Library Defaults Selection Customize Ee 1 Settings NEW C C 2 Enter Device Drivers 3 Enter Character devices Page 182 of 205 APSoC SDK 4 3 0 0 User s Manual Device Drivers u Enter gt selects submenus gt Highlighted lette eatures Press lt Esc gt lt Esc gt to exit lt gt for Help lt gt ble Generic Driver Options gt Connector unified userspace lt gt kernelspace 1 Memory Technology Device MTD support gt EE EE EE Ee Block devices gt Mise devices gt ATA ATAPT MFM RLL support DEPRECATED gt SCSI device support Serial ATA and Parallel ATA drivers gt Multiple devices driver
111. ive output Table 7 GPIO Usage of RT3052 Egle 3 Pm name ER Board version Description Pin ines e AP RT3052V20RW 2X2 SSS GPIOQ LowActivesignalinput for U10 i WPFPS function when push bottom over 3 seconde sw S GPIO3 GPIOSANT diversity 10 ANT 2 GPIO5 SPI_DOUT RX_SWNe ee O 8 O O e SPI106 SPI_DINe INIC Resistor strapping input R mode E 1 Joad Code mode selecte 0 dump switch modee Ge EH ECH ECH ECH E G2 PIO9S CTS_Ne System Low Activeoutpute pon Oe Power system status Power display LED GPIO10 RXD SW RST 7SWRSTs IER Factory Low Active signalinpute GPIO11 DTR_N GPIO12 DCD_Ne S P Qe SP1013 DSR_N Security Low Active output security Fie ee LEDs mode display K4e GPIO RIN WPS D Low Active output LEDs Indicate WPS PBC statuse 2 Factory default push bottom over seconde Pa P Fa Pa A d Pi Pi Fa d di d Fa Pa Pa Page 102 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Table 8 GPIO Usage of RT3883 RT3662 Use for WPS LED on Reference board Use for Giga Switch reset on Reference board RF 2 4GHz 5GHz Band Band selection selection Factory Default Push Button GPIO7 Boot Strapping Boot Strapping GPIO8 Reserved for internal use The Ralink SDK GPIO driver gives an interface to set the frequency of the LEDs connected to the GPIOs Define RALINK_GPIO_LED_LOW_ACT to 1 at SDK linux 2 4 x driv
112. l o http 10 10 10 254intermet qosclassifier asp Google ABS http 10 10 10 254 intermetiqosclassifier asp Classifier Settings Direction Download Highest MAC Address Dest IP address Src IP address Packet Length packets DESCH Remark DSCP as Not change ei Remarker E Agd 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 24 4 Hardware QoS Usage The Ralink SoC HW QoS architecture is shown in the subsequent figure Page 132 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual SCHO To WAN Queue2 Queue3 Queue4 Queued 2O0descriptor 2O0descriptor 30descriptor 40descriptor Low Default High Highest SCH1 To LAN Queue10 Queue11 Queue12 Queue13 20descriptor 20descriptor 30descriptor 40descriptor Low Default High Highest make menuconfig MT 62 1 alink Products 1280 126M 2P4Ni5 efault Configuration File ustomize Vendor User Settings Proprietary Applic
113. l Example 1 sSuper_dmz f Clear Super DMZ function from system Super_dmz Enable Super DMZ function Super_dmz l ethO t 80 Enable Super DMZ function Assign eh as LAN interface Avoid tcp port 80 is forwarding To make web server on router reachable from WAN side 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 34 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 Page 157 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual To pass lpv6 Ready Logo Phase 2 https www ipv6ready org page phase 2 tech info IPv6 Ready Logo Phase 2 Test Specifications and Test Tools Target e IPv6 Core Protocols o Router o Host HCPv6 o Client o Server o Relay agent e IPsec please enable additional three applications ecmh Easy Cast du Multi Hub ecmh is a networking daemon
114. l 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 Page 63 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 12 dropbear 0 52 Source code RT288x_SDK source user dropbear 0 52 Description Dropbear is a relatively small SSH server and client It runs on a variety of POSIX based platforms 8 13 ebtables Source code RT288x_SDK source user ebtables v2 0 9 2 Description 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 8 14 ecmh Source code RT288x_SDK source user ecmh Description Easy Cast du Multi Hub ecmh is a networking daemon that acts as a full IPv6 MLDv1 and MLDv2 Multicast Router 8 15 GoAhead Source code RT288x_SDK source user goahead Description The GoAhead Web Server is a simple low end compact web server that has been widely ported to many embedded operating systems with limit memory Old WebUI reference design of the AP Router Solution 8 16 igmpproxy Source code RT288x_SDK source user igmpproxy Description GMPproxy is a simple mulitcast router for L
115. mstat 8 28 mtd utils Source code RT288x_SDK source user mtd utils 1 5 0 Description for jffs2 file system support erase format etc example mkfs jffs2 erase eraseall Page 66 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 29 ntfs 3g Source code RT288x_SDK source user ntfs 3g Description The NTFS 3G driver is an open source freely available read write NTFS driver for Linux FreeBSD Mac OS X NetBSD and Haiku It provides safe and fast handling of the Windows XP Windows Server 2003 Windows 2000 and Windows Vista file systems Most POSIX file system operations are supported and full file ownership and permission support is also coming along fast 8 30 ntfsprogs Source code RT288x_SDK source user ntfsprogs Description The Linux NTFS project aims to bring full support for the NTFS filesystem to the Linux operating system 8 31 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 32 nvram library Source code RT288x_SDK source lib libnvram Description Library for nvram_get nvram_set and ralink_init 8 33 openl2tp 1 6 Source code RT288x_SDK source user openl2tp 1 6 Description Op
116. nable slip specific options keepslive and outfill Enable options neg stat io_acdr and ira Enable option he ether only Set the broadcast automatically ifupdoun inetd ip ipcalc naneif ne netstat nalockup pire pirg6 Pan Enable fancy ping output rose slattach eport standalone telnetd not inetd only ps lt Exit gt lt Help gt Page 108 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Linux Kernel v2 4 30 Configuration ted letters are hotkeys Pressing gt includes Arrow keys navigate the menu Enter J 7 gt for Help Legend C built in excluded QD excludes JD nodularizes features QD module lt gt nodule capable Ce Ralink RT2880 GPIO Support Ralink GPIO LED Support lt gt Ralink RT2880 SPI Support lt gt Ralink RT2880 I2C Support C Virtual terainal gt Standard generic 82507 16550 and compatible UARTs serial support J Sueport for console on serial port Extended duab serial driver options Narestandard serial port support Computore IntelliPort Plus serial support Control Rocketport support Cyclades ar mux support Digibosrd Intelligent Async Support Digiboard P A Support Moxa Intellio support Hoka SmartIO support Multi Tech aultiport card support EXPERIMENTAL Microgate Sunclirk card support lt Dr rg Multiport support HIC lire discipline support d SIL RISCon 8 card support Specialix
117. nd HAG AHH BBB IP_10 10 10 254 HI HP Officejet 4300 series irie E ARE S ais SOR RAPA BTS CISH Te 2E At ROR AREGRRE S EAT Weg TC MOSER BIR GE OD HP Officejet 4300 series p910nd IRE F SO HP Officejet 4300 series E IP_10 10 10 254 ZER Rema Be BMA RO OFRE CH O BiG Forth ey a N SRA AARE 18 3 5 12 8 plsi pls2 pls3 HARUD ct ASMA TELA me D Ging FERED Fase MENSA PIED Soss mM v Page 138 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 28 How to force the RT3052 link speed There are two kinds of force mode that refer to the configuration of the remote peer 1 Force Mode Both RT305x and remote peer disable auto negotiation algorithm e 10MB Full Set bit13 0 bit12 0 bit8 1 reg_addr 0 e 10MB Half Set bit13 0 bit12 0 bit8 0 reg_addr 0 e 100MB Full Set bit13 1 bit12 0 bit8 1 reg_addr 0 e 100MB Half Set bit13 1 bit12 0 bit8 0 reg_addr 0 CR gt EE S ch Reset State 3100 Bit R W SCe MR_MAIN_RESET 1 Reset 0 Normal reset all digital logic except phy_reg LOOPBACK_MIll Mii loop back FORCE_SPEED Le 100Mbps 0 10Mbps when mr_autoneg enable 1 b0 SC MR_AUTONEG_ENABLE 1 Enabled O Normal POWERDOWN phy into power down power down analog TN analog RX analog AD Reserved Zeg SCe MR_ R W FORCE_DUPLEX kA 2 Auto negotiation Both RT305x and r
118. nk when no traffic 2 00 Reserved 9 8 01 Solid one 110 Blink when transmitting data and management packet oe a T E E E 11 Blinkwhentransmitting data management packet and beacon D Gold on when netraffic 1 Slow blink when po traffic UU Resevede 01 Solid one 10 Blink when transmitting data and management packet 11 Blink when transmitting data management packet and beacon Radio on andlinktoAe 0 Solid on when no traffic 1 Slow blink when no traffic Reservede Page 106 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Address Statese Bite L ftepeier lt bit0 LED G 3 l bit4 LED A 1 Positive polarity Radio offe US 0 Negative polarity bit2 LED Act a bit3 0 Reserved LEI ACT polarityinversionwhenlinktoA bit LED G HA 1 Positive polarity GE bit 1 LED A Radio on butlink do T 4 e4 0 Negative polarity bit2 LED Act a bit3 0 Reserved LED ACT polarity inversion whendinkto A l hi 1 Positive polarity Radio on andlinkto G De 0 Megative polarity LED ACT polarity inversion whenlinkto A 8 biti LED A 1 Positive polarity Radio on andlinktoA 0 Negative polarity bit 3 0 Reserved LED ACT polarityinversionwheninktoA 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 don t care e 4003D 77 LE
119. nverter make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Ralink Module gt WiFi Driver Support gt Select the operation mode on the Operation Mode Configuration web page open all close all 3 Ralink m i m o bility Operation Mode Configuration You may configure the operation mode suitable for you environment GC Internet Settings Bridge l iin De Wireless Settings All ethernet and wireless interfaces are bridged into a single bridge interface O Gateway The first ethernet port is treated as WAN port The other ethernet ports and the wireless Hittite d together and are treated as LAN ports Ethernet Converter If erface is treated as WAN port and the ethernet ports are LAN ports 0 Station List 0 Statistics Apply HE NAT Settings CH Storage 3 Administration Figure 15 1 WebUI STA Mode and Ethernet Converter Mode Setting Page 96 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 2 Turn on the Wi Fi AP Client Mode make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Ralink Module gt WiFi Driver Support gt Select the operation mode on the Operation Mode Configuration web page open all close all 3 Ralink o at Some TETY Wireless Settings SE Advanced feos gP Security e D Station List jaf Statistics d Les NA
120. o support large bandwidth applications through the AP router Figure 7 The RT6856 Demo Board GZ mg rees SCOEISLNH ER OSIL ME OSLL H Page 29 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Table 6 RT6856 Memory Mapping DS SSS J 1 PER e OX 0x2000 0000 OX2FFF PFFF System Control unt JOXTFBO_OO00 0NIEBU EFFE GE V000 UX1FB1_FFFF OxTFB2_0000 OXIFB2_F FFF D EE 000 U nterruot controller 4 UUUU U 4 ame ngine JOUU U OUUU U B ATM SAR ON FBO OUUU 0x1 SR FFF Cr Be ngine D JOOU OXTFE coniguration address OXTEBS UUZ0 Me a I I I I I I I I I I I I I I IIIA contiguration data TEE UL O n O DUDU SPI master controller 0x1 FBC_ menge EE ooo IF BD_ as tala FEEF Oe 5 0 omes OP E E o R D onz ooo ci gt LU COOC UY Ud UJ UJ UL g ogag EE Oaga UU UJ UJ UJU g ole CO O O l go xX Page 30 of 205 everyday genius 3 8 MT 7620 APSoC SDK 4 3 0 0 User s Manual The MT7620 router on a chip includes an 802 11n MAC and baseband a 2 4 GHz radio and FEM a 580 MHz MIPS 24K CPU core a 5 port 10 100 switch and two RGMII The MT7620 includes everything needed to build an AP router from a single chip The embedded high performance CPU can process advanced applications effortlessly such as routing security and VoIP The MT7620 also includes a selection of interfaces to support a variety of applications suc
121. oS 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 gt Network packet filtering framework Netfilter NETFILTER y Page 123 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual gt Core Netfilter Configuration IT 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 gt Networking options Page 124 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual gt Network packet filtering framework Netf
122. oft Windows operating systems Samba is freely available under the GNU General Public License 8 44 sdparm 1 02 Source code RT288x_SDK source user sdparm 1 02 Description This utility fetches and potentially changes SCSI device e g disk mode pages Inquiry data including Vital Product Data VPD pages can also be displayed Commands associated with starting and stopping the medium loading and unloading the medium and other housekeeping function may also be issued by this utility Page 69 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 45 strace Source code RT288x_SDK source user strace Description strace is a system call tracer Le a debugging tool which prints out a trace of all the system calls made by a another process program 8 46 taskset Source code RT288x_SDK source user taskset Description taskset is used to set or retrieve the CPU affinity of a running process given its PID or to launch a new COMMAND with a given CPU affinity 8 4 7 tcpdump Source code RT288x_SDK source user tcpdump Description A powerful command line packet analyzer 8 48 totd 1 5 Source code RT288x_SDK source user totd 1 5 Description Totd is a small DNS proxy nameserver that supports IPv6 only hosts networks that communicate with the IPv4 world using some translation mechanism 8 49 usb modeswitch 0 9 5 Source code RT288x_SDK source user usb_modeswitch 0 9 5 Description USB_ModeSwitch is surprise
123. ollee Requester Page 201 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual ia 4 34 AM a EA ia 4 35 AM SI NFC Nego Handover Tag Access Enrollee Requester Nego Handover Registrar Selector Use different Public Key Take MT6595 Phone close MT7621 AP NFC Antenna if P2P detection please tap phone screen Finally check Wi Fi link status A688 I Wi Fi SYNC TECH Secured with WEP mtkemp Secured with 802 1x mtklab Secured with WEP COX OD O WPS available mtkemp ms mtkguest linksys_media_a WPS available Page 202 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 50 How to enable AES Engine 11 50 1 AES Engine Support AES Engine provides encryption and decryption operations with AES CBC and AES ECB algorithm 11 50 2 How to enable AES Engine and Run test Program 1 Enter menuconfig Choose Kernel Library Defaults Selection and select Customize Kernel Settings 2 Enter Cryptographic API then select Testing Module CBC Support and ECB Support A ll 3 Select AES cipher algorithm Pseduo Random Number Generation and Hardware crypto devices Page 203 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Cryptographic API 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 modul
124. ox Description BusyBox combines tiny versions of many common UNIX utilities into a single small executable Page 62 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 7 comgt 0 32 Source code RT288x_SDK source user comgt 0 32 Description Comgt is a command line tool for controlling configuring and interacting with Option Wireless 3G and 2G HSDPA UMTS EDGE GPRS GSM data devices within the Linux environment 8 8 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 is fast and small 8 9 curl Source code RT 288x_SDK source user curl Description curl is a command line tool for transferring data with URL syntax 8 10 dhcp6 Source code RT288x_SDK source user dhcp6 Description DHCPv6 is a stateful address auto configuration protocol for Pv6 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 11 dnsmasq 2 40 Source code RT288x_SDK source user dnsmasq 2 40 Description Dnsmasg is a lightweight easy to configure DNS forwarder and DHCP server It is designed to provide DNS and optionally DHCP to a smal
125. pplet links at runtine Enable locale support system needs locale for this to work Ee ST cena exec prefers applets proc self exe Path to BusyBox executable Support for logging to syslog C J RPC support lt Exit gt lt Help gt ST Configuration Login Password Managesent Utilities Arros keys navigate the menu lt Enter gt se are hotkeys Pressing Y gt includes lt N gt excludes gt modularizes features Press Esc gt lt Esc gt to exit lt gt Help lt gt for Search Legend built in C J excluded lt M gt module lt gt module capable Support for shadow passwords Use internal password and group functions rather than sustes functions Support utap File ees vtap file for PAM Pluggable Authentication Modules Support for Login scripts Support for etc nologin s Support for etc securetty Possed ouptrey cheassud su sulogin vlock EE ut gt lt Help gt Psubox i 6 2 Configuration Arrow keys navigate the nerwu Enter selects scm TT d letters are hotkeys Pressing CY includes lt N gt excludes lt M gt sodularizes features Press lt Esc gt lt Esc gt to exit lt gt for Help lt gt for Search Legend built in C J excluded lt H module lt gt module capable Enable IPv6 support Verbose resolution errors wp Serie dhsd ether wsake fakeidentd Fteget Ft pput hostnare httpd ifconfig Enable status reporting output 7k E
126. r s Manual 3 6 Update NVRAM Red Update How to enable watchdog EHCI OHCI USB Power Saving Auto frequency and Power Saving Concurrent AP porting Guide SuperDMZ usage guide How to support IPv6 Ready Logo How to enable iPerf tool How to enable ebtables 4 0 Update concurrent AP porting Guide Roger Steven Red How to enable 6RD How to enable DS Lite 4 1 Update APSoC chip support Red 4 2 R Update MT7621 Parts Steven 4 3 Update MT 7628 Parts Red 3 OVERVIEW OF THE RALINK AP DEMO BOARD 3 1 RI2880 The RT2880 SOC combines Ralink s 802 11n draft compliant 2T3R MAC BBP a high performance 266 MHz MIPS4KEc CPU core a Gigabit Ethernet MAC and a PCI host device to enable a multitude of high performance cost effective 802 11n applications The RT2880 has two RF companion chips The RT2820 for 2 4G band operation 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 iNIC 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 Demo Board Page 15 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Page 16 of 205 everyday genius APSoC SDK 4 3 0 0
127. rame to link partner Default 30 ms unit 1 ms 7 6 Reserved Ox0 5 RW CKG_TXIDLE Tx Global Clock Idle Stop Dt 0 Keep Tx port clock ticking 1 Stop Tx port clock ticking when the corresponding port has no traffic to send and Rx port blocks have been idle for lt LPI_TXIDLE_THD gt ms 4 RW CKG_RXLPI Rx Global Clock Idle 0x0 0 Keep Rx port clock ticking 1 Stop Rx port clock ticking when the corresponding port enters LPI mode and Rx port blocks are idle 3 2 Reserved x 1 RW CKG_LNKDN_PORT Global Clock Link Down Port Stop 0x1 Port clock clocks for GMAC PORT_CTRL and SCH blocks Keep Rx and Tx port clock ticking 1 Stop both Rx and Tx port clock ticking when the corresponding port enters link down status for 7 seconds 0 RW CKG_LNKON_GLB Global Clock Link Down Stop 0x1 Global clock Clock for BMU PB_CTRL and ARL blocks 0 Keep the global clock ticking 1 Stop the global clock ticking when all ports enter link down status for 7 seconds Page 116 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 18 How to enable NFS client make menucontg KernelLibrary Defaults Selection gt Networking options gt IP kernel level autoconfiguration 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
128. rce vendors Ralink Platform Makefile romfts ROMFSINST etc_ro xxx bin The script will copy xxx bin to RT288x_SDK source romfs etc_ro after executing make romfs Page 82 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 9 9 Reduce Image size The MTD partitions are subsequently shown 1 RootFS in RAM Mode mtd 0 0x0 mtd 1 0x30000 mtd 2 0x40000 0x50000 mtd 3 Kernel RootFS 0x400000 2 RootFS in Flash Mode with Padding 0x0 mtd 0 0x30000 mtd 1 0x40000 mtd 2 0x50000 mtd 3 Kernel Page 83 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual lt menuconfig gt Padding mtd 4 Root FS 0x400000 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 Original Kernel Image Size 576110 shome stever R T288x_SDK source images zlmage lzma Padded Kernel Image Size 786368 home steverVR T288x_SDK source images Zlmage izma Original RootFs Size 4329746 home steverVRT288x_SDK source romtfs Compressed RootFs Size 1069056 home stever RT288x_SDK source images ramdisk Padded Kernel Image Compressed Rootfs Size 1855424 home stever R 1288x_SDK source images zlmage zma Page 84 of 205 everyday genius APSoC SDK 4 3 0 0 U
129. river Support and select RT3090 moudule to to act 274 WiFi interface but one of them could be selected WiFi Driver Support gt Page 153 of 205 APSoC SDK 4 3 0 0 User s Manual Ralink RT3090 802 11n AP support Leave Ralink Module option and then exit Linux Kernel Configuration Exit gt yes Steo9 Final you can execute and to build image under the RT288x_SDK source make dep make 2 Usage Page 154 of 205 everyday genius APSoC SDK 4 3 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 Z Pali m i m o ity S Ralink Ralink APSoC open all close all Select Language z Ralink English v Apply Operation Mode HCH Wireless Settings Status Statistic Management Wireless2 Settings CH Administration BLR CERTIFIED Wi Fi PROTECTED SETUP WEBSERVER Command line st WiFi interface name ra 2nd Wiki interface name ra ra0 s profile is located on etc Wireless RT2860 RT2860 dat and rale profile is located on etc Wireless iNIC iNIC_ap dat To change raiO s wireless settings you can edit its profile and re bring up it
130. ro test_sound snd 2 Command of RECORD function Example i2scmd 1 48000 100 5000000 Page 186 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual lt NOTE gt Owing to MT7628 support not only 16 bit but 24 bit word length and little big Endian please use the following command as MT7628 I2S command i2scnd This is Ralink 1125 124s_release succeeds 25 Command Program Usage cmd arate vol wordlen endian fmt playback file cmd vol aize wordlen endian fmt cmd c raw playback record arate PONTI TAa I 48000 Hz playback sampling rate yol playback yolumn word len Aled bit endian fmt 0 little big endian Lvacmd quit 1 Command of PLAYBACK function Example 16 bit little Endian i2scmd 0 48000 100 16 1 lt etc_ro test_sound_16b _little snd 16 bit big Endian i2scmd 0 48000 100 16 0 lt etc_ro test_sound_16b_big snd 24 bit little Endian i2scmd 0 48000 100 24 1 lt etc_ro test_sound_24b_little snd 24 bit big Endian i2scmd 0 48000 100 24 0 lt etc_ro test_sound_24b_big snd 2 Command of RECORD function 16 bit little Endian i2scmd 1 48000 100 5000000 16 1 16 bit big Endian i2scmd 1 48000 100 5000000 16 O 24 bit little Endian i2scmd 1 48000 100 5000000 24 1 24 bit big Endian i2scmd 1 48000 100 5000000 24 0 11 47 How to enable SPDIF function 11 47 1 SPDIF concept SPDIF is an audio interface So far only MT7621 support SPDIF interfac
131. s a deamon that emulates Microsoft s Internet Connection Service ICS It implements the UPnP Internet Gateway Device specification IGD and allows UPnP aware clients such as MSN Messenger to work properly from behind a NAT firewall Page 65 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 8 23 IIdt Ild2d Source code RT288x_SDK source user Ildt Description The Ild2d daemon allows linux systems to display in Vista s Network Map 8 24 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 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 25 miniupnpd 1 6 Source code RT288x_SDK source user miniupnpd 1 6 Description New reference design to perform Wi Fi WPS with wired external Registerar 8 26 mkdosfs 2 11 Source code RT288x_SDK source user mkdosfs 2 1 1 Description mkdosfs is used to create an MS DOS file system under Linux on a device usually a disk partition 8 2 mpstat 0 1 1 Source code RT288x_SDK source user mpstat 0 1 1 Description mpstat is intended to be a utility for Linux to monitor SMP machine s CPU statistics It records usr idl major amp minor faults and number of interrupts that have occured mpstat is similar to v
132. ser s Manual cd RI288x_SDK source make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings General setup gt Configure standard kernel features for small systems IT Support for hot pluggable devices Sysfs filesystem cd RI288x_SDK source make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings File systems gt Pseudo filesystems gt sysfs file system support Start 3G dial up You can start 3G dial up through Web GUI or comman line Some parameters such like APN Dial number are needed for connection establishment These parameters should be provided by the ISP Web GUI Page 178 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 7 2 Ralink m i m den Wide Area Network WAN Settings You may choose different connection type suitable for your environment Besides you may also open all close all d Ralink configure parameters according to the selected connection type 3 Operation Mode ly Internet Settings WAN Connection Type 3G v O WaN STATIC fixed IP 3G Mode 3 LAN DHCP Auto config DHCP clients APN Internet a ADSL Ad d Routi e as D ru 7 H Firewall Eoo SE USB 3G modem AutoDetect v Enabled Disable x Apply Cancel Note 3G Web GUI page doesn t exist in 2M 16M Default Configuration File Command line Usage 3g sh 3G_dongle_model
133. ser s Manual Step2 Change mtdblock size 5 6110 0x8CAGE gt 0x90000 multiple of Ox10000 because the flash sector size 64KB 0x0 0x30000 mtd 1 Config 0x40000 mtd 2 RF 0x50000 Kernel mtd 3 0xE0000 Padding mtd 4 Root FS 0x400000 make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Machine selection gt System type Ralink MT7620 board gt soc Hardware Type MT 7620 ASIC gt DRAM Size 64M gt Flash Type SPI gt Dual Image Kernel NVRAM Root File System Type RootFS_ in FLASH gt No Padding between Kernel and RootFs NENT MaxSO0000 MTD Kernel Partition Size Unit Bytes Page 85 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 3 RootFS in Flash Mode with no Padding 0x0 0x30000 mtd 1 Config 0x40000 mtd 2 RF 0x50000 mtd 3 Kernel make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Machine selection gt system type Ralink MT 7620 board gt Soc Hardware Type NT 620 a5IC gt DRAM Size 64M gt Flash Type SPI gt Dual Image Fernel NVRAN Root File System Type RootFS in FLASH gt H No Padding between Kernel and RootFs Page 86 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 10 FLASH LAYOUT AND FIRMWARE UPGRADE 10 1 Flash Layout Offset 0 192K bootloader Offset 6x30000 ap 0 64
134. seresssseresssseressssees 181 11 47 How to enable SPDIF function sesesesseseressessressssseresssseresssserersesoreesssseresssseresssseresssees 187 11 48 How to enable Dual Image support s nnnnssssnssnnnsssssseeeessssssrerersssssereresssssseereesssssereeeeesssee 192 11 49 How to enable NFC support GE 198 11 50 How to enable AES Engme ENEE 203 Page 9 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 1 SDK HISTORY Release 1 2 SDK 1 3 SDK 2 0 SDK 2 2 SDK Features Platform Support Schedule 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 Driver UART Giga Ethernet Support Flash Wi Fi Driver Application Bridging Routing NAT PPPoE Web server DHCP client DHCP server Wi Fi features WMM WMM PS WEP WPA WPA2 personal WPA WPA2 Enterprise Feature parity with 1 2 SDK plus RT2880 MP Support Beta 2007 04 30 Application NTP DDNS WebUI Formal 2007 05 25 enhance Vista RG Native IPv6 LLTD Firewall Driver 12C SPI GPIO driver Wi Fi features Intergraded QA WPS mBSSID WDS STA mode 802 1x Concurrent AP support Feature parity with 1 3 SDK plus Beta 2007 07 06 File system support ramdisk and Formal 2007 07 20 squashfs WebUI save restore configure WPS PIN WPS PBC factory default STA mode support Application push button to load d
135. server is needed for upgrading firmware choo che operation Load system code to SDRAM via TFTP Load 8y m code then write to Flash via IFIP Boot system code via Flash default check E command Line interface Load Boot Loader code then writ Load Boot Loader code then write 1 Select option 2 on the UBoot menu to burn the Linux image from 0x50000 to 0x400000 2 Select option 9 on the Uboot menu to update your uboot from 0x0 to 0x30000 IERT WebUI You can use WebUI to upgrade the Linux image Gm everyday genius M MObility 2 Upgrade Firmware open all close all Upgrade the Ralink Soc firmware to obtain new functionality Ittakes about 1 minute to upload Y Ralink upgrade flash and be patient please Caution A corrupted image will hang up the system _ Wizard D Operation Mode i a Internet Jangs mem RE H Wireless Settings H Wireless2 Settings Apply 49 USB App p a Administration Management Upload Firmware Settings Manageme Status Update Bootloader Location Apply Scan Taj mi mi aay m mi am System Command SDK History Apply Force upgrade firmware via mem Force No v Apply Figure 13 WebUl Firmware Upgrade CGI uses the mtd_write command to burn a Linux image File system in RAM Burn Linux image to mtdblock3 Kernel File system in Flash Burn first x bytes to mtdblock3 and others to mtdblock4 ps X byes MTTD kernel partition size in make menuconfig
136. sssnscecsssssnseesesssensecsesseeseessessuseesesssenseess 107 11 14 11n DIT rate derivation EE 109 Page 7 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 15 How to build a single image for the flash programmer 112 11 16 How to power down the RT3x5x RT5350 MT 7628 build in 10 100 bye 114 11 17 How to power down the RT6855 RT6856 MT 7 620 build in 10 100 PHYS 115 11 18 How to enable NFS CliONt cccsssssecsesssesecsesssescecessseusecseesseuseesessseseesessseuseesesssenseess 117 11 19 How to add a new language to the web Uli 118 11 20 How to enable watchdog cssssssccccccssssssssssssssseeeessececeeeeeeeessssssssseeessssececeeeeeeeesesssesees 119 11 21 How to enable USB storage on the RT305xX platform cc cccssssseceeeeessssseeeeeees 120 11 22 How to enable USB automount on the RT305xX platform ceessecceeeeessssteeeeeees 122 11 23 How to enable Software Co 123 11 24 QOS IMO en EE 128 11 25 How to enable USB Ethernet example for ASIX AAD SNA 134 11 26 How to build a single image for the RT2880 8M flash platform s0onnnnnssseeneeenesen 135 11 27 How to start a printer server example for HP officejet A 328 136 11 28 How to force the RT3052 link speed cc ccccessssssseceeeeesssesneeeeeeeeseessaeeeeeeessesenaeeeeeees 139 11 29 How to verify IGMP snooping FUNCTION ceecessssecccceesssssseeeeeeeesessnsseeeeeessssseaaeeeeees 140 11 30 ERCVORCI USB Power SAVING E 142 11 31 A
137. sters 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 Page 142 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 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 ORF 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 ulong dest_addr void config_usb_ehciohci void config_usb_ehciohci And then rebuild Uboot 11 31 Auto frequency and Power Saving The RT3352 RT5350 SOC has the capability of auto frequency and power saving 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 Page 143 of 205 everyday genius APSoC SDK 4 3 0 0 User
138. support RAID and LY Network device support gt ISDN support c Telephony support gt Input device support gt P Ps Ps Poe eo Lol be bet Lal Lal Ll ma ma ma Pe eo Lol Lal Lal Lal Lal Character devices Eo Spies so SSE VSP ote S BPS Suppere PaaS se l wirs support gt Pewer supply lass Uppers sas Hardware Monitoring support gt re ma Lt LH r F i ma Lol Lol ee 4 Choose Ralink I2S Support eg Character devices 1 Enter selects submenus gt Highlighted letters are hotk matures Press Esc gt lt Esc gt to exit lt gt for Help lt gt for Search ile Ralink GPIO Support Ralink GPIO LED Support Ralink GDMA Support SDMA Channel Allocation Mode All for Everybody gt Balink BTZ880 SPI Support Ralink RTZ880 IZC Support Ralink PCM Support Ralink IZ amp support Virtual terminal f dev kmem virtual device support re FH FH Lt zt Lal Lol bd Lol kel Lol Ld ee kel Non standard serial port support gerial drivera Unix98 PTY support Support multiple instances of dewpts Legacy BSD PTY support 6 Maximum number of legacy PTY in use TPMI top level message handler rz D Li e e e e LI Lol Lol Hardware Random Number Generator Core support Siemens Ried line discipline BAM driwer 7 dew raw rawh Log panic oops to a RAM buffer FF FF EF ee ee FH Page 183 of 205
139. t Page 120 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 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 Default iocharset for FAT NEW Partition Types gt Advanced partition selection 7 PC BIOS MSDOS partition tables support NEW 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 Il 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 Page 121 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 22 Howto enable USB automount on the RT305x platform make menuconfig Kernel Library Defaults Selection gt Customize Busybox Settings Linux System Utilities gt mdev Support etc mdev conf Support subdirs symlinks NEW Support command execution a
140. t device addition removal Customize Vendor User Settings Miscellaneous Applications gt ntfs 3g Page 122 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 23 Howto enable software QoS To support the Ralink SW QoS many menuconfig options in Ralink SDK must be enabled including in kernel and application configs Following are the configuration of Kernel linux 2 6 21 x and Kernel linux 2 6 36 x Kernel linux 2 6 21 x config Kernel IMQ config Since the Intermediate Queueing IMQ pseudo device are used to support Ralink SW QosS 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 Q
141. te ping 10 10 10 3 PING 10 10 10 3 10 10 10 3 56 data bytes 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 26 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 RT 2880 vi Makefile 8M UBOOT_IMAGE rt2880_100phy_128Mbx16_8Mflash uboot KERNEL_IMAGE rt2880_100phy_128Mbx16_8Mflash linux PACKED_IMAGE rt2880_100phy_128Mbx16_8Mflash uboot Page 135 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual make f Makefile 8M Flash layout KERNEL Partll Uboot UsrCfg RF Kernel Partl l lt 0x400000 gt lt 0x50000 gt 0x3B0000 gt 11 27 Howto start a printer server example for HP officejet 4355 Step1 SDK Configuration make menuconfig Kernel Library Defaults Selection gt Customize Kernel Settings Device Drivers
142. tions pnroute J Les rpd lr fatat Ree natat tmon Sala de m trixzsagl Exit gt Yes radvd Ea Le Ka LA Lh bel gt 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 121 The Router Advertisement Daemon is used by system administrators in stateless autoconfiguration methods of network hosts on Internet Protocol version 6 networks Page 160 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual make menuconfig Customize Vendor User Settings Network Applications gt radvd Router Advertisement Daemon advd dump t2860apd 802 1x Authenticator tohlapd Legacy 802 1x Authenticator Exit gt Yes 11 35 How to enable iPerf tool iPerf was developed by NLANR DAST as a modern alternative for measuring maximum TCP and UDP bandwidth performance iPerf allows the tuning of various parameters and UDP characteristics iPerf reports bandwidth delay jitter datagram loss make menuconfig Customize Vendor User Settings Miscellaneous Applications gt xia Endpoint ubench m d write m stat nm teat n tetat nat rma raa raa raa r Tl Ll Ll ed Ld Exit gt Yes Uasage Server sied iperf s Client s
143. ual 11 42 How to support new USB 3G dongle Stept Switch USB 3G dongle mode In the general case the 3G dongle will be recognized as a USB mass storage device when you plug it into USB port You need to switch it to modem mode and then you can start 3G dial up SDK uses open source application usb_modeswitch to accomplish this work usb_modeswitch needs a configuration file for each 3G dongle So what you need to do is add a configuration file into SDK for the new 3G dongle usb_modeswitch keeps updating its configuration file datebase to support more new 3G dongle You can download the latest usb_modeswitch vesrion and find corresponded configuration file Example Support Huawei E169u 3G dongle 1 Download usb_modeswith database usb modeswitch data 2 Get the vendor ID and product ID of the new 3G dongle cat oroc bus usb devices 11 43 How to enable USB 3G dongle function The RT288x_SDK supports USB 3G dongle to work as WAN interface This requires Kernel drivers to support USB stack and dongle device and also user space application to establish 3G PPP connection Configuration Step1 User space applications configuration cd RI288x_SDK source make menuconfig Kernel Library Defaults Selection gt Customize Vendor User Settings Page 175 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual Network Applications gt 3G connection cd RI288x_SDK sourc
144. uboot bin cp tftpboot steven_ulmage make f Makefile 4M Flash layout Uboot UsrCfg RF Linux Kernel Image Original Uboot Image Size 149372 uboot bin Original Kernel Image Size 2179348 steven_ulmage Packed Image Size 4194304 steven_ulmage img Als w r r 1 steven users 3831 Jun 24 19 00 Makefile 16M w r r 1 steven users 2865 Jun 27 13 27 Maketile 4M w r r 1 steven users 3744 Jun 24 19 00 Makefile 8M w r r 1 steven users 2779348 Jun 27 13 34 steven_ulmage wxr 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 Du The single image can now be burned using the flash programmer Page 113 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 16 How to power down the RT3x5x RT5350 MT7 628 build in 10 100 PHYs MII control register mr_main_reset 1 Reset O Normal R W SC Tho reset all digital logic except phy_reg loopback mii mii Mii loop back pm fa anoo 13 force_speed 1 100Mbps 0 10Mbps when 1h1 mr_autoneg_enable 1 b0 mr_autoneg_enable 1 Enabled 0 Normal a a powerDown phy into power down power down Tho ma T TX analog RX analog AD un resevea RO In anoo mr_restart_negotiation 1 Restart Auto Negotiation R W SC Tho 0 Normal
145. upport Customize Vendor User Settings Library Configuration gt Build libresolv Network Applications gt iptables iproute2 tc Ralink Proprietary Application gt Software QoS 11 24 QoS information 11 24 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 11 24 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 Page 128 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual packets 11 24 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 oS Setup Quality of Service Download from Internet w Upload Bandwidth Bitsisec Download Bandwidth AM Bitsisec 205 Model DRF w D 0 10 is recommanded Reserved bandwidth
146. uto frequency ANd Power Saving s essssssssssersssssssereessssserrerrsssssrererssssserereesssserrrrense 143 11 32 Concurrent AP poring GUJE s iresmisererininke nii r anaa raire kiin eE E aniei ati 148 11 33 SuperDMZ usage guide ooosseessssssosreerrsssserresrsssseereesrsssserressrsssserresssssseereesssssseereesssssseene 156 11 34 How to support IPv6 Ready Logo 157 11 35 How to enable iPerf tool seeessesesesseseresseseresssssreesssseresseseresssseressesoreesseseresssseresssseressssers 161 11 36 How to enable ebtables nessesesesseseresssssresssssreesssseresssseresssseressesoreesseseresssseresssseressesers 162 Page 8 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 11 37 How to enable IPv6 Rapid Deployment Gr 162 11 38 FIOW t enable IPVG DS LING EE 166 11 39 How to modify flash layout eee ccccessssssseeeceeeseesssseeeeceesseesnaeeeeeeesseessnaeeeeeesesessnaaseeeees 170 11 40 How to reduce Linux TER 173 11 41 How to change internal GSW PHY Base Address A 174 11 42 How to support new USB 3G dongle 175 11 43 How to enable USB 3G dongle function snnsnsssooseseensssssseeeessssssereessssssreeeesssssereeerssssee 175 11 44 How to enable Port Trigger function cccccccccsssssscceceesssssnseeeeeeessesssseeeseessssssneeeeeees 179 11 45 OFT VIGGEN AMON e sariini Ana A AEEA OTAR 180 11 46 How to enable I2S Codec function sesseessesseessssseresssseressssererssssreesss
147. value to flash Page 93 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual radio websGetVar wp T radiohiddenButton T 2 if lstrncmp radio 0 2 nvram_bufset RT2860_NVRAM RadioOn radio doSystem ifcontig ra0 down websRedirect wp wireless basic asp return else if lstrncmp radio 1 2 nvram_bufset RT2860_NVRAM RadioOn radio doSystem ifcontig 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 radio 1 ifconfig ra0 0 0 0 0 up else ifconfig ra0 0 0 0 0 down fi Page 94 of 205 APSoC SDK 4 3 0 0 User s Manual everyday genius 11 7 Enable Ethernet Converter AP Client Mode The Wi Fi Interface should be configured into STA mode or AP client enabled All PCs under the Ethernet port connect to the AP via NAT mechanism SASSU plattor RaQ 140 112 100 100 Public IP EthO 192 168 0 254 Private IP SS Eet 192 168 0 1 192 1 0 2 192 168 0 3 192 168 0 250 Figure 14 Ethernet Converter AP Client Mode Operation Diagram The detail configuration and Web GUI setting are described starting from next page Page 95 of 205 everyday genius APSoC SDK 4 3 0 0 User s Manual 1 Turn on the Wi Fi STA support for Ethernet Co
148. wlan 00 0c 43 762101 2 flash w 40028 o 00 flash w 40029 o Oc flash w 4002A o 43 flash w 4002B o 76 flash w 4002C o 21 flash w 4002D o 01 Page 98 of 205 everyday genius 11 9 How to change the Wireless MAC address The MAC address of wireless interface are set in the EEPROM content offset 0x0004 Ox0006 and 0x0008 If the EEPROM type of the wireless interface is FLASH mode the EEPROM content is stored in the factory MTD block The first second wireless interface uses the RF 1 parameter RF 2 parameter in the factory MTD block 0x40200 Ox4E000 0x50000 RF parameter Base Address MAC Addr 0 MAC Addr 1 MAC Addr 2 MAC Addr 3 MAC Addr 4 MAC Addr 5 0x40000 i 0x48000 Le 0x48200 Standalone parameter 0x0004 0x0005 0x0006 0x0007 0x0008 0x0009 APSoC SDK 4 3 0 0 User s Manual LAN MAC Byte5 0x0 WAN MAC Byte0 0xb Se ee N MAC Byte4 Ox LAN MAC ByteO 0x5 WAN MAC Byte5 0x6 1st Wireless Interface 2nd Wireless Interface 0x40000 0x48000 0x0004 0x0005 0x0006 0x0007 0x0008 0x0009 The following commands can help to modify the MAC address setting in the flash 1 flash 2 iwpriv ra0 e2p iwpriv raid e2p Please refer to the SoftAP programming guide For example set the MAC address of 1st Wi Fi interface of MT 7620 as 00 0 43 76 21 16 flash w 40004 o 00 flash w 40005 o Oc flash w 40006 o 43 flash w 40007 o
149. yday genius APSoC SDK 4 3 0 0 User s Manual 9 6 Port new Linux kernel MOUIEC cccccsssstcecsesssesceccssssescesesssnseesesssesseessssuseesesssenseesesssenseess 80 9 7 Execute commands at boot up me EEN 82 9 8 Add new files eet 82 9 9 Reduce IMAGE ste een 83 10 Flash Layout and Firmware Upgrade onnnnnnsssonnenenessssnreeeresssssreeresssssserrersssssrerenssssserreeessssee 87 10 1 W el Dt 87 10 2 Firmware Upgrad lt a eee en see een a ne A eee ee ee eee 89 TIFAO ernea ca yee es aise eames ta EE E E E EE E E eens 90 11 1 Default password UART networking seitng 90 11 2 system requirements for the host olattorm 90 11 3 Quickly Build a Default Reference Image 91 11 4 How to configure MT 7620 to connect with the external switch eeecesssseeeeeeeeees 91 11 5 How to configure MT 7621 internal switch to get more GPIO PINS eee eeeeeeeees 92 11 6 How to add new default parameter mae 93 11 7 Enable Ethernet Converter AP Client Mode 95 11 8 How to change the Ethernet MAC address ooonnnnssssnseseesssssneerenssssssereeessssssrrreessssee 98 11 9 How to change the Wireless MAC address 99 11 10 HOw Tto configure GPIO DOMS cesis inene eera Ear N EE EE NEFER T REE 100 11 11 BEE Ge O TO EE EE 102 11 12 Use LED firmware to turn on LED cee cesssccccsssnsceccesssnseesesssnseesessseneecsssseuseesesssenseess 105 11 13 How to start the telnet S rvel ccc cssccccssssssccse
Download Pdf Manuals
Related Search
Related Contents
1 - Projector Manual WV-NP244 - CCTV Center Customer Release Notes Toshiba GA-1211-EX, version EX-1.0 Butterfly Valves Type 55 User Manual CITROEN Ds3 Cabrio Brochure Network Time Server NTS–150 & NTS-150D User`s Manual 説明書 Copyright © All rights reserved.
Failed to retrieve file