How to Download Linux Kernel Source Code for a BeagleBone Board using Git

In this article, we will show how to download the linux kernel source code for a beaglebone board using git.
Linux kernel source can be obtained from the official git hub page of the Beaglebone Board at the following link: https://github.com/beagleboard/linux
You don't actually have to go to this page and download it from this page.
You can simply go to the linux terminal and use the git clone function and clone the linux kernel source code.
git can be obtained through the following code below.
This is shown in the image below.
Once git is successfully installed, then we can clone the linux kernel source code.
This is done by the following code shown below.
This takes several minutes to complete but once it's completed, you should
get similar output to that shown below.
Now this linux source code will all appear in one directory named 'linux'.
It will appear in the same folder you were located in when you ran the git command to clone it.
Since I was in the home directory, it downloaded into this directory.
Below we show the downloaded linux directory in the computer system.
When you click on this directory, you can see its content shown below.
So now you have downloaded, or cloned, the linux kernel source code directly from the official github page of Beaglebone board.
This is how we can obtain source code from various projects that we may need to work with for
different projects using git. In this example, we specifically download for the beaglebone board, but this can apply for any
type of source code for any type of board.
Related Resources