Hi,
We know that each OS has it's own installer which takes care of installation process. The first step in any installation process is detecting the system platform architecture and hardwares such as CPU, RAM, VGA, Mouse, Keyboard, Hard Disk,... so it can act based on system configuration and do a clean install, now my question is: "How an installer can do this for the first time?".
I another word: "How lspci/hwinfo/prtconf/kudzu/... can gather those amount of information about hardwares?" (Yes! all of these commands will read some files for gathering those informations! but I need to know who and how created those files)
P.S:
1- Note that, if we have a binary which compiled for a X86 architecture then it won't work on a Sparc system!
2- OpenSolaris can do that!
Thanks you