Skip to contentSkip to conversation

I didnt get message in log like "I can modify the Linux kernel!"

DISCUSSION supriya supugade 3 participants 7 messages Feb 15, 2019 – Feb 19, 2019

lore
Share & tools
lore
#0 lore raw

I am following the link "https://kernelnewbies.org/FirstKernelPatch"

and modifying the driver in native Linux. I made a change in the e1000_main.c file i.e inserted the line

"printk(KERN_DEBUG "I can modify the Linux kernel!\n");" After recompiling the kernel and rebooting it, I don't get the

message "I can modify the Linux kernel!\" in the log files on typing "dmesg | less". I am getting following error during installing changes.

Makefile:1281: recipe for target '_modinst_' failed make[1]: *** [_modinst_] Error 2
Makefile:296: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2

How should I proceed further?
Feb 11

#1 lore raw
Quoted 11 lines · supriya supugade

I am following the link "https://kernelnewbies.org/FirstKernelPatch"

and modifying the driver in native Linux. I made a change in the e1000_main.c file i.e inserted the line

"printk(KERN_DEBUG "I can modify the Linux kernel!\n");" After recompiling the kernel and rebooting it, I don't get the

message "I can modify the Linux kernel!\" in the log files on typing "dmesg | less". I am getting following error during installing changes.

Quoted 8 lines

Makefile:1281: recipe for target '_modinst_' failed make[1]: *** [_modinst_] Error 2
Makefile:296: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2

How should I proceed further?
[IMAGE]
Feb 11

The application period doesn't start until Monday at 4pm UTC, so you should hold off on writing to this mailing list until then.

In your case, it looks like you should try compiling your module independently, to be able to see what the build problem is.

You should also be sure that the driver that you are changing is really the on used by your machine, but it seems that you have not gottent to that point yet.

julia

Quoted 12 lines

--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/8f0752e6-39e1-4047-8899- 19866fdfe045%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

#2 lore raw
In reply to supriya supugade
Quoted 12 lines · supriya supugade

I am following the link "https://kernelnewbies.org/FirstKernelPatch"

and modifying the driver in native Linux. I made a change in the e1000_main.c file i.e inserted the line

"printk(KERN_DEBUG "I can modify the Linux kernel!\n");" After recompiling the kernel and rebooting it, I don't get the

message "I can modify the Linux kernel!\" in the log files on typing "dmesg | less". I am getting following error during installing changes.

Quoted 6 lines

Makefile:1281: recipe for target '_modinst_' failed make[1]: *** [_modinst_] Error 2
Makefile:296: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2

How should I proceed further?

Post your .config and full logs using pastebin.

I saw one more fellow struggling with this on kernelnewbies.

Signature · 4 lines
Himanshu Jha
Undergraduate Student
Department of Electronics & Communication
Guru Tegh Bahadur Institute of Technology
#3 lore raw
Quoted 18 lines · Himanshu Jha
Quoted 17 lines · supriya supugade

I am following the link "https://kernelnewbies.org/FirstKernelPatch"

and modifying the driver in native Linux. I made a change in the e1000_main.c file i.e inserted the line

"printk(KERN_DEBUG "I can modify the Linux kernel!\n");" After recompiling the kernel and rebooting it, I don't get the

message "I can modify the Linux kernel!\" in the log files on typing "dmesg | less". I am getting following error during installing changes.

Makefile:1281: recipe for target '_modinst_' failed make[1]: *** [_modinst_] Error 2
Makefile:296: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2

Quoted 5 lines
Quoted 1 line

How should I proceed further?

Post your .config and full logs using pastebin.

I saw one more fellow struggling with this on kernelnewbies.

Did you see the discussion here:

https://www.linuxquestions.org/questions/linux-software-2/kernel-building-install-error-4175608377/

It concludes with:

I suggest you go through the building process in separate steps instead of "make ... install" in one go.

julia

Quoted 15 lines

--
Himanshu Jha
Undergraduate Student
Department of Electronics & Communication
Guru Tegh Bahadur Institute of Technology

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190219155942.GB18454%40himanshu-Vostro-3559.
For more options, visit https://groups.google.com/d/optout.

#4 lore raw
Quoted 24 lines · Julia Lawall
Quoted 20 lines · Himanshu Jha
Quoted 18 lines · supriya supugade

I am following the link "https://kernelnewbies.org/FirstKernelPatch"

and modifying the driver in native Linux. I made a change in the e1000_main.c file i.e inserted the line

"printk(KERN_DEBUG "I can modify the Linux kernel!\n");" After recompiling the kernel and rebooting it, I don't get the

message "I can modify the Linux kernel!\" in the log files on typing "dmesg | less". I am getting following error during installing changes.

Makefile:1281: recipe for target '_modinst_' failed make[1]: *** [_modinst_] Error 2
Makefile:296: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2

How should I proceed further?

Quoted 7 lines
Quoted 3 lines

Post your .config and full logs using pastebin.

I saw one more fellow struggling with this on kernelnewbies.

Did you see the discussion here:

https://www.linuxquestions.org/questions/linux-software-2/kernel-building-install-error-4175608377/

I just googled "make: *** [__build_one_by_one] Error 2" and this pops up as the very first link.

If this is the solution you guys are looking, then it very sad :(

I didn't check this becuase I saw this question atleast posted thrice and assumed some new issue has popped up.

Quoted 4 lines

It concludes with:

I suggest you go through the building process in separate steps instead of "make ... install" in one go.

Signature · 4 lines
Himanshu Jha
Undergraduate Student
Department of Electronics & Communication
Guru Tegh Bahadur Institute of Technology
#5 lore raw

+Cc Bharath Vedartham[1]

Quoted 33 lines · Himanshu Jha
Quoted 24 lines · Julia Lawall
Quoted 20 lines · Himanshu Jha
Quoted 18 lines · supriya supugade

I am following the link "https://kernelnewbies.org/FirstKernelPatch"

and modifying the driver in native Linux. I made a change in the e1000_main.c file i.e inserted the line

"printk(KERN_DEBUG "I can modify the Linux kernel!\n");" After recompiling the kernel and rebooting it, I don't get the

message "I can modify the Linux kernel!\" in the log files on typing "dmesg | less". I am getting following error during installing changes.

Makefile:1281: recipe for target '_modinst_' failed make[1]: *** [_modinst_] Error 2
Makefile:296: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2

How should I proceed further?

Quoted 7 lines
Quoted 3 lines

Post your .config and full logs using pastebin.

I saw one more fellow struggling with this on kernelnewbies.

Did you see the discussion here:

https://www.linuxquestions.org/questions/linux-software-2/kernel-building-install-error-4175608377/

Quoted 13 lines

I just googled "make: *** [__build_one_by_one] Error 2" and this pops up as the very first link.

If this is the solution you guys are looking, then it very sad :(

I didn't check this becuase I saw this question atleast posted thrice and assumed some new issue has popped up.

Quoted 4 lines

It concludes with:

I suggest you go through the building process in separate steps instead of "make ... install" in one go.

Julia, I think you are absolutely correct on this and all of them had followed what is actually written on the HowTo page below:

https://kernelnewbies.org/FirstKernelPatch#Install_your_changes

	sudo make modules_install -jN && sudo make install -jN

should be the clean solution.

Bharat, Supriya: Try this and confirm!

[1] https://lore.kernel.org/kernelnewbies/20190205060053.GA309@bharath12345-Inspiron-5559/

Signature · 4 lines
Himanshu Jha
Undergraduate Student
Department of Electronics & Communication
Guru Tegh Bahadur Institute of Technology
#6 lore raw

Thank you so much for help. I will try this and let you know.

Thank and regards,
Supriya Supugade

Quoted 76 lines · On Tue, Feb 19, 2019, 10:05 PM Himanshu Jha <[email protected] wrote:

+Cc Bharath Vedartham[1]

Quoted 8 lines · Himanshu Jha
Quoted 7 lines · Julia Lawall
Quoted 3 lines · Himanshu Jha
Quoted 2 lines · supriya supugade

I am following the link "

https://kernelnewbies.org/FirstKernelPatch"

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

and modifying the driver in native Linux. I made a change in the e1000_main.c file i.e inserted the line

"printk(KERN_DEBUG "I can modify the Linux kernel!\n");" After

recompiling

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

the kernel and rebooting it, I don't get the

message "I can modify the Linux kernel!\" in the log files on

typing "dmesg

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

| less". I am getting following error during installing changes.

Makefile:1281: recipe for target '_modinst_' failed make[1]: *** [_modinst_] Error 2
Makefile:296: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2

How should I proceed further?

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Post your .config and full logs using pastebin.

I saw one more fellow struggling with this on kernelnewbies.

Did you see the discussion here:

https://www.linuxquestions.org/questions/linux-software-2/kernel-building-install-error-4175608377/

Quoted 13 lines

I just googled "make: *** [__build_one_by_one] Error 2" and this pops up as the very first link.

If this is the solution you guys are looking, then it very sad :(

I didn't check this becuase I saw this question atleast posted thrice and assumed some new issue has popped up.

Quoted 3 lines

It concludes with:

I suggest you go through the building process in separate steps

instead of

Quoted 1 line
Quoted 1 line

"make ... install" in one go.

Julia, I think you are absolutely correct on this and all of them had followed what is actually written on the HowTo page below:

https://kernelnewbies.org/FirstKernelPatch#Install_your_changes

        sudo make modules_install -jN && sudo make install -jN

should be the clean solution.

Bharat, Supriya: Try this and confirm!

[1]
https://lore.kernel.org/kernelnewbies/20190205060053.GA309@bharath12345-Inspiron-5559/

--
Himanshu Jha
Undergraduate Student
Department of Electronics & Communication
Guru Tegh Bahadur Institute of Technology