Hi Hrushit, On Fri, Apr 1, 2016 at 12:24 PM, Hrushit Parikh <parikhhrushit@xxxxxxxxxxx> wrote: > Hey Anil, > Thanks a lot for your reply. Your approach worked for me!! > Maybe I missed reading in the FirstKernelPatch tutorial that compile steps are OS dependent. > Your welcome. :) But Please note get familiar with the basic kernel compilation process before jumping onto distro specific kernel compilation. > > 1. Copy old configuration (Use old configuration to built the kernel): > cp /boot/config-`'uname -r ` ./.config > > 2. Clean Working Directory > "make-kpkg clean". > > 3. Compile the Kernel > > "export CONCURRENCY_LEVEL=3" ( For parallel builds, faster compilation). > > "make-kpkg --initrd --revision=0.1CustomKernel kernel-image kernel-headers --rootcmd fakeroot" > > ( "0.1CustomKernel" can be any name of your choice to give the kernel you build a unique name. There are some restrictions on the names mentioned on > make-kpkg man page > --rootcmd fakeroot complained of permission denied while building kernel so I used --rootcmd sudo) > > 4. Install the kernel > "sudo dpkg -i ../linux-header.deb" > "sudo dpkg -i ../linux-image.deb" > > 5. Reboot machine into new kernel. > > Compile the kernel in home directory don't use sudo except for > installing the kernel. > Ya I missed a few details thanks for filling that up. :) > > Thanks again Anil! I can finally start familiarizing with subsystems and drivers and work towards my first kernel patch! Your welcome once again.:) Also there is great book that Greg KH has written, http://www.kroah.com/lkn/ (Linux Kernel In Nutshell), Its a great start for beginners, All the kernel compilation steps are mentioned in the book, be sure to read it. :) -- -- Regards, Anil Nair _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies