Skip to contentSkip to conversation

doubt on the "Make a driver change" part

DISCUSSION Cristiane Naves 2 participants 5 messages Oct 15, 2019 – Oct 18, 2019 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello, I have a question in one part of the tutorial and I am unable to access outreachy irc.

I'm stuck in the "Make a driver change" part of the tutorial.
I am following these steps:
First I check the file path using git grep memstick -- '* Makefile'.
Then I access the file using vim drivers/memstick/core/ms_block.c.
Then I add printk(KERN_DEBUG "I can modify") to the msb_probe function.
Then I compile the changes using sudo make -j4 and then install the changes using sudo make modules_install install. Finally i restart my computer and i check if the text "I can modify" is present in dmesg | less using "/I can modify". But every time I've tried this or something, it always gives Pattern not found (press return).
Has anyone else had a similar problem and can help me?

And Can anyone help me access outreachy IRC? I 'm not getting access.

#1 lore raw
Quoted 12 lines · Cristiane Naves

Hello, I have a question in one part of the tutorial and I am unable to access outreachy irc.

I'm stuck in the "Make a driver change" part of the tutorial.
I am following these steps:
First I check the file path using git grep memstick -- '* Makefile'.
Then I access the file using vim drivers/memstick/core/ms_block.c.
Then I add printk(KERN_DEBUG "I can modify") to the msb_probe function.
Then I compile the changes using sudo make -j4 and then install the changes using sudo make modules_install install. Finally i restart my computer and i check if the text "I can modify" is present in dmesg | less using "/I can modify". But every time I've tried this or something, it always gives Pattern not found (press return).
Has anyone else had a similar problem and can help me?

Maybe you don't actually use the module you changed. You can check lsmod. Here is a random URL that explains the module related commands:

http://edoceo.com/howto/kernel-modules

julia

Quoted 9 lines

And Can anyone help me access outreachy IRC? I 'm not getting access.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/d504514a-93eb-4a60-a99c-8a50bce81677%40googlegroups.com.

#2 lore raw

Hello, thanks for answering!
I am using a module that is listed in lsmod.
I think the problem may be in my git/kernels/staging's .config
First I pass the running kernel settings to .config using cp/boot/config-4.15.0-65-generic .config, but after running make menuconfig or sudo make -j4, the .config version is subscribed to by a kernel other than the running kernel(5.4.0) and appears in the header of .config: # Linux / x86 header 5.4.0-rc1 Kernel Configuration

Could the problem be in .config?

Em quarta-feira, 16 de outubro de 2019 02:02:37 UTC-3, Julia Lawall escreveu:

Quoted 43 lines · Cristiane Naves
Quoted 3 lines

Hello, I have a question in one part of the tutorial and I am unable to

access outreachy irc.

Quoted 7 lines

I'm stuck in the "Make a driver change" part of the tutorial. I am following these steps:
First I check the file path using git grep memstick -- '* Makefile'. Then I access the file using vim drivers/memstick/core/ms_block.c. Then I add printk(KERN_DEBUG "I can modify") to the msb_probe function. Then I compile the changes using sudo make -j4 and then install the

changes using sudo make modules_install install.

Quoted 1 line

Finally i restart my computer and i check if the text "I can modify" is

present in dmesg | less using "/I can modify".

Quoted 1 line

But every time I've tried this or something, it always gives Pattern not

found (press return).

Quoted 1 line

Has anyone else had a similar problem and can help me?

Maybe you don't actually use the module you changed. You can check lsmod. Here is a random URL that explains the module related commands:

http://edoceo.com/howto/kernel-modules

julia

Quoted 5 lines

And Can anyone help me access outreachy IRC? I 'm not getting access.

Signature · 1 line
You received this message because you are subscribed to the Google 

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected] <javascript:>.

Quoted 1 line

To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/d504514a-93eb-4a60-a99c-8a50bce81677%40googlegroups.com.

Quoted 2 lines
#3 lore raw

I managed to fix it. The problem was in the reboot.

Em quarta-feira, 16 de outubro de 2019 21:42:43 UTC-3, Cristiane Naves escreveu:

Quoted 59 lines

Hello, thanks for answering!
I am using a module that is listed in lsmod.
I think the problem may be in my git/kernels/staging's .config
First I pass the running kernel settings to .config using cp/boot/config-4.15.0-65-generic .config, but after running make menuconfig or sudo make -j4, the .config version is subscribed to by a kernel other than the running kernel(5.4.0) and appears in the header of .config: # Linux / x86 header 5.4.0-rc1 Kernel Configuration

Could the problem be in .config?

Em quarta-feira, 16 de outubro de 2019 02:02:37 UTC-3, Julia Lawall escreveu:

Quoted 44 lines · Cristiane Naves
Quoted 3 lines

Hello, I have a question in one part of the tutorial and I am unable to

access outreachy irc.

Quoted 7 lines

I'm stuck in the "Make a driver change" part of the tutorial. I am following these steps:
First I check the file path using git grep memstick -- '* Makefile'. Then I access the file using vim drivers/memstick/core/ms_block.c. Then I add printk(KERN_DEBUG "I can modify") to the msb_probe function. Then I compile the changes using sudo make -j4 and then install the

changes using sudo make modules_install install.

Quoted 1 line

Finally i restart my computer and i check if the text "I can modify" is

present in dmesg | less using "/I can modify".

Quoted 1 line

But every time I've tried this or something, it always gives Pattern

not found (press return).

Quoted 1 line

Has anyone else had a similar problem and can help me?

Maybe you don't actually use the module you changed. You can check lsmod.
Here is a random URL that explains the module related commands:

http://edoceo.com/howto/kernel-modules

julia

Quoted 5 lines

And Can anyone help me access outreachy IRC? I 'm not getting access.

Signature · 1 line
You received this message because you are subscribed to the Google 

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 1 line

To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/d504514a-93eb-4a60-a99c-8a50bce81677%40googlegroups.com.

Quoted 2 lines

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 2 lines · Cristiane Naves

I managed to fix it. The problem was in the reboot.

Great :) Now you can send some patches.

julia