Hey there!
As the title suggests, this post gives details of preparing your machine to cross compile a Linux Kernel.
I am doing this on a Ubuntu 16.04 but I hope that this will work for other versions of Ubuntu as well. However, these commands may not work on other flaours of Linux.
Open a terminal in Ubuntu and paste following commands. These commands need internet connectivity on your machine to download and install these packages.
sudo apt-get update
sudo apt-get install fakeroot build-essential kexec-tools kernel-wedge
sudo apt-get install libncurses5 libncurses5-dev libelf-dev
sudo apt-get install asciidoc binutils-dev
Following command installs cross compilation toolchain. I am cross compiling for BeagleBone Black so I have used this toolchain. For other boards this command may be different depending on SoC architecture.
sudo apt-get install gcc-arm-linux-gnueabi
If you have done no mistakes in following these simple steps, you should be ready to cross compile Linux Kernel.
For queries and questions, please comment below.
No comments:
Post a Comment