G2 Software and Firmware Updates
-
- Posts: 255
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Software and Firmware Updates 27 Aug 2023
And interesting about the patches: we had to patch the kernel for version 6. My pi is on 6.1.21 - maybe the incompatibility came in with v6.5?
Laurence Barker G8NJJ
Re: G2 Software and Firmware Updates 27 Aug 2023
Laurance, are the Compute modules interchangeable by the user? Or will it require a trip to someone to remove and replace the CM4? I have looked at many photos of the G2 interior and none are clear enough to see how easy a module can or cannot be, to replace if needed.
James
WD5GWY
James
WD5GWY
-
- Posts: 255
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Software and Firmware Updates 27 Aug 2023
I haven't see a factory-made G2: but it is a plug and socket onto the Saturn DSP board. There may be (hopefully are! screws to secure it, in which case the Saturn board itself may need to be unscrewed. All while wearing an anti-static wrist strap. But I'd expect most users could do that.
Laurence Barker G8NJJ
-
- Posts: 255
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Software and Firmware Updates 27 Aug 2023
ct1iqi wrote:@laurence:
tnx for background info!
Using the Armbian environment made an image on basis of arm64 architecture and kernel 6.5, but with just enough in the OS to let pihpsdr show its GUI. So basically just cli plus X11 and Openbox Have patched 'your' xdma driver into it and for now called it xdma2 as the xdma name is already used in that kernel. Had to add some small patches to make it compile as some functions, deprecated in kernel 5, were removed or changed in 6. I add the patches, just remove the .txt as .patch does not upload here.
The good news: the audio chopping is gone, using embedded pihpsdr
The bad news: 384 k rate with two receivers is the max. That brings CPU load close to 100%. The massive calculus that wdsp has to do is just to much at higher rates.
p2app works fine and even copes with 1.5 M rate. At 2 x 768k rate it gets the CPUs in the 30-40 % load range. So xdma as such works just fine.
When using embedded pihpsdr there is some effect noticeable in the audio from events in the GUI. When by mouse movement in a menu over a clickable box that box changes color, some effect in the audio is audible. So there are some issues with interrupt priorities it seems.
For some reason with embedded pihpsdr the microphone input is not working while using p2app and an external pihpsdr it works. wdsp, pihpsdr, and p2app are all 100% the current github ones, no changes made.
Rick is looking at the microphone issues with piHPSDR, but can't reproduce a problem.
We do know that the tip and ring of the 3.5mm jack are reversed between front and rear: the Thetis or piHPSDR settings should be correct for the rear connector.
Can you tell us exactly what happens please, with what settings?
Laurence Barker G8NJJ
Re: G2 Software and Firmware Updates 27 Aug 2023
regarding no mic input when running embedded pihpsdr:
The settings are exactly the same as for the external pihpsdr that I can run on my PC perfectly. Audio on tip, bias active, local audio unchecked as there is none coming from pulseaudio. My guess is that the Saturn codec does not get initialized properly. Perhaps it is looking at line input iso microphone. On the G2 am running the saturn version of the pihpsdr code on github/n1gp.
B.t.w. my G2 is w.o. control front, so use the 3.5 mm microphone input on the rear panel.
Killing embedded pihpsdr, starting p2app there, and connecting from an external pihpsdr, brings the microphone input to life.
The settings are exactly the same as for the external pihpsdr that I can run on my PC perfectly. Audio on tip, bias active, local audio unchecked as there is none coming from pulseaudio. My guess is that the Saturn codec does not get initialized properly. Perhaps it is looking at line input iso microphone. On the G2 am running the saturn version of the pihpsdr code on github/n1gp.
B.t.w. my G2 is w.o. control front, so use the 3.5 mm microphone input on the rear panel.
Killing embedded pihpsdr, starting p2app there, and connecting from an external pihpsdr, brings the microphone input to life.
Re: G2 Software and Firmware Updates 27 Aug 2023
@ct1iqi
Can you check and make sure that on your G2's native pihpsdr that
in the TX menu, Radio Mic is set to Mic In ?
Failing that, maybe try deleting your props file in that directory (with pihpsdr NOT active),
mine is E4-5F-01-C2-1F-88.props
Can you check and make sure that on your G2's native pihpsdr that
in the TX menu, Radio Mic is set to Mic In ?
Failing that, maybe try deleting your props file in that directory (with pihpsdr NOT active),
mine is E4-5F-01-C2-1F-88.props
Re: G2 Software and Firmware Updates 27 Aug 2023
Hi all,
I was using the 3,5mm on the front and could not get the microphone to work. I tried Thetis and the embedded pihpsdr, used mic at tip or ring, nothing. A hint from Laurence let me try the back 3,5mm and it works. Tomorrow I will check the cable to front connector (tnx Laurence).
ANAN-G2 with display!
I was using the 3,5mm on the front and could not get the microphone to work. I tried Thetis and the embedded pihpsdr, used mic at tip or ring, nothing. A hint from Laurence let me try the back 3,5mm and it works. Tomorrow I will check the cable to front connector (tnx Laurence).
ANAN-G2 with display!
73, Norbert - DL8LAQ - ANAN-G2 w/display - Richie's latest Thetis version and pihpsdr by N1GP&DL1YCF
Re: G2 Software and Firmware Updates 27 Aug 2023
ct1iqi wrote:@truckercm4_saturn.jpg
Thank you Martin. A friend that has a G2 sent me some photos. But, it was difficult to tell what connections there were to the main board. I could see the four standoffs at the corners. But, the CM4 module is so close to the main board that I can't tell what kind of connections are used. I am assuming it's some sort of a pin and socket connection.
If that is the case, then upgrades to a newer module would be something that I might be able to do without making too big of a mess!
James
WD5GWY
Re: G2 Software and Firmware Updates 27 Aug 2023
@Trucker: See
https://datasheets.raspberrypi.com/cm4i ... asheet.pdf
That is a motherboard for experimenting with a CM4. Its just two miniature connectors, very similar to the system used by eMMC memory modules. Just more pins.
https://datasheets.raspberrypi.com/cm4i ... asheet.pdf
That is a motherboard for experimenting with a CM4. Its just two miniature connectors, very similar to the system used by eMMC memory modules. Just more pins.
Re: G2 Software and Firmware Updates 27 Aug 2023
@n1gp
Tnx for hints. no luck with setting mic in. Just total silence during tx. E.g. two-tone tx works fine. Also removed .props, to no avail.
Just a thought: Could it be that my experimental OS being 64 bit (arm64) causes some settings to be wrong because intended in the pihpsdr code for 32 bit? Find it strange that the rest works fine, just not the microphone.
Something unrelated: noticed that the icons in the widgets that give + - are missing in my image. Adwaita has been removed from gtk and now lives as libadwaita. Installed that but no icons. What package should be installed in a current Ubuntu/Debian environment for the icons to appear?
Tnx for hints. no luck with setting mic in. Just total silence during tx. E.g. two-tone tx works fine. Also removed .props, to no avail.
Just a thought: Could it be that my experimental OS being 64 bit (arm64) causes some settings to be wrong because intended in the pihpsdr code for 32 bit? Find it strange that the rest works fine, just not the microphone.
Something unrelated: noticed that the icons in the widgets that give + - are missing in my image. Adwaita has been removed from gtk and now lives as libadwaita. Installed that but no icons. What package should be installed in a current Ubuntu/Debian environment for the icons to appear?
Re: G2 Software and Firmware Updates 27 Aug 2023
@ct1iqi
I'm also running 64 bit, but raspbian -vs- armbian:
$ uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
There certainly may be differences in your armbian arm64 running a 6.5 kernel with
perhaps newer gtk3 packages.
Is your CM4 running from an SDCARD? Some of the first ones (including mine) run
off of eMMC on the CM4. If an SDCARD, maybe it's easy for you to test with another
SDCARD running with the default Apache-Labs G2 image?
https://storage.googleapis.com/anan_g2/G2_No_Display_production_image_270823.img
I'm also running 64 bit, but raspbian -vs- armbian:
$ uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
There certainly may be differences in your armbian arm64 running a 6.5 kernel with
perhaps newer gtk3 packages.
Is your CM4 running from an SDCARD? Some of the first ones (including mine) run
off of eMMC on the CM4. If an SDCARD, maybe it's easy for you to test with another
SDCARD running with the default Apache-Labs G2 image?
https://storage.googleapis.com/anan_g2/G2_No_Display_production_image_270823.img
Re: G2 Software and Firmware Updates 27 Aug 2023
@n1gp
currently writing the sdcard. will report back.
My OS: Linux rpi4b 6.5.5-edge-bcm2711 #3 SMP PREEMPT Thu Sep 28 13:46:42 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
(uname -a)
currently writing the sdcard. will report back.
My OS: Linux rpi4b 6.5.5-edge-bcm2711 #3 SMP PREEMPT Thu Sep 28 13:46:42 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
(uname -a)
Re: G2 Software and Firmware Updates 27 Aug 2023
Found a photo of the new CM5 Pi. The connectors on the underside of the module seem to be different as there is a third connector that the CM4 doesn't seem to have.
James
WD5GWY
James
WD5GWY
Re: G2 Software and Firmware Updates 27 Aug 2023
laurencebarker wrote:ct1iqi wrote:@laurence:
tnx for background info!
Using the Armbian environment made an image on basis of arm64 architecture and kernel 6.5, but with just enough in the OS to let pihpsdr show its GUI. So basically just cli plus X11 and Openbox Have patched 'your' xdma driver into it and for now called it xdma2 as the xdma name is already used in that kernel. Had to add some small patches to make it compile as some functions, deprecated in kernel 5, were removed or changed in 6. I add the patches, just remove the .txt as .patch does not upload here.
The good news: the audio chopping is gone, using embedded pihpsdr
The bad news: 384 k rate with two receivers is the max. That brings CPU load close to 100%. The massive calculus that wdsp has to do is just to much at higher rates.
p2app works fine and even copes with 1.5 M rate. At 2 x 768k rate it gets the CPUs in the 30-40 % load range. So xdma as such works just fine.
When using embedded pihpsdr there is some effect noticeable in the audio from events in the GUI. When by mouse movement in a menu over a clickable box that box changes color, some effect in the audio is audible. So there are some issues with interrupt priorities it seems.
For some reason with embedded pihpsdr the microphone input is not working while using p2app and an external pihpsdr it works. wdsp, pihpsdr, and p2app are all 100% the current github ones, no changes made.
Rick is looking at the microphone issues with piHPSDR, but can't reproduce a problem.
We do know that the tip and ring of the 3.5mm jack are reversed between front and rear: the Thetis or piHPSDR settings should be correct for the rear connector.
Can you tell us exactly what happens please, with what settings?
Laurence, just an FYI, I had posted the following a couple of days ago regarding mic and audio issues with my G2:
• Using PTT to key up on LSB, others have noticed an initial carrier that diminishes gradually during the first 2-3 seconds of each transmission. The dynamic MXL DB-1 mic is connected to the front panel connector and the PTT line connected to the rear ⅜” connector.
• Using the 20dB Mic boost with mic on front panel connector seems to cause a 1sec to 2sec delay in transmitted audio resulting in the first word or two clipped from the transmission. Unchecking the 20dB mic Boost eliminates this issue.
• When my dynamic mic is connected to the rear connector labeled “XLR”, there is an echo on the transmitted audio resembling a 100ms-200ms delay of a second audio signal after PTT key up. The PTT is connected to the rear ⅜” connector. If I pull out the PTT line and use MOX, there is no audio at all. The XLR-labeled input is therefore not currently usable.
I had re flashed the firmware following recent instructions.
I am running Thetis 2.10.1 and have updated the G2 as follows:
FPGA BIT file date code = 23082023
Product: Saturn; version = 2
FPGA firmware loaded: Saturn prototype, full function; FW version = 8
I just ordered an external audio interface in hopes that using VAC with the dynamic mic may be a workaround.
-- Bob - Ki1n
Re: G2 Software and Firmware Updates 27 Aug 2023
There are several interesting alternative choices available on the market as a more powerful, pin-compatible CM4 replacement. There would be some risk in getting everything to compile and run on different hardware and different kernels, though.
Re: G2 Software and Firmware Updates 27 Aug 2023
update after trying kernel 6.1 production image:
The mic input works correctly. But the audio chopping at random moments is clearly present at sample speeds where the 6.5.5 stays smooth.
Also noticed that in the 6.1 image hpsdr and p2app can coexist without causing the tx-rx runaway.
Have now also the mic input working on the 6.5.5 after recompiling pihpsdr with the GPIO_INCLUDE option commented out. Despite the image being for controller-less G2, the SDcard image has that option set in pihpsdr' Makefile. Don't have an explanation why this makes the mic input work in my 6.5.5 arm64 build.
Still looking which package will provide the icons that the menu widgets need.
edit: it's the packages librsvg2-2, libsrvg2-bin, librsvg2-common
The mic input works correctly. But the audio chopping at random moments is clearly present at sample speeds where the 6.5.5 stays smooth.
Also noticed that in the 6.1 image hpsdr and p2app can coexist without causing the tx-rx runaway.
Have now also the mic input working on the 6.5.5 after recompiling pihpsdr with the GPIO_INCLUDE option commented out. Despite the image being for controller-less G2, the SDcard image has that option set in pihpsdr' Makefile. Don't have an explanation why this makes the mic input work in my 6.5.5 arm64 build.
Still looking which package will provide the icons that the menu widgets need.
edit: it's the packages librsvg2-2, libsrvg2-bin, librsvg2-common
Re: G2 Software and Firmware Updates 27 Aug 2023
Is there a particular post or guide to upgrading firmware on a G2 without screen? I am okay with directions, but there is a lot of trial and error in this thread. I guess I will read through it all when my G2 does arrive...unless I cancel before then. I kind of hoped it would be a bit more polished, but certainly don't want stagnant either.
I'm not really interested in a box with a screen and knobs at this point, but a stable, working, polished radio is what I expect for the money I suppose.
I'm not really interested in a box with a screen and knobs at this point, but a stable, working, polished radio is what I expect for the money I suppose.
Re: G2 Software and Firmware Updates 27 Aug 2023
It would be good to get familiar with how to use Linux, if you are not already. See viewtopic.php?f=48&t=4724
Re: G2 Software and Firmware Updates 27 Aug 2023
w-u-2-o wrote:It would be good to get familiar with how to use Linux, if you are not already. See viewtopic.php?f=48&t=4724
I am familiar with following directions, but rebuilding a driver after an update to the OS is not something I would have known to do.
Re: G2 Software and Firmware Updates
Laurence,
I have done the previous firmware and pihpsdr updates on my G-2 with success. This was by using the commands you specified in your August 27, 2023 post. I have been unsuccessful this time corresponding to the current Thetis version 2.10.3.6 -dev2.
I get stalled by this error in the first command:
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ ./p2app
SATURN Protocol 2 App. press 'x <enter>' in console to close
register access connected to /dev/xdma0_user
FPGA BIT file data code = 01072023
Product: Saturn; Version = 2
FPGA Firmware loaded: Fallback Golden image; FW Version = 5
All clocks present
p2app client app software Version:13 Build Date:23 Aug 2023 18:20:36
Die Temp = 57.6C
FPGA load is a fallback - you should re-flash the primary FPGA image!
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ ./p2app
SATURN Protocol 2 App. press 'x <enter>' in console to close
register access connected to /dev/xdma0_user
FPGA BIT file data code = 01072023
Product: Saturn; Version = 2
FPGA Firmware loaded: Fallback Golden image; FW Version = 5
All clocks present
p2app client app software Version:13 Build Date:23 Aug 2023 18:20:36
Die Temp = 57.6C
FPGA load is a fallback - you should re-flash the primary FPGA image!
Using flashwriter I reinstall using /home/pi/github/Saturn/FPGA/saturnprimary.bin. It still tells me the fall back version of the FPGA is installed. [back-color=][color=#4000FF] "pi@raspberrypi:~/github/pihpsdr $ git pull
Already up to date."[/back-color]
~/github/pihpsdr $ sudo apt-get install libgpiod-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
[back-color=]libgpiod-dev is already the newest version (1.2-3+rpi1)[/back-color]
How do I proceed to update to the newest firmware?
Tnx and 73 Torrey N9PY
I have done the previous firmware and pihpsdr updates on my G-2 with success. This was by using the commands you specified in your August 27, 2023 post. I have been unsuccessful this time corresponding to the current Thetis version 2.10.3.6 -dev2.
I get stalled by this error in the first command:
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ ./p2app
SATURN Protocol 2 App. press 'x <enter>' in console to close
register access connected to /dev/xdma0_user
FPGA BIT file data code = 01072023
Product: Saturn; Version = 2
FPGA Firmware loaded: Fallback Golden image; FW Version = 5
All clocks present
p2app client app software Version:13 Build Date:23 Aug 2023 18:20:36
Die Temp = 57.6C
FPGA load is a fallback - you should re-flash the primary FPGA image!
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ ./p2app
SATURN Protocol 2 App. press 'x <enter>' in console to close
register access connected to /dev/xdma0_user
FPGA BIT file data code = 01072023
Product: Saturn; Version = 2
FPGA Firmware loaded: Fallback Golden image; FW Version = 5
All clocks present
p2app client app software Version:13 Build Date:23 Aug 2023 18:20:36
Die Temp = 57.6C
FPGA load is a fallback - you should re-flash the primary FPGA image!
Using flashwriter I reinstall using /home/pi/github/Saturn/FPGA/saturnprimary.bin. It still tells me the fall back version of the FPGA is installed. [back-color=][color=#4000FF] "pi@raspberrypi:~/github/pihpsdr $ git pull
Already up to date."[/back-color]
~/github/pihpsdr $ sudo apt-get install libgpiod-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
[back-color=]libgpiod-dev is already the newest version (1.2-3+rpi1)[/back-color]
How do I proceed to update to the newest firmware?
Tnx and 73 Torrey N9PY
-
- Posts: 255
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Software and Firmware Updates
somehow the primary image has been corrupted.
What FPGA image filename did you try to program using flashwriter? it looks like it was saturnprimary.bin which I think won't work. Try saturnprimary2023V11.bin unless you are using the newest Thetis dev release in which case use V12.
for a while now I've added new images with their version number in the filename.
The issue is: when we got fallback config properly working, we had to change to x1 configuration speed rather than x4 because that's all that xilinx supports with fallback. I suspect saturnprimary.bin uses x4
What FPGA image filename did you try to program using flashwriter? it looks like it was saturnprimary.bin which I think won't work. Try saturnprimary2023V11.bin unless you are using the newest Thetis dev release in which case use V12.
for a while now I've added new images with their version number in the filename.
The issue is: when we got fallback config properly working, we had to change to x1 configuration speed rather than x4 because that's all that xilinx supports with fallback. I suspect saturnprimary.bin uses x4
Laurence Barker G8NJJ
Re: G2 Software and Firmware Updates
laurencebarker wrote:somehow the primary image has been corrupted.
What FPGA image filename did you try to program using flashwriter? it looks like it was saturnprimary.bin which I think won't work. Try saturnprimary2023V11.bin unless you are using the newest Thetis dev release in which case use V12.
for a while now I've added new images with their version number in the filename.
The issue is: when we got fallback config properly working, we had to change to x1 configuration speed rather than x4 because that's all that xilinx supports with fallback. I suspect saturnprimary.bin uses x4
How do I navigate to saturnprimary2023V12 in Flashwriter? I am using the latest Thetis dev-2 version. The only available file via Flashwriter is saturnprimary.bin, saturnprimary(1).bin, saturnprimar(2)y.bin (multiple identical downloads).
Tnx and 73,
Torrey N9PY
Re: G2 Software and Firmware Updates
Although I don't have the skills there must to be a way to create a small updater application to automate Firmware/Software updates on the G2 radios.
I agree its good to learn Linux but I believe there would be less chance of people possibly bricking their radios and also cut down on people asking the same questions over and over on How to update the G2.
The idea would be to have a Linux "G2 Firmware Updater" application installed on the G2 with a shortcut on the desktop.
When the user double clicks on the Updater icon on the desktop the application will automatically check GitHub to see if newer Firmware/software is available.
If no new Firmware/Software is available a message box would pop up and say “Your Firmware/Software is up to date”
If new Firmware/Software is available a message box would pop up saying "New Firmware/Software is available would you like to update now" (Click Yes Or NO).
If you click Yes and the application goes to GitHub downloads the necessary file(s) and shows a progress bar.
Once update is complete a message box pops up and says “Update Complete Please Restart Anan G2”
And that’s it, update complete!
Anyway just an idea to make using and updating the G2 easy and safe!
I agree its good to learn Linux but I believe there would be less chance of people possibly bricking their radios and also cut down on people asking the same questions over and over on How to update the G2.
The idea would be to have a Linux "G2 Firmware Updater" application installed on the G2 with a shortcut on the desktop.
When the user double clicks on the Updater icon on the desktop the application will automatically check GitHub to see if newer Firmware/software is available.
If no new Firmware/Software is available a message box would pop up and say “Your Firmware/Software is up to date”
If new Firmware/Software is available a message box would pop up saying "New Firmware/Software is available would you like to update now" (Click Yes Or NO).
If you click Yes and the application goes to GitHub downloads the necessary file(s) and shows a progress bar.
Once update is complete a message box pops up and says “Update Complete Please Restart Anan G2”
And that’s it, update complete!
Anyway just an idea to make using and updating the G2 easy and safe!
-
- Posts: 255
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Software and Firmware Updates
Torrey wrote:laurencebarker wrote:somehow the primary image has been corrupted.
What FPGA image filename did you try to program using flashwriter? it looks like it was saturnprimary.bin which I think won't work. Try saturnprimary2023V11.bin unless you are using the newest Thetis dev release in which case use V12.
for a while now I've added new images with their version number in the filename.
The issue is: when we got fallback config properly working, we had to change to x1 configuration speed rather than x4 because that's all that xilinx supports with fallback. I suspect saturnprimary.bin uses x4
How do I navigate to saturnprimary2023V12 in Flashwriter? I am using the latest Thetis dev-2 version. The only available file via Flashwriter is saturnprimary.bin, saturnprimary(1).bin, saturnprimar(2)y.bin (multiple identical downloads).
Tnx and 73,
Torrey N9PY
click "open file"
then navigate to /home/pi/github/Saturn/FPGA
you should find it there.
Laurence Barker G8NJJ
-
- Posts: 255
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Software and Firmware Updates
KC2QMA wrote:Although I don't have the skills there must to be a way to create a small updater application to automate Firmware/Software updates on the G2 radios.
I agree its good to learn Linux but I believe there would be less chance of people possibly bricking their radios and also cut down on people asking the same questions over and over on How to update the G2.
The idea would be to have a Linux "G2 Firmware Updater" application installed on the G2 with a shortcut on the desktop.
When the user double clicks on the Updater icon on the desktop the application will automatically check GitHub to see if newer Firmware/software is available.
If no new Firmware/Software is available a message box would pop up and say “Your Firmware/Software is up to date”
If new Firmware/Software is available a message box would pop up saying "New Firmware/Software is available would you like to update now" (Click Yes Or NO).
If you click Yes and the application goes to GitHub downloads the necessary file(s) and shows a progress bar.
Once update is complete a message box pops up and says “Update Complete Please Restart Anan G2”
And that’s it, update complete!
Anyway just an idea to make using and updating the G2 easy and safe!
I'm sure that such a thing is possible. It just needs someone with the skills and interest to write it. Open Source developers doing this as a hobby are likely to be focused on the things that interest them. This hasn't captured anyone's attention yet.
Laurence Barker G8NJJ
Re: G2 Software and Firmware Updates
laurencebarker wrote:Torrey wrote:laurencebarker wrote:somehow the primary image has been corrupted.
What FPGA image filename did you try to program using flashwriter? it looks like it was saturnprimary.bin which I think won't work. Try saturnprimary2023V11.bin unless you are using the newest Thetis dev release in which case use V12.
for a while now I've added new images with their version number in the filename.
The issue is: when we got fallback config properly working, we had to change to x1 configuration speed rather than x4 because that's all that xilinx supports with fallback. I suspect saturnprimary.bin uses x4
How do I navigate to saturnprimary2023V12 in Flashwriter? I am using the latest Thetis dev-2 version. The only available file via Flashwriter is saturnprimary.bin, saturnprimary(1).bin, saturnprimar(2)y.bin (multiple identical downloads).
Tnx and 73,
Torrey N9PY
click "open file"
then navigate to /home/pi/github/Saturn/FPGA
you should find it there.
__________________________
I repeated everything.. This time the Saturnprimary.bin was installed.
Double-checking:
~/github/Saturn/sw_projects/P2_app $ ./p2app
SATURN Protocol 2 App. press 'x <enter>' in console to close
register access connected to /dev/xdma0_user
FPGA BIT file data code = 23082023
Product: Saturn; Version = 2
FPGA Firmware loaded: Saturn prototype, full function; FW Version = 8
All clocks present
p2app client app software Version:13 Build Date:23 Aug 2023 18:20:36
Die Temp = 64.5C
I did not find selection options for saturnprimary2023V12 or others containing the version in the name via Flashwriter navigating to /home/pi/github/Saturn/FPGA.
Tnx and 73 Torrey N9PY
-
- Posts: 255
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Software and Firmware Updates
you could do "git pull" again. Or alternatively download the file from github using a web browser and program it directly.
http://www.github.com/laurencebarker/Saturn
then go to the FPGA folder
http://www.github.com/laurencebarker/Saturn
then go to the FPGA folder
Laurence Barker G8NJJ
-
- Posts: 255
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Software and Firmware Updates
No that's not intentional, and I don't know instantly what would be causing it. What DSP client app are you running, and what version please? And did you update p2app too?
Laurence Barker G8NJJ
Re: G2 Software and Firmware Updates 27 Aug 2023
laurencebarker wrote:We are in the process of changing the firmware, p2app and piHPSDR to work with enlarged FIFO buffers in the FPGA. Debug code has identified that we were stalling the software waiting for a speaker FIFO to empty. Hopefully a combination of enlarged buffers and a different way for the software to transfer data will fix that.
Yes, I noticed the GUI activity can cause lost data problems with Thetis too. As at today it is very stable - no lost data packets - in normal operation at FS=1536KHz with one receiver; if RX2 is enabled a tiny amount of data may be lost.
2 receivers at 384KHz is at the upper end of what I'd expect from piHPSDR, I consider that to be success. Hopefully in a few months there will be news of a pi5 compute module.
Hi Laurence.
I just wanted to confirm that the following update script is still applicable. I used it successfully earlier but heard there is another update available.
Is the following ok?
Thanks - Bob, Ki1n
cd ~/github/Saturn
git pull
cd sw_projects/P2_app
make clean
make
cd ../audiotest
make clean
make
cd ~/github/pihpsdr
git pull
make clean
make
Then run the "flashwriter" app. The program may already be installed onto your linux desktop. If not you can run it simply from a linux command prompt. Open a command window then type:
cd ~/github/Saturn/sw_tools/flashwriter
./flashwriter
click open file
navigate to the file ~/github/Saturn/FPGA
select file saturnprimary.bin
makes sure the Primary radio button is selected
click Program
(DO NOT click Erase Device of select Fallback!)
You will get progress shown in the window; it will go through erase, program and verify steps then report success at the end.
Shut your G2 down, power off and back on; it will now run the new FPGA code and will load the new p2app.
-- Bob - Ki1n