Will turn this into SDR thing tomorrow.
I compiled the SDR++ and GQRX for the RaPi4 yesterday.
Other than a trip which might get the odd mention I will detail projects I am working on, what I want to be working on and what I have otherwise to report on. I will update the individual projects as they advance. As asked I have started to catalogue the references I have follow the link on the left where you can obtain them too. Want to email me wander over to qrz.com and you'll find my email address there. Also twitter @m1kta_qrp
Installing GQRX and SDR++ on RaspberryPi
These are all the steps I actually performed.
sudo apt update
apt list --upgradable
sudo apt install gqrx-sdr
So GQRX sort of worked...
Grab the source
git clone https://github.com/AlexandreRouma/SDRPlusPlus.git
so erroring as missing these packages....fftw3 glfw glew libvolk
so to install them...
sudo apt-get install freeglut3
sudo apt-get install freeglut3-dev
sudo apt install libglew-dev
sudo apt install glfw3
sudo apt install libglfw3-dev
sudo apt install libairspy-dev
sudo apt install libairspyhf-dev
sudo apt install libhackrf-dev
sudo apt install libsoapysdr-dev
libiio missing....so get that compile and install
git clone https://github.com/analogdevicesinc/libiio.git
See what errors are (there were some)
install more prerequisites some were already there so it ignores them (from an SDR pluto install doc)
sudo apt-get install libxml2 libxml2-dev bison flex libcdk5-dev cmake
sudo apt-get install libaio-dev libusb-1.0-0-dev libserialport-dev libxml2-dev libavahi-client-dev doxygen graphviz
Try the libiio build again
sudo make install
Add the path bit
check it is working iio_info
go back to SDR _++ again
so more missing get and install them
git clone https://github.com/analogdevicesinc/libad9361-iio.git
sudo make install
still more missing
mv rtaudio-5.1.0.tar.gz ~/Downloads/
tar -zxvf rtaudio-5.1.0.tar.gz
mkdir build && cd build
sudo make install
Back to SDR++
this time no errors
used N=4 as 4 cpu make -j 4
It maxed out the CPU for a few mins
sudo make install
That's it SDR++ and GQRX both installed
Yes I am sure much of the missing bits were listed in the prerequisties docs of both but we all read those don't we :-) Of course I had added the development environment to it as well. Mine has 128GB SD card (high endurance) and has a 3TB SSD attached which takes and stores backups, snapshots etc I use an adaptor as well so I don't have to insert the MiniSD card into the Pi.
Last weekend I built myself a nice Pi 4 system for the shack. Everything worked perfectly, but today as I rebooted the Pi would simply not boot up. Usually I run almost all my Pis in a headless configuration but as this is the desktop for the operating position I had monitors connected.
Eek, there is was, there it was, The Pi would get stuck at boot with the following error message
"Cannot open access to console, the root account is locked."
The error message while not too descriptive, it asked me use sulogin and run journalctl -xb however there was no shell to run or list anything.
I thought oh no there goes the system will have to rebuild it. However, I thought I would investigate some more.
After some google work, I found the following workaround that worked for me. Note for those that try to do this themselves: You will need access to a display,keyboard and a laptop/desktop to do the following steps
Retrive your SD card from the Pi and using a adapter mount the card to your PC,Mac or Linux. I use a rocketek that takes either normal or small SD cards .You should be able to see the /boot partition of your SD card.
Locate the file fstab in the rootfs partition and edit out the usb drive I added in last time and left in place! You might need to sudo to root to write this file or the next one see later if that is the case....
Or find the bootfs and look for the cmdline.txt file and add the following at the end of the line init=/bin/sh Note: Do not create a new line, just add the above to end of the current line. This will make the system give you a prompt so you might be able to figure out what the problem is. A bit like one of the earlier linux installs.
Load the SD card back into the pi and boot up.
if you did the cmdline.txt change you should now get the a root shell prompt and I expect you will know how to fix it from there. You could undo the changes to /etc/fstab or whatever else that might have caused an issue.
I found I could not make and save the changes to the files as the system will complain the SD card is read only file system. If you get that move to the next sections.
A raspberry pi SD card will has two main partitions, since we cannot read the partition table directly you must manually locate the device for your root and boot partitions. You can do this by going to the /dev directory and you should see something similar to mmcblk0p1 & mmcblk0p2. You could use ls -l to check.
brw-rw---- 1 root disk 179, 0 Oct 8 18:28 mmcblk0
brw-rw---- 1 root disk 179, 1 Oct 8 18:28 mmcblk0p1
brw-rw---- 1 root disk 179, 2 Oct 8 18:28 mmcblk0p2
The second device mmcblk0p2 will be your root partition. You need to remount this with read write permissions
mount -o remount,rw /dev/mmcblk0p2 /
Once this is remounted, go ahead and edit your /etc/fstab and save it.
The offending line in mine was:
#/dev/sda1 /disk1 auto defaults 1 1
Before you exit, make sure you revert the change to the cmdline.txt in the /boot partition. You may need to mount that in read write mode as you did above for the /root partition before you can change it.
mount -o remount,rw /dev/mmcblk0p1 /boot
Alternatively you can revert back the change to cmdline.txt on your laptop as I did using the USB adapter.
If everything goes well, you should be able to boot back your Pi in a normal way.