Hi, How to modify the kernel code ? I have changed /usr/src/linux/net/ipv4/route.c slightly and then compiled the kernel. The new kernel is not reflecting the changes I have made ? Could you please help. Cheers! Chitresh Markanda ********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com
Chitresh writes:
Hi,
How to modify the kernel code ?
I have changed /usr/src/linux/net/ipv4/route.c slightly and then compiled the kernel.
Compiled with somthing like 'make bzImage'
The new kernel is not reflecting the changes I have made ?
Did you install the new kernel, change lilo.conf, and reboot? Is it in a module, and did you do a 'make modules; make modules_install'?
Could you please help.
Cheers! Chitresh Markanda
********************************************************* Disclaimer
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists/archive/suse-programming-e
Hi, Yes , I did so . I am using linux 7.1 ( SUSE Linux ) . It is not a module , it is changes to route.c file directly. Hence change route.c make dependent make bzImage make modules Copy System.map to /boot/System/map Copy bzImage to /boot/vmlinux changed lilo.conf ran ./sbin/lilo How do you compile the source of the kernel file .Also , after compilation the code /sbin/route or /bin/route doesnot have todays timestamp , which means that the code executed is not the latest. Cheers! Chitresh Jesse Marlin wrote:
Chitresh writes:
Hi,
How to modify the kernel code ?
I have changed /usr/src/linux/net/ipv4/route.c slightly and then compiled the kernel.
Compiled with somthing like 'make bzImage'
The new kernel is not reflecting the changes I have made ?
Did you install the new kernel, change lilo.conf, and reboot? Is it in a module, and did you do a 'make modules; make modules_install'?
Could you please help.
Cheers! Chitresh Markanda
********************************************************* Disclaimer
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists/archive/suse-programming-e
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists/archive/suse-programming-e
********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com
Chitresh writes:
Hi,
Yes , I did so . I am using linux 7.1 ( SUSE Linux ) .
It is not a module , it is changes to route.c file directly. Hence change route.c make dependent make bzImage make modules Copy System.map to /boot/System/map Copy bzImage to /boot/vmlinux changed lilo.conf ran ./sbin/lilo
How do you compile the source of the kernel file .Also , after compilation the code /sbin/route or /bin/route doesnot have todays timestamp , which means that the code executed is not the latest.
I think /sbin/route is in the net-tools project (not in the kernel). So compiling the kernel is not going to modify /sbin/route ever. Go to freshmeat.net and search for net-tools or netutils.
Cheers! Chitresh
Jesse Marlin wrote:
Chitresh writes:
Hi,
How to modify the kernel code ?
I have changed /usr/src/linux/net/ipv4/route.c slightly and then compiled the kernel.
Compiled with somthing like 'make bzImage'
The new kernel is not reflecting the changes I have made ?
Did you install the new kernel, change lilo.conf, and reboot? Is it in a module, and did you do a 'make modules; make modules_install'?
Could you please help.
Cheers! Chitresh Markanda
********************************************************* Disclaimer
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists/archive/suse-programming-e
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists/archive/suse-programming-e
********************************************************* Disclaimer
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
*********************************************************
Hi, I didn't do module_install . Is modules_install is necessary is this case ? I will try and see. Cheers! Chitresh Jesse Marlin wrote:
Chitresh writes:
Hi,
How to modify the kernel code ?
I have changed /usr/src/linux/net/ipv4/route.c slightly and then compiled the kernel.
Compiled with somthing like 'make bzImage'
The new kernel is not reflecting the changes I have made ?
Did you install the new kernel, change lilo.conf, and reboot? Is it in a module, and did you do a 'make modules; make modules_install'?
Could you please help.
Cheers! Chitresh Markanda
********************************************************* Disclaimer
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists/archive/suse-programming-e
********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com
On Thu, Jun 20, Chitresh wrote:
Hi,
I didn't do module_install . Is modules_install is necessary is this case ? I will try and see.
If you configured that kernel to enable the chunk of code you modified to be 'm', then yes you would need to install the module. man modprobe, while you are at it. Michael -- Michael Fischer Happiness is a config option. michael@visv.net Recompile and be happy.
Hi, I tried the same. make modules_install ; and it seems to have no affect. Is "net" a module , it is not under "/usr/src/linux/drivers" ? It is at /usr/src/linux/net Is this a modules ? Cheers! Chitresh Michael Fischer wrote:
On Thu, Jun 20, Chitresh wrote:
Hi,
I didn't do module_install . Is modules_install is necessary is this case ? I will try and see.
If you configured that kernel to enable the chunk of code you modified to be 'm', then yes you would need to install the module.
man modprobe, while you are at it.
Michael -- Michael Fischer Happiness is a config option. michael@visv.net Recompile and be happy.
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists/archive/suse-programming-e
********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com
On Thu, Jun 20, Chitresh wrote:
Hi,
I tried the same. make modules_install ; and it seems to have no affect. Is "net" a module , it is not under "/usr/src/linux/drivers" ? It is at /usr/src/linux/net Is this a modules ?
See your .config in the top directory of the build directory. I think you need to spend time learning how the kernel is put together (beyond the basic make bzImage, etc. commands). Start with www.kernelnewbies.org. You really should know what part of the kernel (subsystem) you are modifying when you hack. Michael -- Michael Fischer Happiness is a config option. michael@visv.net Recompile and be happy.
participants (3)
-
Chitresh
-
Jesse Marlin
-
Michael Fischer