Page 4 of 5

Re: G2 Software and Firmware Updates

Posted: Tue Apr 02, 2024 6:43 pm
by laurencebarker
piHPSDR is in Christoph Wullen's repository:

https://github.com/DL1YCF/pihpsdr

but there are likely to be experimental changes there. I know that the current commit hasn't been tested yet, because Christoph does not have a G2. I won't be home to test that until Sunday earliest.

I will ask him if the long term version can be updated.



The build instructions haven't been changed.

Re: G2 Software and Firmware Updates

Posted: Tue Apr 02, 2024 9:46 pm
by gw0hyu
I notice saturnprimary2023V13.bin is loaded up on github, is this good to load on G2 without front ? :)

Cheers
Keith

Re: G2 Software and Firmware Updates

Posted: Tue Apr 02, 2024 9:56 pm
by gw0hyu
also just to mention that on my G2 using Thetis v2.10.3.6 setup / general shows

Firmware version 2.0.0 Id:
Saturn Protocol 2 (v3.9)

So dumb question , how does this relate to the latest firware version ? In other words I should see Saturn Protocol 2 (v12) when updated or is this not reference to the bin file ? :)

Re: G2 Software and Firmware Updates

Posted: Tue Apr 02, 2024 9:57 pm
by gw0hyu
gw0hyu wrote:I notice saturnprimary2023V13.bin is loaded up on github, is this good to load on G2 without front ? :)

Cheers
Keith
Just read the release notes , so guess the answer is no for now.. :D ..

Re: G2 Software and Firmware Updates

Posted: Wed Apr 03, 2024 6:40 am
by Chris_sq8ers
Where can I download the SD card image for Anan G2 LCD?
Regards Chris

Re: G2 Software and Firmware Updates

Posted: Wed Apr 03, 2024 7:46 am
by Roger GT
Where can I download the SD card image for the Anan G2 LCD?
I would also like to know this. The link in the manual does not work!

Re: G2 Software and Firmware Updates

Posted: Wed Apr 03, 2024 9:57 am
by laurencebarker
Chris_sq8ers wrote:Where can I download the SD card image for Anan G2 LCD?
Regards Chris
That's a question for the factory. Abhi was going to tell me when he had a stable location, but hasn't told me yet.

Re: G2 Software and Firmware Updates

Posted: Wed Apr 03, 2024 3:13 pm
by WM7C
Roger GT wrote:Where can I download the SD card image for the Anan G2 LCD?
I would also like to know this. The link in the manual does not work!

Look in the Saturn Manual for the links.

Oh!!! Sorry, links are dead.
2024-04-03 08_11_49-1023_Saturn-manual-V08.pdf - Foxit PDF Reader.png
2024-04-03 08_11_49-1023_Saturn-manual-V08.pdf - Foxit PDF Reader.png (153.14 KiB) Viewed 30126 times

Re: G2 Software and Firmware Updates

Posted: Wed Apr 03, 2024 8:10 pm
by gw0hyu
gw0hyu wrote:also just to mention that on my G2 using Thetis v2.10.3.6 setup / general shows

Firmware version 2.0.0 Id:
Saturn Protocol 2 (v3.9)

So dumb question , how does this relate to the latest firware version ? In other words I should see Saturn Protocol 2 (v12) when updated or is this not reference to the bin file ? :)
so answered my own question which was dumb :) Updated to V12 as per Laurence' instructions a few posts ago and all went perfectly well.

Re: G2 Software and Firmware Updates

Posted: Thu Apr 04, 2024 8:15 am
by Roger GT
4. Download a drive image from Apache Labs:
a. With display:
https://storage.googleapis.com/anan_g2/ ... _image.img
b. Without display:
https://storage.googleapis.com/anan_g2/ ... mage_27082

Both links do not work!

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>UserProjectAccountProblem</Code>
<Message>The project to be billed is associated with a closed billing account.</Message>
<Details>The billing account for the owning project is disabled in state closed</Details>
</Error>

Re: G2 Software and Firmware Updates

Posted: Fri Apr 26, 2024 12:06 am
by K5WC
Today I updated my P2APP to the latest version, all went well and after starting the P2APP on the G2 it shows the new version number but on transmit I have a occasional blip where the SWR red box flashes up on Thetis and I hear the relay click as it has dropped out the transmitter on the G2 for a split micro second. Pure signal drops red and the goes back green as recalculates. This does not happen every time I transmitted but also didn’t matter if PS was off or on. SWR is flat on my antenna. I went back to the previous version of P2APP that I had been using and everything is back to normal. Not sure if it’s just mine or if anyone else is seeing this anomaly on transmit.

Best 73, K5WC

Re: G2 Software and Firmware Updates

Posted: Sun Apr 28, 2024 3:09 am
by coaxjim
Anyone have an image of the SD card for the G2 with display.?
I foolishly also did an update to the Pi, and now all screens are Black, as I read above happening to others.
Have Apache Labs not paid teir google storage account? Why isn't such important data files as these available from their website?
Radio is a door stop without software.
Tony VK4PA

Re: G2 Software and Firmware Updates

Posted: Mon Apr 29, 2024 7:51 pm
by laurencebarker
K5WC wrote:Today I updated my P2APP to the latest version, all went well and after starting the P2APP on the G2 it shows the new version number but on transmit I have a occasional blip where the SWR red box flashes up on Thetis and I hear the relay click as it has dropped out the transmitter on the G2 for a split micro second. Pure signal drops red and the goes back green as recalculates. This does not happen every time I transmitted but also didn’t matter if PS was off or on. SWR is flat on my antenna. I went back to the previous version of P2APP that I had been using and everything is back to normal. Not sure if it’s just mine or if anyone else is seeing this anomaly on transmit.

Best 73, K5WC


Can you load and try new p2app software V20 please?

(FPGA "as is" just the software)

I think this happened if you changed frequency (eg RX2) during TX, or some other change to settings

Re: G2 Software and Firmware Updates

Posted: Mon Apr 29, 2024 10:02 pm
by K5WC
laurencebarker wrote:
K5WC wrote:Today I updated my P2APP to the latest version, all went well and after starting the P2APP on the G2 it shows the new version number but on transmit I have a occasional blip where the SWR red box flashes up on Thetis and I hear the relay click as it has dropped out the transmitter on the G2 for a split micro second. Pure signal drops red and the goes back green as recalculates. This does not happen every time I transmitted but also didn’t matter if PS was off or on. SWR is flat on my antenna. I went back to the previous version of P2APP that I had been using and everything is back to normal. Not sure if it’s just mine or if anyone else is seeing this anomaly on transmit.

Best 73, K5WC


Can you load and try new p2app software V20 please?

(FPGA "as is" just the software)

I think this happened if you changed frequency (eg RX2) during TX, or some other change to settings
Thank you Laurence for the update, I have it loaded and have been ragchewing for about a hour without any issues.

73 John K5WC

Re: G2 Software and Firmware Updates

Posted: Mon Apr 29, 2024 10:11 pm
by coaxjim
coaxjim wrote:Anyone have an image of the SD card for the G2 with display.?
I foolishly also did an update to the Pi, and now all screens are Black, as I read above happening to others.
Have Apache Labs not paid teir google storage account? Why isn't such important data files as these available from their website?
Radio is a door stop without software.
Tony VK4PA
Thanks to Abhi at Apache Labs.
For sending me a link to download the display G2 SD Card Image file.
Others who accidently trash their cards may be helped.
https://www.dropbox.com/scl/fi/6s7a4p34 ... clsuf&dl=0
All the best
Tony VK4PA

Re: G2 Software and Firmware Updates

Posted: Tue Apr 30, 2024 12:13 am
by K5WC
coaxjim wrote:
coaxjim wrote:Anyone have an image of the SD card for the G2 with display.?
I foolishly also did an update to the Pi, and now all screens are Black, as I read above happening to others.
Have Apache Labs not paid teir google storage account? Why isn't such important data files as these available from their website?
Radio is a door stop without software.
Tony VK4PA
Thanks to Abhi at Apache Labs.
For sending me a link to download the display G2 SD Card Image file.
Others who accidently trash their cards may be helped.
https://www.dropbox.com/scl/fi/6s7a4p34 ... clsuf&dl=0
All the best
Tony VK4PA
Thanks Tony for the link, did it get you back up and going?
73 John

Re: G2 Software and Firmware Updates

Posted: Tue Apr 30, 2024 8:34 am
by Roger GT
K5WC wrote: Thanks Tony for the link, did it get you back up and going?
73 John
Thanks for the link Toni. I will test the image immediately. Stay tuned.

Re: G2 Software and Firmware Updates

Posted: Wed May 01, 2024 7:44 am
by Roger GT
The image works. I have successfully flashed it onto a µSD card. The G2 is working and I just need to do the updates.

Re: G2 Software and Firmware Updates

Posted: Sun May 05, 2024 11:39 am
by Gibo
Anyone looking for the G2 no display SD card image it can be found here https://cacelense.pt/G2/G2_No_Display_p ... 021223.zip

VK8BN

Re: G2 Software and Firmware Updates

Posted: Wed May 08, 2024 7:35 pm
by sq9rst
Gibo wrote:Anyone looking for the G2 no display SD card image it can be found here https://cacelense.pt/G2/G2_No_Display_p ... 021223.zip

VK8BN
Thank you!!!

73, SQ9RST

Re: G2 Software and Firmware Updates 27 Aug 2023

Posted: Sun Aug 04, 2024 12:18 am
by dchris
laurencebarker wrote: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?
Hi Laurence,

I've only been able to upgrade my G2 to a ~5.10 kernel using apt upgrade & the OS is on the old 32-bit Raspbian. The 32-bit OS is not really going to be supported in future development; I was trying to profile p2app on it but the packages are too out-of-date on 32-bit.

Are you on a 64-bit 6.1.x kernel? I have a freshly flashed 6.5.x Raspbian 64-bit SD card, and am trying to figure out how to get p2app working. It compiles, but running p2app gives:
SATURN Protocol 2 App. press 'x <enter>' in console to close
register R/W address space not available
ERROR: register read: addr=0x0000C000 error=Bad file descriptor
ERROR: register read: addr=0x0000C004 error=Bad file descriptor
ERROR: register read: addr=0x00004004 error=Bad file descriptor
FPGA BIT file data code = 00000000
Product: invalid product ID; Version = 0
FPGA Firmware loaded: invalid software ID; FW Version = 0
122.88MHz main clock not present
10MHz Reference clock not present
EMC config clock not present
122.88MHz main clock not present
p2app client app software Version:26 Build Date:20 Jul 2024 18:43:57
ERROR: register read: addr=0x00018200 error=Bad file descriptor
Die Temp = -273.1C
ERROR: register read: addr=0x0000C000 error=Bad file descriptor
ERROR: register read: addr=0x0000C004 error=Bad file descriptor
ERROR: register read: addr=0x00004004 error=Bad file descriptor
ERROR: Write: addr=0x00014000 error=Bad file descriptor
ERROR: Write: addr=0x00014000 error=Bad file descriptor

(...elided...)


ERROR: Write: addr=0x00002000 error=Bad file descriptor
ERROR: Write: addr=0x00002004 error=Bad file descriptor
ERROR: Write: addr=0x00002008 error=Bad file descriptor
ERROR: Write: addr=0x00002008 error=Bad file descriptor
ERROR: Write: addr=0x00002014 error=Bad file descriptor
ERROR: Write: addr=0x00002014 error=Bad file descriptor
ERROR: register read: addr=0x0000C000 error=Bad file descriptor
ERROR: Write: addr=0x00002008 error=Bad file descriptor

***************************************************************************
***************************************************************************
Incompatible Saturn FPGA firmware v0; this version of p2app needs 8 ... 17
You must update your copy of p2app to use that firmware version - see User manual
p2app will refuse a connection request until this is resolved!
...elided...

I have the original SD card with the 32-bit Raspbian OS, and successfully flashed & ran the V17 firmware on my G2 for a few weeks. So, it's confusing that the newly compiled p2app is reporting incompatible FPGA firmware.

Do you have any instructions for how to get a G2 & p2app + pihpsdr running on a fresh 64-bit Raspbian image?

--73, KD0BTO

Re: G2 Software and Firmware Updates

Posted: Sun Aug 04, 2024 10:55 am
by laurencebarker
My kernel is 6.1.21-v8+

I know the factory has been providing links to drive image with working OS. They don't seem to provide them at a permanent location that everyone can find though!

You may be able to recompile the XDMA driver. If you are unlucky some of the functions in the driver will have been deprecated, and the driver itself will need to be patched. That happens every year or so..

To recompile the driver:

