You are not logged in.

#1 2024-01-09 21:31:31

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Kernel doesn´t boot but no errors are on the screen

Hi all there,

I´m new here but not new to Archlinux and general linux. Also I´m not new to kernel manual configuration and compilation. I run some Gentoo Linux machines with manually configured kernels and they all work well.

But now I wan´t to compile a kernel from kernel.org for an archlinux system and follow the instructions on the wiki page: https://wiki.archlinux.org/title/Kernel … ompilation

But it wouldn´t be boot. I can start it from GRUB but with the Message "Loading Linux linux6.7-rc5-me-it ..." it begins to stuck and nothing more comes onto the screen. (And yes, I´ve disabled 'quiet' in GRUB wink )

Can anyone help me?

Offline

#2 2024-01-09 22:07:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,381

Re: Kernel doesn´t boot but no errors are on the screen

Following what in https://wiki.archlinux.org/title/Kernel … figuration ?
Do you get more output when booting
1. the multi-user.target
2. along "nomodeset"
3. and https://wiki.archlinux.org/title/Genera … l_messages ?

Offline

#3 2024-01-10 08:07:55

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

Yes, I´ve followed what is written there and it´s not the first kernel that I configure manually.

How I boot the "multi-user.target" ?

And "nomodeset" says me nothing

But the debug messages I can try

Thanks for the first support smile

Offline

#4 2024-01-10 08:12:08

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: Kernel doesn´t boot but no errors are on the screen

m-electronics wrote:

How I boot the "multi-user.target" ?

On-the-fly edit your boot stanza via the BootLoader's menu (eg.: press e on GRUB), then:

Alternatively, append one of the following kernel parameters to your boot loader:

    systemd.unit=multi-user.target (which roughly corresponds to the old runlevel 3),
    systemd.unit=rescue.target (which roughly corresponds to the old runlevel 1).

https://wiki.archlinux.org/title/System … _boot_into


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#5 2024-01-10 08:15:58

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

seth wrote:

Following what in https://wiki.archlinux.org/title/Kernel … figuration ?
Do you get more output when booting

So, I´ve tested various things by adding "debug" or "ignore_loglevel" or "nomodeset"...
Nothing print out messages.
sad

Last edited by m-electronics (2024-01-10 08:23:55)

Offline

#6 2024-01-10 08:17:53

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

d.ALT: I tryed to boot with runlevel 1 nothing happends.

Offline

#7 2024-01-10 08:22:37

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

So, I´ve tested various things by adding "debug" or "ignore_loglevel" or "nomodeset"...
Nothing print out messages.

Last edited by m-electronics (2024-01-10 08:23:03)

Offline

#8 2024-01-10 08:23:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,381

Re: Kernel doesn´t boot but no errors are on the screen

Yes, I´ve followed what is written there and it´s not the first kernel that I configure manually.

The wiki explains
1. how to use the archlinux kernel config
2. various ways to manually alter the configuration

*What* did you do *exactly*?
Can you boot the kernel when you just re-use the arch config?

Offline

#9 2024-01-10 08:24:32

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: Kernel doesn´t boot but no errors are on the screen

m-electronics wrote:

I´ve followed what is written there

