Search code examples
gccarmcross-compilingnas

Building native GCC from sourcecode for ARM


My goal: installing a working gcc on my Synology NAS DS214+ which has the processor: Marvell Armada XP Development Board (ARM) Why? Because ipkg (a package installer) does not work 100% with DS214+, therefore if a have a working gcc on the NAS itself I can install new programs by compiling them from source code (making my NAS very flexible to run all programs I want).

My question is where do I start? I do have an Ubuntu (debian) installation on my 64bit PC, which I can use to build the native gcc. I guess I should be able to cross compile gcc on my Ubuntu OS for the ARM. I can't manage to find a good tutorial. Any push in the wright direction is appreciated!


Solution

  • You can probably get this done using optware-ng. Check out the instructions I wrote for DS215j which has the same processor type.

    When you have installed optware-ng you can just use

    ipkg install gcc
    

    to install gcc 5.3.0 which worked very well on my DS215j.