[opensuse-kernel] Disabling serial/8250
Hi, is it possible to disable the built-in 8250 driver of the recent (11.2) kernels from the boot command line? Reason: I need to use a specific serial I/O board (Meilhaus ME 9100) that requires a patched 8250.c file to work (see http://www.meilhaus.de/fileadmin/upload/download/products/serial/me9x00-2.0.... for the patch, and http://www.spinics.net/lists/linux-serial/msg01650.html for a short discussion on the LKML). Since the 8250.c is directly built into the openSUSE kernel, I want to disable the driver there and add a patched 8250 module if the system was booted. This would avoid the need of installing a custom kernel. Is this possible? Best regards Ole -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
* Ole Streicher
is it possible to disable the built-in 8250 driver of the recent (11.2) kernels from the boot command line?
I think it's needed for a serial console to work easly. I think it's quite important to have that in place for debugging. Regards, Bernhard -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
* Bernhard Walle
* Ole Streicher
[2010-07-05 10:38]: is it possible to disable the built-in 8250 driver of the recent (11.2) kernels from the boot command line?
I think it's needed for a serial console to work easly. I think it's quite important to have that in place for debugging.
Maybe "8250.nr_uarts=0". Regards, Bernhard -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Mon, Jul 05, 2010 at 10:38:12AM +0200, Ole Streicher wrote:
Hi,
is it possible to disable the built-in 8250 driver of the recent (11.2) kernels from the boot command line?
Reason: I need to use a specific serial I/O board (Meilhaus ME 9100) that requires a patched 8250.c file to work (see http://www.meilhaus.de/fileadmin/upload/download/products/serial/me9x00-2.0.... for the patch, and http://www.spinics.net/lists/linux-serial/msg01650.html for a short discussion on the LKML).
As the de-facto serial kernel maintainer now, I'd be glad to accept this patch if it is fixed up as per the review comments in that thread. If that happens, then you would not need to worry about this type of issue. Also, if you are having to patch the file anyway, you are building your own kernels, right? Then you shouldn't have to worry about building the driver into the kernel, right? thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Monday 05 July 2010 06:25:51 pm Greg KH wrote:
On Mon, Jul 05, 2010 at 10:38:12AM +0200, Ole Streicher wrote:
Hi,
is it possible to disable the built-in 8250 driver of the recent (11.2) kernels from the boot command line?
Reason: I need to use a specific serial I/O board (Meilhaus ME 9100) that requires a patched 8250.c file to work (see http://www.meilhaus.de/fileadmin/upload/download/products/serial/me 9x00-2.0.3-2.6.28.patch for the patch, and http://www.spinics.net/lists/linux-serial/msg01650.html for a short discussion on the LKML).
As the de-facto serial kernel maintainer now, I'd be glad to accept this patch if it is fixed up as per the review comments in that thread.
If that happens, then you would not need to worry about this type of issue.
Also, if you are having to patch the file anyway, you are building your own kernels, right?
Not necessarily. Drivers can easily be built outside of the kernel tree, and I bet this is what the original poster is doing.
Then you shouldn't have to worry about building the driver into the kernel, right?
It shouldn't be a problem either way, assuming that serial port follow the standard device driver model. Even if the "wrong" driver is built into the kernel, you should be able to: * Unbind the driver in question from the devices, using the "unbind" attributes in sysfs. * Build your modified driver as a module, with a different name (driver.name field). * Load your new module, and either let it bind automatically to the devices, or use the sysfs "bind" attributes. (This is all said without having looked at the specific implementation of the serial subsystem... Maybe there are extra complexities I'm missing.) -- Jean Delvare Suse L3 -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
Am 05.07.2010 18:25, schrieb Greg KH:
On Mon, Jul 05, 2010 at 10:38:12AM +0200, Ole Streicher wrote:
Hi,
is it possible to disable the built-in 8250 driver of the recent (11.2) kernels from the boot command line?
Reason: I need to use a specific serial I/O board (Meilhaus ME 9100) that requires a patched 8250.c file to work (see http://www.meilhaus.de/fileadmin/upload/download/products/serial/me9x00-2.0.... for the patch, and http://www.spinics.net/lists/linux-serial/msg01650.html for a short discussion on the LKML).
As the de-facto serial kernel maintainer now, I'd be glad to accept this patch if it is fixed up as per the review comments in that thread.
If that happens, then you would not need to worry about this type of issue.
Unfortunately, I am just a user of this card. I just found this message while searching for a solution for this Mailhaus card.
Also, if you are having to patch the file anyway, you are building your own kernels, right? Then you shouldn't have to worry about building the driver into the kernel, right?
The idea is that I disable this (builtin) driver at boot time and use the patched driver as a module. This would allow me to use the original kernel and thus avoids the need to re-compile the whole kernel myself on every kernel update. Best regards Ole -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Tue, Jul 06, 2010 at 08:49:09AM +0200, Ole Streicher wrote:
Am 05.07.2010 18:25, schrieb Greg KH:
On Mon, Jul 05, 2010 at 10:38:12AM +0200, Ole Streicher wrote:
Hi,
is it possible to disable the built-in 8250 driver of the recent (11.2) kernels from the boot command line?
Reason: I need to use a specific serial I/O board (Meilhaus ME 9100) that requires a patched 8250.c file to work (see http://www.meilhaus.de/fileadmin/upload/download/products/serial/me9x00-2.0.... for the patch, and http://www.spinics.net/lists/linux-serial/msg01650.html for a short discussion on the LKML).
As the de-facto serial kernel maintainer now, I'd be glad to accept this patch if it is fixed up as per the review comments in that thread.
If that happens, then you would not need to worry about this type of issue.
Unfortunately, I am just a user of this card. I just found this message while searching for a solution for this Mailhaus card.
Well, users are good to have, if you want to clean this up, I'll be glad to help you get it accepted upstream. thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (4)
-
Bernhard Walle
-
Greg KH
-
Jean Delvare
-
Ole Streicher