Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] syslog output to serial console
@ 2013-08-21 20:22 Bryce Schober
  2013-08-21 21:09 ` Arnout Vandecappelle
  2013-08-21 22:52 ` Danomi Manchego
  0 siblings, 2 replies; 3+ messages in thread
From: Bryce Schober @ 2013-08-21 20:22 UTC (permalink / raw)
  To: buildroot

I realize that this is a bit off-topic...

I've configured my target for boot-loader & linux boot serial console
output, but now I'd really like to redirect the rest of what gets into
syslog to the serial console as well. Is there a way to do that with
busybox syslog?

The primary use-case here is for seeing the output results / errors from my
set of /etc/init.d scripts, so if it's not feasible to get this
re-direction up and running early in the boot process, it wouldn't be worth
it.

Thanks for any advice or pointers you can offer...
<><  <><  <><
Bryce Schober
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130821/7bbba8b0/attachment.html>

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

* [Buildroot] syslog output to serial console
  2013-08-21 20:22 [Buildroot] syslog output to serial console Bryce Schober
@ 2013-08-21 21:09 ` Arnout Vandecappelle
  2013-08-21 22:52 ` Danomi Manchego
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2013-08-21 21:09 UTC (permalink / raw)
  To: buildroot

On 21/08/13 22:22, Bryce Schober wrote:
> I realize that this is a bit off-topic...
>
> I've configured my target for boot-loader & linux boot serial console
> output, but now I'd really like to redirect the rest of what gets into
> syslog to the serial console as well. Is there a way to do that with
> busybox syslog?
>
> The primary use-case here is for seeing the output results / errors from
> my set of /etc/init.d scripts, so if it's not feasible to get this
> re-direction up and running early in the boot process, it wouldn't be
> worth it.

  Actually, the output of init scripts should already go to the console. 
When the kernel mounts the rootfs and calls init, it sends its stdout and 
stderr to /dev/console. If your rootfs is an initramfs, however, the 
kernel doesn't automount the devtmpfs so /dev/console doesn't exist when 
/init is executed. We solve this with the script in fs/cpio/init. If this 
is the problem, you'll see that the kernel reports something like "Unable 
to find initial console".

  The only thing captured by syslog are the messages going to /dev/log, 
which are sent out by some daemons. If you want this output to go to 
/dev/console as well, you can add something like

::respawn:/usr/bin/tail -50 -F /var/log/messages

to /etc/inittab.


  Regards,
  Arnout

>
> Thanks for any advice or pointers you can offer...
> <><  <><  <><
> Bryce Schober
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [Buildroot] syslog output to serial console
  2013-08-21 20:22 [Buildroot] syslog output to serial console Bryce Schober
  2013-08-21 21:09 ` Arnout Vandecappelle
@ 2013-08-21 22:52 ` Danomi Manchego
  1 sibling, 0 replies; 3+ messages in thread
From: Danomi Manchego @ 2013-08-21 22:52 UTC (permalink / raw)
  To: buildroot

On Wed, Aug 21, 2013 at 4:22 PM, Bryce Schober <bryce.schober@gmail.com>wrote:

> I'd really like to redirect the rest of what gets into syslog to the
> serial console as well. Is there a way to do that with busybox syslog?
>

If you are using "logger" to to send stuff to syslog, then you can add a -s
(or --stderr) to send the messages to both syslog and stderr.

Danomi -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130821/34cf7617/attachment.html>

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

end of thread, other threads:[~2013-08-21 22:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21 20:22 [Buildroot] syslog output to serial console Bryce Schober
2013-08-21 21:09 ` Arnout Vandecappelle
2013-08-21 22:52 ` Danomi Manchego

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox