Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Kernel Errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Thu Mar 28, 2024 12:54 pm    Post subject: [Solved]Kernel Errors Reply with quote

hi,
I am trying to install Kernel. Try my level best but fail ...
Kindly see the screenshorts for guiding me

https://ibb.co/GxSGHsK
https://ibb.co/WKzsPr6
https://ibb.co/BnyNYpt
https://ibb.co/HVGcvp8
https://ibb.co/NxTnTKR
https://ibb.co/XSfMW2G

Thanks in advance


Last edited by gardenair on Sat Mar 30, 2024 12:29 am; edited 1 time in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Thu Mar 28, 2024 1:18 pm    Post subject: Reply with quote

Your COMMON_FLAGS have a typo... it is -O2 (capital o, not zero)
make.conf has USE not use (it matters).
ACCEPT_LICENSE is wrong (might as well comment it out as you seem to want to use the default)
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Fri Mar 29, 2024 12:19 am    Post subject: Reply with quote

Thanks "grknight" a lot for it. It was due to a typing mistake on my side. Appreciate you for pointing me out. You peek into it and give me the right direction. Well, the emerge command took 5 hours for the Gentoo-kernel command.

https://ibb.co/ZYgHv21

I want to ask one thing more as the manual says

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel " Installing the kernel sources "

do I need it? If not then in which circumstances do we apply it and what are its benefits?
Code:
root #emerge --ask sys-kernel/installkernel

Code:
root #emerge --ask sys-kernel/gentoo-sources


Thanks for your valuable guidance.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Fri Mar 29, 2024 12:49 am    Post subject: Reply with quote

gardenair wrote:
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel " Installing the kernel sources "

do I need it? [...]

No ... there is a note directly below the title "Installing the kernel sources" =>
Quote:
This section is only relevant when using the following genkernel (hybrid) or manual kernel management approach.


gardenair wrote:
[...] If not then in which circumstances do we apply it and what are its benefits?

You will need the sources if you want CONFIGURE your kernel yourself ... this means: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#Alternative:_Manual_configuration

If you have never done this, then I never recommend it for the FIRST installation ... maybe start here and then read all the links you will find in these and the next articles too:
https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo

This is under construction (because the original: https://wiki.gentoo.org/wiki/Quick_Installation_Checklist is outdated):
https://wiki.gentoo.org/wiki/User:Pietinger/Draft/Quick_Installation_OpenRC_for_an_UEFI_System
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Fri Mar 29, 2024 7:40 am    Post subject: Reply with quote

Thanks " pietinger" for your kind and valuable support. Well i am installing Gentoo on my virtual-box using legacy boot . Yes it i am installing it 2nd time after a year.
I am taking each step very careful. Yes I doesn't want to go in more complication by compiling the kernel, I want to move ahead the installation process.I am using systemd

https://ibb.co/j5CxDxP

At the moment the kernel is installed Next step I may take ?
Code:
root #emerge --depclean


Next step as I understand is to follow the instructions as the link says

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#Kernel_installation

There are many things in the manual about kernel installation and I doesn't want to mess up.I want to quit from the kernel phase (if i am doing the right steps) and move ahead.
.
Thanks once again.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Fri Mar 29, 2024 7:45 am    Post subject: Reply with quote

gardenair,

I see in your photo you are using profiles 17.1 ... since one week we have new profiles (23.0) ... I suggest you download the actual stage3 so you dont need to migrate later ;-)

gardenair wrote:
Thanks " pietinger" for your kind and valuable support.

You are very Welcome ! :D

Have fun with Gentoo ! 8)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Fri Mar 29, 2024 10:40 am    Post subject: Reply with quote

Is it possible at this stage (Kernel Installation process) that I may go back and download the stage 3 files, and extract it? Yes once it reboots then I think can do it. At this stage (Switching to the New Gentoo Installation Environment) I even can't see the dir "/mnt/gentoo" directory.
Let's move ahead...
So the next step should be
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#Kernel_installation
then
Code:
/etc/portage/package.use/systemd


Is it right? Please guide me to move ahead and complete my installation process.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Fri Mar 29, 2024 11:14 am    Post subject: Reply with quote

gardenair wrote:
[...] Please guide me to move ahead and complete my installation process.

I am not a systemd expert ...

... and you want a systemd system, so I assume you want use also systemd-boot. The first steps are the same as for an OpenRC system:

https://wiki.gentoo.org/wiki/User:Pietinger/Draft/Quick_Installation_OpenRC_for_an_UEFI_System#Kernel

Code:
# emerge --ask sys-kernel/linux-firmware

When using an Intel CPU:
Code:
# mkdir -p /etc/portage/package.license
# echo "sys-firmware/intel-microcode intel-ucode" >> /etc/portage/package.license/intel-microcode
# emerge --ask sys-firmware/intel-microcode

Now it differs: Installing a distribution kernel:
Code:
# echo "sys-kernel/installkernel dracut systemd-boot" >> /etc/portage/package.use/installkernel
# echo "sys-apps/systemd boot" >> /etc/portage/package.use/systemd
# emerge --ask sys-apps/systemd sys-kernel/installkernel sys-kernel/gentoo-kernel-bin

(installkernel needs also the Use-flag "systemd", but this is already set globally by your systemd-profile)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Fri Mar 29, 2024 11:33 am    Post subject: Reply with quote

Is it possible to keep openrc installation settings at the moment and after the system reboot I may switch to systemd?
Yes, the thing I feel is that openrc installation is simple and plain. Later openrc can switch into systemsd? What you suggest me ?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Fri Mar 29, 2024 11:59 am    Post subject: Reply with quote

Yes, it is possible to start with OpenRC and then switch to systemd ... but you have asked me what I would suggest ...

In general, I can only recommend installing what you want later, because then you save yourself the changeover ... but of course that's your decision (and then you really need a systemd expert; that's not me).
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Fri Mar 29, 2024 12:43 pm    Post subject: Reply with quote

Really thankful "pietinger" and appreciate it. The logic behind selecting systemd is, currently I am using Arch Linux and it uses systemd as well. So with that perception, the commands, especially related to systemd are almost the same.
My objective in installing Gentoo Linux is to be familiar with it, Play with the packages etc etc and learn how Linux actually works.
Yes, you are guiding me as I asked you the query related to my issue (systemd).
So I have decided at the moment to use openrc for the rest of the installation process.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Fri Mar 29, 2024 4:09 pm    Post subject: Reply with quote

gardenair wrote:
Really thankful [...]

You are very Welcome ! :D

gardenair wrote:
[...] So I have decided at the moment to use openrc for the rest of the installation process.

OpenRC is fine. Yes, if you already know systemd then you will learn more with an other system ... ;-)

Have fun with Gentoo ! 8)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Fri Mar 29, 2024 4:33 pm    Post subject: Reply with quote

Yes, gradually I am moving ahead. At this stage, I find in Gentoo that there are configuration files which only target to systemd.I am not an expert in Gentoo to switch at this stage from systemd to openrc. Maybe in future :)
I am optimistic that my system will boot up after the whole steps of installation are done :)
Thanks once again .
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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