How to compile a custom Linux kernel

How to compile a custom Linux kernel

DenshiVideo

3 года назад

80,804 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Anna Rchy
Anna Rchy - 11.10.2023 15:32

I found the music distracting.

Ответить
diamondcat extras
diamondcat extras - 08.04.2023 05:26

you spelled downloads wrong

Ответить
Milky3ay
Milky3ay - 25.03.2023 04:54

Thanks for the into. I am compiling it now. See u next month.

Ответить
Digital Age
Digital Age - 21.03.2023 00:36

Did you edit and used lots of cuts while editing or you were just doing it fast?? Don't you know you shouldn't be this fast on such explaining videos??

Ответить
Kent Lisius
Kent Lisius - 11.03.2023 04:32

This is the most fascinating part that goes with Linux and I am hooked on making my kernel just for the computer I am using!

Ответить
The Castiel
The Castiel - 04.03.2023 09:32

The Gang Compiles a Kernal

Ответить
Priest Apostate
Priest Apostate - 04.03.2023 04:41

How does one find the number of threads on one's system?

Ответить
Muh
Muh - 16.02.2023 01:25

is it still relevant to be implemented in 2023?

Ответить
Greg Cooper
Greg Cooper - 06.10.2022 20:14

how are the steps different if you dont have a grub bootloader?

Ответить
SAHAS KAMBLE
SAHAS KAMBLE - 12.08.2022 18:06

Hy denshi my custom kernel is showing when i update grub but after restart there is no kernel showing at grub screen what should i do??

Ответить
Vizlo Dunken
Vizlo Dunken - 02.07.2022 20:18

wow i thought that was the scariest thing

Ответить
Joe Leone
Joe Leone - 19.06.2022 07:20

Great content and video, but could you slow it down a bit on the next video? It's hard to follow along and work on multiple computers if you're trying to duplicate the steps. Thank you!

Ответить
The Vuldronaii
The Vuldronaii - 08.06.2022 00:54

I'm psyched. Definitely gonna fuck w/ this. Viva revolution.

Ответить
Emran Caan
Emran Caan - 24.05.2022 12:34

This (dickhead) put background music so high; what is he blabbering away can't one can hear?

Ответить
Cat22
Cat22 - 23.05.2022 20:34

Please slow down~! You talk so fast I can't follow you.

Ответить
Filip Dombos
Filip Dombos - 15.05.2022 19:44

Can I compile the custom Linux kernel for embedded devices like this? i.e. risk--v / cortex m0 etc.

Ответить
Nokidscoding
Nokidscoding - 04.04.2022 18:29

fuck wit da musik homie gentoo 4eva

Ответить
Godnyx
Godnyx - 20.02.2022 10:08

Great video! A thing that wasn't mentioned is the options: `make olddefconfig` which creates a new config file based on a previous config file that you have (it may be the previous one you used) and makes sure to give the fill the new values with their default options. From my understanding, this means that, I will not have to always modify the same options every time I build a custom kernel which is nice because I don't want to do that every time. Of course the new values will need configuration (unless I leave their default value) but this makes sense.

Also, I've saw another video that talks specifically about building a custom kernel on Arch Linux and before updating the bootloader, he tells about generating an "initial ramdisk" using `mkinitcpio -k <kernel_number> -g /boot/initramfs-linux<kernel_number>` Of course replace the <kernel_number> with the number of the kernel you are using. I don't know if this is needed only for Arch users or if it is needed in general but I just thought to add it here.

Edit: Creating an "initial ramdisk" is necessary for Arch Linux even if you don't enable it in the kernel. I'll find how to fix it and I'll update.

Ответить
ᆞ_ᆞ
ᆞ_ᆞ - 20.02.2022 09:14

thanks for you the video, but i am have problem i stuck on 'Loading initial ramdisk' how fix that?

Ответить
matt aertker
matt aertker - 22.01.2022 22:55

When I run make menuconfig, I get errors all over the place. Initially, its this:
ld: unknown option: --version
ld: unknown linker
scripts/Kconfig.include:56: Sorry, this linker is not supported.
make[2]: * [menuconfig] Error 1
make[1]: * [menuconfig] Error 2
make: * [__sub-make] Error 2

then if I try and delete the lines causing the error, I get more errors. Do you know why this is, or how to fix it?

Ответить
Xperience Evolution
Xperience Evolution - 18.01.2022 12:14

