The officially official Devuan Forum!

You are not logged in.

#1 2024-12-20 12:08:55

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 159  

How recompile Kernel ? ( fresh install )

Hi,

I need to recompile my Kernel in order to activate some missing options...

I've tried few way but failed...

It can be done on a freshly install Devuan 5 Daedalus.

Thanks.


Linux noob, plz be kind big_smile

Offline

#2 2024-12-20 14:56:09

steve_v
Member
Registered: 2018-01-11
Posts: 403  

Re: How recompile Kernel ? ( fresh install )

Same as you would on Debian.
OTOH, compiling a kernel is much the same on any distro and hasn't changed significantly in decades, the only real difference here is using the debian specific make targets (included in linux-source-[version]) to build .deb packages rather than manually installing the image/modules.

tried few way but failed...

And if you also fail to elaborate, nobody will know why.

Last edited by steve_v (2024-12-20 15:02:20)


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

#3 2024-12-20 15:04:09

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 159  

Re: How recompile Kernel ? ( fresh install )

Thank you Steve_v ! for the links

And if you also fail to elaborate, nobody will know why.

I didn't want to create a big post smile
But If I fail following the links you give, for sure I'll share what I'm facing smile

Last edited by SpongeBOB (2024-12-20 16:29:13)


Linux noob, plz be kind big_smile

Offline

#4 2024-12-20 16:28:19

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 159  

Re: How recompile Kernel ? ( fresh install )

ok compiling now...

I've used make bindeb-pkg

Does someone already tried with -j$(nproc) ?
in full: make bindeb-pkg -j$(nproc)

it's should be faster, but might be prone to error ? did you already tried ?

--
in the section 4.4 Out-of-tree kernel modules of Debian Linux Kernel Handbook

Should I do it ?

If I understand well the document is either 4.4.1 or 4.4.2 method , right ?


Linux noob, plz be kind big_smile

Offline

#5 2024-12-20 22:23:03

steve_v
Member
Registered: 2018-01-11
Posts: 403  

Re: How recompile Kernel ? ( fresh install )

Does someone already tried with -j$(nproc) ?

man make

Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

#6 2024-12-22 06:44:19

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 159  

Re: How recompile Kernel ? ( fresh install )

Thank you Steve_v the man don't about risks/error with -j , damn if I knew I will have run it with it smile

I'm still wondering for the

SpongeBOB wrote:

in the section 4.4 Out-of-tree kernel modules of Debian Linux Kernel Handbook

Should I do it ?

If I understand well the document is either 4.4.1 or 4.4.2 method , right ?


Linux noob, plz be kind big_smile

Offline

#7 2024-12-22 08:47:48

steve_v
Member
Registered: 2018-01-11
Posts: 403  

Re: How recompile Kernel ? ( fresh install )

the man don't about risks/error with -j

Indeed, because that option simply specifies the number of parallel jobs to run. The only "error" possible is that the build fails because things are compiled out-of-order (which means upstream needs to fix their makefile / build process), and the only "risk" is wasting time and trying again with those options omitted.
To put it another way: The function of '-j' and friends is not complicated, and I have no idea why anyone would need handholding over such an option. Try it and find out, like everyone else.

If I understand well the document is either 4.4.1 or 4.4.2 method , right ?

The choice is whether to use DKMS or module-assistant... That choice is up to you.


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

Board footer