Git Product home page Git Product logo

Comments (12)

gregsidelinger avatar gregsidelinger commented on June 11, 2024

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.

francistheodorecatte avatar francistheodorecatte commented on June 11, 2024

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.

francistheodorecatte avatar francistheodorecatte commented on June 11, 2024

Here's a copy of my slightly modified make file and a full error log:
drv_makefile.txt
eqnx_build.txt

from eqnx.

gregsidelinger avatar gregsidelinger commented on June 11, 2024

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.

francistheodorecatte avatar francistheodorecatte commented on June 11, 2024

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.

gregsidelinger avatar gregsidelinger commented on June 11, 2024

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.

francistheodorecatte avatar francistheodorecatte commented on June 11, 2024

I'll give you an update tomorrow once I have access to the machine with the SST card in it.

from eqnx.

francistheodorecatte avatar francistheodorecatte commented on June 11, 2024

Okay changed to the Linux-3.16 branch, and this is what I get:
eqnx_build_new.txt

from eqnx.

gregsidelinger avatar gregsidelinger commented on June 11, 2024

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.

francistheodorecatte avatar francistheodorecatte commented on June 11, 2024

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.

gregsidelinger avatar gregsidelinger commented on June 11, 2024

install ncurse-dev

from eqnx.

francistheodorecatte avatar francistheodorecatte commented on June 11, 2024

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

ttyq

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.