Re: Kernel start code

2010-10-12 Thread Michal Sojka
On Wed, 06 Oct 2010, Sri Ram Vemulpali wrote:
 Hi all,
 
   Can anyone, please help me on pointing to kernel boot code after
 grubs loads the kernel and transfers control to it.
   I want in which files this resides, location. Any explanation on the
 code or any link would be helpful to me.
   I know this is kind of lousy question, but entry.S is where I looked
 at. It is overwhelming for me where to start in that file.

Hi,

I'guess you are interested in x86 architecture. The boot code of x86 is
the most complex one. Look at Documentation/x86/boot.txt. You can see
what the kernel does during early boot by running it under qemu and
attaching a debuger.

-Michal

--
To unsubscribe from this list: send an email with
unsubscribe kernelnewbies to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



RE: Kernel start code

2010-10-08 Thread Himanshu Chauhan

  
  Use cscope and search for kernel_entry symbol. I think its in
  arch/$ARCH/boot/head.S or may in in kernel directory.
 
 I would recommend refer Linux Kernel Primer- it explains boot process 
 line-by-line for X86 and PPC.
 http://www.amazon.com/Linux-Kernel-Primer-Top-Down-Architectures/dp/0131181637

I would still recommend cscope. Its all there. Plus looking at code one can 
learn lot more than book can *teach* you.

- Himanshu
  

RE: Kernel start code

2010-10-07 Thread Tayade, Nilesh
 -Original Message-
 From: kernelnewbies-bou...@nl.linux.org [mailto:kernelnewbies-
 bou...@nl.linux.org] On Behalf Of Himanshu Chauhan
 Sent: Wednesday, October 06, 2010 11:50 PM
 To: Sri Ram Vemulpali
 Cc: Kernel-newbies
 Subject: Re: Kernel start code
 
 On Thursday 07 October 2010 04:28 AM, Sri Ram Vemulpali wrote:
  Hi all,
 
 Can anyone, please help me on pointing to kernel boot code
 after
  grubs loads the kernel and transfers control to it.
 I want in which files this resides, location. Any explanation
 on the
  code or any link would be helpful to me.
 I know this is kind of lousy question, but entry.S is where I
 looked
  at. It is overwhelming for me where to start in that file.
 Thanks in advance.
 
 
 Hi Sri,
 
 Use cscope and search for kernel_entry symbol. I think its in
 arch/$ARCH/boot/head.S or may in in kernel directory.

I would recommend refer Linux Kernel Primer- it explains boot process 
line-by-line for X86 and PPC.
http://www.amazon.com/Linux-Kernel-Primer-Top-Down-Architectures/dp/0131181637


 
 - Himanshu
 

--
Thanks,
Nilesh



N�r��yb�X��ǧu�ޙ���+a�{.n�+���z�ޖw�n'j�b�ye�{������z��v�^�m���z�ޖw�n'���?