Phatikizani Kernel: Kodi mungachitire bwanji pa Debian base Distro?

Phatikizani Kernel: Kodi mungachitire bwanji pa Debian base Distro?

Phatikizani Kernel: Kodi mungachitire bwanji pa Debian base Distro?

Zathu kulowa koyambirirakuyimba "Linux Kernel: Zoyambira za Kernel" timayankha zina zoyambira zanthanthi zofunika za Ma Kernels Ogwiritsa Ntchito, kawirikawiri; ndi Linux ngale, zenizeni.

Ndipo monga tidawonetsera mu izi, mu izi, tikhala tikumaliza zoyambira zanthanthi zofunika ndi ena mfundo zofunika ndi zambiri, kuwonjezera kusonyeza ndondomeko panopa kukwaniritsa "pangani Linux kernel" kuyambira pachiyambi, pa Kugawa kwa Debian GNU/Linux 11 (Bullseye) kapena potengera izo.

Linux Kernel: Zoyambira za Kernel

Linux Kernel: Zoyambira za Kernel

Ndipo, musanayambe kuwerenga izi positi za "panga kernel" Linux Mwambiri, tisiya maulalo ena zolemba zokhudzana nazo m'mbuyomu zowerenga pambuyo pake:

Linux Kernel: Zonse zokhudza kernel ya Free Operating System
Nkhani yowonjezera:
Linux Kernel: Zoyambira za Kernel

kusatetezeka
Nkhani yowonjezera:
Pakadali pano mwezi uno, zofooka zingapo zomwe zapezeka mu Linux kernel zawululidwa kale

Lembani Kernel: Maphunziro Ophatikiza

Lembani Kernel: Maphunziro Ophatikiza

Kodi kupanga pulogalamu kumatanthauza chiyani?

Kwenikweni izi njira yaukadaulo (yomwe imatchedwanso kuyika) zimatengera kukwaniritsa kutembenuza code source ya pulogalamu kapena gawo la mapulogalamu, kuchokera ku gwero lake (chinenero cha pulogalamu chomwe chimagwiritsidwa ntchito kudzilemba chokha) kupita ku a zowerengeka mankhwala (chiyankhulo chapamwamba cha pulogalamu chotanthauzira) ndi kompyuta.

Ndiko kuti, kwaniritsani zanu sinthani kuchokera ku gwero lanu mpaka kukhala a pulogalamu yokhazikika komanso yogwira ntchito, pogwiritsa ntchito a purosesa (pulogalamu yophatikizira) pakusintha chilankhulo chogwiritsa ntchito kukhala ma code a binary ndi mtundu wa msonkhano.

Ndipo zikafika kulitsa ndi kusonkhanitsa mtundu uliwonse wa phukusi, ntchito ndi pulogalamu, zofunika ndi mbadwa, monga Maso za Debian GNU / Linux, maphukusi otsatirawa ndi abwino komanso ofunikira kuti mupeze zabwino maziko othandizira chitukuko, ndipo awa ndi awa:

apt install autoconf automake autotools-dev build-essential dh-make debhelper debmake devscripts dpkg fakeroot file gfortran git gnupg fp-compiler lintian patch pbuilder perl python quilt xutils-dev
Konzani GNU/Linux yanu: Phukusi la Debian kuti mupange mapulogalamu
Nkhani yowonjezera:
Konzani GNU/Linux yanu: Phukusi la Debian kuti mupange mapulogalamu

Ubwino ndi Kuipa Kwa Kupanga Linux Kernel kuchokera ku Scratch

Tikapanga makonda ndikusintha, kuyambira pachiyambi, Kernel yapadera pakompyuta inayake, titha kupeza zotsatirazi:

  • Pezani magwiridwe antchito abwino ndikuchepetsa kugwiritsa ntchito CPU.
  • Pezani kukhathamiritsa bwino komanso kugwiritsa ntchito pang'ono RAM Memory.
  • Limbikitsani kusinthasintha ndi kuyanjana kwa makina ogwiritsira ntchito.
  • Wonjezerani mphamvu ndi zokolola za makina ogwiritsira ntchito.

