Results 1 to 3 of 3
Thread: edit kernel source file
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Dec 2010
- pune ,india
edit kernel source file
example in noop scheduler C file if i add one printk statement ?
and also i am not allowed to edit the file why is it read only ??
Well, if you have your kernel code in the usual place (/usr/src/), you can't edit it because everything in that directory belongs to root and not to you. Copy the kernel tree into your home directory and then you can edit the copy.
If your modification is in the main kernel, not in a module, then you can save time by recompiling it with make bzImage. It's the compiling of all the modules that takes up so much time."I'm just a little old lady; don't try to dazzle me with jargon!"
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
To add to Hazel's answer, yes you will have to at least recompile the changed component. If your kernel source has been recently rebuilt, then it will go very fast. Otherwise, it will take a bit of time (about 5 minutes on my dual-core 2.5GHz laptop running Ubuntu 9.04).Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!