Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dcore:system_start_and_boot-codes [2016/05/09 04:09] – [Suggested readings] nitramdcore:system_start_and_boot-codes [2017/09/25 06:49] (current) – [Check boot-parameters] sm8ps
Line 1: Line 1:
-====== Boot Process and Boot Codes ======+====== dCore Boot Process and Boot Codes ======
 An indepth review of the boot process, including relevant scripts and a boot code summary. The version used for this review was dCore-trusty, release version 20150429, and the 'vmlinuz-trusty' kernel, version 3.16.6. Although there are many similarities between dCore and Tiny Core, this review focuses solely on dCore. An indepth review of the boot process, including relevant scripts and a boot code summary. The version used for this review was dCore-trusty, release version 20150429, and the 'vmlinuz-trusty' kernel, version 3.16.6. Although there are many similarities between dCore and Tiny Core, this review focuses solely on dCore.
 ===== Suggested Readings ===== ===== Suggested Readings =====
 Although primarily related to Tiny Core, The following resources contain excellent material to help understand the boot process: Although primarily related to Tiny Core, The following resources contain excellent material to help understand the boot process:
-  * A detailed over-view of the [[wiki:the_boot_process|boot process]] of TinyCore +  * Detailed overview of the [[wiki:the_boot_process|Tiny Core boot process]] 
-  * [[http://distro.ibiblio.org/tinycorelinux/corebook.pdf|The CoreBook (PDF)]] is a very thorough introduction for TinyCore +  * The [[http://tinycorelinux.net/book.html|Into the Core book]] is a thorough introduction to Tiny Core 
-  * An explanation of the most common [[wiki:boot_codes_explained|boot-codes by example]] (for TinyCore) +  * Tiny Core'[[wiki:boot_codes_explained|boot codes explained]] 
-  * For comparison: a list of TinyCore-[[wiki:boot_options|boot-codes]] +  * Tiny Core'[[wiki:boot_options|boot codes]] 
-=====Early booting=====+===== Early Boot =====
  
-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 [[https://en.wikipedia.org/wiki/Boot_loader|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 '/proc/cmdline'.+The boot codes are available in the full boot stanza from '/proc/cmdline'.
  
 ===='init' (on initrd)==== ===='init' (on initrd)====
Line 106: Line 106:
   *Standard procedures, after which control is passed to '/etc/init.d/tc-config' which will do the bulk of work.   *Standard procedures, after which control is passed to '/etc/init.d/tc-config' which will do the bulk of work.
  
-=====dCore taking over: '/etc/init.d/tc-config'=====+=====dCore Takes Over: '/etc/init.d/tc-config'=====
  
 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 143: 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 186: Line 186:
  
   * **multivt** and **noembed** in 'init' (on initrd) as seen above   * **multivt** and **noembed** in 'init' (on initrd) as seen above
-  * **lst** (TARGETLIST, defaults to 'onboot.lst') and cde (CDE) in '/usr/bin/tce-setup'+  * **lst** (TARGETLIST, defaults to 'onboot.lst') and **cde** (CDE) in '/usr/bin/tce-setup'
  
 +=== Kernel boot-parameters ===
 +Additional boot-codes have been treated by the kernel at boot-time already. One [[http://forum.tinycorelinux.net/index.php/topic,21401.0.html|notable case]] is //resume// which, although similar in syntax to //home//, //opt// and //tce// does not accept disk LABELs.
 ==== Starting the work ==== ==== Starting the work ====
  
Line 498: Line 500:
  
  
-=====Shell inits=====+=====Shell Inits=====
  
 A login shell first reads commands from the files '/etc/profile' and '.profile' if they exist. If ENV is set on entry to a shell, or is set in the .profile of a login shell, the shell next reads commands from the file named in ENV. (Cf. [[http://linux.about.com/library/cmd/blcmdl1_ash.htm|source]].) ENV is indeed set to '~/.ashrc' in '~/.profile' (see below). A login shell first reads commands from the files '/etc/profile' and '.profile' if they exist. If ENV is set on entry to a shell, or is set in the .profile of a login shell, the shell next reads commands from the file named in ENV. (Cf. [[http://linux.about.com/library/cmd/blcmdl1_ash.htm|source]].) ENV is indeed set to '~/.ashrc' in '~/.profile' (see below).
Line 590: 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 '~/.X.d/' must contain backgrounded commands, i.e. with trailing "&".
 ====Log-console==== ====Log-console====
  
Line 602: Line 605:
   *acts as a log console   *acts as a log console
  
-**[[http://wiki.tinycorelinux.net/dcore:welcome|> Return to the dCore wiki welcome page]]**+**[[http://wiki.tinycorelinux.net/dcore:welcome|> Return to the dCore Wiki Welcome page]]**
Print/export
QR Code
QR Code dcore:system_start_and_boot-codes (generated for current page)