piuio icon indicating copy to clipboard operation
piuio copied to clipboard

Driver unloaded and now fail with ERROR: could not insert 'piuio': Exec format error

Open Orionx86 opened this issue 6 years ago • 1 comments

Used this script to do the initial install based off of s34n guide.

It worked and then the drivers unloaded and wont reload with the error: ERROR: could not insert 'piuio': Exec format error

Running Ubuntu 18.04 LTS, fresh install

`cd /home/mike/piuio/mod make clean make make install find /lib/modules -name 'piuio*' modinfo piuio depmod modinfo piuio modprobe piuio lsmod | grep piuio

salt '' kmod.check_available piuio salt '' kmod.load piuio ` ... with this output

` root@DDRPC:/home/mike# sh driver.sh make -C /lib/modules/5.0.0-25-generic/build M=/home/mike/piuio/mod modules make[1]: Entering directory '/usr/src/linux-headers-5.0.0-25-generic' Building modules, stage 2. MODPOST 1 modules make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-25-generic' make -C /lib/modules/5.0.0-25-generic/build M=/home/mike/piuio/mod modules_install make[1]: Entering directory '/usr/src/linux-headers-5.0.0-25-generic' INSTALL /home/mike/piuio/mod/piuio.ko At main.c:160:

  • SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
  • SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79 sign-file: certs/signing_key.pem: No such file or directory DEPMOD 5.0.0-25-generic Warning: modules_install: missing 'System.map' file. Skipping depmod. make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-25-generic' /lib/modules/5.0.0-25-generic/updates/piuio.ko /lib/modules/5.0.0-23-generic/updates/piuio.ko filename: /lib/modules/5.0.0-25-generic/updates/piuio.ko license: GPL version: 1.0 description: PIUIO input/output driver author: Devin J. Pohly srcversion: 632E5F865B7F323C9BFB687 alias: usb:v0D2Fp1010ddcdscdpiciscipin alias: usb:v0547p1002ddcdscdpiciscipin depends: retpoline: Y name: piuio vermagic: 5.0.0-23-generic SMP mod_unload filename: /lib/modules/5.0.0-25-generic/updates/piuio.ko license: GPL version: 1.0 description: PIUIO input/output driver author: Devin J. Pohly srcversion: 632E5F865B7F323C9BFB687 alias: usb:v0D2Fp1010ddcdscdpiciscipin alias: usb:v0547p1002ddcdscdpiciscipin depends: retpoline: Y name: piuio vermagic: 5.0.0-23-generic SMP mod_unload modprobe: ERROR: could not insert 'piuio': Exec format error `

Orionx86 avatar Aug 19 '19 01:08 Orionx86

I don't see the "make clean" step in the output. It looks like a module that you had previously built (with kernel 5.0.0-23, before your kernel was upgraded to 5.0.0-25) got reused in the install step. Since it was built against a different version, the current kernel correctly refused to load it.

djpohly avatar Aug 19 '19 15:08 djpohly