Re: [Emc-developers] RTAI support for kernel 5.4 works so far, pending musl/math test
This error: > cp Module.symvers *.ko ../rtlib/ > cp: cannot stat 'Module.symvers': No such file or directory Is a red herring. Fix: diff --git a/src/Makefile b/src/Makefile index 96eba38334..374b4bf35d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -538,7 +538,7 @@ ifeq ($(BUILD_SYS),kbuild) modules: MAKEFLAGS="$(filter-out --warn-undefined-variables,$(MAKEFLAGS))" \ $(PYTHON) modsilent.py $(MAKE) KBUILD_EXTRA_SYMBOLS=$(moduledir)/Module.symvers -C $(KERNELDIR) SUBDIRS=`pwd` CC=$(CC) V=$(BUILD_VERBOSE) modules - -cp Module.symvers *$(MODULE_EXT) ../rtlib/ + -cp $(moduledir)/Module.symvers $(moduledir)/*$(MODULE_EXT) ../rtlib/ endif # These rules clean things up. 'modclean' cleans files generated by 'modules' LinuxCNC doesn't initialize the build process for the kernel modules at all, that's what's wrong: Reading 204/204 dependency files Done reading dependencies MAKEFLAGS="" \ /usr/bin/python3.9 modsilent.py make KBUILD_EXTRA_SYMBOLS=/usr/realtime/modules/Module.symvers -C /lib/modules/5.4.219-rtai-amd64+/build SUBDIRS=`pwd` CC=gcc V=0 modules make[1]: Entering directory '/home/ntu/linux-5.4.y' CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh Building modules, stage 2. MODPOST 33 modules make[1]: Leaving directory '/home/ntu/linux-5.4.y' cp /usr/realtime/modules/Module.symvers /usr/realtime/modules/*.ko ../rtlib/ You now need to run 'sudo make setuid' in order to run in place. What do? Alec ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RTAI support for kernel 5.4 works so far, pending musl/math test
I can't use 2.8 because master has all of the things I need. I'll try a few things though, thanks! Alec On Friday, October 21, 2022 at 04:53:24 PM UTC, andy pugh wrote: On Fri, 21 Oct 2022 at 17:38, Alec Ari via Emc-developers wrote: > cp Module.symvers *.ko ../rtlib/ > cp: cannot stat 'Module.symvers': No such file or directory Seems to be here: https://github.com/LinuxCNC/linuxcnc/blob/master/src/Makefile#L539 Poking about in configure.ac it looks like you can specify MODULE_DIR (and hence moduldir) with --with-module-dir in the configure command. This looks like a hangover from the removal of RTAI, so the easiest way for your current testing might well be to compile 2.8 instead? -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RTAI support for kernel 5.4 works so far, pending musl/math test
On Fri, 21 Oct 2022 at 17:38, Alec Ari via Emc-developers wrote: > cp Module.symvers *.ko ../rtlib/ > cp: cannot stat 'Module.symvers': No such file or directory Seems to be here: https://github.com/LinuxCNC/linuxcnc/blob/master/src/Makefile#L539 Poking about in configure.ac it looks like you can specify MODULE_DIR (and hence moduldir) with --with-module-dir in the configure command. This looks like a hangover from the removal of RTAI, so the easiest way for your current testing might well be to compile 2.8 instead? -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RTAI support for kernel 5.4 works so far, pending musl/math test
Trying to build LinuxCNC right now against the 5.4 kernel but ran into this, stuck now: Reading 204/204 dependency files Done reading dependencies MAKEFLAGS="ik -j4 --jobserver-auth=3,4" \ make KBUILD_EXTRA_SYMBOLS=/usr/realtime/modules/Module.symvers -C /home/ntu/linux-5.4.y SUBDIRS=`pwd` CC=gcc V=0 modules make[1]: Entering directory '/home/ntu/linux-5.4.y' CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h Building modules, stage 2. MODPOST 397 modules make[1]: Leaving directory '/home/ntu/linux-5.4.y' cp Module.symvers *.ko ../rtlib/ cp: cannot stat 'Module.symvers': No such file or directory cp: cannot stat '*.ko': No such file or directory make: [Makefile:540: modules] Error 1 (ignored) You now need to run 'sudo make setuid' in order to run in place. ntu@ntu:~/linuxcnc/src$ stat ~/linux-5.4.y/Module.symvers File: /home/ntu/linux-5.4.y/Module.symvers Size: 534944 Blocks: 1048 IO Block: 4096 regular file Device: 806h/2054d Inode: 831382 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/ ntu) Gid: ( 1000/ ntu) Access: 2022-10-21 11:16:59.828423939 -0500 Modify: 2022-10-21 11:14:36.349885329 -0500 Change: 2022-10-21 11:14:36.349885329 -0500 Birth: 2022-10-21 11:14:34.429892605 -0500 ntu@ntu:~/linuxcnc/src$ stat /usr/realtime/modules/Module.symvers File: /usr/realtime/modules/Module.symvers Size: 25155 Blocks: 56 IO Block: 4096 regular file Device: 806h/2054d Inode: 830595 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2022-10-21 11:18:14.981231215 -0500 Modify: 2022-10-21 11:18:14.981231215 -0500 Change: 2022-10-21 11:18:14.981231215 -0500 Birth: 2022-10-21 11:18:14.981231215 -0500 Any ideas? Alec ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RTAI support for kernel 5.4 works so far, pending musl/math test
On Fri, 21 Oct 2022 at 01:40, Alec Ari via Emc-developers wrote: > https://mail.rtai.org/pipermail/rtai/2022-October/028319.html Which prompted me to check, and I haven't heard anything from [RTAI] since January. Apparently "Note: your list delivery is currently disabled; it was disabled due to excessive bounces. The last bounce was received on 14-Oct-2022." Which is probably a Gmail thing, and might also be related to a certificate problem at the RTAI end. Neither of my computers wanted to follow the link above. The work laptop refused utterly, whereas my Mac made me promise that I understood the risks. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RTAI support for kernel 5.4 works so far, pending musl/math test
Wow! Thank you! Steffen Am 21.10.2022 um 02:36 schrieb Alec Ari via Emc-developers: Success log: https://mail.rtai.org/pipermail/rtai/2022-October/028319.html I need to patch my RTAI repository to account for the 5.4 changes and test musl in kernel space. Intensive floating point arithmetic in the 5.4 kernel has yet to be tested. LinuxCNC may require some changes as well. I will let the LinuxCNC development team know when it's all set! Alec ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers