1. get source codes ; kernel source codes and patch files with the same version # wget http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.58.tar.gz# wget http://www.kernel.org/pub/linux/kernel/projects/rt/3.2/patches-3.2.58-rt85.tar.gz 2. decompress both tar.gz files# tar xvzf (file name) -------------------------------3-a. move to patches directory# cd patches 4-a do patch with below command..