LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-21-2020, 05:11 AM   #1
Skeletor2312
LQ Newbie
 
Registered: May 2020
Posts: 1

Rep: Reputation: Disabled
Question Learning linux


Hello, I'm learning linux, I'm at the beginning of this adventure. A bios and then a boot loader is used to switch the computer on then the Ernal takes over my question is why cant the kernel do the bios and boot loaders job
 
Old 05-21-2020, 05:33 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Looks and sounds like homework.
Suggest you research BIOS and boot loader (and kernel). Not really a Linux question.. After all, Windows has a kernel, too.
Wikipedia has useful articles.
 
1 members found this post helpful.
Old 05-21-2020, 07:07 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Skeletor2312 View Post
why cant the kernel do the bios and boot loaders job
Sounds like something to put in a search engine.
Without being an expert in these things, something similar is happening on ARM devices. That's the reason why their operating systems are not portable; each one must be tailored to specific hardware.
Also read up on the history of the PC architecture (IBM PC compatible).
 
Old 05-21-2020, 08:19 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Something has to start the boot process! That's why it's called booting: somehow the computer has to "pull itself up by its own bootlaces".

When you switch your computer on, the Linux kernel is just a file on disk. It will never get loaded and run unless there is something around that doesn't need to be loaded.
 
Old 05-21-2020, 10:37 AM   #5
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
A bios and then a boot loader is used to switch the computer on...
Er, not quite. Check out this description of Bootstrapping

I remember back on the good old days of DEC PDP11 computers having to toggle in a bootstrap program of several commands via toggle switches on the front panel to get the paper tape reader to load in the Absolute loader to access a 2.5Mb (Yup! Megabyte!) RK05 disk cartridge which gave me access to the diagnostics (or a huge fan-fold of paper tape diagnostics! Fun! Used to have to splice them back together of they tore. <sigh>)

You young whipper snappers who have everything held in ROM, PROM, Non volatile memory, etc, are spoiled rotten!

My

Play Bonny!


Last edited by Soadyheid; 05-21-2020 at 07:28 PM. Reason: Wrong disk type and capacity. My memory isn't so good now!
 
Old 05-21-2020, 03:46 PM   #6
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by Soadyheid View Post
I remember back on the good old days of DEC PDP11 computers having to toggle in a bootstrap program of several commands via toggle switches on the front panel to get the paper tape reader to load in the Absolute loader to access a 5Mb (Yup! Megabyte!) RK03 disk cartridge which gave me access to the diagnostics (or a huge fan-fold of paper tape diagnostics! Fun! Used to have to splice them back together of they tore. <sigh>)
What a luxury!
Our RK06 disk was only 2.5 MB (4880 blocks of 512 byes) and we did later create our own bootstrap loader in hardware for that 11/10 PDP (32 KB CORE Memory)- a whopping 37 16-words were available for that!
It was in fact a card with 37X 16 resistors, meaning a "1", you had to cutout those you wanted to be a "0"
So we worked it out complete in assembler first and then cut the right ones out. Was quite a lot better better then having to switch in the whole bootstrap sequence through the front switches, we now only had to set the start address there.
 
Old 05-21-2020, 07:36 PM   #7
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
@ehartman
Quote:
Our RK06 disk was only 2.5 MB
I thought the RK06 was 14Mb, RK07 double that at 28Mb (I managed to get my disk type and size wrong above; RK05 not RK03 - Typo, plus 2.5Mb not 5Mb) Doh! Core memory was great, you could load diagnostics into core memory on your test system, drive to the customer's site and install the core then run the diagnostics in situ!

Play Bonny!

 
Old 05-21-2020, 08:11 PM   #8
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Soadyheid View Post
Er, not quite. Check out this description of Bootstrapping

I remember back on the good old days of DEC PDP11 computers having to toggle in a bootstrap program of several commands via toggle switches on the front panel to get the paper tape reader to load in the Absolute loader to access a 2.5Mb (Yup! Megabyte!) RK05 disk cartridge which gave me access to the diagnostics (or a huge fan-fold of paper tape diagnostics! Fun! Used to have to splice them back together of they tore. <sigh>)

You young whipper snappers who have everything held in ROM, PROM, Non volatile memory, etc, are spoiled rotten!

My

Play Bonny!

I recall having to talk a co-worker through toggling in the bootstrap loader on an 11/34a halfway across the country over the phone after a boot floppy was damaged by a magnetized screwdriver just so he could restore the boot sector of the RL02 disk holding the RT-11 OS... and make a new boot floppy. (Fortunately, it had the programmer's front panel; not all 11s did. Without that we would have been sunk and I'd have been on the next flight with boot media.) On another occasion, I got to toggle in the bootstrap for an RM03 disk to run XXDP+ diagnostics on an 11/70 after moving it and putting is all back together at another site.

Those surely were the days...
 
Old 05-22-2020, 07:37 AM   #9
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Sorry for derailing this thread and turning it into a "Fond memories of DEC PDP11s and how they boot." Lets not even think about VAX 11/780s and the LSI 11 console subsystem which I always thought of as as effectively the VAX "starter motor" Oh! Too late, I DID think of it.

I'm sure this post has now completely confused the OP and has imparted no useful information whatsoever to him/her.

@Skeletor2312
Welcome to Linux Questions by the way, I hope you're not regretting joining this merry band of reprobates!

Get back on track peeps!

Play Bonny!

 
Old 05-22-2020, 08:23 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Surely the point is that mainframes and minicomputers didn't have or need a bios because they were intended to run for weeks, and be rebooted only occasionally by people who knew what they were doing. The first PCs were designed to be booted every day by people who were not professional machine operators, so they really needed to be self-starting. Hence the point of having a tiny program on a chip of ROM that would be loaded and run automatically when someone switched the computer on.
 
  


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
LXer: From e-learning to m-learning: Open education's next move LXer Syndicated Linux News 0 07-30-2019 05:13 PM
LXer: Machine Learning, Deep Learning 101 LXer Syndicated Linux News 0 07-20-2016 11:00 AM
Coding bootcamp learning platform and privacy issues with online learning. Need Advice ! slothbin Programming 2 04-01-2016 08:33 AM
[SOLVED] RHCSA learning... RHEL6 or CENT OS for learning shejin983 Linux - Server 4 10-27-2012 09:16 AM
E-learning learning, VLS want to help other learn? scheidel21 General 0 04-06-2010 11:19 AM

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

All times are GMT -5. The time now is 04:09 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