TODAY -

Kernel corner: Don't be a hypocrite with the Linux kernel

sinuxs *



I hear you say, "what the heck is this article?". Yes, I'm pretty serious with the title of this article. Please don't be a hypocrite with the Linux kernel especially if you really don't (and not intended to) know how it's working inside.

When the kernel is open source and people are not serious to go along with the source code and playing with the beautiful beast inside it and enjoy the junkies of all these, it's of no use to play hypocrisy by simply saying that Linux is open-source and I gotta install it (or have?) N number of times or whatever.

It is really a hypocrisy (seriously) when you couldn't walkthrough the kernel even a single source file (or assembly) and claiming and endorsing that Linux kernel is open-source and it ought to be a serious threat to Microsoft and alike and dot dot dot etc.

Linux kernel is open and free especially for hackers (or people who've a tendency to learn it) and *NOT* for people who couldn't have the stamina to look into under its hoods. What use(and meaningful) is the word *OPEN* when you cannot actually open and see it inside! That is the definition of *CLOSE* instead (unfortunately :-().

The kernel is fanatically an interesting field where, once you're inside it, you never know where your code flow is coming from and going to. Oftentimes, people use to say UNIX is the masterpiece software of this century ever created by mankind.

I, personally, don't appreciate this and various ideas of UNIX philosophy like, 'Everything is a File' etc. Rather, I\'m interested with the ways the ideas are implemented beautifully by pushing you eventually inside the code like a Matrix code glowing you around with those interwinded algorithms and data structures.

Jesus! this is heaven. I truly believe, this is one way to reach the heaven. Let's try to see whether we reach heaven or hell. You're booting your system up. The _POWER_SIGNAL_ goes to the Motherboard (if you don't have any problem with your Power supply) and ignites the M! otherboa rd chips (like North bridge, South Bridge, CMOS/RTC, Timer chips, SCSI drives/adapters, Super I/O, USB controller etc) and finally loading the processor registers that actually points to the first address of BIOS.

The BIOS checks and validates your available necesary hardwares (Memory, Video, I/O devices), populates the IVT(Interrupt vector table storing various drivers handlers) and ultimately load your kernel. The kernel image is in compress image(BZImage) having the GZIP decompression alogorithm at the start of it. The real mode initialization of the kernel takes place and finally it decompresses its image by jumping into the GZIP algorithm part and start loading to the first 1MB of the physical memory.

Whew!!! this is getting the heck out of me. See... we're seeing what is going under the hood when you're booting the machine. This is a lifetime opportunity we're getting such an open source code that we walkthrough and see the lines of what it's doing. Microsoft never ever given such a golden opportunity! Bingo! I shoot at the feets of Microsoft!

Oh, yeah, the kernel code is in real mode. In real mode it will do all necessary preapration so that it will jump to the protected mode. This peroid involves the setting up of important Intel architecure data structures like GDT, IDT IDT etc. You need to fill up all the entries of IDT - Exceptions (Fault/Trap/Abort) and Interrupts, otherwise, a message 'Unknown Inteerupts' will be displayed out. Fine. Then the kernel will set up the paging directory and initial page tables.

When all protected mode preparation are done, it'll jump to the protected mode by setting bits on CR0 processor register. Once the kernel is in protected mode, it'll initialize all kernel data structures one by one. It will replace all the 16 bit drivers of BIOS with the 32 bit ones. All the necessary device drivers intialization entry points will be called so the the physical devices and their drivers will be registered with the kernel.

The device driver faciliates two important fu! nctions - provide interfaces with the application through system calls AND interfaces with the device controller through Interrupts handlers. If you want to scratch a new device driver with the Linus kenel tree, you need to shoot a mail to him becasue he has frozen all the good device driver numbers. ha ha ha.

Oh, I've missed one important thing - the heartbeat of the kernel, the Timer chip setting. The kernel will calibrate the timer frequency and accordingly will interrupt for every HZ defined on it. Then the kernel will eventually initialzes all the manager - the memory manager, the process manager, the file manager, the I/O manager, the network manager etc.

The intial phase of the memory manager is the bootmem allocator. It's a simple first-fit memory management algorithm. Before, the kernel starts your main Buddy allocator, the bootmem allocator will be started. It basicaly marks all the reserved pages (noted by the BIOS functions like int 0xe820, int 0xe8201, int 0x88h) and usable pages.

And once the main memory manager is started, it'll copied all the data from the bootmem allocator and kill it sadistically. And when all the managers are in wheel, the kernel will fork off the first process - the init process and the rest is the history. If you're tempted to know in detail the above situation, at the minimal (with no guarantee) following understanding are in order:-
- Intel x86 architecture
- GNU assembly language
- Extended GNU inline assembly
- PC hardware (RTC/CMOS, Timer, 8259A/IOAPIC, DMA controller, North bridge/southbridge, Disk geometry,Video RAM/ROM, BIOS etc)
- BIOS booting phase
- Linux Loader (GRUB) code.
- Real mode/ protected mode Kernel context.
- Bash Scripts
- what else???


If you do not want to know these and no intention to learn them, please stop endorsing about Linux kernel. Because when we speak of Linux, it basically refers to the kernel, per Linus, and hence saying and endorsing something without experiencing/knowing/ enjoying them is fanatically a humiliation to the creator and developers of it.

Linus will laugh flat to the floor at this kind of hypocrisy. The kernel is a heaven. The kernel patch is written for every hour. Enjoy the bliss of this beautiful beast before it\'s too bloated and difficult to control with. The 2.4 version, per me, is the right version to start with.

I suggest the 2.4 version because it\'s the history of the 2.6 current version. Unless we know the history of a thing, how would we appreciate the beauty of its creation? Welcome to the real paradise!!!

Sign off,
[A kernel junky]


* sinuxs (A pseudonym and a "kernel junky" ) contributes to e-pao.net regularly. The writer can be contacted at sinuxs(at)yahoo(dot)com
This article was webcasted on October 12th, 2009.




* Comments posted by users in this discussion thread and other parts of this site are opinions of the individuals posting them (whose user ID is displayed alongside) and not the views of e-pao.net. We strongly recommend that users exercise responsibility, sensitivity and caution over language while writing your opinions which will be seen and read by other users. Please read a complete Guideline on using comments on this website.




LATEST IN E-PAO.NET
  • Scientist of Manipur: Amom Ruhikanta
  • Violence in Manipur 2023-2024 : Timeline
  • Conspiracy, thy name is Kuki !
  • "ST status for Meetei" at Thounaojam
  • Ket Meth New Album "Ghost Stories"
  • World Hypertension Day
  • International Day of Families
  • Let the rule of law prevail
  • When donation becomes obligatory demand
  • Tourism of Manipur through Gastronomy
  • Beyond Eternity :: Poem
  • Patriarch subjugation on women
  • Celebrate Manipuri Cinema shine at Cannes
  • Training on cultivation of various mushroom
  • Transformative impact of Ayurveda & Yoga
  • War for over a year : Delhi is answerable
  • The logic behind illogical chargesheet
  • Preserving Thang-Ta :: Rare Photos
  • Regarding Human Rights Situation in Manipur
  • World Hypertension Day 2024
  • Article 355 of Constitution of India #3
  • Disinformation campaign touba thengnarey
  • Deeply mourn the demise of Oja Biren Lamba
  • Water Mimosa for sustainable development
  • Publicity drives of educational institutions
  • ED's revolutionary move!!!
  • Malemnganbi Laishram : Science Topper
  • Featured Front Page Photo 2024 #2: Gallery
  • Thokchom Sheityajit : Arts Topper
  • Aiena Naorem : Commerce Topper
  • AISSE 2024 Exam Result- RKM Imphal
  • Gold, new world currency !
  • Milk for hair and skin
  • Of illegal immigrants & the larger picture
  • The missive from Kamjong
  • Hr Secondary Exam 2024 : Science Topper
  • HSE 2024 : Subject Pass Percentage
  • HSE 2024 : District Pass Percentage
  • HSE 2024 : Candidates with Highest Marks
  • Hr Secondary Exam 2024: Science Full Result
  • Hr Secondary Exam 2024: Arts Full Result
  • Hr Secondary Exam 2024: Commerce Result
  • Hr Secondary Exam 2024 : Arts Topper
  • Hr Secondary Exam 2024 : Commerce Topper
  • Sezo Ringa- Debut Music Video "Revival"
  • Journalism - A thrilling career #2
  • After Class XII where? The eternal question
  • Entry of Arvind Kejriwal
  • Birth Centenary of Jananeta Irabat, 1996 : #1
  • Our nurses, our future: Power of care
  • Screenplay Writing course concluded
  • Workshop on IP & Patent Filing held
  • Let there be less Politics in Sports
  • Sam Pitroda is absolutely white
  • Motherhood: Soul & spirit of family & society
  • Time has come to criminalise ecocide
  • Meiteis, a disappearing community in Manipur
  • World Bamboo Congress @Taiwan : Gallery
  • Ima Manipur should smile more
  • 2nd National Lok Adalat at High Court
  • The Power of Poppy - 30 :: Poem
  • Army impact on Tamphasana Wushu odyssey
  • Aftermath of ferocious hailstorm #1 : Gallery
  • "Dynamic library service" :: Book Rvw
  • Radio E-pao: Manipuri Film OST (130+ song)
  • Artificial Intelligence & Environment
  • Article 355 of Constitution of India #2
  • Integrated Farming Systems for farmers #4
  • Delhi's stand after 1 year of clash
  • A new type of terrorism
  • Scientist of Manipur: Waikhom Vishwanath
  • SRF, JRF, RA @ Assam University
  • The Bleeding River :: Poem
  • Executive Meeting of WMC Assam Unit
  • Journalism - A thrilling career #1
  • Raising the call to replace Minister
  • A storm in a political teacup
  • Cheirao-chingkaba @ Chinga : Gallery
  • Happy Mother's Day
  • Empowering hill communities via U-Mangra
  • African Swine Fever
  • Free Training on Mushroom at Nagamapal
  • Harshit Dhingaun recieves award from Korea
  • Look for ways to restore normalcy
  • The danger of last kicks of a dying horse
  • Preserving Thang-Ta traditions
  • Resolving ST issue by democratic process
  • Top 5 songs to awaken your inner patriot
  • Project Assistant @ Manipur University
  • Leishemba Sanajaoba conferred Doctorate
  • Double tragedy: No time for red-tapism
  • A Youtuber called Dhruv
  • Nupi Landa Thaunaphabishing : Full Book
  • 174th Anniv Maharaj Narasingh #2 : Gallery
  • Challenges in Healthcare in rural Manipur
  • A salute to leadership quality of PM Modi
  • Career in press for freedom of expression
  • One day after devastating hailstorm
  • Understanding the suffering of others
  • A ferocious hailstorm @Imphal : Gallery
  • Article 355 of Constitution of India #1
  • Integrated Farming Systems for farmers #3
  • Election gossip & rumours
  • 'Melodic Minds' Tour in Guwahati
  • Leaving a trail of destruction
  • Political see-saw
  • A brand-new Scientific discovery
  • In memoriam of the happiness we shared !
  • Crop/animal for higher productivity in NE #5
  • "ST status for Meetei" at Sekmaijin
  • Oh Motherland :: Poem
  • Animal life should be treated with dignity
  • '365 Days of Chin-Kuki Aggression' : Gallery
  • Renaissance of politics in our youth
  • TB & tobacco co-epidemics in Indonesia
  • The Power of Poppy - 29 :: Poem
  • Advanced Charging Infrastructure in NE
  • Lessons learnt in the last one year
  • True colour of politics
  • World Heritage Day @ MU : Gallery
  • "ST status for Meetei" at Kakwa
  • Joint Combing Operations in Jiribam
  • Reboot PSUs for jobs: Task for new Govt
  • Ayurvedic remedies to keep healthy eyes
  • May 3, 2023 to May 3, 2024
  • One year of crisis, and what next ?
  • Scientist of Manipur: Nongmaithem Rajmuhon
  • Whither social justice & work for women?
  • Taiwan to enhancing economic ties with India
  • Integrated Farming Systems for farmers #2
  • Athoubasingi Numit #2 : Gallery
  • Privilege trap of While Male Meitei
  • Crop/animal for higher productivity in NE #4
  • 'Chizami Model' working in Gujarat ?
  • Racing towards the one year mark
  • On misattribution & falsifying history
  • Nupi Landa Thaunaphabishing #15 :: Book
  • May Calendar for Year 2024 : Tools
  • 12th World Bamboo Congress at Taiwan
  • Complex dance of democracy in Manipur
  • "ST status for Meetei" at Pangaltabi
  • Integrated Farming Systems for farmers #1
  • Showing ugly face of muscle power
  • Spare the rod, spoil the monster
  • Descent of Radha-Krishna #31: Download
  • Socio-Historical analysis on Ethnic Conflict
  • "ST status for Meetei" at Langmeidong
  • Ngangbam Dipapati- Gold @European Cup
  • Crop/animal for higher productivity in NE #3
  • Fresh surge in violence
  • The real culprit
  • National Science Teacher workshop
  • Livelihood Disaster in Mapithel Region
  • Condemns Killing of CRPF Personnel
  • "ST status for Meetei" at Manipur College
  • Huidrom Oliviya: Silver @Cadet European Cup
  • Election: Runner-up may spoil the joy
  • Scientists of Manipur : Laishram Ladu Singh
  • Imphal Ring Road Project to Transform
  • Crop/animal for higher productivity in NE #2
  • The Power of Poppy - 28 :: Poem
  • Condemned unabated illegal taxation
  • Watermelon : Super nutritious summer fruit
  • People have spoken, Manipur has voted
  • Skirting around core issues
  • Lok Sabha polls in Manipur #2 : Gallery
  • The Taj Mahal that bans Lovers !
  • Importance of bees !
  • Massive hailstorm in Jiribam
  • The messiah of hapless children
  • Attack on fuel tankers & blasting bridge
  • Blame it on Meetei
  • The Happiness Code : Download
  • NH-2 Bridge bombed @Sapermeina : Gallery
  • Crop/animal for higher productivity in NE #1
  • Training Programme under SPARK concluded
  • Why environment control is so difficult
  • 4th Foundation Day- Young Minds Collective
  • All set for second phase poll
  • The Nongsaba phenomenon
  • Khongjom Day @Khebaching #1 : Gallery
  • India's responsibility to end Manipur violence
  • Migrant worker could access TB services only
  • Importance of reading magazines as student
  • SHG pioneering agricultural innovation
  • Nearing the one year mark
  • The enemy within
  • Id-ul-Fitr @Hatta #2 : Gallery
  • Workshop @ NSU Manipur : Gallery
  • 15th Manipur State Film Awards 2023
  • "ST status for Meetei" at Panthoibi Shanglen
  • GSDP doubles, health shines
  • Vote has been cast, repoll held
  • Two faces of democracy
  • Laurels for Scientist Ngangkham Nimai
  • Crime against women in Manipur
  • "ST status for Meetei" at Sugnu
  • Creativity & innovation for vibrant career
  • 4th Foundation Day of YMC
  • Racing towards one year mark
  • Prophetic words, indeed
  • Nupi Landa Thaunaphabishing #14 :: Book
  • 174th Anniv Maharaj Narasingh #1 : Gallery
  • Ensuring Fair Voting in Hills of Manipur
  • Dr Irengbam Mohendra's latest book :: Rvw
  • NDA has the advantage in both
  • Lok Sabha polls in Manipur #1 : Gallery
  • L Rup's Robot 'Kangleinganbi' in Manipuri
  • Art- means of connecting hearts in Manipur
  • Is it Living Alive or Living Death ? :: Poem
  • Rabies - A preventable zoonotic disease
  • April 19, 2024: The blackest day of all
  • Ugly turns on voting day
  • Children Camp @JNMDA Imphal #2 : Gallery
  • The chasm between TB & HIV continues
  • Parliament and its Members
  • Kimchi for health and glowing skin
  • LS election with a difference
  • To vote, or not to vote ?
  • Sajibu Cheiraoba Chak Katpa #2 : Gallery
  • Scientists of Manipur : Laitonjam Warjeet
  • Community seed bank @Umathel : Gallery
  • Saving Manipur
  • Sajibu Cheiraoba: 1 occasion, 2 narratives #2
  • Athoubasingi Numit #1 : Gallery
  • Id-ul-Fitr @Hatta #1 : Gallery
  • 80th Anniv- Battle of Kanglatongbi @UK
  • Hun - Thadou Cultural Festival : Gallery
  • Scientists of Manipur : Ngangkham Nimai
  • Sajibu Cheiraoba Chak Katpa #1 : Gallery
  • Beating of the Retreat #1 : Gallery
  • Kenedy Khuman (Singer) : Gallery
  • Students @ Class X Exam : Gallery
  • Save Manipur : Protest [Feb 15] #3 : Gallery
  • GHOST of PEACE :: Download Booklet
  • List of Kings of Manipur: 33 - 1984 AD