On Sunday, January 31, 2016 at 8:15:59 PM UTC+11, John Snowdon wrote:
Not sure how many people are still actively looking at this group, but I thought I'd drop a note to say that the Linux kernel driver for the B004/B008 compatible ISA interface cards that I've been working on is now pretty stable and working well.
I certainly am still looking and active :-)
All the code is in github (http://github.com/megatron-uk/INMOS-Link-Driver) and it is working nicely.
Thanks this is fantastic. So I have got this to compile as follows on Ubuntu Linux 15.10, Thinkpad X60, uname -a as per the follows
Linux x60 4.2.0-25-generic #30-Ubuntu SMP, i686 i686 i686 GNU/Linux
To start I got the following errors
make -C /lib/modules/4.2.0-25-generic/build M=/home/ejb/new/INMOS-Link-Driver-ma
ster modules
make[1]: Entering directory '/usr/src/linux-headers-4.2.0-25-generic'
CC [M] /home/ejb/new/INMOS-Link-Driver-master/link-driver.o /home/ejb/new/INMOS-Link-Driver-master/link-driver.c: In function 'byte_to_binar
y':
/home/ejb/new/INMOS-Link-Driver-master/link-driver.c:144:5: warning: ISO C90 for
bids mixed declarations and code [-Wdeclaration-after-statement]
int z;
^
had to move "int z;" to start of function.
Then I got the following error for link_read/link_write/link_ioctl
In file included from /home/ejb/new/INMOS-Link-Driver-master/link-driver.c:64:0:
/home/ejb/new/INMOS-Link-Driver-master/link-driver.c: In function 'link_read': /home/ejb/new/INMOS-Link-Driver-master/link-driver.c:267:39: error: 'struct file
' has no member named 'f_dentry'
const unsigned int minor = MINOR(file->f_dentry->d_inode->i_rdev);
^
include/linux/kdev_t.h:10:38: note: in definition of macro 'MINOR'
#define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
^
A bit of research and I found out I had to change references to f_dentry to f_path.dentry
once done I recompiled and although there were some warnings "make" generated the module.
then running ./build i get the following on dmesg. FYI this makes sense as I don't have a link card in my laptop but I did have a 32bit linux to play with :-).
[ 1571.241819] link_driver: module license 'unspecified' taints kernel.
[ 1571.241826] Disabling lock debugging due to kernel taint
[ 1571.241891] link_driver: module verification failed: signature and/or require
d key missing - tainting kernel
[ 1571.344014] LINK(0) resetting transputer. (0x160)
[ 1571.344020] LINK(0) reset() data [0x00]
[ 1571.448017] LINK(0) reset() data [0x00]
[ 1571.552009] LINK(0) reset() data [0x01]
[ 1571.656011] LINK(0) reset() data [0x00]
[ 1571.968011] LINK(0) resetting transputer. (0x180)
[ 1571.968014] LINK(0) reset() data [0x00]
[ 1572.072019] LINK(0) reset() data [0x00]
[ 1572.176011] LINK(0) reset() data [0x01]
[ 1572.280011] LINK(0) reset() data [0x00]
[ 1572.592011] LINK(0) resetting transputer. (0x1a0)
[ 1572.592014] LINK(0) reset() data [0x00]
[ 1572.696017] LINK(0) reset() data [0x00]
[ 1572.800009] LINK(0) reset() data [0x01]
[ 1572.904011] LINK(0) reset() data [0x00]
[ 1573.113416] link: no interfaces found.
next step will be to build up a Pentium machine with a link card and see how that goes.
Thanks again and hope that helps anyone looking to get this to compile on a current release
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)