From: andrzej-kardas@o2.pl (Andrzej Kardas)
To: kernelnewbies@lists.kernelnewbies.org
Subject: From which point onwards the kernel execution starts
Date: Sat, 05 Mar 2011 11:41:29 +0100 [thread overview]
Message-ID: <4D721359.6040309@o2.pl> (raw)
In-Reply-To: <AANLkTimMJw3RnZczC7r-1s9n9ivm9Su2SVNA+c8djg0W@mail.gmail.com>
On Sat, Mar 5, 2011 at 12:42, AQ Tast <tasteaq@gmail.com> wrote:
>> Could someone please explain how the kernel initializes, i.e. I
>> want to know how does kernel starts from main function
> http://www.ibm.com/developerworks/linux/library/l-linuxboot/
>
It's quite good article at start, but it is a bit old and doesn't cover
the newest kernel. If you want to get the details i suggest read great
post on Gustawo Duarte blog:
http://duartes.org/gustavo/blog/post/kernel-boot-process
Very useful is Makefile
http://lxr.linux.no/#linux+v2.6.37.2/Makefile
you can trace kernel building process step by step and see what files
are linking into kernel in which order.
On the other hand, you have always up to date documentation of Kernel
Boot Process in documentation directory in kernel sources:
http://lxr.linux.no/#linux+v2.6.37.2/Documentation/x86/boot.txt
If you want to trace linux boot process in source code, you probably
want to start at line:
_start:
# Explicitly enter this as bytes, or the assembler
# tries to generate a 3-byte jump here, which causes
# everything else to push off to the wrong offset.
.byte 0xeb # short (2-byte) jump
.byte start_of_setup-1f
in arch/x86/boot/header.S
(http://lxr.linux.no/#linux+v2.6.37.2/arch/x86/boot/header.S#L108_) for
x86 architecture.
Have fun in exploring :)
--
regards,
Andrzej Kardas
next prev parent reply other threads:[~2011-03-05 10:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-05 5:42 From which point onwards the kernel execution starts AQ Tast
2011-03-05 8:26 ` Mulyadi Santosa
2011-03-05 10:41 ` Andrzej Kardas [this message]
2011-03-06 8:01 ` Mulyadi Santosa
2011-03-06 10:26 ` Andrzej Kardas
2011-03-07 16:18 ` Mulyadi Santosa
2011-03-08 8:13 ` Ashwath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D721359.6040309@o2.pl \
--to=andrzej-kardas@o2.pl \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).