- Posts: 639
- Thank you received: 234
Custom Mint-19.2 with Linuxcnc
6 years 7 months ago #161070
by Bari
Replied by Bari on topic Custom Mint-19.2 with Linuxcnc
RTAI is best on 2 cores. One for real time and the other for everything else.
RTAI is not meant to run with EFI. You are going to have lower latency with legacy BIOS.
Intel replaced the mess that was BIOS with an even worse horrendous OS called EFI. Now we have to work with the garbage they force upon us. Intel has had a better option for 20 years. They could have used coreboot/LinuxBIOS. But our PC's have to be secure from us so we have EFI.
RTAI is not meant to run with EFI. You are going to have lower latency with legacy BIOS.
Intel replaced the mess that was BIOS with an even worse horrendous OS called EFI. Now we have to work with the garbage they force upon us. Intel has had a better option for 20 years. They could have used coreboot/LinuxBIOS. But our PC's have to be secure from us so we have EFI.
The following user(s) said Thank You: phillc54
Please Log in or Create an account to join the conversation.
- BeagleBrainz
- Topic Author
- New Member
-
Less
More
- Thank you received: 0
6 years 7 months ago #161071
by BeagleBrainz
Replied by BeagleBrainz on topic Custom Mint-19.2 with Linuxcnc
I'm not expecting to be able to interact with the UEFI once booted into the OS, just really curious why only one core of a dual core system is started. It's as if it's a single core CPU. Whilst a non patched or RT_PREEMPT kernel are fine, both cores are initialised and available. Running cat /proc/cpuinfo even shows the difference.
Please Log in or Create an account to join the conversation.
6 years 7 months ago #161096
by cncbeagle
Replied by cncbeagle on topic Custom Mint-19.2 with Linuxcnc
BeagleBrainz your 3/8 RTAI version runs fine on the PC I actually use on my hobby CNC machine and solves my original issue. This PC doubles as my garage general purpose PC. I was unable to get some other functions I use running on Wheezy. Everything runs fine on Mint 19. I am looking for a replacement for this PC and had considered the ASRock J4105 board I use in another application. This forum has helped me understand that is not a good choice for my simple parallel port machine.
I had looked at some Dell Optiplex PCs on Ebay which now seems a better path. My goal is to reduce the PCs footprint as well as a little boost in performance. Someday I may go the Mesa route but right now there is very little incentive.
Thank you for all your help.
John
I had looked at some Dell Optiplex PCs on Ebay which now seems a better path. My goal is to reduce the PCs footprint as well as a little boost in performance. Someday I may go the Mesa route but right now there is very little incentive.
Thank you for all your help.
John
The following user(s) said Thank You: BeagleBrainz
Please Log in or Create an account to join the conversation.
- BeagleBrainz
- Topic Author
- New Member
-
Less
More
- Thank you received: 0
6 years 7 months ago #161108
by BeagleBrainz
Replied by BeagleBrainz on topic Custom Mint-19.2 with Linuxcnc
If you can find an Asrock J3355B that might be the go. I use one myself and can confirm that it has a parallel port and will boot in legacy mode.
Apart from the advantage of the MESA card doing the step & direction and extra I\O is by choosing an Ethernet card it saves you the hassle of finding a PC or MB with a Parallel Port.
I have a “dumpster find” early Intel iMac that can run a RT_PREEMPT version of Mint. Not the most straight forward of installs but it is possible.
But now that I have the issue with the whole UEFI and single core I have to get to the bottom of it.
Apart from the advantage of the MESA card doing the step & direction and extra I\O is by choosing an Ethernet card it saves you the hassle of finding a PC or MB with a Parallel Port.
I have a “dumpster find” early Intel iMac that can run a RT_PREEMPT version of Mint. Not the most straight forward of installs but it is possible.
But now that I have the issue with the whole UEFI and single core I have to get to the bottom of it.
Please Log in or Create an account to join the conversation.
6 years 7 months ago #161304
by Bari
Replied by Bari on topic Custom Mint-19.2 with Linuxcnc
EFI is not enabled in the Kconfig for the RTAI kernel.
Please Log in or Create an account to join the conversation.
- BeagleBrainz
- Topic Author
- New Member
-
Less
More
- Thank you received: 0
6 years 7 months ago #161318
by BeagleBrainz
Replied by BeagleBrainz on topic Custom Mint-19.2 with Linuxcnc
Ok This is the situation.
The only variable in the 2 situations is the boot method selected via the setup of the computer. Absolutely nothing else is changed.
Situation A:
I go into the BIOS of my machine and select legacy boot only.
I select the USB stick to boot from.
Machine boots and I get the isolinux boot menu.
I choose the RTAI kernel to boot which is first selection and default.
The kernel and initrd are loaded vis isolinux.
Machine boots to a Live session and desktop is shown.
I can connect to my wireless net work and do all the usual things.
Running cat /proc/cpuinfo shows both cores.
Running latency histogram report both cores
Shutdown in the usual manner.
Situation B:
I go into the BIOS of my machine and select UEFI boot only.
I select the USB stick to boot from, same stick as before (actually as the HDD does not have a EFI partition the usb stick is all it can boot from)
Machine boots and I get the grub boot menu.
I choose the RTAI kernel to boot which is first selection and default.
The kernel and initrd are loaded vis grub. I am not trying to directly the kernel via UEFI, I am using a boot manager.
Machine boots to a Live session and desktop is shown.
I can connect to my wireless net work and do all the usual things.
Running cat /proc/cpuinfo shows only core.
Running latency histogram report both core.
Shutdown in the usual manner.
Now I know EFI is not enable in the config. I am not trying to directly the kernel via UEFI, I am using a boot manager.
I am not expecting to have any access to any EFI whilst the OS is running. I don't care about this.
What is causing legacy boot method to report 2 cores to the RTAI kernel and only a single via UEFI ?
When booting a vanilla kernel via either method 2 cores are reported.
When booting a RT_PREEMPT kernel via either method 2 cores are reported.
The images I created are based on a vanilla Mint 19.2 image and the only changes are the Linuxcnc being preinstalled and the relevant kernel being added, with some extra support packages. The initrd is changed from lz to gz compression, but there is no issue with loading the initrd, otherwise the affected kernel would not boot to the desktop.
From what I can see the main component that can be enabled in the kernel. (which has been disabled)
Which means even if I tried the kernel would not boot via EFI directly. This is not what I'm trying to do. I want to find why only 1 core is either found or reported to linux kernel when choosing a UEFI boot and the kernel & initrd are loaded by grub.
Unfortunately I have only access to one UEFI bootable computer, the computer that runs my cnc machine can boot via UEFI but I can not access it at the moment. If I could it would help determine if it was a firmware issue with my T530 Thinkpad or if the same behaviour was seen on the cnc computer a kernel issue.
Seems a bit terse
Either you haven't fully read my description or I haven't been clear enough and there has been a misunderstanding for whatever reasons us humans misunderstand each other.
As an experiment I replaced grub's bootx64.efi with a efi shell renamed to bootx64.efi just to see if the shell would load and that part of the onboard EFI implementation as ok. I did not try to boot from the shell. Later the correct file was copied to the USB stick to replace the previous one.
The only variable in the 2 situations is the boot method selected via the setup of the computer. Absolutely nothing else is changed.
Situation A:
I go into the BIOS of my machine and select legacy boot only.
I select the USB stick to boot from.
Machine boots and I get the isolinux boot menu.
I choose the RTAI kernel to boot which is first selection and default.
The kernel and initrd are loaded vis isolinux.
Machine boots to a Live session and desktop is shown.
I can connect to my wireless net work and do all the usual things.
Running cat /proc/cpuinfo shows both cores.
Running latency histogram report both cores
Shutdown in the usual manner.
Situation B:
I go into the BIOS of my machine and select UEFI boot only.
I select the USB stick to boot from, same stick as before (actually as the HDD does not have a EFI partition the usb stick is all it can boot from)
Machine boots and I get the grub boot menu.
I choose the RTAI kernel to boot which is first selection and default.
The kernel and initrd are loaded vis grub. I am not trying to directly the kernel via UEFI, I am using a boot manager.
Machine boots to a Live session and desktop is shown.
I can connect to my wireless net work and do all the usual things.
Running cat /proc/cpuinfo shows only core.
Running latency histogram report both core.
Shutdown in the usual manner.
Now I know EFI is not enable in the config. I am not trying to directly the kernel via UEFI, I am using a boot manager.
I am not expecting to have any access to any EFI whilst the OS is running. I don't care about this.
What is causing legacy boot method to report 2 cores to the RTAI kernel and only a single via UEFI ?
When booting a vanilla kernel via either method 2 cores are reported.
When booting a RT_PREEMPT kernel via either method 2 cores are reported.
The images I created are based on a vanilla Mint 19.2 image and the only changes are the Linuxcnc being preinstalled and the relevant kernel being added, with some extra support packages. The initrd is changed from lz to gz compression, but there is no issue with loading the initrd, otherwise the affected kernel would not boot to the desktop.
From what I can see the main component that can be enabled in the kernel. (which has been disabled)
CONFIG_EFI_STUB—This option, accessible as Processor Type and Features -> EFI Runtime Service Support -> EFI Stub Support, is the critical feature that adds the EFI stub loader to the kernel. You must check this option if you're to use this feature.
Which means even if I tried the kernel would not boot via EFI directly. This is not what I'm trying to do. I want to find why only 1 core is either found or reported to linux kernel when choosing a UEFI boot and the kernel & initrd are loaded by grub.
Unfortunately I have only access to one UEFI bootable computer, the computer that runs my cnc machine can boot via UEFI but I can not access it at the moment. If I could it would help determine if it was a firmware issue with my T530 Thinkpad or if the same behaviour was seen on the cnc computer a kernel issue.
EFI is not enabled in the Kconfig for the RTAI kernel.
Seems a bit terse
As an experiment I replaced grub's bootx64.efi with a efi shell renamed to bootx64.efi just to see if the shell would load and that part of the onboard EFI implementation as ok. I did not try to boot from the shell. Later the correct file was copied to the USB stick to replace the previous one.
Please Log in or Create an account to join the conversation.
Time to create page: 0.130 seconds