Building serial_cs.ko

Russell King rmk+pcmcia at arm.linux.org.uk
Sat Jul 30 15:41:38 EDT 2005


On Fri, Jul 29, 2005 at 05:24:19PM -0400, Nathan M wrote:
> Yes it seems like I may need to reflash my kernel in it's entirety.  I
> noticed serial_cs is mentioned under the ? for "8250/16550 PCMCIA
> device support".  This created several new files among which include:
> 
> serial_cs.ko
> serial_cs.mod.o
> serial_cs.o
> 8250.ko
> 8250.mod.o
> 8250.o
> 8250_pci.ko
> 8250_pci.mod.o
> 8250_pci.o
> 
> I know the .ko files are 2.6.xx kernel modules and the .o files are
> 2.4.xx kernel modules, not sure what the .mod.o files are for?

.ko are 2.6 kernel modules.  .o are object files.  .mod.o are object
files containing the additional module information which makes up the
.ko.  Basically, .ko = .o + .mod.o.

> ---code-------------------------------------------------------------------------------
> [root at ARMCore pcmcia]$ insmod 8250.ko
> Serial: 8250/16550 driver $Revision: 1.90 $ 5 ports, IRQ sharing disabled
> insmod: error inserting '8250.ko': -1 Device or resource busy

This should _NOT_ happen in any sane kernel.

Which kernel are you using, and what patches have been applied?

> [root at ARMCore pcmcia]$ insmod 8250_pci.ko
> 8250_pci: Unknown symbol register_serial
> 8250_pci: Unknown symbol serial8250_resume_port
> 8250_pci: Unknown symbol serial8250_suspend_port
> 8250_pci: Unknown symbol unregister_serial
> insmod: error inserting '8250_pci.ko': -1 Unknown symbol in module

That's because 8250.ko errored out.  You don't need the PCI module (you're
not using a PCI serial card, right?)

> [root at ARMCore pcmcia]$ insmod serial_cs.ko
> serial_cs: Unknown symbol register_serial
> serial_cs: Unknown symbol serial8250_resume_port
> serial_cs: Unknown symbol serial8250_suspend_port
> serial_cs: Unknown symbol unregister_serial
> insmod: error inserting 'serial_cs.ko': -1 Unknown symbol in module

Same again.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core



More information about the linux-pcmcia mailing list