LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-05-2012, 02:34 PM   #1
beyond
LQ Newbie
 
Registered: Feb 2012
Location: delhi(INDIA)
Distribution: Fedora 16
Posts: 26

Rep: Reputation: Disabled
linux kernel and BIOS --hardware interaction


hello experts,
I am just starting out with writing the bootloader...so I have to use the "traps" given by the embedded bios only like that of 0x10(video) n 0x16(keyboard) etc... so the point is
when the real operating system i.e. linux kernel boots up...how does it ultimately interacts with the hardware???

does it finally use the bios interrupts to communicate with the hardware??
or
it does something else..i mean when i issue an int 0x80 trap in the linux assemly i.e. make a system call..what next happens???


hope, m clear about my point...
 
Old 06-05-2012, 03:03 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
The Linux kernel doesn't use the BIOS, since it has to function on many architectures that don't have a BIOS (in the x86 sense).
 
Old 06-06-2012, 01:22 AM   #3
beyond
LQ Newbie
 
Registered: Feb 2012
Location: delhi(INDIA)
Distribution: Fedora 16
Posts: 26

Original Poster
Rep: Reputation: Disabled
thanks for the reply,,

my reference to BIOS means that any of the BSP sort of thing...like in the embedded devices...
just like the bios which provide with the traps to interacts with the hardware..so are the BSP, they also provide the APIs for the same...
am I right?

so, how does the kernel adjusts itself with so many different architectures and different motherboard setups???
I googled out and gt something like "HAL" ..hardware abstraction layer....
but
I am still not getting the part where the kernel adjusts with all the motherboads out there in the market...i mean normally we simply install the linux, dont care about the board n all for pc...
 
Old 06-06-2012, 02:02 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
The kernel doesn't adapt for any motherboard out there. In fact, the kernel doesn't care about the motherboard at all. The kernel looks for hardware devices it knows, like video chips, sound chips, disk controllers, ... .
These devices can be simply determined using their PCI ID or USB ID.

Last edited by TobiSGD; 06-06-2012 at 08:43 AM.
 
Old 06-06-2012, 07:07 AM   #5
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,401

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
You probably need to spend about a solid week reading all of the documentation in the Linux kernel "arch" directories, and the source-code thereof. Grab the source of an existing loader such as LILO or Grub and systematically read through everything. You're repeating prior work here, not re-inventing it.
 
Old 06-06-2012, 10:52 AM   #6
beyond
LQ Newbie
 
Registered: Feb 2012
Location: delhi(INDIA)
Distribution: Fedora 16
Posts: 26

Original Poster
Rep: Reputation: Disabled
yeah,, sure sir,, i have download the source code of GRUB.."trying" to understand it....
 
Old 06-07-2012, 02:35 AM   #7
resetreset
Senior Member
 
Registered: Mar 2008
Location: India
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,320

Rep: Reputation: 62
OK, I have a big interest in things like this.... beyond, when you issue an int 80, it jumps into the Linux kernel, which will have the code to do whatever that system call does.

I'm in India too, do you want to be friends?
 
Old 06-07-2012, 04:07 AM   #8
beyond
LQ Newbie
 
Registered: Feb 2012
Location: delhi(INDIA)
Distribution: Fedora 16
Posts: 26

Original Poster
Rep: Reputation: Disabled
beyond.hack@gmail.com
my email-id...

@resetreset: I will be very much happy....i will be learning a lot from you, i guess...
hope u don't mine sharing ur id??
I need help regarding some of the bootloader concepts....


Regards
 
Old 06-07-2012, 10:00 AM   #9
resetreset
Senior Member
 
Registered: Mar 2008
Location: India
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,320

Rep: Reputation: 62
I'm sending you an email, read it
 
  


Reply

Tags
bios, hardware interrupts, kernel, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What hardware console/BIOS remote access can be used by Linux software? Skaperen Linux - Hardware 14 05-25-2012 01:30 AM
LXer: Linux: Get Information About Your BIOS / Server Hardware From a Shell Without O LXer Syndicated Linux News 0 01-26-2008 10:50 AM


All times are GMT -5. The time now is 10:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration