MWGAP HACKING
The goal is to port OpenWrt [1] to this device. I'll document the
process on this page and include links to any patches that are created
along the way.
The steps are:
* Select the correct build options
* Build mips big-endian tool chain with non-mips patent free patch
* Add a build target for the MNGAP
SELECT CORRECT BUILD OPTIONS
oops, skip ahead to Add a build target before doing this
make menuconfig, select Advanced configuration options for
developers, select Toolchain options, select gcc version 3.4.6-nonmips
back up to advanced options, select show broken platforms back to top
level, select the target system you added ( Realtek RTL8186 2.4 [2] )
save your config
PATENT FREE TOOLCHAIN
This step looks surprisingly simple. I was going to apply the patches
we used for the Minitar MNWAPB development from here [3], but after
looking into the toolchain build there is already a option to build
gcc 3.4.6 with a patent-free patch applied. The patch is different (
not sure of the origin ) but addresses the same instructions that the
Lexra core does not support.
Getting it to build needed a couple of hacks:
* the download of gcc will fail so cd dl and copy gcc-3.4.6.tar.bz2
to gcc-3.4.6-nonmips.tar.bz2 ( a hard link may also be OK )
* When the tar is unpacked it will by default unpack into gcc-3.4.6
and the patches will fail to apply. In the
trunk/toolchain/gcc/Makefile find the place where the compiler is
unpacked ( line 115ish )and add this line:
mv $(PKG_BUILD_DIR)/../gcc-3.4.6/* $(PKG_BUILD_DIR)
ADD BUILD TARGET
Add the following to trunk/target/Config.in at line 191, just before
the endif
config LINUX_2_4_RTL8186 bool "Realtek RTL8186 2.4 [4]" select
LINUX_2_4 depends BROKEN select mips select BIG_ENDIAN select
USES_JFFS2 help Build formware for Realtek RTL8186 based boards ( eg
Minitar MWGAP )
That's all for tonight - next comes the target/linux/rtl8186-2.4 dir
with the kernel config
Links:
------
[1] http://melbournewireless.org.au/?OpenWrt
[2] http://melbournewireless.org.au/?2.4
[3] http://nonmips.sourceforge.net
[4] http://melbournewireless.org.au/?2.4
[EditText] [Spelling] [Current] [Raw] [Code] [Diff] [Subscribe] [VersionHistory] [Revert] [Delete] [RecentChanges]
Node Statistics | |
---|---|
building | 132 |
gathering | 192 |
interested | 515 |
operational | 242 |
testing | 216 |