Re: Can I manage/modify console baud rates from userspace?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2010-05-02 at 22:25 +0200, Sam Ravnborg wrote:
> I would suggest asking Alan Cox - he if anyone would know.
> I lost the original mail and context above is missing some details.
> Anyway added to this mail.

Thanks Sam.  Alan, hope you don't mind a direct email.  I'll cut down
the original request to just (I hope) the important details.

I have an environment in which a number of (Intel-based) blades in one
or more blade chassis boot from a host using PXE to download a Linux
kernel (2.6.31-based ATM) and a ramdisk root partition.  These blades
provide access to the console via serial-over-LAN, where the chassis
provides a special vlan connection to the blades' ttyS1 port.  You can
then connect to the chassis management module via SSH, and from there
connect to the console of any of the blades.

We require this capability in our deployed systems, not just during
development, so I need to make sure this is working at all times and
that it's easy to configure and maintain in the field.

Today, all the blades we ship use a maximum baud rate of 19200 so in my
PXE config, I have "console=ttyS1,19200" added to the kernel boot line.
Works great.

The vendor is providing a newer version of these blades and the current
version is end-of-lifed.  The new blades are drop-in replaceable,
individually, with the current blades, which is nice.  Unfortunately
these new blades do not support any overlapping baud rate with the old
blades, so there's no single value I can provide in the PXE
configuration on my host that will work with all blades in a
heterogeneous blade deployment.


So I'm stuck here and don't have a good idea how to move forward.  I
tried using setserial to modify the baud rate (it supports a parameter
baud_base which didn't seem like it would do what I wanted--and it
didn't) but no joy.

Trying to customize the PXE config would be virtually impossible: we'd
have to map all the MAC addresses and figure out which ones were for
newer blades, and maintain that mapping as blades were swapped in and
out and even moved between chassis or between slots in the same chassis.
A nightmare!

Is there some other way to modify the baud rate of the console device
from userspace once I figure out the right one?  It would definitely be
less than ideal since we'd lose all the boot output, except what we can
get from dmesg _if_ the system boots, but it would be something.

Any other thoughts or ideas?


Thanks for reading!

--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Gstreamer Embedded]     [Linux MMC Devel]     [U-Boot V2]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux ARM Kernel]     [Linux OMAP]     [Linux SCSI]

  Powered by Linux