-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eqnx kernel module failing to load #2
Comments
Here's the log from running make build: |
Figured it out; there's something funky with the eqnx driver's card 'database.' Here's the workaround I found:
And now the /dev/ttyQ devices showed back up. Not sure why deleting the eqnx folder (only contains a database and logfile) and reloading the module fixed it? But it did. |
Is ssmkn even still needed? I thought udev handled creating all the dev entries. If I recall correctly the board hot plugging was not working so the board needed to be plugged in when the driver is loaded. What does dmesg log when the driver is loaded. |
None of the dev files populate until I run ssmkn now.
The log file in /etc/eqnx has the following line after running ssmkn:
So I checked udev and it says there's no device node at /dev/ttyQ1a1:
On a fresh boot if I just modprobe the driver, LSPCI doesn't report the driver as being in use by the card:
And no ttyQ devices appear in /dev. If I run ssmkn, the ttyQ device files appear in /dev, lspci still doesn't report a driver in use, and bash/stty/etc. still say no such device. The ttyQ files have a major number 245 and minor numbers 0 through 15:
The bizarre thing is driver populated the dev entries that first time I loaded the module with insmod, but every time I use modprobe, it doesn't work. I'd retry insmod but there's still that issue of "invalid module format".... |
Well, looks like it compiled for kernel version 3.16.39 instead of 3.16.0-4-amd64? EDIT: I can now load the kernel module using insmod, but the dev entries still don't populate... |
Well, it worked once, and now the module isn't working.
Using modprobe will load the module, but /dev/ttyQxx doesn't populate, and the sstty program says no breakout board was found. If I try loading the module using insmod it gives me:
insmod: ERROR: could not insert module ./drv/eqnx.ko: Invalid module format
dmesg only elaborates by saying
[ 289.905792] eqnx: no symbol version for module_layout
Literally all I did between it working and not working was reboot?
The text was updated successfully, but these errors were encountered: