How to compile a custom Linux kernel

How to compile a custom Linux kernel

DenshiVideo

3 года назад

98,652 Просмотров

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


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

@jaredlara2850
@jaredlara2850 - 27.07.2024 10:17

Good video. Also, .75 speed people

Ответить
@rectify2003
@rectify2003 - 02.06.2024 06:30

Dreadful tutorial for beginners

Ответить
@mahkhi7154
@mahkhi7154 - 27.05.2024 08:51

How to compile a custom Linux kernel?
Your God Has Taught you a Few Things. However, you don't Really Understand Things.
VMware ESXi or Microsoft's Hyper-V are Micro Kernels.
Xen or Linux or NT OS are Kernels
Windows Kernel: Kernel32.Sys. Thats Much bigger than a Kernel.
Hypervisors are Bare Metal because of How small the Micro Kernels are.
Hypervisors aren't Called Micro Kernels because They don't Provide all the Services a Kernel Does.
Its SOLE Job is to Run the Virtual Machine Software.
ALL You Know is What You've Been Told. You Memorise and Repeat That, without Understanding.

Ответить
@JihedCh
@JihedCh - 14.05.2024 14:46

+1 for the always sunny in philadelphia soundtracks

Ответить
@luigiprovencher
@luigiprovencher - 12.05.2024 17:51

Does this work on a raspberry pi? Like pi 5?

Ответить
@Bricky2021
@Bricky2021 - 26.02.2024 07:19

Is that even debian you have here?

Ответить
@ruirosado6289
@ruirosado6289 - 03.02.2024 09:34

Hi! Why didn't you create a new initial ramdisk? Did you forget it? I was expecting a "mkinitcpio -p linuxAlex".

Ответить
@piecaruso97
@piecaruso97 - 27.12.2023 04:53

with the fact that i need run many expansion card for various purposes and i often swap them around i think i will just leave everything enabled in the drivers lmao

Ответить
@janmussche6815
@janmussche6815 - 25.12.2023 12:29

You really think somebody can understand this? You race through the process with the speed of a high speed train. Yeah, people who know this already will be able to follow you, but my guess is you want to teach this to people who don't know it yet. Well, you lost me after a few seconds already. Great job.

Ответить
@Jennn
@Jennn - 29.11.2023 18:55

Thank you dear!

Ответить
@Domo22xD
@Domo22xD - 30.10.2023 17:24

wtf is with background music.

Ответить
@anarchy_79
@anarchy_79 - 11.10.2023 15:32

I found the music distracting.

Ответить
@code01100
@code01100 - 08.04.2023 05:26

you spelled downloads wrong

Ответить
@milky3ay566
@milky3ay566 - 25.03.2023 04:54

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

Ответить
@digitalage2010
@digitalage2010 - 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??

Ответить
@kentlisius7675
@kentlisius7675 - 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!

Ответить
@thecastiel69
@thecastiel69 - 04.03.2023 09:32

The Gang Compiles a Kernal

Ответить
@PriestApostate
@PriestApostate - 04.03.2023 04:41

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

Ответить
@muhamadzainimansur9624
@muhamadzainimansur9624 - 16.02.2023 01:25

is it still relevant to be implemented in 2023?

Ответить
@gregcooper8647
@gregcooper8647 - 06.10.2022 20:14

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

Ответить
@sahaskamble4467
@sahaskamble4467 - 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??

Ответить
@vizlodunken4952
@vizlodunken4952 - 02.07.2022 20:18

wow i thought that was the scariest thing

Ответить
@joeleone6276
@joeleone6276 - 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!

Ответить
@PaullyRobots
@PaullyRobots - 08.06.2022 00:54

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

Ответить
@imrank340
@imrank340 - 24.05.2022 12:34

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

Ответить
@erbenton07
@erbenton07 - 23.05.2022 20:34

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

Ответить
@MrDombosfi
@MrDombosfi - 15.05.2022 19:44

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

Ответить
@hoboman342
@hoboman342 - 04.04.2022 18:29

fuck wit da musik homie gentoo 4eva

Ответить
@godnyx117
@godnyx117 - 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.

Ответить
@user-cq8zg1qz8o
@user-cq8zg1qz8o - 20.02.2022 09:14

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

Ответить
@mattaertker4783
@mattaertker4783 - 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-hd4rj
@Bruh-hd4rj - 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.

Ответить
@ejbully
@ejbully - 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.

Ответить
@fotografm
@fotografm - 28.09.2021 08:41

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

Ответить
@QuarKSonTV
@QuarKSonTV - 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.

Ответить
@wheezybackports6444
@wheezybackports6444 - 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_ian3269
@gettriggered_ian3269 - 20.06.2021 03:34

Gentoooooo

Ответить
@daringcuteseal
@daringcuteseal - 19.06.2021 17:52

hhh why am I watching this in 10 PM

Ответить
@alurma
@alurma - 19.06.2021 11:23

Thanks

Ответить
@aaaaaaaaaaaaaaaaaaaaaaaa305
@aaaaaaaaaaaaaaaaaaaaaaaa305 - 18.06.2021 18:18

hi

Ответить
@19440116
@19440116 - 18.06.2021 18:00

Very smart and very quick..

Ответить