This means, to me, you've gone through all the steps, which could lead to some conflicts in your configuration and installation.
Please do choose only one way and let us know what is it, eg.:
° only 2>2.1 (https://wiki.archlinux.org/title/Kernel … figuration) with NO olddefconfig and NO LSMOD=
+
° only 4>4.3>4.3.1 (https://wiki.archlinux.org/title/Kernel … set_method).


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#10 2024-01-10 08:26:33

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

seth wrote:

Yes, I´ve followed what is written there and it´s not the first kernel that I configure manually.

The wiki explains
1. how to use the archlinux kernel config
2. various ways to manually alter the configuration

*What* did you do *exactly*?
Can you boot the kernel when you just re-use the arch config?

When I do that the kernel + modules size increase so much that I must use bigger hard drives. And I think it should work also with manual configuration. smile

What I do is to configure the kernel complete manually. And I don´t understand why it´s not work on Archlinux but with other linux distros?

Offline

#11 2024-01-10 08:31:20

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

d.ALT wrote:
m-electronics wrote:

I´ve followed what is written there

Please do choose only one way and let us know what is it, eg.:

I don´t have copied the arch config from config.gz because then the kernel + module size increase so much that I must use bigger harddrives! That is not what I want to have sad

Offline

#12 2024-01-10 08:35:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,381

Re: Kernel doesn´t boot but no errors are on the screen

Yes, but not *your* manual configuration because you don't know what you're doing.

A regular kernel installation size is ~180MB incl. modules? Are you writing from the 90ies?

Start with the arch config and disable only modules and options you *know* for sure you won't need.
If you don't know, try to figure.
If you can't figure, leave it there.

Once you've a booting kernel you can try to trim it down but disabling stuff you *think* you might not need (but don't actually know) - if the new kernel fails to boot, restore them.

Offline

#13 2024-01-10 08:39:50

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

I´m not newbie in kernel configuration and I know what I do there.
Maybe it´s different on archlinux what I don´t know wink

Offline

#14 2024-01-10 08:41:39

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

seth wrote:

A regular kernel installation size is ~180MB incl. modules? Are you writing from the 90ies?

On my disk it increases up to 20GB or more! Thats many storage space and I don´t understand that also.

Offline

#15 2024-01-10 08:47:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,381

Re: Kernel doesn´t boot but no errors are on the screen

The build result or the build dir (incl. temporary objects) or the sources git tree?
Before "make modules"?

Offline

#16 2024-01-10 09:04:33

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

The build dir

I mean before "make modules"

Last edited by m-electronics (2024-01-10 09:06:12)

Offline

#17 2024-01-10 15:13:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,381

Re: Kernel doesn´t boot but no errors are on the screen

"build", not "source"? How much is left after a "make clean" (before make modules)?

Offline

#18 2024-01-10 20:26:14

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

seth wrote:

"build", not "source"? How much is left after a "make clean" (before make modules)?

I must compile again because I wan´t to "diff" the both kernel configurations what is different. Maybe I find there the failure ? wink

Offline

#19 2024-01-10 20:28:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,381

Re: Kernel doesn´t boot but no errors are on the screen

Certainly, but it's rather gonna be a needle in a haystack - there're 10.000+ config switches…

Offline

#20 2024-01-10 20:32:43

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

seth wrote:

Certainly, but it's rather gonna be a needle in a haystack - there're 10.000+ config switches…

Yes, but I would understand why the kernel config that I use for Gentoo also with systemd not works for archlinux. And also with no error showing.

And when I compile the kernel with the archlinux config I don´t have what I want and I don´t have understand what is necessary in the kernel config for working with archlinux.

wink wink

Offline

#21 2024-01-10 21:18:59

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: Kernel doesn´t boot but no errors are on the screen

m-electronics wrote:

the kernel config that I use for Gentoo

Based on patched kernel?
gentoo-sources!=vanilla-sources

Last edited by d.ALT (2024-01-10 21:19:32)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#22 2024-01-10 22:48:09

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

With kernel from kernel.org.

What are vanilla sources?

Offline

#23 2024-01-12 15:35:46

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

d.ALT wrote:
m-electronics wrote:

the kernel config that I use for Gentoo

Based on patched kernel?
gentoo-sources!=vanilla-sources

From kernel.org sources (that are the vanilla sources?)

Offline

#24 2024-01-12 16:02:09

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: Kernel doesn´t boot but no errors are on the screen

m-electronics wrote:

I´m not newbie in kernel configuration and I know what I do there.
Maybe it´s different on archlinux what I don´t know wink

m-electronics wrote:
d.ALT wrote:
m-electronics wrote:

the kernel config that I use for Gentoo

Based on patched kernel?
gentoo-sources!=vanilla-sources

From kernel.org sources (that are the vanilla sources?)

https://wiki.gentoo.org/wiki/Kernel/Ove … la-sources


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#25 2024-01-12 16:13:16

m-electronics
Member
Registered: 2024-01-09
Posts: 20

Re: Kernel doesn´t boot but no errors are on the screen

And now? What say this to me?

I´ve googled before and they say that the vanilla kernel is the kernel from kernel.org

Last edited by m-electronics (2024-01-12 16:14:13)

Offline

Board footer

Powered by FluxBB