Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm new working on Ubuntu.

I want re-programe the ethernet module in the kernel space.

After that i need the re-compile all the kernel or just the ethernet module of kernel?

How can i compile the kernel or a module of the kernel?

I already try to build and compile a kernel following this tuturial :

https://help.ubuntu.com/community/Kernel/Compile

Thanks

share|improve this question

closed as off topic by Chris S Mar 8 '12 at 15:27

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

Can I ask what it is you want to "reprogram" in your ethernet driver?

My first thought is that if you're in a position where you can modify kernel drivers, compiling a kernel should be well within your abilities -- hence asking what it is you're trying to achieve.

share|improve this answer
    
I just want to develop above the ethernet device drive somekind of program that will redirect ethernet packets. The finally is to develop an ethernet switch. –  Ricardo Mar 8 '12 at 14:40

If you only need to compile one group of modules, that command is:

make M=drivers/net

To just make the 'net' group of drivers. The same syntax holds true of any directory under $Linux/drivers. make install modules will update the modules on your system. Or, you can just copy the relevant file to the right spot under /lib/modules.

share|improve this answer
    
Useful to know. –  Coops Mar 8 '12 at 13:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.