How do I create a usable .bin file from source code?
I'm a total newbie to Linux and my first question for everyone, is:
How do I take a source code I have, and turn it into something usable? I have the source for Linksys WRT310N router, and would like to get a usable .bin file from it. The router is currently running an older version of firmware, and the only upgrade that is available on their site will disable my ability to replace it with DD-WRT, or other open source options. I am not comfortable enough with DD-WRT to flash it on my router yet, I don't want to brick it. As well as that, I don't like being forced into a particular upgrade by Linksys. This is the file here: wrt310n_v1.0.07.014.tar,0.gz Thanks for looking, and extra thanks for answering. |
Usually you would use a compiler to build the code into an executable. Yours is a unique situation, however, because you want to build the code to run on an architecture that is different than the machine on which you'll be doing the compiling. This is referred to as cross-compiling, and to do that you need to install a cross-compiler.
That file you linked to contains everything you need, though. Extract it with: Code:
tar -xzf wrt310n_v1.0.07.014.tar,0.gz Code:
cd wrt310n_v1.0.07.014 |
Quote:
|
Even if you can get it extracted, I'm not sure how you'd do the cross compiling in Windows. Possibly through Cygwin...otherwise you could set up a Linux VM and do the work there.
|
Quote:
Again, thank you for your assistance. |
Probably, but I would recommend using a bootable live USB with persistent storage instead so that you can reboot without losing everything you did. Either that or a VM from within Windows, assuming your hardware can handle it.
|
All times are GMT -5. The time now is 01:10 PM. |