[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-bugs
Subject:    [haiku-bugs] Re: [Haiku] #6168: [RFC] Add syslog support to boot loader
From:       "jessicah" <trac () haiku-os ! org>
Date:       2014-04-27 9:36:52
Message-ID: 059.3499243ae3b80fe15109955d83503cf1 () haiku-os ! org
[Download RAW message or body]

#6168: [RFC] Add syslog support to boot loader
----------------------------------+----------------------------
   Reporter:  andreasf            |      Owner:  jessicah
       Type:  enhancement         |     Status:  in-progress
   Priority:  normal              |  Milestone:  R1
  Component:  System/Boot Loader  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  1                   |   Platform:  All
----------------------------------+----------------------------
Changes (by jessicah):

 * owner:  andreasf => jessicah
 * status:  assigned => in-progress


Old description:

> When debugging without a serial port, network-based output would provide
> an alternative to re-typing screen output or taking pictures.
>
> As a proof of concept this patch adds UDP-based '''syslog-ng''' support
> ([http://datatracker.ietf.org/doc/rfc5424/ RFC5424],
> [http://datatracker.ietf.org/doc/rfc5426/ RFC5426]) to the boot loader.
> While UDP is potentially lossy, unidirectional broadcast of datagrams
> avoids server discovery/selection and it avoids a dependency on still-
> pending TCP support patches (#5240).
>
> Output starts once the network stack is initialized - on ppc currently
> only when network-booting, before searching for boot volumes - and with
> #6166 patches until the last {{{malloc()}}} for kernel ELF sections.
>
> Unfortunately this does not work in the kernel though. Linking the boot
> loader's network stack into the ppc kernel does work, but depending on
> the point of initialization either the stack initialization and sending
> succeed but datagrams do not arrive (e.g., in
> {{{PPCPlatform::InitPostVM()}}}), or the stack initialization's
> {{{of_open()}}} hangs as in #5160 and #4385 (e.g., in {{{main2()}}}).

New description:

 When debugging without a serial port, network-based output would provide
 an alternative to re-typing screen output or taking pictures.

 As a proof of concept this patch adds UDP-based '''syslog-ng''' support
 ([rfc:5424], [http://datatracker.ietf.org/doc/rfc5426/ RFC5426]) to the
 boot loader. While UDP is potentially lossy, unidirectional broadcast of
 datagrams avoids server discovery/selection and it avoids a dependency on
 still-pending TCP support patches (#5240).

 Output starts once the network stack is initialized - on ppc currently
 only when network-booting, before searching for boot volumes - and with
 #6166 patches until the last {{{malloc()}}} for kernel ELF sections.

 Unfortunately this does not work in the kernel though. Linking the boot
 loader's network stack into the ppc kernel does work, but depending on the
 point of initialization either the stack initialization and sending
 succeed but datagrams do not arrive (e.g., in
 {{{PPCPlatform::InitPostVM()}}}), or the stack initialization's
 {{{of_open()}}} hangs as in #5160 and #4385 (e.g., in {{{main2()}}}).

--

--
Ticket URL: <https://dev.haiku-os.org/ticket/6168#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic