-
Notifications
You must be signed in to change notification settings - Fork 11
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
Raspberry Pi 5 + LabVIEW Hobbyist Toolkit (Floating Point Exception) #14
Comments
I'll have to look into this. Was the error above generated using the 32-bit or 64-bit version of the OS? I ask because there is a known issue that the deb package doesn't work on the 64-bit OS. |
Hi @sharpk. thanks for your reply. That would be great if you could look into this and help. |
Hi @spathiwa, @sharpk, @cycleworm , I have built two new .deb files which allow the LINX lvrt environment to run under the Pi Bookworm OS. I'm hoping to have the modified files available next week for uploading to Github 🙂 Cheers, |
Hi @albsbc, Thanks a lot for trying and testing. :) Is it possible that you share a pre-release of this *.deb file with me? Thanks a lot, |
Hi @albsbc, feel free to post a PR before you get it tested on RPi5 so we can start reviewing. |
After some investigation I think I'm seeing what @albsbc found: In the latest Raspebrry Pi OS they have removed the generic 'python' package which the LV package depends on. So the proper thing to do is update the dependency to 'python3'. This also requires that the NISysServer.py script be ported to python 3. |
i am not able to build a new *.deb file. so i installed the lastet *.deb from here http://feeds.labviewmakerhub.com/debian/binary/ and all dependencies. ignored the python dependency. replaced the NISysServer.py with the new one that you wrote @sharpk. still getting the same floating point exception. I think the error comes from the lvrt file. but i am not sure. any advices how to proceed. did you have any luck so far @albsbc ? |
I suspect the issue you're seeing is due to running on a 64-bit version of Raspbian. Have you tried it on a 32-bit version? |
Hi. Since you mentioned that there could be problems with 64 bit I tried everything with 32 bit only. |
Hi @cycleworm, @sharpk, |
The GPIO offset could be determined at runtime and so the new liblinxdevice_rpi2.so would work on the other supported versions of Raspberry Pi. |
Debug information: The exception is raised after lvrt fails to open the following files
The files are present when lvrt is run on a Raspberry Pi 4. Raspberry Pi may correct this issue in later updates to the Pi OS. The exception can also be generated if /sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size is modified to return a value of 0 instead of 64 Is it possible to change the default coherency_line_size value to 64 in libniCPULib.so? |
I have no idea how to proceed. I guess we need someone from NI ? |
@cycleworm So there's really two issues here:
A further note: the files that @albsbc mentioned above under /sys/devices/system/cpu/* @cycare virtual files that the Linux kernel creates at boot to give you information about the hardware. So those files can't generally be updated via an installer since they're not "real". |
Hi @cycleworm, @sharpk, |
Small update: I was finally able to get my hands on a RPi 5 and it looks like the RPi 5 isn't populating the cache information in sysfs correctly (several items like size are missing):
This leads to the CPUInfo library getting into a bad state and dividing by zero which causes the exception. In theory, the Raspbian maintainers should fix this, but I think I have a fix to prevent CPUInfo from crashing as well. We'll work on packing this and the other fix into a debian package soon. Thanks for your help @albsbc, the info you provided helped get us to a fix more quickly. |
Hi @sharpk. Great news, cool that you could get an RPi5. We are planning an free LabVIEW Academic Event for all kind of educators on the 6th of march. We want to motivate them and show them what is possible today with Rpi and LabVIEW. Do you think there is a chance that it will be finished before? We would like to show the setup process there. If not, is it possible to get a prerelease? Thanks a lot. |
Hey @cycleworm, No promises, but I think we should have everything ready to go by then. We've got everything working now, it's just a matter of getting it all packaged up in installers. Out of curiosity, who is the "we" that are planning a LabVIEW Academic Event? If you're interested in what we've been working on you can look at some of the recent PRs in the LINX repo: https://github.com/MakerHub/LINX/pulls?q=is%3Apr+is%3Aclosed |
Hi, /dev/serial0 (ttyAMA10) is wired to the UART connector instead of the 40 way connector. |
oh yeah :) now it works in LabVIEW 2024 Q1 with Hobbyist Toolkit 2024 Q1 and Raspberry Pi 5. 32 bit version of bookworm installed. really happy about that. @sharpk we is Kreiseder IT Services (kreiseder.org) I was working 11 years for NI in Austria and Germany. I started my own business in May 2021. To support the local academic community we are hosting our first free academic day. We created a tutorial on our website to get started with Raspberry Pi 5 + LabVIEW. |
Hi, @spathiwa, @sharpk
I just tried to get the Raspberry Pi 5 running with the LabVIEW Hobbyist Toolkit. Setting up the Pi with the integrated Configuration Tool in LabVIEW does not work. So I decided to follow the manual way, which I did successfully in the past with Raspberry Pi 4. (see description here https://forums.ni.com/t5/Hobbyist-Toolkit/Labview-CE-2020-connects-to-raspberry-but-CE-2021-does-not/m-p/4199478#M1077 )
I installed the latest packagee from this link. http://feeds.labviewmakerhub.com/debian/binary/
lvrt23-schroot_23.1.0-1.deb
First problem was that the package complained that the dependency python was missing. But it is installed. Next attempt was to ignore the dependency. So i was i able to install the package. When starting the labview.service I get an Floating Point Exception.
I guess some of the used libraries used in the lvrt23 are not compatible with the new Raspbian OS (based on Debian Bookworm) ?
Is it possible that you compile a new lvrt.deb compatible with Raspberry Pi 5 ?
I can help, as I have the hardware already on my desk.
Used Hardware:
Raspberry Pi 5
Used Software:
LabVIEW 2023 Q3 32 Bit
LabVIEW Hobbyist Toolkit 2023 Q1
Raspberry Pi OS (32 and 64 Bit) - Newest release compatible with Raspberry Pi 5 (Debian Bookworm)
The text was updated successfully, but these errors were encountered: