Can't boot into RTAI kernel

More
07 Apr 2017 19:07 #91010 by NeoTheFox
I am trying to install LinuxCNC on a PC I've got from my University. I have a bunch of these, and they used to be thin clients, but are now available to re-purpose. They are based on VIA Eden CPU, and they are small, equipped with PSU and LPT port - basically a great thing to run EMC2 on. This is the documentation .
They have no CD drives and can't boot from USB, so I've set up a PXE image of Debian Wheezy, and it boots and installs just fine. The system works flawlessly with X server and LXDE, everything is in order, but it wouldn't boot into RTAI kernel provided by LinuxCNC. I've tried both 686 and 486 versions with no luck. Just after the GRUB it gets to a blank screen, no kernel log is printed, and all i see is "_" in the left corner of the screen. Am I missing something? What could be the problem here?

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

More
07 Apr 2017 21:31 #91017 by tommylight
Do they have a hard drive? If yes, take it out, put it in another computer and instal the 10.04 or wheezy iso from the downloads section. After that put it back in the thin client. It works perfectly in over 90% of cases.
I have some HP thin clients, 1GHz geode processor, they boot from USB and i run them from USB drives installed on other systems. Latency is very low, that is the reason i did not throw them out.

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

More
08 Apr 2017 06:23 - 08 Apr 2017 06:49 #91027 by NeoTheFox
They didn't, but I plugged CF cards in the IDE. I don't thunk that the issue is with how I install it, it boots into regular Debian just fine, the issue only exists with RTAI kernel. I think it's something about one of the modules bot working with my hardware, but I don't know how to debug it...
Last edit: 08 Apr 2017 06:49 by NeoTheFox.

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

More
10 Apr 2017 23:32 #91154 by tommylight
Any progress on this?

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

More
11 Apr 2017 17:23 #91194 by NeoTheFox
Not yet. I wanted to try today, but I grabbed a broken one (with burnt GPU). I would post here as soon as I would get ANY info like tty logs.

Here is a picture by the way.
Attachments:

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

More
11 Apr 2017 18:50 - 11 Apr 2017 18:55 #91205 by cncnoob1979
you could try the 32 bit 4.0 kernel. Have you tried it yet?

sudo add-apt-repository 'deb highlab.com/rtai/2017-01-10/ jessie main'
wget highlab.com/rtai/2017-01-10/dists/archive-signing-key.gpg
sudo apt-key add archive-signing-key.gpg
sudo apt-get update
sudo apt-get install linux-headers-4.1.0-1-rtai-686-pae
sudo apt-get install rtai-modules-4.1.0-1
sudo apt-get install linux-image-4.1.0-1-rtai-686-pae
Last edit: 11 Apr 2017 18:55 by cncnoob1979.
The following user(s) said Thank You: NeoTheFox

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

More
13 Apr 2017 21:48 - 13 Apr 2017 21:49 #91327 by NeoTheFox
Oh, thanks, cncnoob1979, I'll try that one too, but I don't think it would work, because it uses PAE.
For now I have some news about it - for anyone who wants closure.

I've had no luck with any kernel/version combination and RTAI patchset, I've tried many kernels, and ANY RTAI kernel just refuses to boot. It doesn't print anything to the serial console or tty0, nothing at all. Just hangs indefinitely, without ever being started. I think it has to do with the patchset itself. So next thing I've tried was Machinekit, and I've installed Jessie for it - what I've noticed is that the machinekit kernel has PAE enabled. I tried booting into it, and something different happened - instead of booting into it the PC just rebooted. I've installed stock PAE kernel, and it also reboots the thing. So I've made my own kernel, disabled PAE and applied the Xenomai patch. It managed to boot in that one! I've used Jessie's linux-patch-xenomai on a vanilla kernel, and it worked like a charm.

I've disabled the PAE support, made it so that the x86 family would be 686 as reported by /proc/cpuid, and now it boots and runs with max jitter of 43000ns on the servo thread. I'll try and tweak it some more, because at first it had crazy jitter (>300000ns), but after I've plugged in PCI GPU it reduced drastically. I think it's not that bad for a thin client with just 533Mhz and passive cooling, but I would try running it without audio support too. If anyone wants my kernel I could publish a .deb after I'll do some more tweaking, but it has almost everything disabled.
Last edit: 13 Apr 2017 21:49 by NeoTheFox.

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

More
13 Apr 2017 22:42 #91331 by tommylight
There is a version of Linuxcnc on DebianDog with rtai 3.4.9, you should give that a try as it runs perfectly on slower machines and has a much beter latency. It is very usable on a 500MHz PIII. Can be installed several ways and used directly from USB, also with persistent changes.
Sorry, forgot to mention it earlier.
The following user(s) said Thank You: NeoTheFox

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

More
14 Apr 2017 14:44 #91366 by NeoTheFox
Ok, after compiling the RTAI kernel myself, I can say for sure that RTAI HAL patch is the culprit. Even with the kernel that I've compiled by hand it would still hang right after GRUB, and not do anything. Just like the LinuxCNC stock kernels.
It looks like there is no way around it, at least not one I can spot.

Here are the kernels I've compiled, Xenomai ones, and the one with RTAI that doesn't work, just in case someone would stumble upon this thread. Drive

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

More
14 Apr 2017 18:41 #91369 by Todd Zuercher

There is a version of Linuxcnc on DebianDog with rtai 3.4.9, you should give that a try as it runs perfectly on slower machines and has a much beter latency. It is very usable on a 500MHz PIII. Can be installed several ways and used directly from USB, also with persistent changes.
Sorry, forgot to mention it earlier.


Sorry to hijack this thread, but I just tried to down load the Debiandog linuxcnc iso(s) linked to on this page murga-linux.com/puppy/viewtopic.php?t=95640&start=120
drive.google.com/open?id=0Byia5Mkbjfied3JpUHB0YWQ1M1E
But I can't figure out how to make them work. I tried booting directly from the iso in a VM and burning it to a CD and trying to boot it, but the computer just says "Fatal: No bootable meduim found! system halted."
What's the trick to make that dog run.

I was curious because I have an older Linuxcnc system that won't run on the newer Debian Weezy (It still works good on Ubuntu 10.04).

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

Time to create page: 0.088 seconds
Powered by Kunena Forum