* redirecting printk to the Serial port
@ 2003-03-03 7:16 Prasad
2003-03-03 7:20 ` Martin J. Bligh
0 siblings, 1 reply; 8+ messages in thread
From: Prasad @ 2003-03-03 7:16 UTC (permalink / raw)
To: lkml
Hi,
Got a silly doubt. when trying to insert one of my modules into
the kernel, its getting rebooted and unfortunately i am losing all the
debug(printk) messages. Can i in some fashion capture all the printk's
through the serial port. (I have two linux boxes and a serial cable to
connect both of them)
Thanx in advance
Prasad.
--
Failure is not an option
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: redirecting printk to the Serial port
2003-03-03 7:16 redirecting printk to the Serial port Prasad
@ 2003-03-03 7:20 ` Martin J. Bligh
2003-03-03 7:28 ` Prasad
2003-03-03 7:32 ` Prasad
0 siblings, 2 replies; 8+ messages in thread
From: Martin J. Bligh @ 2003-03-03 7:20 UTC (permalink / raw)
To: Prasad, lkml
> Got a silly doubt. when trying to insert one of my modules into
> the kernel, its getting rebooted and unfortunately i am losing all the
> debug(printk) messages. Can i in some fashion capture all the printk's
> through the serial port. (I have two linux boxes and a serial cable to
> connect both of them)
See Documentation/serial-console.txt
M.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: redirecting printk to the Serial port
2003-03-03 7:20 ` Martin J. Bligh
@ 2003-03-03 7:28 ` Prasad
2003-03-03 7:30 ` Zwane Mwaikambo
2003-03-03 7:31 ` Martin J. Bligh
2003-03-03 7:32 ` Prasad
1 sibling, 2 replies; 8+ messages in thread
From: Prasad @ 2003-03-03 7:28 UTC (permalink / raw)
To: Martin J. Bligh; +Cc: lkml
I have seen the Documentation/serial-console.txt and accordingly gave the
kernel arguments console=/dev/ttyS0,9600n8, but even after giving that i
am not getting anything to the other end. To check if the serial
communication was in place... i tried echo "abc" > /dev/ttyS0 and that
worked.
Prasad.
On Sun, 2 Mar 2003, Martin J. Bligh wrote:
> > Got a silly doubt. when trying to insert one of my modules into
> > the kernel, its getting rebooted and unfortunately i am losing all the
> > debug(printk) messages. Can i in some fashion capture all the printk's
> > through the serial port. (I have two linux boxes and a serial cable to
> > connect both of them)
>
> See Documentation/serial-console.txt
>
> M.
>
--
Failure is not an option
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: redirecting printk to the Serial port
2003-03-03 7:28 ` Prasad
@ 2003-03-03 7:30 ` Zwane Mwaikambo
2003-03-03 7:31 ` Martin J. Bligh
1 sibling, 0 replies; 8+ messages in thread
From: Zwane Mwaikambo @ 2003-03-03 7:30 UTC (permalink / raw)
To: Prasad; +Cc: lkml
On Mon, 3 Mar 2003, Prasad wrote:
>
>
> I have seen the Documentation/serial-console.txt and accordingly gave the
> kernel arguments console=/dev/ttyS0,9600n8, but even after giving that i
> am not getting anything to the other end. To check if the serial
> communication was in place... i tried echo "abc" > /dev/ttyS0 and that
> worked.
console=ttyS0,38400n8 console=tty1
That works on my boxes.
Zwane
--
function.linuxpower.ca
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: redirecting printk to the Serial port
2003-03-03 7:28 ` Prasad
2003-03-03 7:30 ` Zwane Mwaikambo
@ 2003-03-03 7:31 ` Martin J. Bligh
2003-03-03 7:39 ` Prasad
1 sibling, 1 reply; 8+ messages in thread
From: Martin J. Bligh @ 2003-03-03 7:31 UTC (permalink / raw)
To: Prasad; +Cc: lkml
--On Monday, March 03, 2003 12:58:24 +0530 Prasad <prasad_s@students.iiit.net> wrote:
>
>
> I have seen the Documentation/serial-console.txt and accordingly gave the
> kernel arguments console=/dev/ttyS0,9600n8, but even after giving that i
> am not getting anything to the other end. To check if the serial
> communication was in place... i tried echo "abc" > /dev/ttyS0 and that
> worked.
I use "console=ttyS0,57600n8" - no "/dev".
M.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: redirecting printk to the Serial port
2003-03-03 7:20 ` Martin J. Bligh
2003-03-03 7:28 ` Prasad
@ 2003-03-03 7:32 ` Prasad
1 sibling, 0 replies; 8+ messages in thread
From: Prasad @ 2003-03-03 7:32 UTC (permalink / raw)
To: Martin J. Bligh; +Cc: lkml
thankx... i got the mistake... instead of giving the argument as
console=ttyS0, i used console=/dev/ttyS0.... thank you very much
Prasad.
On Sun, 2 Mar 2003, Martin J. Bligh wrote:
> > Got a silly doubt. when trying to insert one of my modules into
> > the kernel, its getting rebooted and unfortunately i am losing all the
> > debug(printk) messages. Can i in some fashion capture all the printk's
> > through the serial port. (I have two linux boxes and a serial cable to
> > connect both of them)
>
> See Documentation/serial-console.txt
>
> M.
>
--
Failure is not an option
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: redirecting printk to the Serial port
2003-03-03 7:31 ` Martin J. Bligh
@ 2003-03-03 7:39 ` Prasad
2003-03-03 7:51 ` Martin J. Bligh
0 siblings, 1 reply; 8+ messages in thread
From: Prasad @ 2003-03-03 7:39 UTC (permalink / raw)
To: Martin J. Bligh; +Cc: lkml
the output stopped after it printed the line "Freeing unused kernel
memory". How do we manage to get the printk's to the serial line after
this. I can see the messages using 'dmesg' but am not getting them over
the serial line.
Prasad.
On Sun, 2 Mar 2003, Martin J. Bligh wrote:
>
>
> --On Monday, March 03, 2003 12:58:24 +0530 Prasad <prasad_s@students.iiit.net> wrote:
>
> >
> >
> > I have seen the Documentation/serial-console.txt and accordingly gave the
> > kernel arguments console=/dev/ttyS0,9600n8, but even after giving that i
> > am not getting anything to the other end. To check if the serial
> > communication was in place... i tried echo "abc" > /dev/ttyS0 and that
> > worked.
>
> I use "console=ttyS0,57600n8" - no "/dev".
>
> M.
>
--
Failure is not an option
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: redirecting printk to the Serial port
2003-03-03 7:39 ` Prasad
@ 2003-03-03 7:51 ` Martin J. Bligh
0 siblings, 0 replies; 8+ messages in thread
From: Martin J. Bligh @ 2003-03-03 7:51 UTC (permalink / raw)
To: Prasad; +Cc: lkml
Make sure there's no serial stuff, etc in your init scripts that
changes speeds or anything. Other than that, not sure ... been
so long since I set it up, I forget ...
M.
--On Monday, March 03, 2003 13:09:29 +0530 Prasad <prasad_s@students.iiit.net> wrote:
>
> the output stopped after it printed the line "Freeing unused kernel
> memory". How do we manage to get the printk's to the serial line after
> this. I can see the messages using 'dmesg' but am not getting them over
> the serial line.
>
> Prasad.
>
> On Sun, 2 Mar 2003, Martin J. Bligh wrote:
>
>>
>>
>> --On Monday, March 03, 2003 12:58:24 +0530 Prasad <prasad_s@students.iiit.net> wrote:
>>
>> >
>> >
>> > I have seen the Documentation/serial-console.txt and accordingly gave the
>> > kernel arguments console=/dev/ttyS0,9600n8, but even after giving that i
>> > am not getting anything to the other end. To check if the serial
>> > communication was in place... i tried echo "abc" > /dev/ttyS0 and that
>> > worked.
>>
>> I use "console=ttyS0,57600n8" - no "/dev".
>>
>> M.
>>
>
> --
> Failure is not an option
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-03-03 7:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-03 7:16 redirecting printk to the Serial port Prasad
2003-03-03 7:20 ` Martin J. Bligh
2003-03-03 7:28 ` Prasad
2003-03-03 7:30 ` Zwane Mwaikambo
2003-03-03 7:31 ` Martin J. Bligh
2003-03-03 7:39 ` Prasad
2003-03-03 7:51 ` Martin J. Bligh
2003-03-03 7:32 ` Prasad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®