- get the kernel headers so the kernel module can compile:
(note if this fails you will need to use an older OS release, or rebuild the kernel
by following the instructions at https://www.raspberrypi.org/documentati ... uilding.md)


sudo apt install raspberrypi-kernel-headers


- If you are updating: unload the previous driver from memory.
sudo rmmod -s xdma

- Change directory to the driver directory.
cd github/Saturn/linuxdriver/xdma

- Compile and install the kernel module driver.
make

sudo make install

- Load the kernel module driver:

sudo modprobe xdma

if that works you will now have xdma entries in the /dev folder

Re: G2 Software and Firmware Updates

Posted: Tue Aug 06, 2024 11:48 pm
by dchris
Thanks Laurence for the instructions. After doing more debugging, the issue I was encountering earlier was due to a mismatch between my kernel & package versions. A fresh install of Raspbian with the 6.1 kernel & following the compile instructions fixes it. I'm now able to compile & install the driver & p2app.

In attempting to make some changes to reduce p2app's CPU usage, I found two bugs. The first triggers when the -O3 flag is passed to the compiler. When transmitting, the power meter will show 0W. The O3 flag should produce faster code but shouldn't change the program semantics, so there's a critical section somewhere that isn't properly synchronized. I submitted a GitHub issue here: https://github.com/laurencebarker/Saturn/issues/8

The second bug is in the SleepCount for OutgoingHighPriority, which uses too small of a type & overflows. I submitted a PR here: https://github.com/laurencebarker/Saturn/pull/9

Re: G2 Software and Firmware Updates

Posted: Wed Oct 30, 2024 2:26 pm
by PH7R
Received G2 no display today (upgrade from HL2).
Raspi OS Buster 10 is installed (Raspi model 4). FPGA bit file 30092023. Saturn product version 2. FPGA FW 10
Few questions:
1. Should I run sudo apt full update and full-upgrade?
2. Should I download and install above image_021223?
3. Do I have the latest PFGA firmware? Looking at the https://github.com/laurencebarker/Satur ... es/tag/1.2 it says saturnprimary2023V10.bin. So I assume I am on the latest FW?
4. piHPSDR is not factory installed? Just run?
git clone https://github.com/dl1ycf/pihpsdr
cd pihpsdr
LINUX/libinstall.sh

If I run VNC (pi headless) what is the best way to shut down Anan G2? From Raspi shutdown menu or on/off button on the G2?

thks 73 Ronald PH7R

Re: G2 Software and Firmware Updates

Posted: Wed Oct 30, 2024 2:52 pm
by Trucker
Go to the Apache Labs main website and on the left side of the page download the latest version of the manual for the G2 radios. There is a set procedure for start and shutdown of each version of the G2 Saturn radios. Not following the correct procedure could result in having to reinstall the OS and software for the G2 radios.
James
WD5GWY

Re: G2 Software and Firmware Updates

Posted: Wed Oct 30, 2024 3:06 pm
by PH7R
Trucker wrote:Go to the Apache Labs main website and on the left side of the page download the latest version of the manual for the G2 radios. There is a set procedure for start and shutdown of each version of the G2 Saturn radios. Not following the correct procedure could result in having to reinstall the OS and software for the G2 radios.
James
WD5GWY
It only describes the procedure with no front panel. Not if you have an Anan with no front panel and do it via Raspi menu icon. Can I assume the procedure Radio with V2 front panel or V1? Or should I do not shut down via Raspi menu at all?

Re: G2 Software and Firmware Updates

Posted: Wed Oct 30, 2024 3:18 pm
by Trucker
The manual describes the shutdown and start up for both the radio with a front panel display and the radio without the front panel display. Page 8 of the manual has the proper sequence.
If you are using Thetis over your network you shutdown the radio after shutting down Thetis using the procedure outlined in the manual for your radio.
The instructions in the manual are clear for shutting down the radio properly.
James
WD5GWY

Re: G2 Software and Firmware Updates

Posted: Fri Nov 01, 2024 4:29 pm
by g6phf
So I need a display to do the flash it seems? Or is there some switch to run from terminal?
Thaanks
Mike

Re: G2 Software and Firmware Updates

Posted: Fri Nov 01, 2024 4:35 pm
by PH7R
g6phf wrote:So I need a display to do the flash it seems? Or is there some switch to run from terminal?
Thaanks
Mike
Did you check this thread and instructions?
viewtopic.php?f=48&t=4772

Re: G2 Software and Firmware Updates

Posted: Fri Nov 01, 2024 4:41 pm
by g6phf
PH7R wrote:
g6phf wrote:So I need a display to do the flash it seems? Or is there some switch to run from terminal?
Thaanks
Mike
Did you check this thread and instructions?
viewtopic.php?f=48&t=4772
Thanks yes. I am logged in via ssh. I will connect vnc