Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16079 - not fully gentooized init.d/serial and setserial nonexistent ttyS0
Summary: not fully gentooized init.d/serial and setserial nonexistent ttyS0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 22457 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-20 08:20 UTC by Faye Pearson
Modified: 2004-08-11 20:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
"serial" int script. reads /etc/serial.conf (serial,887 bytes, text/plain)
2003-03-29 17:37 UTC, Stanis Trendelenburg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Faye Pearson 2003-02-20 08:20:13 UTC
shouldn't this:                source /etc/rc.d/config/serial 
be this:			   source /etc/conf.d/serial 
 
/etc/rc.d doesn't exist, let alone /etc/rc.d/config/ :) 
 
Where's "setports" defined?  This is setting up a ttyS0 with a 16550 UART on IRQ4 
which doesn't exist on my laptop.  I only have USB serial on the laptop.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-20 14:05:12 UTC
Yes, nobody ever really use it.  I do not use/have anything that works with
USB serial ... make a patch that works, and Ill add it.

I will consider moving it to the setserial package (the rc-script):

--------------------------------------------------------
nosferatu root # epm -qf `which setserial`
setserial-2.17-r2
nosferatu root # 
Comment 2 Stanis Trendelenburg 2003-03-29 17:37:22 UTC
Created attachment 9998 [details]
"serial" int script. reads /etc/serial.conf

I need the "serial" init script to set up my ports correctly (with
low_latency), so I have changed the script to read /etc/serial.conf file that
comes with the "setserial" package and fixed some minor bugs. Perhaps this can
be included in the setserial package?
Comment 3 Holger Düll 2003-11-19 18:06:23 UTC
keywords: setserial /etc/serial.conf /etc/init.d/serial lirc lirc_serial lirc_sir

i discovered this bug, too. i wanted to use lirc but noticed that the serial devices are always asigned to serial.o (in case it's a module), as this module always gets loaded very early during the boot-process, even before modules (e.g. lirc_serial.o) listed in /etc/modules.autoload.d/* are modprobed. I don't know what causes this. As there are no kernel-bootparams to tweak the serial-driver, you have to use setserial which should be used within startscripts (/etc/init.d/serial, Debian GNU/Linux: /etc/init.d/setserial). the script http://bugs.gentoo.org/attachment.cgi?id=9998&action=view works fine for me, although it doesn't seem to conform to Gentoo-guidelines(!?)(maybe i'll write a conforming one). by intuition i prefer having the config-file /etc/serial.conf over /etc/conf.d/serial... .
to free my second serial port in order to give it to lirc_serial.o respectively lirc_sir.o, i put "/dev/ttyS1 uart none" line in /etc/serial.conf

of course, not compiling the serial driver or unloading the module and then loading the lirc driver module works, too.

please fix it. TIA
Comment 4 Holger Düll 2003-11-20 08:17:36 UTC
bug 22457 is identical:: http://bugs.gentoo.org/show_bug.cgi?id=22457
Comment 5 Michael Mauch 2004-02-09 13:01:09 UTC
baselayout-1.8.6.13 still has the broken /etc/init.d/serial (yes, it was my own fault that I let it overwrite the good script found in <http://bugs.gentoo.org/attachment.cgi?id=9998&action=view>). Can the script in that attachment please replace the /etc/init.d/serial that comes with baselayout? This script works, the current one from baselayout does not.

To load the lirc_serial module before the serial_core module (with kernel 2.6), I have a line

below serial_core lirc_serial

in /etc/modules.d/lirc, so lirc_serial can grab its port before serial_core.
Comment 6 Jay Pfeifer (RETIRED) gentoo-dev 2004-08-11 20:01:58 UTC
*** Bug 22457 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2004-08-11 20:12:05 UTC
added to cvs ... hope no one kills me for it :)

thanks for the script !