Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel compiling issues?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Fri Jun 02, 2017 6:56 am    Post subject: genkernel compiling issues? Reply with quote

I am new to genkernel and have some issues. So far I used this command to compile:
Code:
genkernel --menuconfig all

However it takes very long time to compile. Sometimes it is only small change in menuconfig, without changing modules, so I tried to use this command:
Code:
genkernel --menuconfig bzImage

It took much less time however it caused to booting problem – don’t know why?
So I chrooted and compiled again with “all” option and booting issue was solved. Maybe it is due to this messages I get each time compiling kernel?
Code:
Kernel compiled successfully!
* Required Kernel Parameters:
*     root=/dev/$ROOT
*     Where $ROOT is the device node for your root partition as the
*     one specified in /etc/fstab

Looks that my /etc/fstab is ok but maybe need to change something:
Code:
/dev/sda2      /boot      ext4      defaults,noatime   0 2
/dev/sda3       none      swap      sw         0 0
/dev/sda5      /      ext4      noatime         0 1
/dev/sda6      /home      ext4      noatime         0 2

There is another message that I guess can be ignored cause I don’t use initramfs.:
Code:
* If you require Genkernel's hardware detection features; you MUST
* tell your bootloader to use the provided INITRAMFS file.

Same regarding this message:
Code:
* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

Anyway - Please advise if need to refer to these messages and how can reduce compiling time!
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”


Last edited by pmam on Fri Jun 02, 2017 8:25 am; edited 2 times in total
Back to top
View user's profile Send private message
Kosmas
Apprentice
Apprentice


Joined: 14 Sep 2006
Posts: 276
Location: Greece

PostPosted: Fri Jun 02, 2017 7:35 am    Post subject: Reply with quote

Hi pmam,

First of all, if you compile just the bzimage, aka the kernel, then the modules and the initram do not get created and thus you will have problems booting up.

Secondly, you can reduce compiling time by not cleaning the kernel tree every time genkernel runs.
This can be done either by removing
CLEAN="yes"
in the /etc/genkernel.conf file, or running genkernel like this:
genkernel --menuconfig --no-clean all

You can then expore more options in the genkernel util and the config file and make it suit your needs.

Hope I helped.

Kosmas.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Fri Jun 02, 2017 8:05 am    Post subject: Reply with quote

I never use genkernel myself, but kernel could be build faster adding more threads when building it, an option i don't know how you can pass it to genkernel.

Basically you just change make with a make -jX (where X is threads #)
Ask someone or find yourself how it could be pass to genkernel.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5839

PostPosted: Sun Jun 04, 2017 7:33 am    Post subject: Reply with quote

If you're using grub, you can probably ignore all those messages since it builds your kernel line automatically when you run grub-mkconfig.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Sun Jun 04, 2017 8:24 am    Post subject: Reply with quote

pmam,

Its always safe to ignore
Code:
* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.


The rootfstype= entry on the kernel cmdline stops the kernel guessing the root fs type and messages like
Code:
[    4.584436] EXT4-fs (dm-10): couldn't mount as ext3 due to feature incompatibilities
[    4.584841] EXT4-fs (dm-10): couldn't mount as ext2 due to feature incompatibilities
do not appear in dmesg.

When you don't tell the kernel rootfstype=, it tries all the available filesystem drivers until one works.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum