Skip to content
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

Not working on ubuntu 22 #5

Open
Selvadigo opened this issue Jul 31, 2022 · 3 comments
Open

Not working on ubuntu 22 #5

Selvadigo opened this issue Jul 31, 2022 · 3 comments

Comments

@Selvadigo
Copy link

No description provided.

@hmmbug
Copy link

hmmbug commented Oct 14, 2022

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
Copy link

anonyme-x22 commented Nov 20, 2022

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
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants