====== Getting the Source Code ====== The source code is not currently available from all manufacturers at the moment, but all devices seem to be based upon a common source. I suspect that the board design is licensed from one of the manufacturers to the others. The fact that the source code has an MGB1000_GPL directory, suggests that it may well have come from Micronica. Anyway you can get the source code from: * [[http://download.conceptronic.net/CONNECTIVITY/CHD2WLANU/CHD2WLANU_Source_R400B7.ZIP]] (original source code that was used to create Pagano's images) * [[http://www.airlive.com/support/gpl_code.shtml]] for WMU-6000FS (newer firmware) * [[http://www.macsat.com/macsat/component/option,com_smf/Itemid,50/topic,681.0/|this thread]] for schufti's modified code. ====== Build Environment ====== The code is built under Linux. Unfortunately, the full set of headers is not included in the source code and t relies on some header files from elsewhere in the system. For this reason, a specific linux distribution is required - Fedora Core 4. The build has also been reported to work on Fedora Core 5, and I suspect it would work with any distribution if you get the right versions of the right files. They are normally in the form of foo-devel packages. //Do I really need to install Fedora Core 4? It's not the latest / I do not want to repartition my disk.// Yes, and no. For the reasons above, you do need Fedora Core 4 or 5, however I strongly reccommend using [[http://www.vmware.com/products/player/|VM Player]] This allows you to run a virtual machine which runs linux **from within you current operating system** whether that is Windows, linux or OSX. You can download the VMware minimal Fedora Core 4 image install image from [[http://www.thoughtpolice.co.uk/vmware/]] which is a relatively small download. ===== Configuring the linux distribution ===== The following instructions assume you are using the VMWare image above. If not, you will need to adapt this depending you what you have installed. * Install the following extra rpms by typing: ''yum install '' * gcc * openssl (probably not needed) * openssl-devel * texinfo * edit ''/etc/selinux/config'' and change your policy from "enforcing" to "permissive", then relabel the disk: ''touch /.autorelabel'' and reboot (the virtual machine, if you are using VMWare, not the host operating system). ====== Main Build ====== OK, by now you should have your linux distribution up and running and it's time to build the source code. * Create dummy executable file called ''rcsclean'' somewhere in path, e.g. ''touch ~/bin/rcsclean'' * Create a symbolic link from depmod to depmod.old, i.e. ''ln -s /sbin/depmod /sbin/depmod.old''. This is because the source code is a 2.4 linux kernel, Fedora Core 4 is a 2.6 kernel. * Gunzip and de-tar the firmware, then follow the instructions in GPL_instructions.txt, i.e. * set path * make linuxall