* Re: Console on USB
[not found] <mailman.1061346549.9440.linux-kernel2news@redhat.com>
@ 2003-08-20 4:46 ` Pete Zaitcev
2003-08-20 4:58 ` Randy.Dunlap
0 siblings, 1 reply; 16+ messages in thread
From: Pete Zaitcev @ 2003-08-20 4:46 UTC (permalink / raw)
To: Thomas Molina; +Cc: linux-kernel
> So I ordered a USB to serial converter, configured a 2.6.0-test3
> kernel, added a console=/dev/ttyUSB0 to the kernel command line and
> connected this to my desktop with a null modem adapter.
What made you think this will work?!
> Is there any advice I might be able to use to get this going?
You'd have to write it. Grep for register_console for starters.
But I do not advise it, see below.
> I really want to be able to catch some oops output.
If oops happens with interrupts closed, forget about it.
USB needs interrupts to work. This is one of the reasons nobody
bothered to implement console over USB serial.
You will have a better chance using Ingo's netconsole, if a patch
for your Ethernet driver exists.
-- Pete
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 4:46 ` Console on USB Pete Zaitcev
@ 2003-08-20 4:58 ` Randy.Dunlap
2003-08-20 5:11 ` Pete Zaitcev
2003-08-20 7:15 ` Zwane Mwaikambo
0 siblings, 2 replies; 16+ messages in thread
From: Randy.Dunlap @ 2003-08-20 4:58 UTC (permalink / raw)
To: zaitcev; +Cc: tmolina, linux-kernel
>> So I ordered a USB to serial converter, configured a 2.6.0-test3
>> kernel, added a console=/dev/ttyUSB0 to the kernel command line and
>> connected this to my desktop with a null modem adapter.
>
> What made you think this will work?!
Maybe the drivers/usb/serial/Kconfig file?
config USB_SERIAL_CONSOLE
bool "USB Serial Console device support (EXPERIMENTAL)"
depends on USB_SERIAL=y && EXPERIMENTAL
>> Is there any advice I might be able to use to get this going?
>
> You'd have to write it. Grep for register_console for starters.
> But I do not advise it, see below.
usb/serial/console.c:255: register_console(&usbcons);
>> I really want to be able to catch some oops output.
>
> If oops happens with interrupts closed, forget about it.
> USB needs interrupts to work. This is one of the reasons nobody
> bothered to implement console over USB serial.
The call to register_console() also happens very late in the boot
sequence, so if your oops is early, USB console won't help.
> You will have a better chance using Ingo's netconsole, if a patch
> for your Ethernet driver exists.
Certainly, I agree.
~Randy
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 4:58 ` Randy.Dunlap
@ 2003-08-20 5:11 ` Pete Zaitcev
2003-08-20 7:15 ` Zwane Mwaikambo
1 sibling, 0 replies; 16+ messages in thread
From: Pete Zaitcev @ 2003-08-20 5:11 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: zaitcev, tmolina, linux-kernel
> Date: Tue, 19 Aug 2003 21:58:45 -0700 (PDT)
> From: "Randy.Dunlap" <rddunlap@osdl.org>
> >> Is there any advice I might be able to use to get this going?
> >
> > You'd have to write it. Grep for register_console for starters.
>
> usb/serial/console.c:255: register_console(&usbcons);
Eeek, eating a crow now.
> >> I really want to be able to catch some oops output.
> >
> > If oops happens with interrupts closed, forget about it.
> > USB needs interrupts to work. This is one of the reasons nobody
> > bothered to implement console over USB serial.
>
> The call to register_console() also happens very late in the boot
> sequence, so if your oops is early, USB console won't help.
It's true for many consoles, that's why sparc allows
"-p" in SILO options, for instance. I think either wli or willy
did "early VGA printk" patch.
Interrupts are a major problem. Also, the USB stack is pretty
thick.
-- Pete
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 4:58 ` Randy.Dunlap
2003-08-20 5:11 ` Pete Zaitcev
@ 2003-08-20 7:15 ` Zwane Mwaikambo
1 sibling, 0 replies; 16+ messages in thread
From: Zwane Mwaikambo @ 2003-08-20 7:15 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: zaitcev, tmolina, linux-kernel
On Tue, 19 Aug 2003, Randy.Dunlap wrote:
> > You will have a better chance using Ingo's netconsole, if a patch
> > for your Ethernet driver exists.
>
> Certainly, I agree.
I think Matt Mackall has an updated patch which looks frightfully easy to
add device support to, i think he may have even made it generic (he
basically just calls netdriver isrs)
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 18:07 ` Randy.Dunlap
2003-08-20 18:46 ` Valdis.Kletnieks
@ 2003-08-20 19:40 ` root
1 sibling, 0 replies; 16+ messages in thread
From: root @ 2003-08-20 19:40 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: Valdis.Kletnieks, root, tmolina, linux-kernel, greg, zwane
>
> On Wed, 20 Aug 2003 13:56:18 -0400 Valdis.Kletnieks@vt.edu wrote:
>
> | On Wed, 20 Aug 2003 18:44:58 BST, root@mauve.demon.co.uk said:
> |
> | > For laptops, might console=/dev/irda work?
> |
> | Hmm.... <looks around> Do I have anything handy that will *catch* stuff being
> | spewed out the irda port? Don't think so, or I'd have built that driver....
> |
> | Yes, might work, *if* you have hardware handy.
>
> I don't see any console support in the irda drivers...
> How is it supposed to work?
> or do you just mean that in theory it could be made to work?
I last looked at irda, when my laptop was a 486/745, and thought that
the hardware still looked more or less like a 8250 variant.
I had previously used /dev/ttyS1 (where that was an IR port) to dump
debugging data.
Looking at the documentation for more recent hardware, I find this isn't really
the case any more for all hardware.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 18:07 ` Randy.Dunlap
@ 2003-08-20 18:46 ` Valdis.Kletnieks
2003-08-20 19:40 ` root
1 sibling, 0 replies; 16+ messages in thread
From: Valdis.Kletnieks @ 2003-08-20 18:46 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 585 bytes --]
On Wed, 20 Aug 2003 11:07:42 PDT, "Randy.Dunlap" said:
> I don't see any console support in the irda drivers...
> How is it supposed to work?
> or do you just mean that in theory it could be made to work?
Well, in theory.. The problem is that for irda to work, you'd need a *second*
device that did irda to catch the bits - and I don't have a good feel for how
many of the kernel hackers that would use this have a second irda-capable box -
probably a lot less than have a second box that does USB....
Now if that damned RJ-11 for the LoseModem was useful for something... ;)
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 17:56 ` Valdis.Kletnieks
@ 2003-08-20 18:07 ` Randy.Dunlap
2003-08-20 18:46 ` Valdis.Kletnieks
2003-08-20 19:40 ` root
0 siblings, 2 replies; 16+ messages in thread
From: Randy.Dunlap @ 2003-08-20 18:07 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: root, tmolina, linux-kernel, greg, zwane
On Wed, 20 Aug 2003 13:56:18 -0400 Valdis.Kletnieks@vt.edu wrote:
| On Wed, 20 Aug 2003 18:44:58 BST, root@mauve.demon.co.uk said:
|
| > For laptops, might console=/dev/irda work?
|
| Hmm.... <looks around> Do I have anything handy that will *catch* stuff being
| spewed out the irda port? Don't think so, or I'd have built that driver....
|
| Yes, might work, *if* you have hardware handy.
I don't see any console support in the irda drivers...
How is it supposed to work?
or do you just mean that in theory it could be made to work?
--
~Randy [MOTD: Always include kernel version.]
"Everything is relative."
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 17:44 ` root
@ 2003-08-20 17:56 ` Valdis.Kletnieks
2003-08-20 18:07 ` Randy.Dunlap
0 siblings, 1 reply; 16+ messages in thread
From: Valdis.Kletnieks @ 2003-08-20 17:56 UTC (permalink / raw)
To: root; +Cc: Thomas Molina, Linux Kernel Mailing List, greg, Zwane Mwaikambo
[-- Attachment #1: Type: text/plain, Size: 314 bytes --]
On Wed, 20 Aug 2003 18:44:58 BST, root@mauve.demon.co.uk said:
> For laptops, might console=/dev/irda work?
Hmm.... <looks around> Do I have anything handy that will *catch* stuff being
spewed out the irda port? Don't think so, or I'd have built that driver....
Yes, might work, *if* you have hardware handy.
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 3:20 Thomas Molina
` (2 preceding siblings ...)
2003-08-20 16:14 ` Greg KH
@ 2003-08-20 17:44 ` root
2003-08-20 17:56 ` Valdis.Kletnieks
3 siblings, 1 reply; 16+ messages in thread
From: root @ 2003-08-20 17:44 UTC (permalink / raw)
To: Thomas Molina; +Cc: Linux Kernel Mailing List, greg, Zwane Mwaikambo
>
> I have just spent a very frustrating evening trying to get console on USB
> working. My laptop does not have regular DB-9 serial connectors, only
> USB. So I ordered a USB to serial converter, configured a 2.6.0-test3
> kernel, added a console=/dev/ttyUSB0 to the kernel command line and
> connected this to my desktop with a null modem adapter. However, I am
> unable to get output from this setup on the desktop. On another setup I
> can get a normal serial console output, so I am fairly confident I can set
> things up correctly.
For laptops, might console=/dev/irda work?
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
@ 2003-08-20 17:28 John Bradford
0 siblings, 0 replies; 16+ messages in thread
From: John Bradford @ 2003-08-20 17:28 UTC (permalink / raw)
To: greg, john; +Cc: linux-kernel, tmolina, zwane
> > > > Is there any advice I might be able to use to get this going? I really
> > > > want to be able to catch some oops output.
> > >
> > > Buy a machine with a serial port. That's my recommendation :)
> >
> > That could be difficult in a few years time. What are we going to do
> > when we start getting bugs that are only reproducable on laptops with
> > no legacy ports?
>
> Use the previously mentioned netconsole code.
Yeah, I guess everything will have Ethernet onboard by then :-).
John.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
@ 2003-08-20 17:08 John Bradford
2003-08-20 17:08 ` Greg KH
0 siblings, 1 reply; 16+ messages in thread
From: John Bradford @ 2003-08-20 17:08 UTC (permalink / raw)
To: greg, tmolina; +Cc: linux-kernel, zwane
> > Is there any advice I might be able to use to get this going? I really
> > want to be able to catch some oops output.
>
> Buy a machine with a serial port. That's my recommendation :)
That could be difficult in a few years time. What are we going to do
when we start getting bugs that are only reproducable on laptops with
no legacy ports?
John.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 17:08 John Bradford
@ 2003-08-20 17:08 ` Greg KH
0 siblings, 0 replies; 16+ messages in thread
From: Greg KH @ 2003-08-20 17:08 UTC (permalink / raw)
To: John Bradford; +Cc: tmolina, linux-kernel, zwane
On Wed, Aug 20, 2003 at 06:08:45PM +0100, John Bradford wrote:
> > > Is there any advice I might be able to use to get this going? I really
> > > want to be able to catch some oops output.
> >
> > Buy a machine with a serial port. That's my recommendation :)
>
> That could be difficult in a few years time. What are we going to do
> when we start getting bugs that are only reproducable on laptops with
> no legacy ports?
Use the previously mentioned netconsole code.
Or use a firewire debug console, like some of the BSDs and Windows do
today.
Good luck,
greg k-h
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 3:20 Thomas Molina
2003-08-20 7:12 ` Zwane Mwaikambo
2003-08-20 7:38 ` stefan.eletzhofer
@ 2003-08-20 16:14 ` Greg KH
2003-08-20 17:44 ` root
3 siblings, 0 replies; 16+ messages in thread
From: Greg KH @ 2003-08-20 16:14 UTC (permalink / raw)
To: Thomas Molina; +Cc: Linux Kernel Mailing List, Zwane Mwaikambo
On Tue, Aug 19, 2003 at 10:20:51PM -0500, Thomas Molina wrote:
> I have just spent a very frustrating evening trying to get console on USB
> working. My laptop does not have regular DB-9 serial connectors, only
> USB. So I ordered a USB to serial converter,
Which usb to serial converter? Not all of them work with Linux. Does
this device work with Linux _not_ as a serial console device?
> configured a 2.6.0-test3
> kernel, added a console=/dev/ttyUSB0 to the kernel command line and
> connected this to my desktop with a null modem adapter. However, I am
> unable to get output from this setup on the desktop. On another setup I
> can get a normal serial console output, so I am fairly confident I can set
> things up correctly.
Which "serial console" are you trying to get working? The kernel log
console, or a login console?
> Googling around and doing a search on lkml archives gave some minimal
> help, but I can find very little info past early to mid 2.5 kernels. The
> configuration doesn't quite seem to work the way I read documentation.
> For instance, the web pages I can find indicate I should be able to build
> this modular; however the configuration makes the setting of console on
> usb depend on USB being y and EXPERIMENTAL being defined.
What web page says you can build this modular? You have to build it
into the kernel.
> In /var/log/messages I can see the USB-to-serial converter being recogized
> and the driver being loaded, just before the synaptics touchpad is probed.
Can you show us the relevant part of the kernel logs?
> It looks like things are correct, but, as I said, I am unable to get
> output. Am I headed for frustration, or is there some advice to get good
> results?
You are headed for frustration. USB serial console was a neat hack, but
pretty pointless. It has the following problems:
- can't see oopses before USB starts up, and USB starts up
almost last in the system boot process.
- really can not capture oopses very well as USB is interrupt
driven
- most usb-serial converters have a very small buffer, so you
constantly get over-runs in printing out console messages
(meaning that only a few of the devices will even work
properly, you usually have to buy one of the expensive ones to
see all messages.)
> Is there any advice I might be able to use to get this going? I really
> want to be able to catch some oops output.
Buy a machine with a serial port. That's my recommendation :)
Good luck,
greg k-h
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 3:20 Thomas Molina
2003-08-20 7:12 ` Zwane Mwaikambo
@ 2003-08-20 7:38 ` stefan.eletzhofer
2003-08-20 16:14 ` Greg KH
2003-08-20 17:44 ` root
3 siblings, 0 replies; 16+ messages in thread
From: stefan.eletzhofer @ 2003-08-20 7:38 UTC (permalink / raw)
To: Linux Kernel Mailing List
Hi,
AFAIK there was a network console patch on the list recently.
IIRC it sends UDP packets to a receiving daemon (or netcat ;),
and works w/o interrupts. I believe, though, that there are
only certain nics supported.
Cheers,
Stefan E.
--
Eletztrick Computing - Customized Linux Development
Stefan Eletzhofer, Marktstrasse 43, DE-88214 Ravensburg
http://www.eletztrick.de
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Console on USB
2003-08-20 3:20 Thomas Molina
@ 2003-08-20 7:12 ` Zwane Mwaikambo
2003-08-20 7:38 ` stefan.eletzhofer
` (2 subsequent siblings)
3 siblings, 0 replies; 16+ messages in thread
From: Zwane Mwaikambo @ 2003-08-20 7:12 UTC (permalink / raw)
To: Thomas Molina; +Cc: Linux Kernel Mailing List, Greg Kroah-Hartmann
On Tue, 19 Aug 2003, Thomas Molina wrote:
> It looks like things are correct, but, as I said, I am unable to get
> output. Am I headed for frustration, or is there some advice to get good
> results?
>
> Is there any advice I might be able to use to get this going? I really
> want to be able to catch some oops output.
How about forgetting the console= part and just booting and then set the
console log level so that you're able to get oopses to hit the USB
console.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Console on USB
@ 2003-08-20 3:20 Thomas Molina
2003-08-20 7:12 ` Zwane Mwaikambo
` (3 more replies)
0 siblings, 4 replies; 16+ messages in thread
From: Thomas Molina @ 2003-08-20 3:20 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: greg, Zwane Mwaikambo
I have just spent a very frustrating evening trying to get console on USB
working. My laptop does not have regular DB-9 serial connectors, only
USB. So I ordered a USB to serial converter, configured a 2.6.0-test3
kernel, added a console=/dev/ttyUSB0 to the kernel command line and
connected this to my desktop with a null modem adapter. However, I am
unable to get output from this setup on the desktop. On another setup I
can get a normal serial console output, so I am fairly confident I can set
things up correctly.
Googling around and doing a search on lkml archives gave some minimal
help, but I can find very little info past early to mid 2.5 kernels. The
configuration doesn't quite seem to work the way I read documentation.
For instance, the web pages I can find indicate I should be able to build
this modular; however the configuration makes the setting of console on
usb depend on USB being y and EXPERIMENTAL being defined.
In /var/log/messages I can see the USB-to-serial converter being recogized
and the driver being loaded, just before the synaptics touchpad is probed.
It looks like things are correct, but, as I said, I am unable to get
output. Am I headed for frustration, or is there some advice to get good
results?
Is there any advice I might be able to use to get this going? I really
want to be able to catch some oops output.
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2003-08-20 19:42 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1061346549.9440.linux-kernel2news@redhat.com>
2003-08-20 4:46 ` Console on USB Pete Zaitcev
2003-08-20 4:58 ` Randy.Dunlap
2003-08-20 5:11 ` Pete Zaitcev
2003-08-20 7:15 ` Zwane Mwaikambo
2003-08-20 17:28 John Bradford
-- strict thread matches above, loose matches on Subject: below --
2003-08-20 17:08 John Bradford
2003-08-20 17:08 ` Greg KH
2003-08-20 3:20 Thomas Molina
2003-08-20 7:12 ` Zwane Mwaikambo
2003-08-20 7:38 ` stefan.eletzhofer
2003-08-20 16:14 ` Greg KH
2003-08-20 17:44 ` root
2003-08-20 17:56 ` Valdis.Kletnieks
2003-08-20 18:07 ` Randy.Dunlap
2003-08-20 18:46 ` Valdis.Kletnieks
2003-08-20 19:40 ` root
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).