Page 1 of 1

G2 Firmware update 5/10/2023

Posted: Thu Oct 05, 2023 7:00 pm
by laurencebarker
There is an update to the Saturn software and firmware to help to address some of the audio issues that have been reported. Primarily this works with the recent piHPSDR release; but improvements to Thetis audio at high sample rates will be found too.

To adopt the p2app and Saturn FPGA changes, please follow the procedures in the manual. Basically these are:

open a command line window

type these commands (remembering they are case sensitive):

cd ~/github/Saturn
git pull --force
cd sw_projects/P2_app
make clean
make


cd ../audiotest
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 saturnprimary2023V10.bin
makes sure the Primary radio button is selected
click Program

(DO NOT click Erase Device or 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.

Re: G2 Firmware update 5/10/2023

Posted: Fri Oct 06, 2023 1:26 pm
by K5WC
Thank you Laurence, got it updated. Did have the merge error saying please commit your changes or stash before you merge. I deleted the P2APP executable and all else went as expected.

73~ John

Re: G2 Firmware update 5/10/2023

Posted: Fri Oct 06, 2023 1:48 pm
by echo_india
Thanks Laurence. The firmware update went smooth here also.

Re: G2 Firmware update 5/10/2023

Posted: Fri Oct 06, 2023 5:14 pm
by DL8LAQ
K5WC wrote:Thank you Laurence, got it updated. Did have the merge error saying please commit your changes or stash before you merge. I deleted the P2APP executable and all else went as expected.


Same here :-)

The updated firmware is very nice! It seems I can run 768ksps without any annoying audio glitches.

Edit: I begin to believe that with 192ksps in CW mode there are still ocassionally audio glitches. Less than before the update, but still too loud. Longer receiving periods in different modes are required.

Re: G2 Firmware update 5/10/2023

Posted: Fri Oct 06, 2023 8:57 pm
by K1VL
Laurence,

After the git pull --force command I receive the following error.

Updating ad259ba..0add88c
error: Your local changes to the following files would be overwritten by merge:
sw_projects/P2_app/p2app
Please commit your changes or stash them before you merge.
Aborting

What should I do to resolve this so I can continue with the update?

Thank you,

Carmine K1VL

Re: G2 Firmware update 5/10/2023

Posted: Fri Oct 06, 2023 9:08 pm
by echo_india
K1VL wrote:Laurence,

After the git pull --force command I receive the following error.

Updating ad259ba..0add88c
error: Your local changes to the following files would be overwritten by merge:
sw_projects/P2_app/p2app
Please commit your changes or stash them before you merge.
Aborting

What should I do to resolve this so I can continue with the update?

Thank you,

Carmine K1VL


Carmine,

you can cd sw_projects/P2_app/ then run 'mv p2app p2app_old'

Next, cd ~/github/Saturn and run the git pull --force again

Re: G2 Firmware update 5/10/2023

Posted: Sat Oct 07, 2023 8:43 am
by laurencebarker
this is happening because git is distributing the p2app executable. It isn't supposed to do that because it is in my .gitignore file, but does it anyway. And the distributed one is 64 bit and won't run on a 32 bit distribution.

just delete your old p2app file; make will build a new one.

Re: G2 Firmware update 5/10/2023

Posted: Sat Oct 07, 2023 12:29 pm
by DL8LAQ
I tried to update pihpsdr on another G2 via remote connection and telephone call, but failed.
"git pull" came back asking me for an email address and some more annoying b/s.

How do I get that to work?

Re: G2 Firmware update 5/10/2023

Posted: Sat Oct 07, 2023 4:10 pm
by n1gp
Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

Re: G2 Firmware update 5/10/2023

Posted: Sat Oct 07, 2023 8:45 pm
by DL8LAQ
n1gp wrote:Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"


Ok, I will try that tomorrow. Thank you, Rick.

Re: G2 Firmware update 5/10/2023

Posted: Sun Oct 08, 2023 10:49 am
by KC2QMA
Thank you very much Laurence for all of your dedication and hard work you and the team are doing to get our new G2 radio up to speed!
:D
John
KC2QMA

Re: G2 Firmware update 5/10/2023

Posted: Sun Oct 08, 2023 12:18 pm
by DL8LAQ
DL8LAQ wrote:
n1gp wrote:Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"


Ok, I will try that tomorrow. Thank you, Rick.


Used git config, but run into more problems:

"...Pulling is not possible because you have unmerged files"

Solution found on stackoverflow:

git fetch origin
git reset --hard origin/master

Now the G2 is running fine with f/w 10 and pihpsdr 2023-10-04.

Re: G2 Firmware update 5/10/2023

Posted: Sun Oct 08, 2023 9:03 pm
by K6JR
How do I delete the p2app file? Do I just move the p2app on the desktop to the trash?
Tnx, Jim K6JR

Re: G2 Firmware update 5/10/2023

Posted: Mon Oct 09, 2023 9:24 am
by n1gp
Click on the terminal icon on the top bar to get a command prompt:

term.png
term.png (9.55 KiB) Viewed 6744 times


Then type:

cd github/Saturn/sw_projects/P2_app

rm p2app

make

Re: G2 Firmware update 5/10/2023

Posted: Mon Oct 09, 2023 10:43 am
by K1VL
echo_india wrote:
K1VL wrote:
Carmine,

you can cd sw_projects/P2_app/ then run 'mv p2app p2app_old'

Next, cd ~/github/Saturn and run the git pull --force again


Thank you! This worked for me and I am upgraded.

Carmine K1VL