vampirefrog / motu

MOTU midi express 128 linux driver
GNU General Public License v3.0
13 stars 4 forks source link

Not working on ubuntu 22 #5

Open Selvadigo opened 2 years ago

hmmbug commented 2 years ago

It seems to work for me on 22.04.1 LTS, although I've not tested it much, just opened MIDI monitor and saw note messages arrive.

Before compilation I needed to create certs for signing the kernel module. See here for some pointers.

anonyme-x22 commented 1 year ago

Hi, I've done the certs ok (i needed to put the destination manually two in fact because there was linux-headers-5.15.0-52-generic, and linux-headers-5.15.0-53 so i've two cp)

But the compilation fail: make: Entering directory '/usr/src/linux-headers-5.15.0-53-generic' scripts/Makefile.build:44: /home/phase_lot/Makefile: No such file or directory make[1]: No rule to make target '/home/phase_lot/Makefile'. Stop. make: [Makefile:1903: /home/phase_lot] Error 2 make: Leaving directory '/usr/src/linux-headers-5.15.0-53-generic'

same eroor using sudo ...

replacing make -C /lib/modules/uname -r/build M=$PWD by make -C /lib/modules/uname -r/build M=$ mypassword start to compile after a while error flex then bison

miss the instruction in your build command: sudo apt-get install flex sudo apt-get install bison

make -C /lib/modules/uname -r/build M=$ mypassword

make: Entering directory '/usr/src/linux-headers-5.15.0-53-generic' make: *** No rule to make target 'part of my password'. Stop. make: Leaving directory '/usr/src/linux-headers-5.15.0-53-generic'

I've downloaded the sources manualy: sudo make -C /lib/modules/uname -r/build M=$PWD Seems OK

sudo make -C /lib/modules/uname -r/build M=$PWD modules_install make: Entering directory '/usr/src/linux-headers-5.15.0-53-generic' arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support INSTALL /lib/modules/5.15.0-53-generic/extra/motu.ko SIGN /lib/modules/5.15.0-53-generic/extra/motu.ko DEPMOD /lib/modules/5.15.0-53-generic Warning: modules_install: missing 'System.map' file. Skipping depmod. make: Leaving directory '/usr/src/linux-headers-5.15.0-53-generic'

needed to do: sudo ln -s /boot/System.map-5.15.0-53-generic /lib/modules/5.15.0-53-generic/build/System.map

then sudo make -C /lib/modules/uname -r/build M=$PWD modules_install seems OK

sudo depmod seems OK

sudo modprobe motu modprobe: ERROR: could not insert 'motu': Exec format error

Please help need for the motu xt

vampirefrog commented 11 months ago

Howdy! Thanks for posting this issue. I am not sure what is going on and what I'm supposed to do, is there something that I need to add to the Makefile or to the README, so it compiles on Ubuntu?