M'malo mwake, titha kupanga Zoyipa izi:

  • Kulephera kwa ntchito ndi kupezeka za zomwe amafunidwa ndi ntchito pamakompyuta omwe amagwiritsidwa ntchito, chifukwa cha masanjidwe oyipa ndi zovuta zomwe zidachitika pakuphatikiza.
  • Ntchito yokhazikika, yayitali komanso yotopetsa poyamba kuti ipange, ndiyeno mpaka mtsogolo, kuti izizisinthidwa pamanja. Zomwe zimatha kuchoka pa mphindi kupita ku maola, kutengera zida zomwe zimagwiritsidwa ntchito.
  • Maola ambiri ophunzirira ndi mayeso, popeza chidziwitso chapamwamba chikufunika ponse pawiri pazosankha zosintha zomwe zilipo mu Kernel komanso za kompyuta (hardware yomaliza), komwe idzachitikire.

Magulu a Kernel omwe alipo

Magulu a Kernel omwe alipo

Para kupanga kernel, chinthu choyamba chimene tiyenera kudziwa ndi chimene Kernel kusankha. Kuti tichite izi, tiyenera kupita webusaiti yathu wa Kernels, ndi kusankha imodzi mwa magulu omwe alipo. Zomwe ndi izi:

  • Mainline yachitukuko (Mainline): Gululi limaphatikizapo ma Kernels omwe ali mu gawo lachitukuko, chifukwa chake, ali ndi zatsopano ndi ntchito zomwe ziyenera kuyesedwa zisanakhazikitsidwe mu mtundu wokhazikika. Izi zimasungidwa ndikumasulidwa mwachindunji ndi Linus Torvalds, ndipo zimatulutsidwa miyezi 2-3 pafupifupi.
  • Wokhazikika: Gululi limaphatikizapo ma Kernels omwe, atapambana mayeso a chitukuko chachitali, amakhala okhazikika, kotero amangoyenera kuwongolera kudzera mwa woyang'anira wosankhidwa. Komanso, amangokhala ndi zotulutsa zochepa chabe mpaka Mainline yotsatira ikupezeka.
  • Nthawi yayitali: Gululi limaphatikizapo ma Kernels omwe, atapambana mayeso a njira yayitali yachitukuko, amakhala okhazikika, koma amathandizidwa ndi kukonza zolakwika ndi kukonza kwa nthawi yayitali (zaka). Chifukwa chake, kukonza zolakwika zofunika kumagwiritsidwa ntchito, zomwe zimatha kukhala pafupipafupi.

Momwe mungapangire Kernel mu GNU/Linux Debian Bullseye Distro?

Momwe mungapangire Kernel mu GNU/Linux Debian Bullseye Distro?

Posankha mmodzi mtundu wa kernel, patsamba lovomerezeka, ndikudziwa kale (kukopera) yanu download njira kupyolera mwa batani la tarball zomwezo, zimangotsalabe kuchita zotsatirazi, zomwe tikuwonetsa kuchita monga chitsanzo, Mtundu wokhazikika wa Linux kernel 6.0.8:

Gawo 1

cd /usr/src
wget -c https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.0.8.tar.xz
sudo unxz linux-6.0.8.tar.xz
sudo tar xvf linux-6.0.8.tar
sudo ln -s linux-6.0.8 linux
cd /usr/src/linux
sudo make clean && make mrproper
sudo cp /boot/config-`uname -r`* .config
make menuconfig

Kuthamanga lamulo lomalizali kumayambira "Kernel Configuration Menu", kumene mungathe sinthani (kusintha) magawo zomwe mumakonda kapena zomwe mukufuna. Komanso, apa ndikofunikira kuti musaiwale kuti ndikofunikira yang'anani kapena osayang'ana njira ya 64-bit kernelkutengera zomwe zikufunika kapena zofunikira. Komanso, mutapanga zosintha zonse, muyenera dinani Save batani ndiyeno Tulukani batani.

Kernel kasinthidwe menyu

Gawo 2

Pa nthawi iyi pali 2 njira zopezeka kutenga:

Kuyika kernel kokha
sudo make
sudo make modules_install
sudo make install
sudo update-grub; sudo update-grub2; sudo update-initramfs -u
sudo apt clean; sudo apt autoclean; sudo apt autoremove; sudo apt remove; sudo apt purge

Kuyika kwa Kernel ndi kupanga mafayilo a .deb

Kuyika kwa Kernel ndi kupanga mafayilo a .deb

Kuti muchite izi, ndikofunikira kuyika phukusi lotchedwa kernel-phukusi. Chifukwa chake, ndondomekoyi ili motere ndipo imayamba motere:

sudo wget -c http://ftp.us.debian.org/debian/pool/main/k/kernel-package/kernel-package_13.018+nmu1~bpo9+1_all.deb
sudo apt install ./kernel-package_13.018+nmu1~bpo9+1_all.deb
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
cd /usr/src
sudo dpkg -i *.deb

Ngati, panthawi yophatikiza, mumapeza a cholakwika chokhudzana ndi ziphaso za kernel, imakhalabe ngati njira kuti muthe kuchita zotsatirazi lamulani kuti mukonze basi:

sed -i '/CONFIG_SYSTEM_TRUSTED_KEYS/s/^/#/g' .config

Inde, zonse zinatha bwino, zomwe zatsala ndikuyambitsanso kompyuta yathu ndikuyesa momwe makina athu ogwiritsira ntchito amakulira ndi Kernel yatsopano. Monga zikuwonekera kale komanso pambuyo pake, muzithunzi zotsatirazi:

Pamaso pa Kernel Installation

Asanakhazikitsidwe

Pambuyo pa Kernel Installation

Pambuyo unsembe

Nkhani yowonjezera:
Fast Kernel Headers, gulu la zigamba zomwe zimafulumizitsa kuphatikizika kwa kernel ndi 50-80%
Nkhani yowonjezera:
Kerla: kernel yatsopano yolembedwa ku Rust komanso yogwirizana ndi Linux ABI

Kuzungulira: Banner post 2021

Chidule

Mwachidule, tikukhulupirira kuti phunziroli ndilothandiza kwambiri, onse Ogwiritsa ntchito kwambiri monga Opanga Distros kapena Respins. zomwe nthawi zambiri zimafunikira "panga kernel" Ndikufotokozera pa GNU/Linux Operating System yomwe yakhazikitsidwa pano kapena yomwe ikupangidwa kuchokera koyambira, kuti muphatikizepo kuchita bwino komanso kukhathamiritsa pa Hardware inayake. Nthawi zambiri, ndi cholinga chokwaniritsa, a kuchepetsa CPU ndi RAM.

Ngakhale, ngati wina akudziwa njira ina zothandiza kuchita ndondomeko anati kapena kudziwa chilichonse malingaliro, malingaliro kapena kukonza kwa zomwe zaperekedwa apa, ndinu olandiridwa kutero kudzera mu ndemanga. Ndipo inde, mwakonda bukuli, musasiye kuyankhapo ndikugawana ndi ena. Komanso, kumbukirani kupita kwathu «tsamba lakunyumba» kuti muwone zambiri, komanso kujowina njira yathu yovomerezeka ya Telegalamu yochokera ku DesdeLinux, Kumadzulo gulu kuti mumve zambiri pamutu wamasiku ano.


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Khalani oyamba kuyankha

Siyani ndemanga yanu

Anu email sati lofalitsidwa. Amafuna minda amalembedwa ndi *

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.