Hi, I have a kernel build question please. After build and install of new kernel and modules mkinitcpio gives the following warning ==> WARNING: No modules were added to the image. This is probably not what you want. Web search did not turn up anything. Complete command and output is: # mkinitcpio -g initramfs-custom.img -k 4.5.0-eudyptula+ ==> Starting build: 4.5.0-eudyptula+ -> Running build hook: [base] -> Running build hook: [udev] -> Running build hook: [autodetect] -> Running build hook: [modconf] -> Running build hook: [block] -> Running build hook: [filesystems] -> Running build hook: [keyboard] -> Running build hook: [fsck] ==> WARNING: No modules were added to the image. This is probably not what you want. ==> Creating gzip-compressed initcpio image: /boot/initramfs-custom.img ==> Image generation successful # Any pointers much appreciated, thank you. Tobin
Em 7 de fevereiro de 2016 19:12:42 BRST, Tobin Harding <me@tobin.cc> escreveu:
Hi,
I have a kernel build question please. After build and install of new kernel and modules mkinitcpio gives the following warning
==> WARNING: No modules were added to the image. This is probably not what you want.
Web search did not turn up anything.
Complete command and output is:
# mkinitcpio -g initramfs-custom.img -k 4.5.0-eudyptula+ ==> Starting build: 4.5.0-eudyptula+ -> Running build hook: [base] -> Running build hook: [udev] -> Running build hook: [autodetect] -> Running build hook: [modconf] -> Running build hook: [block] -> Running build hook: [filesystems] -> Running build hook: [keyboard] -> Running build hook: [fsck] ==> WARNING: No modules were added to the image. This is probably not what you want. ==> Creating gzip-compressed initcpio image: /boot/initramfs-custom.img ==> Image generation successful #
Any pointers much appreciated, thank you.
Tobin
------------------------------------------------------------------------
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hello Tobin, Please post every step you took to build the kernel. Thanks, -- Pablo G. Gallardo
On Mon, 08 Feb 2016 08:12:42 +1100, Tobin Harding said:
==> WARNING: No modules were added to the image. This is probably not what you want.
This may or may not be an error. A distro kernel is usually built with all or almost all drivers built as modules, so an init image that has no modules in it will probably fail to boot correctly. However, if it's a self-built kernel that has all drivers needed to get the root filesystem mounted already built-in, it's not a real issue. If it's intended because things are built in, your mkinitcpio probably has a flag to tell it that it's OK (n dracut, it's --no-kernel).
Issue resolved thank you. I forgot to CC the list. Thanks also to Pablo G. Gallardo. Regards, Tobin Harding.
Tobin Harding <me@tobin.cc> writes:
Issue resolved thank you. I forgot to CC the list. Thanks also to Pablo G. Gallardo.
Please give a summary of how the issue was resolved, even if it may seem obvious to you now. The problem was important enough for you to ask about, and you can be sure that you are not alone. The next person having the same problem will find your question. A nice gesture would be to let them find your answer as well... Bjørn
On Mon, Feb 8, 2016 at 2:42 AM, Tobin Harding <me@tobin.cc> wrote:
Hi,
I have a kernel build question please. After build and install of new kernel and modules mkinitcpio gives the following warning
==> WARNING: No modules were added to the image. This is probably not what you want.
Web search did not turn up anything.
Complete command and output is:
# mkinitcpio -g initramfs-custom.img -k 4.5.0-eudyptula+
Is it a task of the Eudyptula Challenge? Regards Sudip
I am glad this is the newbies list ;) The initial problem was # mkinitcpio -g initramfs-custom.img -k 4.5.0-eudyptula+ ==> Starting build: 4.5.0-eudyptula+ -> Running build hook: [base] -> Running build hook: [udev] -> Running build hook: [autodetect] -> Running build hook: [modconf] -> Running build hook: [block] -> Running build hook: [filesystems] -> Running build hook: [keyboard] -> Running build hook: [fsck] ==> WARNING: No modules were added to the image. This is probably not what you want. ==> Creating gzip-compressed initcpio image: /boot/initramfs-custom.img ==> Image generation successful # The cause of the warning turned out to be that I had built the kernel with an 'empty' config file. $ zcat /proc/config > config instead of $ zcat /proc/config > .config (note the dot on config) If I was more experienced I would have realised this when the compile time was so short. It was only while replying to Pablo with the steps I had taken to build the kernel that I noticed my error. So, thank you to the kernelnewbies mailing list. Regards, Tobin Harding
On 02/09/2016 12:16 AM, me@tobin.cc wrote:
I am glad this is the newbies list ;)
The initial problem was
# mkinitcpio -g initramfs-custom.img -k 4.5.0-eudyptula+ ==> Starting build: 4.5.0-eudyptula+ -> Running build hook: [base] -> Running build hook: [udev] -> Running build hook: [autodetect] -> Running build hook: [modconf] -> Running build hook: [block] -> Running build hook: [filesystems] -> Running build hook: [keyboard] -> Running build hook: [fsck] ==> WARNING: No modules were added to the image. This is probably not what you want. ==> Creating gzip-compressed initcpio image: /boot/initramfs-custom.img ==> Image generation successful #
The cause of the warning turned out to be that I had built the kernel with an 'empty' config file.
$ zcat /proc/config > config
instead of
$ zcat /proc/config > .config
(note the dot on config)
If I was more experienced I would have realised this when the compile time was so short. It was only while replying to Pablo with the steps I had taken to build the kernel that I noticed my error.
So, thank you to the kernelnewbies mailing list.
Regards, Tobin Harding
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
You are not supposed to send the Challenge to the list. It says that like 20 times when you sign up to the list :( -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
I'm sorry if I have offended you, I don't believe that my question or explanation had anything to do with the challenge. Excepting that the work eudyptula was in the email
On 02/09/2016 01:07 AM, me@tobin.cc wrote:
I'm sorry if I have offended you, I don't believe that my question or explanation had anything to do with the challenge. Excepting that the work eudyptula was in the email
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
you were asked if this is from the challenge and you said yes. Are you trolling us or did I miss understand something? -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
you were asked if this is from the challenge and you said yes. Are you trolling us or did I miss understand something?
I'm very sorry, I in no way meant to troll. I am just honestly trying to learn kernel development. I have two books and the afore mention challenges as my guides. I am sorry, I miss-understood you, yes I did answer that question. I will refrain from mentioning the challenges or asking any questions I face while doing them in future. Please accept my apologies, this was not the introduction to the kernel community that I had hoped for. Tobin Harding.
On Tue, Feb 9, 2016 at 11:57 AM, <me@tobin.cc> wrote:
you were asked if this is from the challenge and you said yes. Are you trolling us or did I miss understand something?
I'm very sorry, I in no way meant to troll. I am just honestly trying to learn kernel development. I have two books and the afore mention challenges as my guides. I am sorry, I miss-understood you, yes I did answer that question. I will refrain from mentioning the challenges or asking any questions I face while doing them in future.
little has his way of knowing if some one has asked a question regading the challenge, and usually if some one asks then he is removed from the challenge.
Please accept my apologies, this was not the introduction to the kernel community that I had hoped for.
You are always welcome in the community, but the challenge rules says "This challenge is for you, not anyone else, so don't ask about how to solve them on mailing lists or IRC." Regards Sudip
little has his way of knowing if some one has asked a question regarding the challenge, and usually if some one asks then he is removed from the challenge.
I sincerely hope that does not happen, it would be a real kick in the teeth as far as my kernel education goes.
You are always welcome in the community, but the challenge rules says "This challenge is for you, not anyone else, so don't ask about how to solve them on mailing lists or IRC."
Point noted, thank you. Regards, Tobin Harding.
participants (7)
-
Bjørn Mork -
me@tobin.cc -
Pablo G. Gallardo -
Ruben Safir -
Sudip Mukherjee -
Tobin Harding -
Valdis.Kletnieks@vt.edu