Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread devzero
>>>i was wondering how to make kernel messages appear on /dev/ttyS0 >>without a reboot, i.e. kernelparam "console=ttyS0" >> >>The solution is simple... the following piece of code is inside >>opensuse-10.3/src/sysvinit-2.86-115.src.rpm#showconsole-1.08.tar.bz2#showconsole-1.08/blogd.c >> >>

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>, Jan Engelhardt <[EMAIL PROTECTED]> wrote: > >On Jan 3 2008 13:43, [EMAIL PROTECTED] wrote: >> >>hi ! >> >>i was wondering how to make kernel messages appear on /dev/ttyS0 >without a reboot, i.e. kernelparam "console=ttyS0" > >The solution is simple... the following

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread devzero
> This errno is so out of place. yes, that was stupid. anyway: # strace ./mytiocons --snipp-- open("/dev/ttyS0", O_RDWR) = 3 ioctl(0, TIOCCONS) = -1 EBUSY (Device or resource busy) ioctl(3, TIOCCONS) = -1 EBUSY (Device or resource busy)

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread Jan Engelhardt
On Jan 3 2008 15:39, [EMAIL PROTECTED] wrote: >fantastic, thanks! > >unfortunately.. > >opensuse103:/home/roland/serialcons # ./mytioccons >ioctl: Device or resource busy > >but i`m not deep enough into programming to understand this. > >int main(void) >{ >int fd = open("/dev/ttyS0",

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread devzero
03.01.08 14:28:45 > An: [EMAIL PROTECTED] > CC: linux-kernel@vger.kernel.org > Betreff: Re: serial console _after_ boot ? - was: Redirect kernel console > > > On Jan 3 2008 13:43, [EMAIL PROTECTED] wrote: > > > >hi ! > > > >i was wondering

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread Jan Engelhardt
On Jan 3 2008 13:43, [EMAIL PROTECTED] wrote: > >hi ! > >i was wondering how to make kernel messages appear on /dev/ttyS0 without a >reboot, i.e. kernelparam "console=ttyS0" The solution is simple... the following piece of code is inside

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread devzero
hi ! i was wondering how to make kernel messages appear on /dev/ttyS0 without a reboot, i.e. kernelparam "console=ttyS0" after playing for a while with setconsole, setterm and klogconsole i didn`t find a way to make that happen. i can do "setconsole /dev/tty1 /dev/console" and see "test" on

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread devzero
hi ! i was wondering how to make kernel messages appear on /dev/ttyS0 without a reboot, i.e. kernelparam console=ttyS0 after playing for a while with setconsole, setterm and klogconsole i didn`t find a way to make that happen. i can do setconsole /dev/tty1 /dev/console and then echo test

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread Jan Engelhardt
On Jan 3 2008 13:43, [EMAIL PROTECTED] wrote: hi ! i was wondering how to make kernel messages appear on /dev/ttyS0 without a reboot, i.e. kernelparam console=ttyS0 The solution is simple... the following piece of code is inside

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread devzero
14:28:45 An: [EMAIL PROTECTED] CC: linux-kernel@vger.kernel.org Betreff: Re: serial console _after_ boot ? - was: Redirect kernel console On Jan 3 2008 13:43, [EMAIL PROTECTED] wrote: hi ! i was wondering how to make kernel messages appear on /dev/ttyS0 without a reboot, i.e

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread Jan Engelhardt
On Jan 3 2008 15:39, [EMAIL PROTECTED] wrote: fantastic, thanks! unfortunately.. opensuse103:/home/roland/serialcons # ./mytioccons ioctl: Device or resource busy but i`m not deep enough into programming to understand this. int main(void) { int fd = open(/dev/ttyS0, O_RDWR); int errno;

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread devzero
This errno is so out of place. yes, that was stupid. anyway: # strace ./mytiocons --snipp-- open(/dev/ttyS0, O_RDWR) = 3 ioctl(0, TIOCCONS) = -1 EBUSY (Device or resource busy) ioctl(3, TIOCCONS) = -1 EBUSY (Device or resource busy)

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED], Jan Engelhardt [EMAIL PROTECTED] wrote: On Jan 3 2008 13:43, [EMAIL PROTECTED] wrote: hi ! i was wondering how to make kernel messages appear on /dev/ttyS0 without a reboot, i.e. kernelparam console=ttyS0 The solution is simple... the following piece of code is

Re: serial console _after_ boot ? - was: Redirect kernel console

2008-01-03 Thread devzero
i was wondering how to make kernel messages appear on /dev/ttyS0 without a reboot, i.e. kernelparam console=ttyS0 The solution is simple... the following piece of code is inside opensuse-10.3/src/sysvinit-2.86-115.src.rpm#showconsole-1.08.tar.bz2#showconsole-1.08/blogd.c (void)ioctl(0,