On Jan 31, 2013, at 6:43 AM, Sam Lin <
ckjbo...@gmail.com> wrote:
> Hi Developers,
>
> Here is my two questions:
>
> First; Since the file in /sbin/init is a binary,
> From what I know, when the kernel starts, the /sbin/init will also been executed until it kicks of chromeos_startup(The upstart will handle the rest part of all init things)
First key point: /sbin/init *is* Upstart. (N.B. Better wording would be
"Upstart is an implementation of /sbin/init"). To read and understand
the Chromium OS user land boot sources, you'll need to understand
Upstart.
Upstart documentation is available inside the chroot; say this:
man 5 init
There's documentation online, too; a Google search will find it.
> However, i have no idea about what services and tasks have been invoked before the init to kick of chromeos_startup and when is chromeos_startup exactly to be kicked
> off? The process procedure I have found is /sbin/init execute /etc/init/startup.conf, and startup.conf execute chromeos_startup, however, this is very vague for me to know
> the real truth and i am not even so sure this is correct (Let me know if i am wrong at this point).
> I have spent lot of time trying to trace the code but I can barely find any clue about the init source in the Chromium OS project. Did I miss downloading anything?
>
The man page covers what happens when /sbin/init starts.
The short summary for Chromium OS is that chromeos_startup
is among the first jobs kicked off by init.
The Chromium OS sources for the key upstart jobs that drive the boot flow are
in src/platform/init. See particularly these jobs:
startup
boot-services
system-services
ui
There's been discussion on the topic before on this mailing list. You can
find the conversation if you search on Google for "chrome os boot flow".
> Second: when I ran the command build_package or build_image. I looked into the log but not able to find something I need like the information of cross_compile.
> Is there any debug flag I can turn on to have more detail information? If so, how?
>
>
> Thanks for your reply in advance.
>
>
>
> Regards-
>
> --
> Chromium OS discuss mailing list:
chromium-...@chromium.org
> View archives, change email options, or unsubscribe:
>
http://groups.google.com/a/chromium.org/group/chromium-os-discuss?hl=en
-- jrb