Help please!
sudo make modules _install -j16
does not work. It says:

sed: modules.order can't be read: File or directory not found
make: * [Makefile:1479: __modinst_pre] Error 2

I have no clue what the Problem is

Ответить
Bruh
Bruh - 16.01.2022 00:17

Uhhh... Everything worked fine until i booted the new kernel. My laptop freezed and i need to reboot it manually to start de old kernel.

Ответить
Amit Ranaware
Amit Ranaware - 05.01.2022 12:49

That background music was unnecessary .

Ответить
Eric Banks
Eric Banks - 22.12.2021 20:16

Free should always be run at startup.
Verify with uptime. Then run free.
A system with higher uptime typically has more resources being utilized.

Always run free immediately after boot if using for comparison purposes

Ответить
tomatobros
tomatobros - 04.10.2021 11:40

Yeah i'm gonna check my memory usage after i compile tons of shit and check it later, i'm pretty sure there was actually nothing more than 50mb of difference with compiled kernel.

Ответить
Simon Phillips
Simon Phillips - 28.09.2021 08:41

Thank you for that ! It was my first exposure to how to customize the Linux kernel. Looks tempting...

Ответить
QUARK
QUARK - 07.09.2021 18:32

Song title?

Ответить
Kneedragon1962
Kneedragon1962 - 01.09.2021 07:48

Should also say, your current running Linux has a config file. If you simply want to copy that and use it, that's mostly a safe option.
I found, if you copy it and don't ever even open it with the menu-config, you get problems. If you make a copy of it, then open it with menu-config, change nothing, save it, and then run your make / compile with that, it works. At least it works inside a VM. I've had one & only one go at doing this on bare metal in the last 4 years or so, and it didn't load. I had to re-install from scratch. What was the problem? I never found out. I think the problem had something to do with that version of Mint and the version then current of the binary utilities, but I'm half guessing about that. I know I did precisely the same steps on bare metal I'd been doing in the VMs, and it worked flawlessly in them, but when I tried it on the real-steel ...
If & when I get my hands on a 16c-32t R9, I will be extremely interested in having another go at it. There's stacks of stuff in the generic kernel now about side_channel_exploit_mitigation, which I would be prepared to simply edit out. I'm not a data centre. No example of exploits using those has yet been reported in the wild, and they're mostly only an issue on Intel processors. If I'm running Linux as a home desktop user, and nobody has ever reported Spectre+Melt Down exploits being used in the wild, I think I'd like that 20% or something performance back. Like Astra-Zenica and blood-clots, it's a chance I'm willing to take.

Ответить
VDani16
VDani16 - 16.08.2021 19:06

Wow, It's a lot easier than I thought.

Ответить
Wheezy Backports
Wheezy Backports - 11.08.2021 05:04

Good extensive guide.

Ответить
Ja.KooLit
Ja.KooLit - 03.07.2021 16:44

Hi Denshi, thanks for you the video. So I created a custom kernel, copied to boot folder and so on. But it is not adding in the GRUB list when I update the grub. Any suggestions? Thanks

Ответить
Gettriggered_Ian
Gettriggered_Ian - 20.06.2021 03:34

Gentoooooo

Ответить
Daringcuteseal
Daringcuteseal - 19.06.2021 17:52

hhh why am I watching this in 10 PM

Ответить
Alan Urmancheev
Alan Urmancheev - 19.06.2021 11:23

Thanks

Ответить
Vitali64
Vitali64 - 18.06.2021 18:18

hi

Ответить
Claudio Peretti
Claudio Peretti - 18.06.2021 18:00

Very smart and very quick..

Ответить
Dmytro Petrenko
Dmytro Petrenko - 18.06.2021 17:30

це шедевр! Ставлю двадцять чотири вподобайки!

Ответить
Zackmortar
Zackmortar - 18.06.2021 15:37

denshi you gotta make some new content your channel is dying perhaps somthing more than tutorials and stuff,i wouldnt comment this on most videos but you got potential!

Ответить
some brine shrimp on the internet
some brine shrimp on the internet - 18.06.2021 15:30

Well time to recompile gentoo, see you next week!

Ответить
Herr XeReX
Herr XeReX - 18.06.2021 15:01

goodbye denshi

Ответить
Neucher
Neucher - 18.06.2021 14:20

isn't lz4 compression faster than zst ?

Ответить
xeome
xeome - 18.06.2021 14:18

aye

Ответить