![]() You can start off by checking out the Git repository of OpenWrt: git clone git:///openwrt.git OpenWrt is a commonly used software for routers.įirst make sure you have all the bells and whistles installed on your Ubuntu box: sudo apt-get install libncurses5-dev gawk flex build-essential qemu-user The easy way out is to use OpenWrt and let it compile the toolchain for you. GCC capable of producing binaries for MIPS, binutils to compile assembly codeĪnd link MIPS binaries, GNU C Library for MIPS and many more. You need what is called a cross-compiler toolchain.Ĭreating such toolchain is a tedious task because you need to compile bunch of tools: Your router probably runs MIPS32 architecure based processor and for that ![]() It produces binaries which are compatible with x86 or amd64 architectures. ![]() On your Ubuntu box you may run apt-get install gcc but as you've probably already guessed. Which is commonly abbrevated as x86 or it's 64-bit counterpart amd64. On your PC you probably have Intel's 32-bit processor, ![]() In that case you're in need of a cross-compiler toolchain 1 2. So you want to compile a piece of C code for your ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |