All of lore.kernel.org
 help / color / mirror / Atom feed
* How the follow Starts in Android-Kernel
@ 2013-02-04  4:34 Ranganath T.M
  2013-02-06  2:30 ` Peter Teoh
  0 siblings, 1 reply; 7+ messages in thread
From: Ranganath T.M @ 2013-02-04  4:34 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

I am trying to find out how the kernel will *start* from the uboot and how
the kernel will call there respective static modules which are built
as *.o*file and also how the
*probe* of every modules will be called.

Thanks And Regards
Ranganath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130204/4d081ade/attachment.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* How the follow Starts in Android-Kernel
  2013-02-04  4:34 How the follow Starts in Android-Kernel Ranganath T.M
@ 2013-02-06  2:30 ` Peter Teoh
  2013-02-06  2:33   ` Peter Teoh
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Teoh @ 2013-02-06  2:30 UTC (permalink / raw)
  To: kernelnewbies

normally in embedded uboot is the bootloader.   and to trace this is simple:

a.   understand how uboot works - and this is highly platform specific
(uboot is highly hardware dependent)...and examine the point where control
passed is passed to kernel image file (which still run at 16 bit real
mode), and from there u can trace everything.

b.   well u need assembly, as everything starting is written in assembly.
for ARM (as u asked for Android), the place is "start_kernel" inside:

arch/arm/kernel/head-common.S

and then u must learn linker scripting (for ARM is arm/kernel/vmlinux.ld.S)
as well, that is how u tell the compiler to generate a image that can be
loaded directly into memory and executed directly on the hardware in memory
- using the hardware-specific reset vector as the starting point.   there
is no loader at this stage to load the binary.   (uboot will load it as a
image, but executeable).

the rest is yours...

On Mon, Feb 4, 2013 at 12:34 PM, Ranganath T.M <ranganathtm88@gmail.com>wrote:

> Hi All,
>
> I am trying to find out how the kernel will *start* from the uboot and
> how the kernel will call there respective static modules which are built as
> *.o* file and also how the *probe* of every modules will be called.
>
> Thanks And Regards
> Ranganath
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130206/4e35df07/attachment.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* How the follow Starts in Android-Kernel
  2013-02-06  2:30 ` Peter Teoh
@ 2013-02-06  2:33   ` Peter Teoh
  2013-02-06  4:50     ` Ranganath T.M
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Teoh @ 2013-02-06  2:33 UTC (permalink / raw)
  To: kernelnewbies

http://duartes.org/gustavo/blog/post/how-computers-boot-up

this is for x86, not for ARM though.

On Wed, Feb 6, 2013 at 10:30 AM, Peter Teoh <htmldeveloper@gmail.com> wrote:

>
> normally in embedded uboot is the bootloader.   and to trace this is
> simple:
>
> a.   understand how uboot works - and this is highly platform specific
> (uboot is highly hardware dependent)...and examine the point where control
> passed is passed to kernel image file (which still run at 16 bit real
> mode), and from there u can trace everything.
>
> b.   well u need assembly, as everything starting is written in assembly.
>   for ARM (as u asked for Android), the place is "start_kernel" inside:
>
> arch/arm/kernel/head-common.S
>
> and then u must learn linker scripting (for ARM is
> arm/kernel/vmlinux.ld.S) as well, that is how u tell the compiler to
> generate a image that can be loaded directly into memory and executed
> directly on the hardware in memory - using the hardware-specific reset
> vector as the starting point.   there is no loader at this stage to load
> the binary.   (uboot will load it as a image, but executeable).
>
> the rest is yours...
>
> On Mon, Feb 4, 2013 at 12:34 PM, Ranganath T.M <ranganathtm88@gmail.com>wrote:
>
>> Hi All,
>>
>> I am trying to find out how the kernel will *start* from the uboot and
>> how the kernel will call there respective static modules which are built as
>> *.o* file and also how the *probe* of every modules will be called.
>>
>> Thanks And Regards
>> Ranganath
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>
>
> --
> Regards,
> Peter Teoh
>



-- 
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130206/4a88b09a/attachment.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* How the follow Starts in Android-Kernel
  2013-02-06  2:33   ` Peter Teoh
@ 2013-02-06  4:50     ` Ranganath T.M
  2013-02-06  6:01       ` Ritesh Harjani
  2013-02-06  6:43       ` Dave Hylands
  0 siblings, 2 replies; 7+ messages in thread
From: Ranganath T.M @ 2013-02-06  4:50 UTC (permalink / raw)
  To: kernelnewbies

Hi Peter,

Thanks for your information,

And can you kindly suggest me,
1)How the probe will be called by comparing the name in driver and name
given in board-files, or it will called based id_table which we fill
for particular bus of that driver.
2)How the priority will be followed to call the drivers files like BT first
and then HDMI driver.

Thanks And Regards,
Ranganath.T.M

On Wed, Feb 6, 2013 at 8:03 AM, Peter Teoh <htmldeveloper@gmail.com> wrote:

> http://duartes.org/gustavo/blog/post/how-computers-boot-up
>
> this is for x86, not for ARM though.
>
>
> On Wed, Feb 6, 2013 at 10:30 AM, Peter Teoh <htmldeveloper@gmail.com>wrote:
>
>>
>> normally in embedded uboot is the bootloader.   and to trace this is
>> simple:
>>
>> a.   understand how uboot works - and this is highly platform specific
>> (uboot is highly hardware dependent)...and examine the point where control
>> passed is passed to kernel image file (which still run at 16 bit real
>> mode), and from there u can trace everything.
>>
>> b.   well u need assembly, as everything starting is written in assembly.
>>   for ARM (as u asked for Android), the place is "start_kernel" inside:
>>
>> arch/arm/kernel/head-common.S
>>
>> and then u must learn linker scripting (for ARM is
>> arm/kernel/vmlinux.ld.S) as well, that is how u tell the compiler to
>> generate a image that can be loaded directly into memory and executed
>> directly on the hardware in memory - using the hardware-specific reset
>> vector as the starting point.   there is no loader at this stage to load
>> the binary.   (uboot will load it as a image, but executeable).
>>
>> the rest is yours...
>>
>> On Mon, Feb 4, 2013 at 12:34 PM, Ranganath T.M <ranganathtm88@gmail.com>wrote:
>>
>>> Hi All,
>>>
>>> I am trying to find out how the kernel will *start* from the uboot and
>>> how the kernel will call there respective static modules which are built as
>>> *.o* file and also how the *probe* of every modules will be called.
>>>
>>> Thanks And Regards
>>> Ranganath
>>>
>>> _______________________________________________
>>> Kernelnewbies mailing list
>>> Kernelnewbies at kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>>
>>
>> --
>> Regards,
>> Peter Teoh
>>
>
>
>
> --
> Regards,
> Peter Teoh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130206/bf70c359/attachment-0001.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* How the follow Starts in Android-Kernel
  2013-02-06  4:50     ` Ranganath T.M
@ 2013-02-06  6:01       ` Ritesh Harjani
  2013-02-07 19:10         ` Abu Rasheda
  2013-02-06  6:43       ` Dave Hylands
  1 sibling, 1 reply; 7+ messages in thread
From: Ritesh Harjani @ 2013-02-06  6:01 UTC (permalink / raw)
  To: kernelnewbies

Hi all,

Here is a very good link on "*Booting ARM Linux SMP on MPCore*" explained
with little code.

http://www.linux-arm.org/LinuxBootLoader/SMPBoot

Regards
Ritesh


On Wed, Feb 6, 2013 at 10:20 AM, Ranganath T.M <ranganathtm88@gmail.com>wrote:

