You are not logged in.

#1 2019-03-05 10:25:44

Jason P.
Member
Registered: 2015-02-26
Posts: 171

[solved] Compiling linux-rt-bfq kernel with modprobed-db

This kernel in the AUR has an option in the PKGBUILD to recall modules from modprobed-db [1], so I've decided to give it a try. After installing the package and filling the database with all modules my system is aware of (114) I compiled the kernel. To my surprise there were much more modules than I expected to find in the final result:

➜ % ~ find /lib/modules/4.19.25-rt16-2-rt-bfq/kernel -name '*.ko.xz' | wc -l
5348

I'm using aurutils for building the package and during compilation I saw no errors or warnings.

➜ # ~ sudo -u build aur build -c -D /var/cache/build/x86_64 -M /etc/makepkg.conf

[1] https://aur.archlinux.org/cgit/aur.git/ … rt-bfq#n40

Last edited by Jason P. (2019-03-06 15:14:58)

Offline

#2 2019-03-05 11:33:30

nycko
Member
Registered: 2011-08-07
Posts: 15

Re: [solved] Compiling linux-rt-bfq kernel with modprobed-db

Read the PKGBUILD carefully, there is an option needed to be set in order to use the database generated by modprobed-db utility.

Offline

#3 2019-03-05 12:02:42

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: [solved] Compiling linux-rt-bfq kernel with modprobed-db

Sorry, I've forgot to mention that I edited the PKGBUILD to set that option:

_localmodcfg=y

You mean that, right?

Offline

#4 2019-03-05 16:10:49

loqs
Member
Registered: 2014-03-06
Posts: 17,304

Re: [solved] Compiling linux-rt-bfq kernel with modprobed-db

What is the output from the prepare step of the build process?

Offline

#5 2019-03-05 18:25:11

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: [solved] Compiling linux-rt-bfq kernel with modprobed-db

loqs wrote:

What is the output from the prepare step of the build process?

If you have modprobed-db installed, running it in recall mode now

And it goes fine until the end... I think the problem might be related with sudo. That special build user I'm using with aurutils should have an entry in sudoers to run "sudo /usr/bin/modprobed-db recall". Right now I'm checking with a new build. The strange thing is that before there wasn't any complains about that particular command during the process...

How can I be sure that only the desired modules were compiled? Checking the number of files in /lib/modules/<kernel_version>/kernel?

Offline

#6 2019-03-05 18:28:01

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: [solved] Compiling linux-rt-bfq kernel with modprobed-db

You are building inside a chroot. modprobed-db probably is not installed inside.
Calling modprobed-db inside the chroot would probably be useless as well. Do it manually before starting the build and modify you PKGBUILD to call localmodconfig unconditionally.
I'm not sure if localmodconfig can get the kernel modules inside the chroot, so you might have to save the output of lsmod to a file, copy it to the chroot and use the LSMOD parameter.

Last edited by progandy (2019-03-05 18:39:04)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#7 2019-03-05 19:07:08

Jason P.
Member
Registered: 2015-02-26
Posts: 171

Re: [solved] Compiling linux-rt-bfq kernel with modprobed-db

progandy wrote:

You are building inside a chroot. modprobed-db probably is not installed inside.

Oh, thanks. It's so obvious that I didn't realize hehe.

I guess I could bind the modules database to the chroot the same way you can take advantage of ccache for instance [1]. And of course install modprobed-db inside the container smile


[1] https://github.com/AladW/aurutils/issue … -376008109

Offline

Board footer

Powered by FluxBB