LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2021, 09:52 AM   #16
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,306
Blog Entries: 3

Rep: Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720

Quote:
Originally Posted by hazel View Post
It must be able to run programs on top of itself without relinquishing control.
UEFI can run its own programs, see #7 above. Granted it is not a general-purpose operating system.
 
Old 10-06-2021, 11:17 AM   #17
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
Quote:
Originally Posted by Turbocapitalist View Post
UEFI can run its own programs, see #7 above.
Last two links in #7 have the same href - I guess last one supposed to be this PDF: https://uefi.org/sites/default/files..._Shell_2_2.pdf ?


Perhaps the answer to "is UEFI an OS" should be along the lines of: under some technical definitions, yes, but it does not call itself one and is never what people mean when they ask "can you boot an OS?".

It might help if xcom2021 can expand further on what they are trying to figure out - what is prompting these questions to be asked?

 
1 members found this post helpful.
Old 10-06-2021, 11:30 AM   #18
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hello xcom2021,

Lots of answers already to this question, but here's how I see it.

BIOS (Basic Input Output System) was software resident in ROM that basically served to initialize different components of the hardware so that other software (operating system and eventually applications ... ) could be launched. It being resident in ROM and delivered already installed on most computers, we call this class of software "firmware".

UEFI (Unified Extended Firmware Interface), as others have said, is the more recent evolution of the firmware most computers are now delivered with. Along with the same functions the old BIOS firmware took care of, it offers an interactive (to a point ...) shell that supports a set of commands. It can also be configured (in most cases) to function as a boot-loader for UEFI-aware operating systems, negating the need for specific 3rd party software for this (e.g. GRUB, Syslinux, Gummiboot, rEFInd, etc. ...).

So, I wouldn't call UEFI an operating system - that would needlessly confuse matters. As others have mentioned, UEFI is more complex than BIOS was and the benefits are hotly debated ... All this said, better get used to it as few, if any, current computers are shipped with anything else.

Hope this and other comments here are useful to you.

I am, as with pan64, curious as to what your desired use of your new computer is ? Are you interested in setting it up with some version of Linux ? If so, we can certainly help you there if you'd like. If you're more interested in Windows or another OS, then we will probably point you in the direction of another set of forums.

Let us know - Cheers !

Rick
 
Old 10-06-2021, 06:49 PM   #19
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
bottom-up: it's all just cpu instructions.

Quote:
The VAX-11/780 included a subordinate stand-alone LSI-11 computer that performed booting and diagnostic functions for the parent computer.
http://drhart.ucoz.com/index/digital/0-117 &Wikipedia VAX

Quote:
The OpenBoot PROM (OBP) is firmware used on Sun SPARC and Apple computers to handle boot and devices (instead of a BIOS). It is very powerful, and contains a Forth interpreter.
https://www.brendangregg.com/Sun/obp.html

When I first encountered computers (1969 1st BSEE class: Fortran; punched-cards on CDC-3300), I found the compiler 'JCL' option to print out the assembly (&machine) code for my programs.

OP could look for source code for EFI. I'd also look in VirtualBox source code! (I've played with Vbox UEFI VM option)

Here (&others) someone writes a 'MBR' 'Hello World' program: http://learnitonweb.com/2019/10/26/2...nd-hello-world

Bottoms UP!

Last edited by GentleThotSeaMonkey; 10-07-2021 at 11:26 PM.
 
Old 10-06-2021, 07:04 PM   #20
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by hazel View Post
I think that to count as an OS, a system must do more than manage hardware. It must be able to run programs on top of itself without relinquishing control. Neither UEFI nor BIOS can do that.
Well, if it can run a shell, then..
 
Old 10-06-2021, 08:04 PM   #21
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,698

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
Well, if it can run a shell, then..
There are many embedded devices that run a "shell" that are not. One example are Cisco managed switches which uses a serial port console.
 
Old 10-06-2021, 08:28 PM   #22
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
It is more of a return to what was done a long time ago. The PC world had a burned chip to boot it. Almost every computer larger than pc had code on a device to boot it. They all had more options usually much like efi/uefi. Since it came from HP originally I'd suspect it to be from their commercial boot OS maybe somewhat similar to unix but all a very compressed basic code.

https://uefi.org/sites/default/files...2014_Final.pdf

There are a lot of features that a uefi boot could do that have never been implemented.

Last edited by jefro; 10-06-2021 at 08:32 PM.
 
Old 10-07-2021, 04:02 AM   #23
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
I can still remember booting the BRE Library Prime minicomputer. It had a row of switches along the front, which allowed you to input binary commands. To boot it, you set the switches into a specific pattern and pressed a button to read it in. This instruction caused the cpu to read more code in from somewhere else. Ultimately of course it read in the first sector of the primary disk, but there may have been an intermediate set of instructions on a ROM chip somewhere.
 
Old 10-07-2021, 08:34 AM   #24
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
There are actually many layers of "firmware." The original BIOS program has certainly "grown up" and taken on many other responsibilities – particularly including the task of offering a credible defense against industrial spies who had direct access to the hardware: it's no longer just a matter of sticking a memory-stick into a USB port and hitting "reset." UEFI has grown to the point that it actually needs a "shell" to let you control it.

Now, let me digress ...

Even in the very earliest days, there was always the problem of "IPL = Initial Program Load." Very quickly, engineers decided to put programming in ROM which the CPU would then initially execute, so that "initial" ceased to be a special case that otherwise required one-time-use hardware complexity. If necessary, this ROM could then be "permanently switched off" so that the corresponding memory-address area would then be replaced by RAM.

For many years, CPUs and microprocessors have used yet-another layer of software, known as "microcode." This is a layer of "software" which tells the CPU how to execute individual instructions. It also now directs the "parallelization and pipelining" features of all modern CPUs. Yeah, you never dreamed that "an over-glorified grain of sand, smaller than your pinky fingernail," could ever get that smart.

Last edited by sundialsvcs; 10-07-2021 at 08:39 AM.
 
1 members found this post helpful.
  


Reply



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
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
[SOLVED] Can't find /boot/efi/EFI/Slackware/vmlinuz kernel configuration ironQiu Slackware 4 02-09-2015 06:21 AM
boot efi disk with without a non-efi bios pc... masavini Programming 1 11-12-2013 08:48 PM
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration