Setserial, serial module and Kernel V2.6.0
Hopefully somebody here can give me some ideas. I've tried eMailing the kernel
serial module maintainer (no response), and posting a bug report against
setserial (but he has no experience with kernel V2.6 and would appreciate any
advice too).
I've compiled kernel-image-2.6.0-test5 ok. And installed module-init-tools to
get modules to work properly. Everything seems ok except for a missing serial
module and setserial.
During kernel V2.6 boot something causes modprobe to try to load a "serial"
module which doesn't seem to exist in V2.6. AFAIK kernel 2.6 uses "8250-pci"
and/or "8250-pnp" instead of "serial", although the help during "make
menuconfig" does refer to what ends up as the "8250-pci" module as the "serial"
module.
In my case, the message "Modprobe: FATAL: Module serial not found" occurs
during boot up 4x, one right after another. Later during boot the same error
occurs a couple of times for each of ttyS0-ttyS1; these last errors disappear
after removing /etc/init.d/setserial. Perhaps the first errors are related to
mouse drivers (?)
Anyway, after boot lsmod doesn't show any serial module loaded, either "serial"
or
"8250-pci". And "setserial /dev/ttys0" returns "/dev/ttyS0: No such device".
However I can "modprobe 8250-pci" and the module 8250-pci and its
dependencies will load and now "setserial /dev/ttys0" returns "/dev/ttyS0,
UART: unknown, Port: 0x03f8, IRQ: 4", as it should. And I get this in syslog:
"Serial: 8250/16550 driver $Revision: 1.90 $ IRQ sharing disabled". No reports
appear in ksymoops with Kernel V2.6.
So I then used update-modules to create an "alias serial 8250-pci" line in
/lib/modules/modprobe.conf. I also linked the /etc/modutils/setserial file over
to /etc/modprobe.d before running update-modules. This adds these lines
into /lib/modules/modprobe.conf:
alias /dev/tts serial
alias /dev/tts/0 serial
alias /dev/tts/1 serial
alias /dev/tts/2 serial
alias /dev/tts/3 serial
But certain commands like /etc/modutil/setserial's "post-install" or
"pre-install" (and "probe" as well) generate errors with the new kernel's
modprobe. So I disabled these.
Afterwards I still get "Modprobe: FATAL: Module serial not found" during boot.
But "modprobe serial" from the command line now works fine.
Help?
Reply to: