Gentoo Linux Kernel Konfigrasyonu Nasıl Yapılır?

404631

Hectopat
Katılım
24 Aralık 2020
Mesajlar
3.100
Makaleler
1
Çözümler
30
Şu an kernel Config dosyasına geldim. Burada General setup gibi seçenekler var. Ne yapmalıyım?
@gen2 hocam, yardım edebilir misiniz?
 
Son düzenleyen: Moderatör:
Ubuntu berbat. Hem logosu hem kendisi. O ismi duyunca bile irkiliyorum.
@175920 @gen2
Hocam acil yardımınıza ihtiyacım var. Ben şimdi manual kernel konfigrasyonu yaptım ve opsiyonel aşamaya geldim:

Optional: Building an initramfs​

Yapmalımıyım?
Onu yapman lazim. genkernel initramfs olmasi lazim komutun.

Evet, oyle. SImdi tazeledim Initramfs'i.
 

Optional: Building an initramfs​

In certain cases it is necessary to build an initramfs - an initial ram-based file system. The most common reason is when important file system locations (like /usr/ or /var/) are on separate partitions. With an initramfs, these partitions can be mounted using the tools available inside the initramfs.

Without an initramfs, there is a huge risk that the system will not boot up properly as the tools that are responsible for mounting the file systems need information that resides on those file systems. An initramfs will pull in the necessary files into an archive which is used right after the kernel boots, but before the control is handed over to the init tool. Scripts on the initramfs will then make sure that the partitions are properly mounted before the system continues booting.

Important
If using genkernel, it should be used for both building kernel and initramfs. When using genkernel only for generating an initramfs, it is crucial to pass --kernel-config=/path/to/kernel.config to genkernel or the generated initramfs may not work with a manually built kernel. Note that manually built kernels go beyond the scope of support for the handbook.
To install an initramfs, install sys-kernel/genkernel first, then have it generate an initramfs:

root #emerge --ask sys-kernel/genkernel

root #genkernel --install --kernel-config=/path/to/used/kernel.config initramfs
In order to enable specific support in the initramfs, such as LVM or RAID, add in the appropriate options to genkernel. See genkernel --help for more information. In the next example support is enabled for LVM and software RAID (mdadm):

root #genkernel --lvm --mdadm --install --kernel-config=/path/to/used/kernel.config initramfs
The initramfs will be stored in /boot/. The resulting file can be found by simply listing the files starting with initramfs:

root #ls /boot/initramfs*
Now continue with Kernel modules.
@175920
genkernel --install --kernel-config=/path/to/used/kernel.config initramfs
Bun ne peki hocam? Arguments var burada.

Hocam yemin ederim iyiki tavsiyenize uyup handbooktan ilerlemişim. Videoda olmayan bir sürü şey var burada.
 

Optional: Building an initramfs​

In certain cases it is necessary to build an initramfs - an initial ram-based file system. The most common reason is when important file system locations (like /usr/ or /var/) are on separate partitions. With an initramfs, these partitions can be mounted using the tools available inside the initramfs.

Without an initramfs, there is a huge risk that the system will not boot up properly as the tools that are responsible for mounting the file systems need information that resides on those file systems. An initramfs will pull in the necessary files into an archive which is used right after the kernel boots, but before the control is handed over to the init tool. Scripts on the initramfs will then make sure that the partitions are properly mounted before the system continues booting.

Important
If using genkernel, it should be used for both building kernel and initramfs. When using genkernel only for generating an initramfs, it is crucial to pass --kernel-config=/path/to/kernel.config to genkernel or the generated initramfs may not work with a manually built kernel. Note that manually built kernels go beyond the scope of support for the handbook.
To install an initramfs, install sys-kernel/genkernel first, then have it generate an initramfs:

root #emerge --ask sys-kernel/genkernel

root #genkernel --install --kernel-config=/path/to/used/kernel.config initramfs
In order to enable specific support in the initramfs, such as LVM or RAID, add in the appropriate options to genkernel. See genkernel --help for more information. In the next example support is enabled for LVM and software RAID (mdadm):

root #genkernel --lvm --mdadm --install --kernel-config=/path/to/used/kernel.config initramfs
The initramfs will be stored in /boot/. The resulting file can be found by simply listing the files starting with initramfs:

root #ls /boot/initramfs*
Now continue with Kernel modules.
@175920
genkernel --install --kernel-config=/path/to/used/kernel.config initramfs
Bun ne peki hocam? Arguments var burada.

Hocam yemin ederim iyiki tavsiyenize uyup handbooktan ilerlemişim. Videoda olmayan bir sürü şey var burada.
Oradaki ornek komut Kernel Config'ine gore Kernel da build ediyor galiba. Bir deneyeyim senin icin :)
Screenshot_2021-12-17_18-52-10.png

En son Genkernel kullanmistim bozunca kerneli sonraki guncellemeye kadar oyle yapacaktim o yuzden config dosyam yok. Sende ozellestirdigin kernel ile build edip initramfs de olusturacaktir, yani o menuconfig ile yapip kaydettigin ayari kullanip kerneli derleyecek ve initramfs olusturacak bu komut basitce.

TL;DR:
Menuconfig ile yapip kaydettigin ayari kullanip kerneli derleyecek ve initramfs olusturacak bu komut.
 
@175920 Argument custom kernel için değil mi hocam?
Bir de peki bu Gentoo Nvidia driver kuruyor mu? Yani kurduktan sonra görüntü alabilir miyim? Ayrıca Desktop Environment kurmam gerekiyor değil mi sonra?
 
@175920 Argument custom kernel için değil mi hocam?
Bir de peki bu Gentoo Nvidia driver kuruyor mu? Yani kurduktan sonra görüntü alabilir miyim? Ayrıca Desktop Environment kurmam gerekiyor değil mi sonra?
Orasi Custom kernel icin hepsini derlemek istiyorsan genkernel all cekmen gerek o da zaten otomatik Initramfs yapiyor. 'Bu Gentoo'da NVIDIA surucusu var, Optimus iskencesi cektigim laptopimda sorunsuz kullaniyorum ama ACCEPT_LICENSES degerini degistirmen lazim Proprietary bir yazilim oldugundan. VIDEO_CARDS degiskenini VIDEO_CARDS="nvidia" yaparsan ve sonra xorg-server gibi paketleri kurarsan senin icin otomatik indirecektir suruculeri.

DE veya WM kullanabilirsin ozgursun. Ancak bunlari derleyecegin icin KDE falan mesela uzun sure alabilir islemcine gore. Ben olsam WM kullanirdim ama ben tam tesekkullu bir DE istiyorum diyorsan tercih senin.
 
genkernel --install --kernel-config=/path/to/used/kernel.config initramfs
Hocam burada /path/to/used/kernel.config kısmı değiştirilmeli mi böyle mi kalmalı?
 
Evet menuconfig ile yaptım sonra kaydettim ve şu komutu verdim:
make && make modules_install
Anladim dostum. Yapman gereken o /path/to/config kismini config dosyana uyarlaman. Default olarak: /usr/src/linux/.config dosyasi olmasi gerek, dosyayi bulamazsa da /usr/src/linux/config denersin.

Ayrica komut make && make modules_install && make install olmali ama genkernel senin icin yapacaktir.
 

Technopat Haberler

Yeni konular

Geri
Yukarı