Is there a need to recomplie my linux kernel? -


i beginner learning linux kernel module development. following tutorial says recompile kernel enable various debugging features forced module unloading e.t.c. is okay if that? effects pre-built kernel. in cases forced insert module running kernel , kernel won't allow me so?

it okay compile , install kernel kernel module development. if in ubuntu, can follow following steps make sure using same kernel sources booted machine.

step 1. find out linux being used in booting /boot/grub/grub.cfg file. entry agains 'linux ' in boot option entries select while booting up. example excerpt : linux /boot/vmlinuz-3.13.0-24-generic root=uuid=e377a464-92db-4c07-86a9-b151800630c0 ro quiet splash $vt_handoff

step 2. name of package same version using following command.

dpkg -l | grep linux | grep 3.13.0-24-generic 

example output:

$ dpkg -l | grep linux | grep 3.13.0-24-generic     ii  linux-headers-3.13.0-24-generic                       3.13.0-24.46                                                amd64        linux kernel headers version 3.13.0 on 64 bit x86 smp     ii  linux-image-3.13.0-24-generic                         3.13.0-24.46                                        amd64        linux kernel image version 3.13.0 on 64 bit x86 smp     ii  linux-image-extra-3.13.0-24-generic                   3.13.0-24.46                                        amd64        linux kernel modules version 3.13.0 on 64 bit x86 smp 

step 3. download sources of package "linux-headers-3.13.0-24-generic" same kernel used in pc.

$ apt-get source linux-headers-3.13.0-24-generic 

step 4. use config file available @ /boot/ folder config file compile kernel source

example : $ ls /boot/config-3.13.0-24-generic (notice same version used in file)

step 5. turn on debugging symbols on config testing.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -