New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing graphics drivers in kernel configuration #9
Comments
The nouveau driver enables/requires WMI, both drivers can cause terrible latency, kernel warnings/panics and other problems. It is advised to use software acceleration for those with nVIDIA and Intel cards, however due to the popularity of the Intel graphics, that driver may be re-enabled. In either case, I am unable to test IPIPE with either nVIDIA or Intel graphics due to all my hardware being AMD. If I re-enable the nouveau driver, will you post your latency scores? Thanks! |
Thank you for your reply. Of course I would post latency scores if you enable nouveau for me and the result would be interesting for you. When compiling RTAI there was another problem. To build the RTAI kernel modules I had to run make modules in the kernel tree to get the required file Module.symvers, this is not in your instructions. |
I will get around to re-enabling the drivers, in the mean time, have you ran the latency test on your hardware to make sure you don't have any BIOS problems with RTAI? If latency is good now, when the driver is re-enabled and it's high, you'll know why. I'll also bump the kernel version as well. Thanks! |
Thanks for your effort to help and overall for putting together complex pieces of software. Yes, the building of RTAI was aborted with a message about a missing symvers file, after make modules this was there and everything was fine. The fact that the RTAI modules for the latency test could not be loaded is my fault, because in the meantime I played around with kernel config in search of nouveau. There was a change in the custom string between make and make modules and the RTAI modules got a wrong kernel version. I'm going to repeat the entire procedure today without mismatch and for the interim with disabled radeon. In the meantime I have land in sight and already ordered the mentioned Radeon card. Actually I'm just a somewhat advanced Linux user and just wanted to mill, thanks again for the help. |
Thanks for the k̶correction, there are just some small differences between German and English ;-) |
Therefore I also use KDE and not CDE |
Looks good, glad all is OK! 6 microseconds isn't bad at all, I'll add the nouveau driver and just to cover more distros, I will change |
It was still LinuxCNC to build. In this context I also experimented with Debian 10.3 on a virtual and a real machine. The invocations to build the kernel like in OpenSUSE (Leap 15.1) definitely don't work with Debian (10.3.)
After that everything is done, initrd has been generated and the bootloader has been updated. Building LinuxCNC Master based on a self-built RTAI kernel also stumbles a bit under Debian 10.3, more about that later. |
All DRM drivers are re-enabled, let me know how it goes! |
The dedicated computer now runs Debian Stretch and I build the kernels conveniently the Debian way. Below some test results:
Then I have another problem. In order to build Debian packages of LinuxCNC to install to /usr, the kernel and RTAI must also be available in this form. |
Which instructions do not match? I'll need specifics. |
Relevant part of the article referred to
Line 10 "... name in configure.in" Line 11 ok, no output Line 15 "$ debian/update-dch-from-git"
I copied this script to the root, output the same, did mkdir base (is it DESTDIR?), oh:
Line 16 "$ debian/configure 4.14.148 rtai amd64":
Yes, there really is no file rules. Line 20 "$ dpkg-buildpackage":
Is it really only the small letter "v"'s fault? I gave up at this point. |
@andypugh Can you offer any input on this? |
I guess I would need to recompile the kernel to test? |
I suppose so. One of the lines worth looking into at first glance is this:
There is no more |
OK, master or new_libm? |
Here are my ISO making notes: LinuxCNC ISO Build notes. Custom Pi image info: https://www.raspberrypi.org/forums/viewtopic.php?t=201517 Preempt-RT kernels https://packages.debian.org/search?keywords=linux-image-rt wheezy ISO > VMware LinuxCNC2.7+ISO-maker
www.linuxcnc.org / dists ( login ssh @* ) checked build-dependencies (after build-essential and autotools) |
Definitely |
I built and made packages of the kernel and RTAI with the latest RTAI master, compiled LinuxCNC and ran the latency test. |
If you changed any files in the debian folder, can you make a pull request? If anyone does a git clone of my repository, I want them to be able to make a debian package with no changes needed. If you didn't make any changes, then I don't know what he's doing wrong. I haven't tested any of the code in the debian folder for awhile. Thanks Andy! |
In the meantime I am learning some Debian Packaging. Maybe no magic sauce is needed at all. |
I just made RTAI debs like this...
And that should build you some debs. |
@andypugh Your recipe is simple and works. |
Thank you, I was able to achieve my goal. I hope that your efforts in relation to my feedback are useful for other people too. |
@andypugh I forgot something: On Buster, dpkg-buildpackage can basically be run with user rights. It only required root privilege when it was started to process the dsc file (GPG signature). Most likely, dpkg-buildpackage on Stretch is hidden in a /sbin folder. |
Glad everything is good, once I have kernel 4.19 support ready to go, I'll make a new RTAI release. Thank you both for your help! |
One more point. It's not good to use "sudo" when making the packages, as that leads to many of the intermediate build files belonging to root, which causes problems later. |
@andypugh Good to know, I'll look into that. But so far there have been no problems with the installed software. |
Oops, at a first glance, the implementation of the fakeroot environment is a job for the developer of the built system. I think RTAI is not affected by possible issues when creating packages with root privileges. |
Whether RTAI is affected or not by creating packages as root is irrelevant. It's bad practice, please use fakeroot. |
I've read this very interesting discussion https://unix.stackexchange.com/questions/9714/what-is-the-need-for-fakeroot-command-in-linux and understood. |
I have found the RTAI kernel reliable during operation, but it sometimes (about 1 time in 200) locks up the PC on exit.
|
Three times I ran the script, until the crash it took regularly between 3 and 4 minutes. |
Right, so it crashes on your system too. What is your system, as a data point? Which kernel? |
Buster with RTAI Kernel based on 4.14.174 |
Correction: The RAM is DDR2 (but certainly not relevant) |
I've looked into this and I'm getting crashes as well, usually around 40 interations, hacked at Kconfig some more, removed the usermode check, all latency calibration, and it ran until about 300. Delaying a problem is not a fix so I'm not pushing any of those changes to git. Not sure what else there is for me to try without a serial cable to log the stack traces. |
Moved this to new issue #13 |
error: ../../grub-core/loader/i386/efi/linux.c:267:kernel dosen't support EFI handover. Some people(Ubuntu) claim that this is a bug. I don't know if we can make a corresponding patch for this, which can be applied to Ubuntu 20.10 and CentOS 8, PREEMPT_RT works well on CentOS 8 and Ubuntu 20.10 I use eufi to start Grub2, with 4.19.152 kernel and IPIPE patch |
When configuring the patched kernel, under Graphics support only ATI Radeon and AMD GPU are selectable. I need the Nouveau driver for my old NVIDIA card.
The text was updated successfully, but these errors were encountered: