Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 :


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 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.

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.