2.1 Get Kernel Sources

  1. Open the terminal window on your host machine.
  2. Install the essential packages in your build host that is required to compile the kernel.

    $ sudo apt-get install build-essential flex bison git perl-base libssl-dev libncurses5-dev libncursesw5-dev ncurses-dev

  3. Download the linux kernel source code from Microchip’s “Linux4Microchip” github repository.

    $ git clone https://github.com/linux4microchip/linux.git

    $ cd linux/

  4. Add the “Linux4Microchip” github repository as a remote GIT repository to your usual Linux git tree. This will save you a lot of bandwidth and reduce download time.

    $ git remote add linux4microchip https://github.com/linux4microchip/linux.git

    $ git remote update linux4microchip

  5. List the branches.

    $ git branch -r

  6. Switch to the latest branch “linux-6.12-mchp”.

    $ git checkout -b linux-6.12-mchp --track remotes/linux4microchip/linux-6.12-mchp