LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2024, 08:04 PM   #1
Andypoo
Member
 
Registered: Oct 2019
Distribution: Slackware
Posts: 66

Rep: Reputation: 57
Lightbulb Request: Support for more serial ports in the default kernels.


8250 serial driver supports more than 4 ports, and allows for a kernel parameter to request for more than the default number of ports, but there is a hard limit currently of 4 in Slackware's default kernels which means a kernel rebuild is required to go above 4.

Would it be possible to increase CONFIG_SERIAL_8250_NR_UARTS to 8 or even 16 in future kernels?

CONFIG_SERIAL_8250_RUNTIME_UARTS could stay as 4 (which limits the creation of additional ttys without a kernel parameter) to keep behaviour for the general public the same.

15.0/current:
Code:
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
Thanks (on behalf of all automation system and POS developers).

Last edited by Andypoo; 01-03-2024 at 08:05 PM.
 
Old 01-04-2024, 01:01 PM   #2
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
I've always understood the default Slackware kernel to be identical to the kernel released by Linus?
 
Old 01-04-2024, 01:17 PM   #3
Andypoo
Member
 
Registered: Oct 2019
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 57
I don't think it is identical, but fair point to check upstream. Upstream default is indeed still 4.

I did a bit of searching around to find out what other distros.
(This information could be a year out of date)

ArchLinux has it set to 32 (with runtime as 32).
CentOS has it set to 64 (with runtime as 4).
Debian has it set to 32 (with runtime as 4).
Fedora has it set to 32 (with runtime as 32).
Oracle Server has it set to 32 (with runtime as 4).
Red Hat Enterprise has it set to 64 (with runtime as 4).
SuSE Enterprise has it set to 32 (with runtime as 32).
Ubuntu has it set to 48 (with runtime as 4 -> 32 in various kernel flavours).

Andrew.
 
Old 01-04-2024, 01:19 PM   #4
Andypoo
Member
 
Registered: Oct 2019
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 57
Adding some context of the two options from the kernel here, to avoid needing to dig around.

Code:
config SERIAL_8250_NR_UARTS
	int "Maximum number of 8250/16550 serial ports"
	depends on SERIAL_8250
	default "4"
	help
	  Set this to the number of serial ports you want the driver
	  to support.  This includes any ports discovered via ACPI or
	  PCI enumeration and any ports that may be added at run-time
	  via hot-plug, or any ISA multi-port serial cards.

config SERIAL_8250_RUNTIME_UARTS
	int "Number of 8250/16550 serial ports to register at runtime"
	depends on SERIAL_8250
	range 0 SERIAL_8250_NR_UARTS
	default "4"
	help
	  Set this to the maximum number of serial ports you want
	  the kernel to register at boot time.  This can be overridden
	  with the module parameter "nr_uarts", or boot-time parameter
	  8250.nr_uarts
Andrew.
 
Old 01-04-2024, 01:33 PM   #5
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
slackware-15.0/source/k/slack-desc/slack-desc.kernel-source

kernel-source: kernel-source (Linux kernel source)
kernel-source:
kernel-source: Source code for Linus Torvalds' Linux kernel.
kernel-source:
kernel-source: This is the complete and unmodified source code for the Linux kernel.
 
Old 01-04-2024, 01:43 PM   #6
Andypoo
Member
 
Registered: Oct 2019
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 57
Yes, the source code for the kernel is unmodified, but the config files are provided by Slackware.

https://mirrors.slackware.com/slackw...ernel-configs/

These evolve with Slackware afaik.

Andrew.
 
Old 01-04-2024, 01:48 PM   #7
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
Oh, I see, thanks. I don't understand or have an answer for you, sorry, your post just interested me.
 
Old 01-04-2024, 02:01 PM   #8
Andypoo
Member
 
Registered: Oct 2019
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 57
Speaking of upstream..

The kernel in fact ships with defconfigs for different platforms as well (separately from the configs Slackware uses, which have evolved independently over time).

The defconfigs actually have CONFIG_SERIAL_8250_NR_UARTS set to 32 on i386/x86_64, so I think it would make sense to bump Slackware to that as well.

It was changed from 4 to 32 in May, 2008:

Code:
commit 5cb04df8d3f03e37a19f2502591a84156be71772
Author: Ingo Molnar <mingo@elte.hu>
Date:   Sun May 4 19:49:04 2008 +0200

    x86: defconfig updates
    
    refresh 32-bit defconfig too, and update the 64-bit configs as well,
    the defconfig should be much more useful by default, so most of the
    updates are the enabling of various options.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Andrew.

Last edited by Andypoo; 01-04-2024 at 02:04 PM.
 
Old 01-04-2024, 02:02 PM   #9
Andypoo
Member
 
Registered: Oct 2019
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by rkfb View Post
Oh, I see, thanks. I don't understand or have an answer for you, sorry, your post just interested me.
No worries! I also enjoy finding out random info that I didn't realise before on these forums. :-)

It's a great source of hidden info and secret gems.

Andrew.
 
Old 01-08-2024, 04:47 PM   #10
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
Maybe you could post something about this in the sticky thread 'Requests for current-next (15.0-->15.1)' ?
 
Old 01-08-2024, 04:52 PM   #11
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,484

Rep: Reputation: 4234Reputation: 4234Reputation: 4234Reputation: 4234Reputation: 4234Reputation: 4234Reputation: 4234Reputation: 4234Reputation: 4234Reputation: 4234Reputation: 4234
Quote:
Originally Posted by rkfb View Post
Maybe you could post something about this in the sticky thread 'Requests for current-next (15.0-->15.1)' ?
https://www.linuxquestions.org/quest...0/#post6474836

:-)
 
Old 01-08-2024, 05:08 PM   #12
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
Amazing!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do default BSD kernels typically disable PNP BIOS support? Gullible Jones *BSD 1 05-14-2014 12:58 AM
Serial ports, USB-Serial adapters, and Linux Daravon Linux - Newbie 3 09-09-2010 06:53 AM
Kernel support for more serial ports michael.barnes Linux - Hardware 2 09-09-2009 06:22 PM
backward compatibility in kernels + custom kernels + more queries mmp_3341 Linux - Kernel 1 04-12-2007 07:28 AM
ports, ports, ports cjae Linux - Networking 1 04-09-2006 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration