Custom Mint-19.2 with Linuxcnc

More
30 Mar 2020 21:51 #162155 by andypugh

I was finishing up my configuration when I found that this image (19.2 Mate RTAI) crashes hard when launching LinuxCNC with a Mesa 6i25. I don't even get a kernel panic, it just locks up solid.


Wierd.
Owner   CodeAddr  Arg       FP   Users  Name
 00005  ffffffffa0517880  ffff8880b4b36000  YES      1   hm2_5i25.0.read
 00005  ffffffffa0517500  ffff8880b4b36000  YES      0   hm2_5i25.0.read_gpio
 00005  ffffffffa05176f0  ffff8880b4b36000  YES      1   hm2_5i25.0.write
 00005  ffffffffa05176b0  ffff8880b4b36000  YES      0   hm2_5i25.0.write_gpio

halcmd: show thread
Realtime Threads:
     Period  FP     Name               (     Time, Max-Time )
    1000000  YES               thread1 (   167335,   195604 )
                  1 hm2_5i25.0.read
                  2 hm2_5i25.0.write

halcmd: exit
andypugh@rm-one:~/linuxcnc-dev$ uname -a
Linux rm-one 4.14.174-rtai-amd64 #2 SMP PREEMPT Sun Mar 22 14:26:24 GMT 2020 x86_64 GNU/Linux

ie, it works fine here.

Please Log in or Create an account to join the conversation.

More
30 Mar 2020 21:53 #162158 by tommylight
What do you need testing?
I have plenty of hardware, but i did mention that the 4 series RTAI kernel does not work with Core2duo PC's. Could not figure out why.
Also buildbot is down, something with the httaccess file is wrong not allowing to access to anything besides the main page.

Please Log in or Create an account to join the conversation.

More
30 Mar 2020 22:10 - 30 Mar 2020 22:13 #162162 by BeagleBrainz
That's interesting, I'll have to look on the old T61, and see if it boots ok.

Looks like I have an excuse to buy some more Mesa hardware. B) One must do thorough testing
Last edit: 30 Mar 2020 22:13 by BeagleBrainz.

Please Log in or Create an account to join the conversation.

More
30 Mar 2020 22:27 #162168 by tommylight
Sorry, it does boot properly, but Linuxcnc will not work on that hardware, i have 2 PC's that i have tested it, same result: Latency test starts and gives 0 and 0 for results, Linuxcnc will not start complaining about a configuration error preventing it from starting. Everything else works properly, as far as i could see.

Please Log in or Create an account to join the conversation.

More
31 Mar 2020 01:11 - 31 Mar 2020 01:11 #162192 by Bari
Replied by Bari on topic Custom Mint-19.2 with Linuxcnc
I'm not sure if you know that there is a bunch of firmware that needs to run to configure x86 before a Linux kernel can run on the hardware. One type of firmware is BIOS and another completely different firmware is EFI.

A) BIOS initializes the hardware including the two cpu cores. The RTAI kernel gets this info from BIOS and things run fine.

B) EFI initializes the hardware including the two CPU cores but the RTAI kernel does not get this info properly since EFI does this differently than BIOS since EFI support is not included in the RTAI kernel.

May be of interest: www.happyassassin.net/2014/01/25/uefi-bo...-actually-work-then/
Last edit: 31 Mar 2020 01:11 by Bari. Reason: typos
The following user(s) said Thank You: BeagleBrainz

Please Log in or Create an account to join the conversation.

More
31 Mar 2020 02:06 #162195 by BeagleBrainz
So for the time being RTAI can not get CPU info from the UEFI infrastructure, ok that makes sense.
Is it going to be possible or are we looking at a kernel that can only start multiple cores via a so called compatibility module or via a machine with a plain old BIOS ?

Or is there a way to trigger the "missing core" as a hotplug CPU or another mechansim, passing "possible_cpus" doesn't help.

Please Log in or Create an account to join the conversation.

More
31 Mar 2020 03:50 #162199 by Bari
Replied by Bari on topic Custom Mint-19.2 with Linuxcnc
Compatibility module or via a machine with a plain old BIOS for now. It has taken well over a thousand hours over the past 8 years to get RTAI to where it is now.

Check what the plan is with the Xenomai devs for EFI only booting with ipipe.

Please Log in or Create an account to join the conversation.

More
31 Mar 2020 05:08 #162202 by BeagleBrainz
Cheers mate that's not a problem I'll just make a note of it with the RTAI images.

It is what it is so that's cool.

Please Log in or Create an account to join the conversation.

More
02 Apr 2020 21:55 #162500 by BeagleBrainz
Links down as per heading
Will be back shortly
Opening Post explains why
Testing is in progress

Please Log in or Create an account to join the conversation.

More
02 Apr 2020 23:35 - 03 Apr 2020 23:54 #162514 by BeagleBrainz
Important Notice Please Read
This is the only current version at the moment, do not ask for access to previous releases.
Please do not share Google drive links directly, refer anyone to first page of the thread, links to current announcements will placed there.
The reason all previous ISOs were taken down is there was an issue with installation when a UEFI only system was booted. This did not affect "legacy\bios" system. The actual issue was efivars was not mounted and installation would fail at grub. It took a while to find an answer and as these are it was a simple fix.
Please read the respin.txt file, there is a shortcut that has instructions regarding some post installation things that are required to be performed by the user. These are only required for UEFI only systems, an example being the Asrock J4015B or Gemini Lake and later systems as Intel deems UEFI only boot for these systems.
Other images will be released shortly.

Welcome to a respin of Linux Mint 19.2 MATE

  • New 2nd April 2020 20:15
  • Add efi=runtime to kernel cmd-line for UEFI
  • When installed on UEFI only systems on first boot modify /etc/default/grub
  • Change this line from GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  • to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash efi=runtime"
  • then run
    sudo update-grub
  • Do not do this if booting and installing on BIOS or legacy boot systems

Please use win32diskimager if using a windows machine to write image to disk.
In Linux dd is recommended.

Unlike other images I posted this has been created using a virgin install of Mint 19.2 on real hardware.
To apply updates to fresh install open a terminal and use the following, this should not upgrade the kernel.
sudo apt-get update
sudo apt-get dist-upgrade

Iso Image:
No longer being distributed

MD5Sum:
No longer being distributed

Many thanks to all who have downloaded, test, reported bugs and helped.

All issues and support should be directed to this thread.
forum.linuxcnc.org/9-installing-linuxcnc...t-19-2-with-linuxcnc
Last edit: 03 Apr 2020 23:54 by BeagleBrainz.
The following user(s) said Thank You: phillc54, tommylight, Clive S

Please Log in or Create an account to join the conversation.

Time to create page: 0.137 seconds
Powered by Kunena Forum