You are not logged in.
Pages: 1
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
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)
macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }
Offline
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
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
Offline
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
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
Offline
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
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
Offline
in updated kernels would I find that file "modules.builtin.modinfo" ?
Offline
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.
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
Offline
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
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
thanks Ropid
but there are a small part of the parameters included into kernel (Y), is right?
Offline
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
oh, I find that from kernel the 5.2 and later that file is automatically generated
Offline
Pages: 1