Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gowthamreddysomala/linux-custom-kernal


https://github.com/gowthamreddysomala/linux-custom-kernal

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Linux-Custom-Kernal

Author : Gowtham Reddy


Instructions For Buidling Your Custom Kernal


Notice : This Kernal Was Build on Linux 6.7.2

you can use wget in terminal with the link on Download button;

example : wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.7.2.tar.xz

extract the kernal using : tar xvf Kernal6.x.x,tar.xz

this will take some time to extract the kernal

get into that Directory using cd

by default the .config file will not be there we need to make the one to customize the kernal.

NOTE - the .config file contains the useful information to compile to what and what not to compile.

use this command to make a config file :
make menuconfig -j8

^ ^

| |________________________

make GUI config selection |

to select whats needed |

|

|

the total no of

cores to run on

specific process

(this is flag)

now you can see the lot of things that you need and not needed to the laptop or to the computer (you can customize the required stuff)





-------------------------------------------------------------------------- start of customization ---------------------------------------------------------------------------------------

Tips :



1) for faster boot times use

Kernal compression to ZSTD only.



2)Disable POSTX Message Queues



3)we can also disable Auditing Suppport



4)Disable All Except ZSTD in initial RAM F]filesystem and Ram disk support





5)configure Standard Kernal Features

5)processor type and features

->Disable AMD Stuff if you Have intel or do Vice Versa

->under Processor family select intel core 2 / newer Zeon



-> maximun no of cpu's (Enter no of threads you own in your pc)

-> Disable 5 - level page table Support





6) Power management and ACPI Options:

->change performance governer as needed


7)Virtualization is needed if you want to run virtual machines



8)Enable the Block Layer

->Disable Block Layer Debugging(useful for kernal dev's - Bloat)



9)in network read carefully and select



10 ) Device Drivers



->Disable PCCard

-> Enable all in NVME Support (cuz i use NVME)

-->in SCSI Enable Asynchronous SCSI Scanning

-->Disable RAID and LVM

-->Disable MAcintosh DeviceDrivers

-->Network Device Support

->disable usb network adapters

->Disable network console logging support

->Enable Wireguard secure network tunnel (if u use VPN)

-->Input Device Support

->Disable Touch Screen,Miscellinous Device ,Tablets

->Enable Multi media Suppot

-->Graphics Support

-> Reduce maximum number of GPU's to 2

->Enable laptop Hybrid Grapics



-->Sound Card Support

->Advanced Linux Sound Architecture

->PCI Sound Devices

->Enable all intel Stuff

-->Disable Accessablity Support

-->Enable X86 Platform Specific Drivers

-->Enable intel Turbo Boost Max

-->if you find your laptop brand stuff enable them.





-->Disable Microsoft Surface Platform Stuff

--> android

-->enable All



11) File System

-->Disbale Network file system






----------------------------------------------------------------------------------------- End Of Customization ---------------------------------------------------------------------------


save The Customized options and Exit .





Time To Compile The Kernal That We Built !!



___________________________________________



use this Commands to compile : make -j8 && sudo make modules_install -j8



it Take's Some Time To Compile ..




backup the old kernal file and Repalce it with new one

you can find your current Kernal in /boot/vmlinux-linux



vmlinuz-linux is the kernal


copy the kernal to /boot



ex : sudo cp arch/x86/boot/bzimage /boot/vmlinuz-linuxgowtham



Reconfigre the boot loader



sudo grub-mkconfig-o /boot/grub/grub.cfg



Its Done !!


Thanks To :




No One !


This is my effort !


But this is Completly Legal .


XMR Wallet Address: 47WDZLhN3VHbvfYqbuMLo4XNt5C4Ehtfbc3krR2RnCx3Wb9FaCRxh5h4oTCa3KW2UgRU9koxudbTr7wQxFe45maRAfogQSq




ThankYou..