G2 Firmware update 5/10/2023

G2 operating system and special app's (e.g. p2app) discussion only--post Thetis and piHPSDR questions in their own sub-forums
laurencebarker
Posts: 225
Joined: Mon Nov 11, 2019 7:39 pm

G2 Firmware update 5/10/2023

Postby laurencebarker » Thu Oct 05, 2023 7:00 pm

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.
Laurence Barker G8NJJ
K5WC
Posts: 23
Joined: Sun Apr 16, 2023 10:59 pm

Re: G2 Firmware update 5/10/2023

Postby K5WC » Fri Oct 06, 2023 1:26 pm

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
echo_india
Posts: 43
Joined: Wed May 03, 2023 8:38 pm

Re: G2 Firmware update 5/10/2023

Postby echo_india » Fri Oct 06, 2023 1:48 pm

Thanks Laurence. The firmware update went smooth here also.
Best 73,
EI5GJB
DL8LAQ
Posts: 215
Joined: Sun Apr 09, 2017 3:28 pm
Location: JO43XU

Re: G2 Firmware update 5/10/2023

Postby DL8LAQ » Fri Oct 06, 2023 5:14 pm

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.
Last edited by DL8LAQ on Sat Oct 07, 2023 11:50 am, edited 1 time in total.
73, Norbert - DL8LAQ - ANAN-G2 w/display - Richie's latest Thetis version and pihpsdr by N1GP&DL1YCF
K1VL
Posts: 5
Joined: Mon Aug 28, 2023 9:00 pm
Location: Shrewsbury, Vermont

Re: G2 Firmware update 5/10/2023

Postby K1VL » Fri Oct 06, 2023 8:57 pm

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 K1VL
echo_india
Posts: 43
Joined: Wed May 03, 2023 8:38 pm

Re: G2 Firmware update 5/10/2023

Postby echo_india » Fri Oct 06, 2023 9:08 pm

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
Best 73,
EI5GJB
laurencebarker
Posts: 225
Joined: Mon Nov 11, 2019 7:39 pm

Re: G2 Firmware update 5/10/2023

Postby laurencebarker » Sat Oct 07, 2023 8:43 am

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.
Laurence Barker G8NJJ
DL8LAQ
Posts: 215
Joined: Sun Apr 09, 2017 3:28 pm
Location: JO43XU

Re: G2 Firmware update 5/10/2023

Postby DL8LAQ » Sat Oct 07, 2023 12:29 pm

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?
73, Norbert - DL8LAQ - ANAN-G2 w/display - Richie's latest Thetis version and pihpsdr by N1GP&DL1YCF
User avatar
n1gp
Posts: 175
Joined: Sun Apr 09, 2017 6:34 pm

Re: G2 Firmware update 5/10/2023

Postby n1gp » Sat Oct 07, 2023 4:10 pm

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"
DL8LAQ
Posts: 215
Joined: Sun Apr 09, 2017 3:28 pm
Location: JO43XU

Re: G2 Firmware update 5/10/2023

Postby DL8LAQ » Sat Oct 07, 2023 8:45 pm

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.
73, Norbert - DL8LAQ - ANAN-G2 w/display - Richie's latest Thetis version and pihpsdr by N1GP&DL1YCF
KC2QMA
Posts: 104
Joined: Mon Jul 13, 2020 11:13 pm

Re: G2 Firmware update 5/10/2023

Postby KC2QMA » Sun Oct 08, 2023 10:49 am

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
DL8LAQ
Posts: 215
Joined: Sun Apr 09, 2017 3:28 pm
Location: JO43XU

Re: G2 Firmware update 5/10/2023

Postby DL8LAQ » Sun Oct 08, 2023 12:18 pm

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.
73, Norbert - DL8LAQ - ANAN-G2 w/display - Richie's latest Thetis version and pihpsdr by N1GP&DL1YCF
K6JR
Posts: 29
Joined: Fri Apr 12, 2019 11:56 am

Re: G2 Firmware update 5/10/2023

Postby K6JR » Sun Oct 08, 2023 9:03 pm

How do I delete the p2app file? Do I just move the p2app on the desktop to the trash?
Tnx, Jim K6JR
User avatar
n1gp
Posts: 175
Joined: Sun Apr 09, 2017 6:34 pm

Re: G2 Firmware update 5/10/2023

Postby n1gp » Mon Oct 09, 2023 9:24 am

Click on the terminal icon on the top bar to get a command prompt:

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


Then type:

cd github/Saturn/sw_projects/P2_app

rm p2app

make
K1VL
Posts: 5
Joined: Mon Aug 28, 2023 9:00 pm
Location: Shrewsbury, Vermont

Re: G2 Firmware update 5/10/2023

Postby K1VL » Mon Oct 09, 2023 10:43 am

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
Carmine K1VL

Return to “G2 Operating System & Applications”