Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Set Up the Cross Compiler

1,766 bytes added, 10:44, 18 May 2018
no edit summary
How {{Message/Information Message|message=The following steps has been tested using Ubuntu 16.04 and the 4.9 version of the arm-linux-gnueabihf compiler}} <span class="mw-headline">In order to compile the Linux Kernel it </span>is necessary to set up prepare a suitable work environment by checking the cross compilerand its version are the corresponding. <span class="mw-headline">If we want to install a particular compiler, for example the 4.9 we can use the following commands to install it:<code></code></span>  <span class="mw-headline">sudo apt-get install g++-4.9-arm-linux-gnueabihf<br data-attributes="%20/">sudo apt-get install cpp-4.9-arm-linux-gnueabihf<br data-attributes="%20/">sudo apt-get install gcc-4.9-arm-linux-gnueabihf<br data-attributes="%20/">sudo apt-get install gcc-4.9-arm-linux-gnueabihf-base<code></code></span><span class="mw-headline">We can change between compilers using the following commands:</span>  <span class="mw-headline">sudo update-alternatives --set arm-linux-gnueabihf-g++ "/usr/bin/arm-linux-gnueabihf-g++-4.9"<br data-attributes="%20/">sudo update-alternatives --set arm-linux-gnueabihf-cpp "/usr/bin/arm-linux-gnueabihf-cpp-4.9"<br data-attributes="%20/">sudo update-alternatives --set arm-linux-gnueabihf-gcc-ar "/usr/bin/arm-linux-gnueabihf-gcc-ar-4.9"<br data-attributes="%20/">sudo update-alternatives --set arm-linux-gnueabihf-gcc-nm "/usr/bin/arm-linux-gnueabihf-gcc-nm-4.9"<br data-attributes="%20/">sudo update-alternatives --set arm-linux-gnueabihf-gcc-ranlib "/usr/bin/arm-linux-gnueabihf-gcc-ranlib-4.9"<br data-attributes="%20/">sudo update-alternatives --set arm-linux-gnueabihf-gcov "/usr/bin/arm-linux-gnueabihf-gcov-4.9"<br></span> Another files you may need to install:  sudo apt-get update<br data-attributes="%20/">sudo apt-get install lzop
560
edits