New Member
Posts: 3
Registered: ‎07-25-2015
Kudos: 1

Cross Compiling Tool-Chain

For the Edgerouter Lite: which tool-chain is currently being used by the team to compile for firmware 1.8.5?


Posts: 111
Registered: ‎10-20-2015
Kudos: 37
Solutions: 3

Re: Cross Compiling Tool-Chain

Not directly an answer to your question, but here's the setup I used to build portions of the EdgeOS source code in a MIPS QEMU VM (not cross-compiling though, so this might or might not be what you're looking for):


qemu-img create -f qcow2 -o backing_file=debian_wheezy_mips_standard.qcow2 disk.qcow2
qemu-system-mips64 -M malta -kernel vmlinux-3.2.0-4-5kc-malta -hda disk.qcow2 -append "root=/dev/sda1 console=ttyS0 mem=256m@0x0 mem=768m@0x90000000" -nographic -m 1024 -net nic,macaddr=52:54:00:fa:ce:07,model=virtio -net user,hostfwd=tcp:
ssh -p 2022 root@localhost
## password root
apt-get install build-essential git autoconf libtool bison flex libapt-pkg-dev libboost-dev libperl-dev libboost-filesystem-dev libboost-system-dev libboost-thread-dev libpcre3-dev
Posts: 258
Registered: ‎03-06-2016
Kudos: 124
Solutions: 8

Re: Cross Compiling Tool-Chain

Yeah - you can use cross-compilers like Sourcery CodeBench for very simple compiles, but anything with dependencies on other libraries and the like, you're much better off either compiling on a qemu mips emulated environment running Debian Wheezy or directly on the router itself.



New Member
Posts: 17
Registered: ‎03-13-2016
Kudos: 4

Re: Cross Compiling Tool-Chain

@nickolai wrote:

 here's the setup I used to build portions of the EdgeOS source code in a MIPS QEMU VM 

You, good sir, have just made my day!
Thank you so very much!