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
RaspberryPi 4 support #17
Comments
|
From the nightly builds. |
I haven't tested a RaspbeeryPi 4 because I have no access to the hardware, and its still partly documented. |
So, is the answer to my original question "No, the 2019-06-29 image doesn't boot a Pi4 into a realtime kernel" ? |
@andypugh If you want to tell hakan there, if he wants to maintain the patches we could make it work here. If Rpi don't manage to maintain it we could go back to that method, it seems like there is a delay because the maintainer of that branch is based in China and doesn't have a Pi 4 to test yet. source: raspberrypi/linux#2943 (comment) |
@guysoft Sorry, I some confused here. Are you saying cureent rpi-4.19-y-rt does not work well for pi4? But Haken created his rt branch with rpi-4.19y + "usual rt patches" + https://github.com/guysoft/RealtimePi/tree/3225584da703cdb4409932835362298aa446cd05/src/modules/realtimepi/filesystem/home/pi/patches, and then this can work for pi4. If yes, you can revert all patches specific to my SOB? Then apply https://github.com/guysoft/RealtimePi/tree/3225584da703cdb4409932835362298aa446cd05/src/modules/realtimepi/filesystem/home/pi/patches on it, you can try this kind of version on your hardware platform. I still have no pi 4. |
At my first glance, just one patch takes effect compared to my branch. That is the patch, "Revert "softirq: Let ksoftirqd do its job"". Or maybe you just need to apply this on it rpi-4.19-y-rt to validate that again. If that can work, I'd like to merge that to rpi-4.19-y-rt in advance to make sure at least we have a workable rt branch. And then once I get pi 4, I can further dig into the problem. |
@TiejunChina Cool, if you do I can issue another build and then people around here can test it. |
Hi guys, I am the one testing the rpi-4.19-y-rt. I could not make it boot. No screen, no output in any log files that could give a clue on what was going on. |
@HakanBastedt You're talking about pi4? Or pi3 |
Raspberry Pi 4 model B, 4GB memory. |
An observation, which might, or might not, be relevant. I compiled a realtime kernel last night (rpi-4.19-y), patched with the (wrong) patch from kernel.org. (4.19.58 kernel patched with 4.19.57 patch). |
@andypugh Do you need both files? At the moment this is the code that extracts the image: It takes if from Also I can see in the build log:
So it looks like the file is in place. You can run the build youself and have a look (suggest only one kernel because it takes a while). Full build log attached. |
I would need to look back through the command history, but it is looking rather like the ,image file was created by me miss-typing a command, and my previous message should be ignored. |
Exactly the same result for me on the Pi4. |
When I checked, I saw that rpi-4.19.y-rt was something like more than 500 commits behind rpi-4.19.y. At that point I abadonded rpi-4.9.y-rt. Just so you know, I wish it had worked. |
Good, I'm happy to rebase our branch but I'm in my business travel. I'll make this next week. Thank you, guys! |
I am heading our camping in Denmark so will probably have time for it only
next week anyways
|
Tested today. Yeah works fine. Thanks, great!
The latency-figures are more than acceptable for linuxcnc using the mesa 7i76e card. Especially when wlan0 is disabled. I tried also with a separate usb-wlan dongle, but same figures. With wlan active say 100 microseconds, without wlan 20 microseconds. I know the numbers doesn't say a lot, but if better latency is wanted then disable wlan. Thanks again. |
Started another build, should finish by tomorrow and we should have something to test. |
Just to report, I have got the rpi-4.19.y-rt kernel mentioned above running linuxcnc for a while now and that works fine. |
Ok, unmouinting the docker environment and remounting fixed it. Strange but fixed :) Image: kernel only that you can untar on top of an existing raspbian: Note: I didn't change the |
Ok, new build with the right I wanna test it here, if it works it goes out as an release candidate. Please help test!:
Pi 4 boots in to normal kernel, Pi3 B+ does not boot. Use previous build |
Ok, this means we need to compile 3 kernels, now, also |
…iles for zero and compute modules
Solved in 0.4.0 RC2 (build should be uploaded shortly #2943 |
uname gives-
Linux realtimepi 4.19.50-v7l+ #895 SMP Thu Jun 20 16:03:42 BST 2019 armv7l GNU/Linux
I was expecting to see -RT or -preempt-rt or something.
LinuxCNC does not seem to think it is a realtime kernel:
pi@realtimepi:~/linuxcnc-dev/src $ latency-test
Note: Using POSIX non-realtime
Before I dig in to the LinuxCNC config and build, can you confirm that this is a realtime kernel, and which realtime flavour it is? I was assuming preempt-rt.
The text was updated successfully, but these errors were encountered: