You are not logged in.

#1 2020-06-12 09:54:53

sacarde
Member
Registered: 2006-07-14
Posts: 389

curiosity for kernel modules

hi,
   when I need informations about a module (M), I run:

modinfo <modulename>

and I read:

- firmware ...
- alias: ...
- parm: ...

and this is OK... but if module is build as included into kernel? (Y)

where can I get this informations?




thank you


p.s.
this is only for didactic purpose

Offline

#2 2020-06-12 11:13:53

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 991
Website

Re: curiosity for kernel modules

You can find those in /usr/lib/modules/<kernel>/modules.builtin.modinfo.
modinfo only works with modules.

Last edited by schard (2020-06-12 11:14:06)

Offline

#3 2020-06-12 11:48:22

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: curiosity for kernel modules

in my old archlinux (kernel 4.8.13-1-ARCH) I dont have "modules.builtin.modinfo", but only:

"modules.builtin" and "modules.builtin.bin"



p.s.
in my modules.builtin I have only 105 modules line

but if I run: zcat /proc/config.gz | grep =y | wc

1722    1722   42343

Offline

#4 2020-06-12 11:57:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,430
Website

Re: curiosity for kernel modules

I think you means `zgrep -c =y /proc/config.gz`

But there the number isn't expected to align.  Have you looked at the files.  modules.builtin and modules.builtin.modinfo contain information for all the builting modules.  If you don't have a modules.builtin.modinfo, then you are not using the kernel from the official repositories as that file is provided by the linux package.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#5 2020-06-12 12:15:20

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: curiosity for kernel modules

strange... I have "arch" standard package: linux-4.8.13-1 (an old kernel dic 2016)


p.s.
in package tree I view:

linux /usr/lib/modules/4.8.13-1-ARCH/modules.alias
linux /usr/lib/modules/4.8.13-1-ARCH/modules.alias.bin
linux /usr/lib/modules/4.8.13-1-ARCH/modules.builtin
linux /usr/lib/modules/4.8.13-1-ARCH/modules.builtin.bin
linux /usr/lib/modules/4.8.13-1-ARCH/modules.dep
linux /usr/lib/modules/4.8.13-1-ARCH/modules.dep.bin
linux /usr/lib/modules/4.8.13-1-ARCH/modules.devname
linux /usr/lib/modules/4.8.13-1-ARCH/modules.order
linux /usr/lib/modules/4.8.13-1-ARCH/modules.softdep
linux /usr/lib/modules/4.8.13-1-ARCH/modules.symbols
linux /usr/lib/modules/4.8.13-1-ARCH/modules.symbols.bin

Last edited by sacarde (2020-06-12 12:20:37)

Offline

#6 2020-06-12 12:26:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,430
Website

Re: curiosity for kernel modules

Ok, why have you not updated your system in 4 years?

Your last thread on these forums was asking about an arch system you hadn't updated (and didn't seem interested in updating) in 8 years.

Why are you using arch?  If you deliberately keep your system *several years* out of date, you should not expect to get help from this community.

EDIT: also, 4 years ago you were using a 32-bit arch system.  Is that still the case?  If so, you need to ask on the archlinux32 support channels (if they still exist) as this community dropped support for 32-bit arch systems several years ago.

Last edited by Trilby (2020-06-12 12:31:32)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#7 2020-06-12 12:30:46

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: curiosity for kernel modules

I need to use software that do not have more updates ...
(and system works fine for me)

in updated kernels would I find that file "modules.builtin.modinfo" ?



p.s.
my question is for "didactic purpose"

Last edited by sacarde (2020-06-12 12:32:09)

Offline

#8 2020-06-12 12:32:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,430
Website

Re: curiosity for kernel modules

sacarde wrote:

I need to use software that do not have more updates ...

Then you are using the wrong distro.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#9 2020-06-12 12:32:57

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: curiosity for kernel modules

in updated kernels would I find that file "modules.builtin.modinfo" ?

Offline

#10 2020-06-12 12:34:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,430
Website

Re: curiosity for kernel modules

Yes, as already noted.  And we don't care if your purposes are "didactic".  This community is for support of x86_64 arch linux only.  If you are running something else, you are asking in the wrong place.

sacarde wrote:

and system works fine for me

Clearly it doesn't as evidenced by this thread.

Last edited by Trilby (2020-06-12 12:38:58)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#11 2020-06-12 12:42:26

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: curiosity for kernel modules

ok, I remember I have a arch-vm that use 5.2.9 kernel...
I found "modules.builtin.modinfo" (only 42K)
but I dont know how to read that data file...



thank you

Last edited by sacarde (2020-06-12 12:50:46)

Offline

#12 2020-06-12 13:51:29

Ropid
Member
Registered: 2015-03-09
Posts: 888

Re: curiosity for kernel modules

sacarde wrote:

ok, I remember I have a arch-vm that use 5.2.9 kernel...
I found "modules.builtin.modinfo" (only 42K)
but I dont know how to read that data file...



thank you

You can view the file contents like this:

tr '\0' '\n' < modules.builtin.modinfo | less

The file has "null" characters instead of normal line-endings and that needs to be translated with the "tr" command before you can view it.

Or you can use the "strings" command:

strings modules.builtin.modinfo | less

Last edited by Ropid (2020-06-12 13:51:51)

Offline

#13 2020-06-12 15:05:31

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: curiosity for kernel modules

thanks Ropid

but there are a small part of the parameters included into kernel (Y), is right?

Offline

#14 2020-06-15 06:44:34

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: curiosity for kernel modules

in a kernel that dont have this file (modules.builtin.modinfo) how can I generate it ?

by pathing kernel?

by configuring kernel?

during kernel build?




thank you

Last edited by sacarde (2020-06-15 08:15:43)

Offline

#15 2020-06-21 07:47:43

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: curiosity for kernel modules

oh, I find that from kernel the 5.2 and later that file is automatically generated

Offline

Board footer

Powered by FluxBB