Kernel Newbies archive on lore.kernel.org
 help / Atom feed
* /proc/modules not showing any output
@ 2018-12-19 13:22 Praveen Kumar
  2018-12-19 15:06 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Praveen Kumar @ 2018-12-19 13:22 UTC (permalink / raw)
  To: kernelnewbies, linux-kernel

Hi All,

Compiled the vanila kernel 4.20.0-rc6 build, and was trying to get
module information, but /proc/modules is not showing any output ( both
on arm64 and x86_64 )

root@ubuntu:~# uname -a
Linux ubuntu 4.20.0-rc6-00082-g65e08c5e8631 #7 SMP PREEMPT Fri Dec 14
15:54:30 IST 2018 aarch64 aarch64 aarch64 GNU/Linux

root@ubuntu:~# cat /proc/modules
root@ubuntu:~#

Tried with older version 4.4.162-78-default modules were properly shown.

Can you please help if there is something which I am missing during
compilation or is there any potential bug here ? Thanks in advance.

Regards,

~Praveen.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/modules not showing any output
  2018-12-19 13:22 /proc/modules not showing any output Praveen Kumar
@ 2018-12-19 15:06 ` Greg KH
  2018-12-19 15:31   ` Praveen Kumar
  0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2018-12-19 15:06 UTC (permalink / raw)
  To: Praveen Kumar; +Cc: linux-kernel, kernelnewbies

On Wed, Dec 19, 2018 at 06:52:39PM +0530, Praveen Kumar wrote:
> Hi All,
> 
> Compiled the vanila kernel 4.20.0-rc6 build, and was trying to get
> module information, but /proc/modules is not showing any output ( both
> on arm64 and x86_64 )
> 
> root@ubuntu:~# uname -a
> Linux ubuntu 4.20.0-rc6-00082-g65e08c5e8631 #7 SMP PREEMPT Fri Dec 14
> 15:54:30 IST 2018 aarch64 aarch64 aarch64 GNU/Linux
> 
> root@ubuntu:~# cat /proc/modules
> root@ubuntu:~#
> 
> Tried with older version 4.4.162-78-default modules were properly shown.
> 
> Can you please help if there is something which I am missing during
> compilation or is there any potential bug here ? Thanks in advance.

Are you sure your .config file has enabled modules?  Have you actually
loaded any?  If you do not load any, nothing will show up in that proc
file :)

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/modules not showing any output
  2018-12-19 15:06 ` Greg KH
@ 2018-12-19 15:31   ` Praveen Kumar
  2018-12-19 15:57     ` Aruna Hewapathirane
  0 siblings, 1 reply; 7+ messages in thread
From: Praveen Kumar @ 2018-12-19 15:31 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel, kernelnewbies

On Wed, Dec 19, 2018 at 8:36 PM Greg KH <greg@kroah.com> wrote:
>
> On Wed, Dec 19, 2018 at 06:52:39PM +0530, Praveen Kumar wrote:
> > Hi All,
> >
> > Compiled the vanila kernel 4.20.0-rc6 build, and was trying to get
> > module information, but /proc/modules is not showing any output ( both
> > on arm64 and x86_64 )
> >
> > root@ubuntu:~# uname -a
> > Linux ubuntu 4.20.0-rc6-00082-g65e08c5e8631 #7 SMP PREEMPT Fri Dec 14
> > 15:54:30 IST 2018 aarch64 aarch64 aarch64 GNU/Linux
> >
> > root@ubuntu:~# cat /proc/modules
> > root@ubuntu:~#
> >
> > Tried with older version 4.4.162-78-default modules were properly shown.
> >
> > Can you please help if there is something which I am missing during
> > compilation or is there any potential bug here ? Thanks in advance.
>
> Are you sure your .config file has enabled modules?  Have you actually
> loaded any?  If you do not load any, nothing will show up in that proc
> file :)
>

Thanks Greg for the reply.
I think I did compile with enabled modules.
kern-xen-dev:/mnt/kernel/linux # cat .config | grep MODULE
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
CONFIG_STRICT_MODULE_RWX=y
CONFIG_MODULES=y                              <<<<<<<<
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_MODULE_SIG is not set
# CONFIG_MODULE_COMPRESS is not set
CONFIG_MODULES_TREE_LOOKUP=y

I added a new kernel module and was able to see the module added.

kern-xen-dev:/mnt/kernel/linuxfs # insmod linuxfs.ko
kern-xen-dev:/mnt/kernel/linuxfs # cat /proc/modules
linuxfs 16384 0 - Live 0xffffffffc01c1000 (O)

I think, on my test machine, by default, there are many modules which
get added during boot up, which with vanilla kernel is not happening.
Thanks for your input.

Regards,

~Praveen.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/modules not showing any output
  2018-12-19 15:31   ` Praveen Kumar
@ 2018-12-19 15:57     ` Aruna Hewapathirane
  2018-12-19 16:17       ` Praveen Kumar
  0 siblings, 1 reply; 7+ messages in thread
From: Aruna Hewapathirane @ 2018-12-19 15:57 UTC (permalink / raw)
  To: Praveen Kumar; +Cc: Greg KH, linux-kernel, kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 625 bytes --]

<snip>

> I think, on my test machine, by default, there are many modules which
> get added during boot up, which with vanilla kernel is not happening.
> Thanks for your input.
>
> Regards,
>
> ~Praveen.
>
>
What does lsmod show you in the vanilla kernel ? If you want the same
modules to load in the vanilla
kernel folow steps given below:

1 -boot into the older 4.4.162-78-defaultkernel
2 - change into the vanilla kernel source 4.20.0-rc6 builddirectory
3 - $ lsmod > lsmod.txt
4 - $ make LSMOD="lsmod.txt" localmodconfig

Boot into your newly compiled vanilla kernel and run lsmod and smile :-)

Hope this helps - Aruna

[-- Attachment #1.2: Type: text/html, Size: 1374 bytes --]

<div dir="ltr"><div>&lt;snip&gt;<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I think, on my test machine, by default, there are many modules which<br>
get added during boot up, which with vanilla kernel is not happening.<br>
Thanks for your input.<br>
<br>
Regards,<br>
<br>
~Praveen.<br>
<br></blockquote></div><div class="gmail_quote"><br></div><div class="gmail_quote">What does lsmod show you in the vanilla kernel ? If you want the same modules to load in the vanilla<br></div><div class="gmail_quote">kernel folow steps given below:<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">1 -boot into the older 
 4.4.162-78-defaultkernel</div><div class="gmail_quote">2 - change into the vanilla kernel source 
4.20.0-rc6 builddirectory</div><div class="gmail_quote">3 - 
<code>$ lsmod &gt; lsmod.txt</code> <br></div><div class="gmail_quote">4 - 
<code>$ make LSMOD=&quot;lsmod.txt&quot; localmodconfig</code> <br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Boot into your newly compiled vanilla kernel and run lsmod and smile :-)</div><div class="gmail_quote"><br></div><div class="gmail_quote">Hope this helps - Aruna<br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/modules not showing any output
  2018-12-19 15:57     ` Aruna Hewapathirane
@ 2018-12-19 16:17       ` Praveen Kumar
  2018-12-19 16:34         ` Aruna Hewapathirane
  0 siblings, 1 reply; 7+ messages in thread
From: Praveen Kumar @ 2018-12-19 16:17 UTC (permalink / raw)
  To: Aruna Hewapathirane; +Cc: Greg KH, linux-kernel, kernelnewbies

On Wed, Dec 19, 2018 at 9:28 PM Aruna Hewapathirane
<aruna.hewapathirane@gmail.com> wrote:
>
> <snip>
>>
>> I think, on my test machine, by default, there are many modules which
>> get added during boot up, which with vanilla kernel is not happening.
>> Thanks for your input.
>>
>> Regards,
>>
>> ~Praveen.
>>
>
> What does lsmod show you in the vanilla kernel ? If you want the same modules to load in the vanilla
> kernel folow steps given below:
>
> 1 -boot into the older 4.4.162-78-defaultkernel
> 2 - change into the vanilla kernel source 4.20.0-rc6 builddirectory
> 3 - $ lsmod > lsmod.txt
> 4 - $ make LSMOD="lsmod.txt" localmodconfig
>
> Boot into your newly compiled vanilla kernel and run lsmod and smile :-)
>
> Hope this helps - Aruna
>
Thanks Aruna. This helps.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/modules not showing any output
  2018-12-19 16:17       ` Praveen Kumar
@ 2018-12-19 16:34         ` Aruna Hewapathirane
  2018-12-20  4:28           ` Praveen Kumar
  0 siblings, 1 reply; 7+ messages in thread
From: Aruna Hewapathirane @ 2018-12-19 16:34 UTC (permalink / raw)
  To: Praveen Kumar; +Cc: Greg KH, kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 1240 bytes --]

On Wed, Dec 19, 2018 at 11:18 AM Praveen Kumar <kpraveen.lkml@gmail.com>
wrote:

> On Wed, Dec 19, 2018 at 9:28 PM Aruna Hewapathirane
> <aruna.hewapathirane@gmail.com> wrote:
> >
> > <snip>
> >>
> >> I think, on my test machine, by default, there are many modules which
> >> get added during boot up, which with vanilla kernel is not happening.
> >> Thanks for your input.
> >>
> >> Regards,
> >>
> >> ~Praveen.
> >>
> >
> > What does lsmod show you in the vanilla kernel ? If you want the same
> modules to load in the vanilla
> > kernel folow steps given below:
> >
> > 1 -boot into the older 4.4.162-78-defaultkernel
> > 2 - change into the vanilla kernel source 4.20.0-rc6 builddirectory
> > 3 - $ lsmod > lsmod.txt
> > 4 - $ make LSMOD="lsmod.txt" localmodconfig
> >
> > Boot into your newly compiled vanilla kernel and run lsmod and smile :-)
> >
> > Hope this helps - Aruna
> >
> Thanks Aruna. This helps.
>

Glad we could help. I noticed your running Ubuntu ? Since your testing and
compiling
why not give Debian a go ? Ubuntu uses both free and proprietary software
while Debian
uses free software only and with Debian there are zero surprises. Rock
solid, Stable and
is actually lightweight compared to Ubuntu. Good luck.

Aruna

[-- Attachment #1.2: Type: text/html, Size: 1932 bytes --]

<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 19, 2018 at 11:18 AM Praveen Kumar &lt;<a href="mailto:kpraveen.lkml@gmail.com">kpraveen.lkml@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Dec 19, 2018 at 9:28 PM Aruna Hewapathirane<br>
&lt;<a href="mailto:aruna.hewapathirane@gmail.com" target="_blank">aruna.hewapathirane@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &lt;snip&gt;<br>
&gt;&gt;<br>
&gt;&gt; I think, on my test machine, by default, there are many modules which<br>
&gt;&gt; get added during boot up, which with vanilla kernel is not happening.<br>
&gt;&gt; Thanks for your input.<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt;<br>
&gt;&gt; ~Praveen.<br>
&gt;&gt;<br>
&gt;<br>
&gt; What does lsmod show you in the vanilla kernel ? If you want the same modules to load in the vanilla<br>
&gt; kernel folow steps given below:<br>
&gt;<br>
&gt; 1 -boot into the older 4.4.162-78-defaultkernel<br>
&gt; 2 - change into the vanilla kernel source 4.20.0-rc6 builddirectory<br>
&gt; 3 - $ lsmod &gt; lsmod.txt<br>
&gt; 4 - $ make LSMOD=&quot;lsmod.txt&quot; localmodconfig<br>
&gt;<br>
&gt; Boot into your newly compiled vanilla kernel and run lsmod and smile :-)<br>
&gt;<br>
&gt; Hope this helps - Aruna<br>
&gt;<br>
Thanks Aruna. This helps.<br></blockquote><div><br></div><div>Glad we could help. I noticed your running Ubuntu ? Since your testing and compiling</div><div>why not give Debian a go ? Ubuntu uses both free and proprietary software while Debian <br></div><div>uses free software only and with Debian there are zero surprises. Rock solid, Stable and <br></div><div>is actually lightweight compared to Ubuntu. Good luck.<br></div><div><br></div><div>Aruna <br></div><div><br></div><div><br><br><br></div></div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/modules not showing any output
  2018-12-19 16:34         ` Aruna Hewapathirane
@ 2018-12-20  4:28           ` Praveen Kumar
  0 siblings, 0 replies; 7+ messages in thread
From: Praveen Kumar @ 2018-12-20  4:28 UTC (permalink / raw)
  To: Aruna Hewapathirane; +Cc: Greg KH, kernelnewbies

On Wed, Dec 19, 2018 at 10:05 PM Aruna Hewapathirane
<aruna.hewapathirane@gmail.com> wrote:
>
>
>
> On Wed, Dec 19, 2018 at 11:18 AM Praveen Kumar <kpraveen.lkml@gmail.com> wrote:
>>
>> On Wed, Dec 19, 2018 at 9:28 PM Aruna Hewapathirane
>> <aruna.hewapathirane@gmail.com> wrote:
>> >
>> > <snip>
>> >>
>> >> I think, on my test machine, by default, there are many modules which
>> >> get added during boot up, which with vanilla kernel is not happening.
>> >> Thanks for your input.
>> >>
>> >> Regards,
>> >>
>> >> ~Praveen.
>> >>
>> >
>> > What does lsmod show you in the vanilla kernel ? If you want the same modules to load in the vanilla
>> > kernel folow steps given below:
>> >
>> > 1 -boot into the older 4.4.162-78-defaultkernel
>> > 2 - change into the vanilla kernel source 4.20.0-rc6 builddirectory
>> > 3 - $ lsmod > lsmod.txt
>> > 4 - $ make LSMOD="lsmod.txt" localmodconfig
>> >
>> > Boot into your newly compiled vanilla kernel and run lsmod and smile :-)
>> >
>> > Hope this helps - Aruna
>> >
>> Thanks Aruna. This helps.
>
>
> Glad we could help. I noticed your running Ubuntu ? Since your testing and compiling
> why not give Debian a go ? Ubuntu uses both free and proprietary software while Debian
> uses free software only and with Debian there are zero surprises. Rock solid, Stable and
> is actually lightweight compared to Ubuntu. Good luck.
>
> Aruna
>

I actually use both deb (Ubuntu) and rpm (Opensuse) both for my dev activity.
And, yes its no harm trying light weight OS. Will try on Debian for
next test VM.
Thanks for your suggestion once again.

Regards,

~Praveen.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, back to index

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-19 13:22 /proc/modules not showing any output Praveen Kumar
2018-12-19 15:06 ` Greg KH
2018-12-19 15:31   ` Praveen Kumar
2018-12-19 15:57     ` Aruna Hewapathirane
2018-12-19 16:17       ` Praveen Kumar
2018-12-19 16:34         ` Aruna Hewapathirane
2018-12-20  4:28           ` Praveen Kumar

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox