[Centos] Digital IO card and /proc/devices

Wed Jan 19 15:45:28 UTC 2005
JCT <jct at panonet.net>

This problem is now resolved; I found a bug in the SeaLevel driver.
Thanks to folks who have looked into this.

On Wednesday 19 Jan 2005 1:51 pm, JCT wrote:
> I have since upgraded to CentOS 3.4 and still no success.
> I had a look at the kernel code and there is a call to  register_chrdrv.
> Could anyone tell me if that function is deprecated ?
>
> The driver code is available from
> ftp://ftp1.sealevel.com/pub/SOFTWARE/SEAIO/CURRENT/
>
> Code snippet where the driver is registering with the kernel...
>
> // Get the major number for the actual device node
>                 assigned_major = register_chrdev(major, "SeaIO",
> &seaio_fops); if (assigned_major < 0) {
>                         PDEBUG(KERN_WARNING "SeaIO: can't get major %d\n",
>                                major);
>                         return assigned_major;
>                         }
>
>                 if (major == 0)
>                         major = assigned_major;
>                 #ifdef EXPERIMENTAL_INTERRUPT_SUPPORT_ENABLED
>                 // get the major number for the device's FIFO
>                 assigned_major_buffer = register_chrdev(major - 1,
> "SeaIO_FIFO",
>                                 &seaio_buffer_fops);
>                 if (assigned_major_buffer < 0) {
>                         PDEBUG(KERN_WARNING "SeaIO_FIFO: can't get major
> %d\n",
>                                 major - 1);
>                         return assigned_major_buffer;
>                 }
> ...
>
> On Thursday 13 Jan 2005 2:23 pm, JCT wrote:
> > Hi all,
> >
> > I am having problems to get the SeaLevel IO card to work with CentOS
> > distro.
> >
> > Basically the card is being recognised and shown by lspci BUT
> > /proc/devices file is not updated with the new devices does anyone know 
> > why. ?
> >
> > Could someone tell me what/where infos are needed to get /proc/devices to
> > be updated.
> >
> > The reason I require the /proc/devices infos is because I want to run a
> > mknod command with those infos.
> >
> > This is rather urgent so any help will be much appreciated.
> >
> >
> > =========
> > [root at machine]# ./seaio-load
> > Warning: kernel-module version mismatch
> > /opt/relay/lib/modules/seaio.o was compiled for kernel version
> > 2.4.21-20.EL.c0smp
> > while this kernel is version 2.4.21-20.0.1.ELsmp
> > Warning: /opt/relay/lib/modules/seaio.o symbol for parameter
> > break_on_load not found
> > Warning: loading /opt/pmx-relay/lib/modules/seaio.o will taint the
> > kernel: no license
> > See http://www.tux.org/lkml/#export-tainted for information about tainted
> > modules
> > Warning: loading /opt/relay/lib/modules/seaio.o will taint the kernel:
> > forced load
> > Module seaio loaded, with warnings
> >
> >
> > mknod: wrong number of arguments
> > Try `mknod --help' for more information.
> > mknod: wrong number of arguments
> > Try `mknod --help' for more information.
> > mknod: wrong number of arguments
> > Try `mknod --help' for more information.
> > mknod: wrong number of arguments
> > Try `mknod --help' for more information.
> > chgrp: failed to get attributes of `/dev/dio[0-3]': No such file or
> > directory chmod: failed to get attributes of `/dev/dio[0-3]': No such
> > file or directory
> >
> >
> >
> >
> > lsmod output
> > ==========
> > Module Size Used by Tainted: PF
> > seaio 8784 0 (unused)
> >
> >
> >
> > Kernel version :-
> > ============
> > Linux pdc-svr3 2.4.21-20.0.1.ELsmp #1 SMP Thu Dec 2 23:06:40 GMT 2004
> > i686 i686 i386 GNU/Linux
> >
> >
> > lspci output
> > ==========
> > 03:06.0 Class ff00: Sealevel Systems Inc: Unknown device 8012 (rev 01)
> >
> >
> > /etc/sysconfig/hwconf output
> > =======================
> > class: OTHER
> > bus: PCI
> > detached: 0
> > driver: unknown
> > desc: "Sealevel Systems Inc|unknown device 135e:8012"
> > vendorId: 135e
> > deviceId: 8012
> > subVendorId: 135e
> > subDeviceId: 8012
> > pciType: 1
> > pcibus: 3
> > pcidev: 6
> > pcifn: 0

-- 
Regards
JC