-
Notifications
You must be signed in to change notification settings - Fork 643
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
Building UHD on Raspberry PI 3B+ #696
Comments
The last thing it says during the make process before the error comes up is |
@Haider037 Could please provide some more details, like:
Please also post full logs of the configure and build process. |
The tags are on my raspberry pi and I am currently on my MacI have to run the cmake line above and it's taking a while, so I will try and post It on here if I get it working. But I am pretty sure all the builds pass until it gets to 98% like stated above. |
Here are the tags
Then after a long time of the machine staying at 98% it crashes and spits this out "Building CXX object python/CmakeFiles/pyuhd.dir/pyuhd.cpp.o Then it says: c++: fatal error: killed signal terminated program cc1plus compilation terminated. make[2]: *** [python/cmakefiles/pyuhd.dir/build.make:82: python/Cmakefiles/pyuhd.dir/pyuhd.cpp.o] error 1 make[1]: *** [cmakefiles/makefiles2:5431: python/cmakefiles/pyuhd.dir/all] error2 make: *** [Makefile:182: all] Error 2 I hope this has everything you need. |
So, your config looks good. From the error message you get and the RasPi you are using I assume you run out of memory during compilation (pyuhd.cpp is huge, it contains the full Python interface for UHD). If that's the case, you have several options:
As a side node. When building UHD yourself for this specific platform you might want to disable components you don't need (e.g. disable all the devices you do not need support for). |
Okay after removing the python interface everything installed and make passed with no errors. But now when I am creating my code on gnu radio and running it on my pi this is what comes up Generating: '/home/.../uhd/host/build/fmReceiver.py' Executing: /usr/bin/python3 -u /home/.../uhd/host/build/fmReceiver.py [INFO] [UHD] linux; GNU C++ version 10.2.0; Boost_107100; UHD_3.15.0.0-4 Using images directory: Set the environment variable 'UHD_IMAGES_DIR' appropriately or follow the below instructions to download the images package. Please run: "/lib/arm-linux-gnueabihf/uhd/utils/uhd_images_downloader.py"
I ran the exact same code on my MacBook and used the same usrp device and it connected/ worked perfectly. But on my pi this is what comes up. |
I have installed all the images necessary, or at least I think I have and I see the files under the utils and the build directories |
So you are using a B200 connected via USB with the Pi? Do you have separate power supply for the B200? I could imagine that the Pi does not deliver sufficient power to run the B200. Please try first to see the device using |
Yes it is connected to my Pi via usb and when I run uhd_find_devices it shows up with the serial number and everything as well |
So if |
are you sure I will need the interface? because I have seen it work without I think, unless I am mistaken. |
I re installed the uhd with the python interface but it still says that it cant read the device on gnu radio, but when I run uhd_find_devices or uhd_usrp_probe the device comes up. |
When you say "it can't read the device on gnu radio" - do you use the GnuRadio companion or do you have written your own GnuRadio script? Does your GnuRadio instance run on the Pi as well? |
Im using the companion |
Is the companion running on the Pi or on your Mac? |
pi all of this is on my pi |
The GRC script says it tries to load a 3.15 UHD version. Is that the one you have build on your Pi? How did install the companion? Did you compiled it by youself or via package manager? In both cases can you share some details about the versions you use? You might have to tell GRC where to find your UHD binaries. |
Issue Description
I am building a UHD driver on a raspberry pi 3 B+ Model. When doing sudo make install it says "Building CXX object python/CmakeFiles/pyuhd.dir/pyuhd.cpp.o Then it says: c++: fatal error: killed signal terminated program cc1plus compilation terminated. make[2]: *** [python/cmakefiles/pyuhd.dir/build.make:82: python/Cmakefiles/pyuhd.dir/pyuhd.cpp.o] error 1 make[1]: *** [cmakefiles/makefiles2:5431: python/cmakefiles/pyuhd.dir/all] error2 make: *** [Makefile:182: all] Error 2
Setup Details
Expected Behavior
Actual Behaviour
Steps to reproduce the problem
Additional Information
The text was updated successfully, but these errors were encountered: