Comments (12)
Not sure. If I recall I did all of my testing on Fedora 17/18 which is pretty old. I will see about spinning up Debian VM and seeing if it's a simple fix to support a newer build setup. However I no longer have access to the hardware to test it so all I can do it make sure it compiles.
from eqnx.
I've got an Equinox SST-16P installed in the machine so I can test any changes you make pretty quickly.
Thanks for supporting this absolutely ancient device, by the way.
from eqnx.
Here's a copy of my slightly modified make file and a full error log:
drv_makefile.txt
eqnx_build.txt
from eqnx.
What kernel version are you running? And what packages did you install to get the correct headers in place? It's been over a decade since I've used Debian for anything major and I'm not having any luck getting my build env setup correctly as the eqnx make file can not find the linux version.h file without me heavily modifying them which tells me I'm missing the correct deb.
from eqnx.
With a fresh a copy of Debian 8 Jessie x64, follow the following to get roughly my setup (this is all off the top of my head so I might get the commands wrong in places).
Update the system:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
Get the linux kernel source and headers:
sudo apt-get install linux-source linux-headers-$(uname -r)
Untar the linux kernel source:
sudo tar -xvf /usr/src/linux-source-* /usr/src
Rename the new kernel source directory to /usr/src/linux for compatibility with the make file:
sudo mv /usr/src/linux-source-* /usr/src/linux
Prepare the kernel source for compiling:
cd /usr/src/linux
sudo su
make oldconfig
make prepare
make scripts
exit
That should get you in an environment with the sources and headers correctly configured for compiling kernel modules.
from eqnx.
Check out the Linux-3.16 Branch and see if does cause any kernel panics. I found two things that where causing it to fail. One is no longer needed on newer kernels and the other, while it compiles but no idea if it will work. I would need to read up on the tty changes that went into 3.10. tty_flip_buffer_push takes different input now.
from eqnx.
I'll give you an update tomorrow once I have access to the machine with the SST card in it.
from eqnx.
Okay changed to the Linux-3.16 branch, and this is what I get:
eqnx_build_new.txt
from eqnx.
Try to use the first commit to the branch. My second commit was suppose to do proper if statements based on the kernel version and it must not be working.
from eqnx.
Checked out to commit c3248ef... and ran make; here's the new build log:
eqnx_build_new2.txt
It's failing at an include for curses.h now?
from eqnx.
install ncurse-dev
from eqnx.
The kernel module built!
I ran
sudo insmod ./drv/eqnx.ko
And checked it loaded with
sudo tail -f /var/log/messages
Mar 20 09:28:54 felony kernel: [351880.381584] init_module()
Mar 20 09:28:54 felony kernel: [351880.381588] Loading Equinox SuperSerial Technology Device Driver Version 4.12e
Mar 20 09:28:54 felony kernel: [351880.381589] Copyright (c) 1989-2007 Equinox Systems Inc. All Rights Reserved.
Mar 20 09:28:54 felony kernel: [351880.387351] EQNX SST Board 0 : id 80c8 (SST-16P No panel)
Mar 20 09:28:54 felony kernel: [351880.407201] EQNX: Driver Enabled for 1 board(s).
Then I ran
sudo ./utils/ssmkn
and
sudo ./utils/sstty -c
user@felony:~/git/eqnx/utils$ sudo ./sstty -c
Board 1 id 0xc8 SST-16P No panel Slot 0
user@felony:~/git/eqnx/utils$ ls /dev
Looks like it works! I can't plug a bunch of serial devices (TVs in my case) into it right now to test, but I think getting this far is enough to close this issue.
Thanks again for helping me out.
from eqnx.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eqnx.