Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dcore:system_start_and_boot-codes [2016/01/06 07:26] – [Starting X: '~/.xinitrc'] sm8ps | dcore:system_start_and_boot-codes [2017/09/25 06:49] (current) – [Check boot-parameters] sm8ps | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Boot-Process and -codes====== | + | ====== |
- | Let's study the boot process | + | An indepth review of the boot process, including |
+ | ===== Suggested Readings ===== | ||
+ | Although primarily related to Tiny Core, The following resources contain excellent material to help understand the boot process: | ||
+ | * Detailed overview | ||
+ | * The [[http:// | ||
+ | * Tiny Core's [[wiki: | ||
+ | * Tiny Core's [[wiki: | ||
+ | ===== Early Boot ===== | ||
- | The version chosen here is dCore-trusty with initrd ' | + | The [[https://en.wikipedia.org/wiki/Boot_loader|boot loader]] dumps the chosen |
- | ===== Suggested readings ===== | + | The boot codes are available in the full boot stanza from '/ |
- | The following sources contain excellent material; they are, however, coined towards TinyCore but can help complete the information presented here below. | + | |
- | * A detailed over-view of the [[wiki: | + | |
- | * [[http:// | + | |
- | * An explanation of the most common [[wiki: | + | |
- | * For comparison: a list of TinyCore-[[wiki: | + | |
- | =====Early booting===== | + | |
- | + | ||
- | The boot-loader dumps the chosen kernel into RAM and let's it do its thing. Among many other things, it unpacks the specified initial RAM disk and hands control over to the init script on the initrd. This is where we shall begin with our study. | + | |
- | + | ||
- | The boot-codes are available in the full boot stanza from '/ | + | |
====' | ====' | ||
Line 109: | Line 106: | ||
*Standard procedures, after which control is passed to '/ | *Standard procedures, after which control is passed to '/ | ||
- | =====dCore | + | =====dCore |
This script stretches out over several hunderd lines of code. We shall dissect it in smaller chunks. | This script stretches out over several hunderd lines of code. We shall dissect it in smaller chunks. | ||
Line 146: | Line 143: | ||
- | ====Check boot parameters==== | + | ====Check boot-parameters==== |
- | - check the boot stanza for boot-codes with values and store them as variables, with the appropriate value, if applicable. | + | - check the boot-stanza for boot-codes with values and store them as variables, with the appropriate value, if applicable. |
- | - check the boot stanza for boot-codes without values and store them as variables of value 1. | + | - check the boot-stanza for boot-codes without values and store them as variables of value 1. |
Thus we have the following list of boot-codes and variables with values: | Thus we have the following list of boot-codes and variables with values: | ||
Line 175: | Line 172: | ||
|**tftplist**|TFTPLIST|**xonly**|XONLY=1| | |**tftplist**|TFTPLIST|**xonly**|XONLY=1| | ||
|**tz**|TZ|**xsetup**|XSETUP=1| | |**tz**|TZ|**xsetup**|XSETUP=1| | ||
- | |**user**|USER| | | | + | |**user**|USER|**debug** |
|**waitusb**|WAITUSB| | | | |**waitusb**|WAITUSB| | | | ||
|**xvesa**|XVESA| | | | |**xvesa**|XVESA| | | | ||
Line 189: | Line 186: | ||
* **multivt** and **noembed** in ' | * **multivt** and **noembed** in ' | ||
- | * **lst** (TARGETLIST, | + | * **lst** (TARGETLIST, |
+ | === Kernel boot-parameters === | ||
+ | Additional boot-codes have been treated by the kernel at boot-time already. One [[http:// | ||
==== Starting the work ==== | ==== Starting the work ==== | ||
Line 480: | Line 479: | ||
(only) if PAUSE is set then wait for user confirmation | (only) if PAUSE is set then wait for user confirmation | ||
+ | |||
+ | ===debug: | ||
+ | |||
+ | creates a / | ||
Line 497: | Line 500: | ||
- | =====Shell | + | =====Shell |
A login shell first reads commands from the files '/ | A login shell first reads commands from the files '/ | ||
Line 580: | Line 583: | ||
====Set up==== | ====Set up==== | ||
- | - call '/ | + | - call '/ |
- if executable files ' | - if executable files ' | ||
Line 589: | Line 592: | ||
- (commented out) start an Xterm as a background process. | - (commented out) start an Xterm as a background process. | ||
+ | === Auto-start files === | ||
+ | Note that files under ' | ||
====Log-console==== | ====Log-console==== | ||
Line 601: | Line 605: | ||
*acts as a log console | *acts as a log console | ||
- | + | **[[http:// | |
- | + |