2.1 Get Kernel Sources
- Open the terminal window on your host machine.
- 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
- Download the linux kernel source
code from Microchip’s “Linux4Microchip” github repository.
$ git clone https://github.com/linux4microchip/linux.git
$ cd linux/
- 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
- List the branches.
$ git branch -r
- Switch to the latest branch
“linux-6.12-mchp”.
$ git checkout -b linux-6.12-mchp --track remotes/linux4microchip/linux-6.12-mchp