Installing 2.9 in Ubuntu 22.04/PREEMPT_RT
06 Apr 2023 18:49 #268447
by vedatech
Installing 2.9 in Ubuntu 22.04/PREEMPT_RT was created by vedatech
My previous controller was an old dell running ubuntu 18.04 and linuxcnc-2.9pre. It just died. All of my machines run Ubuntu so I setup up a new asus z790-a/i9 computer with ubuntu 22.04lts running the core:
Linux control1 5.15.0-1034-realtime #37-Ubuntu SMP PREEMPT_RT Wed Mar 1 20:50:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
I'm using the mesa 6i25 card from the old machine mounted in PCIe slot 2.
I built linuxcnc-2.9 from source and it starts up but when I try to load my old config it sees the card but can't map the memory.
I'm running in the RIP environment.
This is the error:
>linuxcnc
LINUXCNC - 2.9.0~pre1
Machine configuration directory is '/home/dave/work/linuxcnc-2.9/configs/OptoXZBC_7stepd'
Machine configuration file is 'OptoXZBC_7stepd.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
Found file(REL): ./OptoXZBC_7stepd.hal
identityKinematicsSetup: coordinates:XBCZ
Joint 0 ==> Axis X
Joint 1 ==> Axis B
Joint 2 ==> Axis C
Joint 3 ==> Axis Z
identityKinematicsSetup: Recommend: kinstype=both
hm2: loading Mesa HostMot2 driver version 0.15
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25 at 0000:02:00.0
Failed to remap MMIO 0 of PCI device 0000:02:00.0: Operation not permitted
hm2_5i25.0: could not map in FPGA address space
Driver probe function failed!
hm2_pci: error registering PCI driver
hm2_pci: rtapi_app_main: Operation not permitted (-1)
./OptoXZBC_7stepd.hal:9: waitpid failed /home/dave/work/linuxcnc-2.9/bin/rtapi_app hm2_pci
./OptoXZBC_7stepd.hal:9: /home/dave/work/linuxcnc-2.9/bin/rtapi_app exited without becoming ready
./OptoXZBC_7stepd.hal:9: insmod for hm2_pci failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2: unloading
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/dave/linuxcnc_debug.txt
and
/home/dave/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Any suggestions?
Linux control1 5.15.0-1034-realtime #37-Ubuntu SMP PREEMPT_RT Wed Mar 1 20:50:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
I'm using the mesa 6i25 card from the old machine mounted in PCIe slot 2.
I built linuxcnc-2.9 from source and it starts up but when I try to load my old config it sees the card but can't map the memory.
I'm running in the RIP environment.
This is the error:
>linuxcnc
LINUXCNC - 2.9.0~pre1
Machine configuration directory is '/home/dave/work/linuxcnc-2.9/configs/OptoXZBC_7stepd'
Machine configuration file is 'OptoXZBC_7stepd.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
Found file(REL): ./OptoXZBC_7stepd.hal
identityKinematicsSetup: coordinates:XBCZ
Joint 0 ==> Axis X
Joint 1 ==> Axis B
Joint 2 ==> Axis C
Joint 3 ==> Axis Z
identityKinematicsSetup: Recommend: kinstype=both
hm2: loading Mesa HostMot2 driver version 0.15
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25 at 0000:02:00.0
Failed to remap MMIO 0 of PCI device 0000:02:00.0: Operation not permitted
hm2_5i25.0: could not map in FPGA address space
Driver probe function failed!
hm2_pci: error registering PCI driver
hm2_pci: rtapi_app_main: Operation not permitted (-1)
./OptoXZBC_7stepd.hal:9: waitpid failed /home/dave/work/linuxcnc-2.9/bin/rtapi_app hm2_pci
./OptoXZBC_7stepd.hal:9: /home/dave/work/linuxcnc-2.9/bin/rtapi_app exited without becoming ready
./OptoXZBC_7stepd.hal:9: insmod for hm2_pci failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2: unloading
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/dave/linuxcnc_debug.txt
and
/home/dave/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Any suggestions?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
06 Apr 2023 19:06 #268449
by tommylight
Replied by tommylight on topic Installing 2.9 in Ubuntu 22.04/PREEMPT_RT
From the error report:
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot?
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot?
Please Log in or Create an account to join the conversation.
06 Apr 2023 19:30 #268450
by vedatech
Replied by vedatech on topic Installing 2.9 in Ubuntu 22.04/PREEMPT_RT
I ran this first in the shell:
cd /home/dave/work/linuxcnc-2.9/src
sudo make setuid
cd ..
. scripts/rip-environment
cd /home/dave/work/linuxcnc-2.9/src
sudo make setuid
cd ..
. scripts/rip-environment
Please Log in or Create an account to join the conversation.
06 Apr 2023 19:35 #268451
by vedatech
Replied by vedatech on topic Installing 2.9 in Ubuntu 22.04/PREEMPT_RT
It appears the kernel is locked down. /var/log/dmesg shows
[ 0.000000] kernel: Kernel is locked down from EFI Secure Boot mode; see man kernel_lockdown.7
[ 0.000000] kernel: Kernel is locked down from EFI Secure Boot mode; see man kernel_lockdown.7
Please Log in or Create an account to join the conversation.
06 Apr 2023 19:59 #268454
by vedatech
Replied by vedatech on topic Installing 2.9 in Ubuntu 22.04/PREEMPT_RT
I disabled secure boot in the BIOS and rebooted - it will not boot.
Enabled secure boot again and it still will not boot! Black screen.
*@#%$ UEFI
Enabled secure boot again and it still will not boot! Black screen.
*@#%$ UEFI
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
06 Apr 2023 20:11 #268455
by tommylight
Replied by tommylight on topic Installing 2.9 in Ubuntu 22.04/PREEMPT_RT
Probably will have to reinstall with secure boot disabled.
That has become the first thing to disable on new PC's, follewed by disabling UEFI where possible or enabling CMS.
That has become the first thing to disable on new PC's, follewed by disabling UEFI where possible or enabling CMS.
Please Log in or Create an account to join the conversation.
07 Apr 2023 19:15 #268539
by vedatech
Replied by vedatech on topic Installing 2.9 in Ubuntu 22.04/PREEMPT_RT
I reinstalled ubuntu 22.04 with secure boot disabled in the bios. Doing a disk image backup this time so I won't loose my configuration and installed packages. I haven't tested it with the card in the slot yet.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
07 Apr 2023 19:24 #268540
by tommylight
Replied by tommylight on topic Installing 2.9 in Ubuntu 22.04/PREEMPT_RT
No need for disk imaging, just save the configs folder to a USB stick.
Granted you do not have some strange configuration, that is all you need as a backup.
Granted you do not have some strange configuration, that is all you need as a backup.
The following user(s) said Thank You: joekline9
Please Log in or Create an account to join the conversation.
01 May 2023 17:00 #270415
by bkt
Replied by bkt on topic Installing 2.9 in Ubuntu 22.04/PREEMPT_RT
@verdatec .... sorry have some updates about latency test on your ubuntu 22.04 and linucnc system ... all going well now affter first install? Have you use in real machines?
Thanks for any update.
regards
Thanks for any update.
regards
Please Log in or Create an account to join the conversation.
17 May 2023 18:14 #271558
by vedatech
Replied by vedatech on topic Installing 2.9 in Ubuntu 22.04/PREEMPT_RT
Sorry, I haven't been watching this topic for awhile. Yes, I have been using it with the real machine and its working - mostly. I'm having a problem homing the W axis but I will start a new topic for that.
latency-test give Max Jitter of 8823/9225 while using a browser and some other apps.
latency-test give Max Jitter of 8823/9225 while using a browser and some other apps.
The following user(s) said Thank You: bkt
Please Log in or Create an account to join the conversation.
Time to create page: 0.106 seconds