Trouble building Langstone SD card
Trouble building Langstone SD card
I'm having trouble building a working Langstone SD card. When I first run the card in the Rpi4, it hangs at the line "Started update UTMP about system runlevel changes". If I reboot by killing the power, it hangs at "raspberrypi login". I can ssh into it and it runs the Langstone installation process, but hangs at the blue splash screen, cannot connect to pluto.local. Pluto is powered separately, I can see it on the lsusb list and it pings OK to its IP address and pluto.local. I cannot see the Langstone programmes with ps -ax. I've tried two different SD cards, a freshly downloaded Buster lite image and reblown the cards several times, but cannot get past this block. Rpi is running on a good psu at 5.3V direct to the GPIO pins. I really need some expert advice now please!
73 Shaun.
73 Shaun.
-
- Posts: 1236
- Joined: Wed Jan 06, 2016 9:46 am
Re: Trouble building Langstone SD card
Guessing here but I had all sorts of trouble until I plugged it direct into my main router/modem. That solved all sorts of weird stuff.....
HTH
Gareth
HTH
Gareth
Re: Trouble building Langstone SD card
Hi Shaun
Your post prompted me to build a new card.
On power-up, after the initial multicolour splash, there is a brief glimpse of RaspiConfig expanding the filesystem before the system reboots itself. Then it runs through the startup and delaying at the line "Started update UTMP about system runlevel changes" is quite normal. If you leave it long enough, it will eventually display a login, but there is no need to wait before you open the ssh and login.
Paste in Colin's install lines one by one and then let it install. At this point my install also failed, so clearly something has changed in the libraries:
I'll look at it, and no doubt Colin will as well.
Dave, G8GKQ
Your post prompted me to build a new card.
On power-up, after the initial multicolour splash, there is a brief glimpse of RaspiConfig expanding the filesystem before the system reboots itself. Then it runs through the startup and delaying at the line "Started update UTMP about system runlevel changes" is quite normal. If you leave it long enough, it will eventually display a login, but there is no need to wait before you open the ssh and login.
Paste in Colin's install lines one by one and then let it install. At this point my install also failed, so clearly something has changed in the libraries:
Code: Select all
Scanning dependencies of target iio
[ 2%] Building C object CMakeFiles/iio.dir/backend.c.o
[ 4%] Building C object CMakeFiles/iio.dir/channel.c.o
[ 6%] Building C object CMakeFiles/iio.dir/device.c.o
[ 8%] Building C object CMakeFiles/iio.dir/context.c.o
[ 10%] Building C object CMakeFiles/iio.dir/buffer.c.o
[ 12%] Building C object CMakeFiles/iio.dir/utilities.c.o
[ 14%] Building C object CMakeFiles/iio.dir/scan.c.o
[ 17%] Building C object CMakeFiles/iio.dir/sort.c.o
[ 19%] Building C object CMakeFiles/iio.dir/usb.c.o
/home/pi/libiio/usb.c: In function ‘usb_populate_context_attrs’:
/home/pi/libiio/usb.c:765:24: error: ‘struct iio_context_pdata’ has no member named ‘interface’; did you mean ‘intrfc’?
(uint8_t)ctx->pdata->interface);
^~~~~~~~~
intrfc
make[2]: *** [CMakeFiles/iio.dir/build.make:167: CMakeFiles/iio.dir/usb.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/iio.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
[ 2%] Building C object CMakeFiles/iio.dir/usb.c.o
/home/pi/libiio/usb.c: In function ‘usb_populate_context_attrs’:
/home/pi/libiio/usb.c:765:24: error: ‘struct iio_context_pdata’ has no member named ‘interface’; did you mean ‘intrfc’?
(uint8_t)ctx->pdata->interface);
^~~~~~~~~
intrfc
make[2]: *** [CMakeFiles/iio.dir/build.make:167: CMakeFiles/iio.dir/usb.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/iio.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/multi-user.target.
Cloning into 'Langstone'...
remote: Enumerating objects: 250, done.
remote: Counting objects: 100% (250/250), done.
remote: Compressing objects: 100% (182/182), done.
remote: Total 557 (delta 158), reused 115 (delta 68), pack-reused 307
Receiving objects: 100% (557/557), 382.67 KiB | 1.49 MiB/s, done.
Resolving deltas: 100% (327/327), done.
LangstoneGUI.c:5:10: fatal error: iio.h: No such file or directory
Dave, G8GKQ
Re: Trouble building Langstone SD card
Hi Dave,
Looks like the libiio library install is failing. That is needed to control the Pluto.
I will have a look and see if it has recently been updated. It certainly worked last week!.
Colin.
Looks like the libiio library install is failing. That is needed to control the Pluto.
I will have a look and see if it has recently been updated. It certainly worked last week!.
Colin.
Re: Trouble building Langstone SD card
Looking at the github for libiio there was an update yesterday and another one hour ago which changed the reference to 'interface' to 'interfc' so it may well have been fixed. I suggest trying again.
Colin
Colin
Re: Trouble building Langstone SD card
Thank you everyone for your help. I reflashed the card and started the installation about 4.30pm this afternoon and it is now working. Looks like I picked a bad time to start this when an updated library had a bug in it.
On a different subject, is there a recommended rotary encoder for it? I know nothing about them and wonder which is the best to buy. Are their connections/outputs all the same?
73 Shaun.
On a different subject, is there a recommended rotary encoder for it? I know nothing about them and wonder which is the best to buy. Are their connections/outputs all the same?
73 Shaun.
Re: Trouble building Langstone SD card
Hi Shaun,
Yes, you must have been unlucky to catch the library in that state!
Most low cost rotary encoders are very similar. They are basically just two switches that pulse on and off as you rotate the knob. You can get optical ones that have no contacts but the simple switch types work fine.
Something like this... https://ebay.us/RggEK0 would work OK.
Colin G4EML
Yes, you must have been unlucky to catch the library in that state!
Most low cost rotary encoders are very similar. They are basically just two switches that pulse on and off as you rotate the knob. You can get optical ones that have no contacts but the simple switch types work fine.
Something like this... https://ebay.us/RggEK0 would work OK.
Colin G4EML
Re: Trouble building Langstone SD card
I am still in the thinking about a case stage but I ordered a spare rotary encoder as advised above and one of the PAM8403 stereo audio amplifier modules from Ebay for the audio out. Untested but the attraction is it runs off 5V, has an off switch and volume control all in one unit small enough to panel mount.
https://www.ebay.co.uk/itm/PAM8403-Volu ... 2749.l2649
Now to decide on the box. Pluto in same box or another? Lipo battery pack? Hmm.
Mike
https://www.ebay.co.uk/itm/PAM8403-Volu ... 2749.l2649
Now to decide on the box. Pluto in same box or another? Lipo battery pack? Hmm.
Mike