• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..17-May-201940

LicenseH A D17-Dec-201515.6 KiB

README.TXTH A D27-Nov-20153.4 KiB

release/H29-Mar-20167

toolchain/H18-Apr-201419

README.TXT

1
2The GPL source is created for ASUS wireless router related products. Please visit the ASUS support site (http://support.asus.com) to get the latest GPL tarball.It has a lot in common with many wireless router open source projects, including Oleg/Tomato/DD-WRT/OpenWRT. Thanks the developers of those projects for making the source code available.
3
4Set Up Environment(Tested in Fedora 8/9 and Ubuntu)
5
6    1. prepare environment
7	
8	a. Ubuntu
9		Install these packages (I used synaptic: "sudo synaptic")
10
11		libncurses5
12		libncurses5-dev
13		m4
14		bison
15		gawk
16		flex
17		libstdc++6-4.4-dev
18		g++-4.4
19		g++
20		git (or git-core)
21		gitk
22		zlib1g-dev
23		autoconf
24		autopoint (or gettext)
25		libtool
26		shtool
27		autogen
28		mtd-utils
29		intltool
30		sharutils
31		docbook-xsl-*
32		libstdc++5
33		texinfo
34		dos2unix (or tofrodos)
35		xsltproc
36
37		If you are using Ubuntu amd64, you may need to install 32-bit packages listed below.
38			libc6-i386
39			lib32stdc++6
40			lib32z1
41
42	b. Fedora
43		sudo yum groupinstall "Development Tools"
44		sudo yum install gettext-devel libxml2-devel mtd-utils-ubi ncurses-devel zlib-devel intltool sharutils docbook-dtds docbook-style-xsl
45
46		If you are using Fedora 19 or above, you need to install below packages.
47		sudo yum groupinstall "C Development Tools and Libraries"
48
49		If you are using Fedora x86_64, you may need to install 32-bit packages listed below.
50			glibc.i686
51			libstdc++.i686
52			zlib.i686
53   
54   2. prepare source to, ex, $HOME/asuswrt
55
56	cd $HOME
57	tar xvfz [tar file]
58 
59   3. setup development system
60
61	Broadcom SoC models
62	===================
63
64		To install the tools:
65	    	    - copy the tools/brcm/ directory to /opt
66		    - add /opt/brcm/hndtools-mipsel-linux/bin to your path
67		    - add /opt/brcm/hndtools-mipsel-uclibc/bin to your path
68
69	Mediatek/Ralink SoC models
70	==========================
71
72		To install the tools:
73	    	    - copy the tools/brcm/ directory to /opt
74		    - add /opt/brcm/hndtools-mipsel-linux/bin to your path
75		    - add /opt/brcm/hndtools-mipsel-uclibc/bin to your path
76	    	    - extract tools/buildroot-gcc342.tar.bz2 to /opt
77		    - add /opt/buildroot-gcc342/bin to your path
78
79		For MT7621 Uboot:
80	    	    - extract mips-2012.03.tar.bz2 directory to /opt
81		    - add /opt/mips-2012.03/bin to your uboot path
82
83	Qualcomm SoC models
84	===================
85
86		To install the tools:
87	    	    - extract openwrt-gcc463.mips.tar.bz2 directory to /opt
88		    - add /opt/openwrt-gcc463.mips/bin to your path
89		    - If you want to build small utilities out of asuswrt box,
90		      add STAGING_DIR environment variable as below:
91
92		      export STAGING_DIR=/opt/openwrt-gcc463.mips
93	
94
95	Note: Broadcom/Ralink(except 4708 series) platform use the same toolchain for user space program, so please set PATH to the same directory as above
96   
97   4. build firmware.
98
99	a. rt-n16
100		cd release/src-rt
101		make rt-n16
102
103	b. rt-n56u
104		cd release/src-ra
105		make rt-n56u
106
107	c. rt-n65u
108		cd release/src-ra-3.0
109		make rt-n65u
110	
111	d. rt-n14u (/ rt-ac52u / rt-ac51u / rt-n11p / rt-n54u)
112		cd release/src-ra-mt7620
113		make rt-n14u
114		( make rt-ac52u  )
115		( make rt-ac51u  )
116		( make rt-n11p   )
117		( make rt-n54u   )
118
119	e. rt-ac56u (/ rt-ac68u / rt-n18uhp)
120		cd release/src-rt-6.x.4708
121		make rt-ac56u
122		( make rt-ac68u  )
123		( make rt-n18uhp )
124
125	f. rt-ac55u (/ rt-ac55uhp )
126		cd release/src-qca
127		make rt-ac55u
128		( make rt-ac55uhp )
129