> Hi Peter,
>
> Thanks for your information,
>
> And can you kindly suggest me,
> 1)How the probe will be called by comparing the name in driver and name
> given in board-files, or it will called based id_table which we fill
> for particular bus of that driver.
> 2)How the priority will be followed to call the drivers files like BT
> first and then HDMI driver.
>
> Thanks And Regards,
> Ranganath.T.M
>
> On Wed, Feb 6, 2013 at 8:03 AM, Peter Teoh <htmldeveloper@gmail.com>wrote:
>
>> http://duartes.org/gustavo/blog/post/how-computers-boot-up
>>
>> this is for x86, not for ARM though.
>>
>>
>> On Wed, Feb 6, 2013 at 10:30 AM, Peter Teoh <htmldeveloper@gmail.com>wrote:
>>
>>>
>>> normally in embedded uboot is the bootloader.   and to trace this is
>>> simple:
>>>
>>> a.   understand how uboot works - and this is highly platform specific
>>> (uboot is highly hardware dependent)...and examine the point where control
>>> passed is passed to kernel image file (which still run at 16 bit real
>>> mode), and from there u can trace everything.
>>>
>>> b.   well u need assembly, as everything starting is written in
>>> assembly.   for ARM (as u asked for Android), the place is "start_kernel"
>>> inside:
>>>
>>> arch/arm/kernel/head-common.S
>>>
>>> and then u must learn linker scripting (for ARM is
>>> arm/kernel/vmlinux.ld.S) as well, that is how u tell the compiler to
>>> generate a image that can be loaded directly into memory and executed
>>> directly on the hardware in memory - using the hardware-specific reset
>>> vector as the starting point.   there is no loader at this stage to load
>>> the binary.   (uboot will load it as a image, but executeable).
>>>
>>> the rest is yours...
>>>
>>> On Mon, Feb 4, 2013 at 12:34 PM, Ranganath T.M <ranganathtm88@gmail.com>wrote:
>>>
>>>> Hi All,
>>>>
>>>> I am trying to find out how the kernel will *start* from the uboot and
>>>> how the kernel will call there respective static modules which are built as
>>>> *.o* file and also how the *probe* of every modules will be called.
>>>>
>>>> Thanks And Regards
>>>> Ranganath
>>>>
>>>> _______________________________________________
>>>> Kernelnewbies mailing list
>>>> Kernelnewbies at kernelnewbies.org
>>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Peter Teoh
>>>
>>
>>
>>
>> --
>> Regards,
>> Peter Teoh
>>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130206/3e28069c/attachment.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* How the follow Starts in Android-Kernel
  2013-02-06  4:50     ` Ranganath T.M
  2013-02-06  6:01       ` Ritesh Harjani
@ 2013-02-06  6:43       ` Dave Hylands
  1 sibling, 0 replies; 7+ messages in thread
From: Dave Hylands @ 2013-02-06  6:43 UTC (permalink / raw)
  To: kernelnewbies

Hi,

On Tue, Feb 5, 2013 at 8:50 PM, Ranganath T.M <ranganathtm88@gmail.com>
wrote:
>
> Hi Peter,
>
> Thanks for your information,
>
> And can you kindly suggest me,
> 1)How the probe will be called by comparing the name in driver and name
given in board-files, or it will called based id_table which we fill for
particular bus of that driver.

When both a device and a driver have been registered, then the probe
routine will be called.

Normally, the devices are registered in your board files.

> 2)How the priority will be followed to call the drivers files like BT
first and then HDMI driver.

The order is determined by how they're registered (i.e. which initcall is
used:
http://lxr.linux.no/#linux+v3.7.6/include/linux/init.h#L209

module_init maps to device_initcall

Within the same level, the order is determined by the order that the files
appear in the Makefiles.

--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130205/f5208b86/attachment-0001.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* How the follow Starts in Android-Kernel
  2013-02-06  6:01       ` Ritesh Harjani
@ 2013-02-07 19:10         ` Abu Rasheda
  0 siblings, 0 replies; 7+ messages in thread
From: Abu Rasheda @ 2013-02-07 19:10 UTC (permalink / raw)
  To: kernelnewbies

On Tue, Feb 5, 2013 ...

http://www.linux-arm.org/LinuxBootLoader/SMPBoot

>  <http://duartes.org/gustavo/blog/post/how-computers-boot-up>
>
>
for i86
http://duartes.org/gustavo/blog/post/how-computers-boot-up


Does something similar exist for MIPS ?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130207/36653ed6/attachment.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-02-07 19:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-04  4:34 How the follow Starts in Android-Kernel Ranganath T.M
2013-02-06  2:30 ` Peter Teoh
2013-02-06  2:33   ` Peter Teoh
2013-02-06  4:50     ` Ranganath T.M
2013-02-06  6:01       ` Ritesh Harjani
2013-02-07 19:10         ` Abu Rasheda
2013-02-06  6:43       ` Dave Hylands

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.